/**
 * Hamed Academic Dashboard 3.6.0
 * Portrait effects, readable research interests, uncropped news media,
 * correctly registered world-map markers, and funding trend lines.
 */

/* Restore the animated portrait treatment and make the photograph fill its frame. */
.had-home-v320>.had-profile-card .had-protected-portrait-image{
  background-size:cover!important;
  background-position:center 18%!important;
  background-repeat:no-repeat!important;
  filter:saturate(.8) contrast(1.07)!important;
}
.had-home-v320>.had-profile-card .had-portrait-radar{
  display:block!important;
  inset:7%!important;
  opacity:.72;
  border-color:rgba(34,211,238,.34)!important;
  box-shadow:0 0 26px rgba(34,211,238,.12),inset 0 0 22px rgba(34,211,238,.08);
  mix-blend-mode:screen;
  pointer-events:none;
}
.had-home-v320>.had-profile-card .had-portrait-radar i{
  border-color:rgba(34,211,238,.25)!important;
}
.had-home-v320>.had-profile-card .had-portrait-radar:after{
  content:"";
  position:absolute;
  left:50%;
  top:-1px;
  width:1px;
  height:50%;
  transform-origin:50% 100%;
  background:linear-gradient(rgba(34,211,238,.68),transparent);
}

/* Research interests are primary profile information, not micro-labels. */
.had-home-v320>.had-profile-card .had-profile-interests>small{
  font-size:9px!important;
  letter-spacing:.14em!important;
}
.had-home-v320>.had-profile-card .had-profile-interests>div{
  gap:7px!important;
}
.had-home-v320>.had-profile-card .had-profile-interests span{
  min-height:29px!important;
  padding:6px 10px!important;
  color:#ddf8fb!important;
  font-size:12px!important;
  line-height:1.22!important;
}

/* Preserve the split news layout, but show each editable image in full.
 * A 9:16 portrait image fills this frame most closely at desktop sizes. */
@media(min-width:901px){
  .had-home-v320>.had-profile-card{grid-template-rows:minmax(0,.98fr) minmax(0,1.02fr) 40px!important}
  .had-home-v320 .had-news-item.is-active{
    grid-template-columns:minmax(130px,.78fr) minmax(0,1.22fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    gap:9px!important;
    padding:9px 2px 7px!important;
  }
  .had-home-v320 .had-news-media{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    align-self:stretch!important;
    background-size:contain!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-color:#041722!important;
  }
  .had-home-v320 .had-news-copy h3{
    font-size:clamp(16px,1.18vw,22px)!important;
    line-height:1.13!important;
    -webkit-line-clamp:5!important;
  }
  .had-home-v320 .had-news-copy p{font-size:10px!important}
  .had-home-v320 .had-news-copy>strong{font-size:9px!important}

  /* The deleted teaching-approach strip leaves this evidence area to use the space. */
  .had-teaching-final .had-teaching-layout{
    flex:1 1 auto!important;
    min-height:0!important;
  }
}

/* Annual funding is a temporal series, so display it as a line rather than columns. */
.had-funding-trend{
  min-width:0;
  min-height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5px 0 0;
  overflow:hidden;
}
.had-funding-trend>svg{
  display:block;
  width:100%;
  height:100%;
  min-height:150px;
  overflow:visible;
}
.had-funding-grid{
  stroke:#1a4659;
  stroke-width:1;
  stroke-dasharray:4 7;
  vector-effect:non-scaling-stroke;
}
.had-funding-line{
  fill:none;
  stroke:#f2bf4c;
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 0 5px rgba(242,191,76,.42));
}
.had-funding-point{
  fill:#061722;
  stroke:#f2bf4c;
  stroke-width:4;
  vector-effect:non-scaling-stroke;
}
.had-funding-trend text{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  text-anchor:middle;
}
.had-funding-axis-value{
  fill:#6f92a1;
  font-size:10px;
  text-anchor:end!important;
}
.had-funding-point-value{
  fill:#f9d77d;
  font-size:11px;
  font-weight:800;
}
.had-funding-year{
  fill:#789dac;
  font-size:11px;
  font-weight:750;
}

@media(min-width:901px) and (max-height:720px){
  .had-home-v320>.had-profile-card{grid-template-rows:minmax(0,.94fr) minmax(0,1.06fr) 34px!important}
  .had-home-v320>.had-profile-card .had-profile-interests>small{font-size:8.5px!important}
  .had-home-v320>.had-profile-card .had-profile-interests>div{gap:5px!important}
  .had-home-v320>.had-profile-card .had-profile-interests span{
    min-height:25px!important;
    padding:5px 8px!important;
    font-size:11px!important;
  }
  .had-home-v320 .had-news-item.is-active{grid-template-columns:minmax(110px,.72fr) minmax(0,1.28fr)!important}
  .had-funding-trend,.had-funding-trend>svg{min-height:125px}
}

@media(max-width:900px){
  .had-home-v320>.had-profile-card .had-protected-portrait-image{
    background-size:cover!important;
    background-position:center 18%!important;
  }
  .had-home-v320>.had-profile-card .had-profile-interests span{font-size:13px!important}
  .had-home-v320 .had-news-media{
    background-size:contain!important;
    background-repeat:no-repeat!important;
    background-position:center!important;
    background-color:#041722!important;
  }
  .had-funding-chart{grid-template-columns:1fr!important}
  .had-funding-total{border-right:0!important;border-bottom:1px solid #1d4356;padding-bottom:12px}
  .had-funding-trend{min-height:210px}
}

@media(prefers-reduced-motion:reduce){
  .had-home-v320>.had-profile-card .had-portrait-radar{animation:none!important}
}
