/**
 * Hamed Academic Dashboard 3.5.0
 * Identity-first homepage, exact Global Reach map registration, and quieter collection headers.
 */

/* Research interests replace repeated navigation links and repeated portfolio totals. */
.had-profile-interests{
  min-width:0;
  margin:10px 0 0;
  padding-top:10px;
  border-top:1px solid #1b475b;
}
.had-profile-interests>small{
  display:block;
  margin-bottom:8px;
  color:#79a2b2;
  font:750 9px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.had-profile-interests>div{display:flex;flex-wrap:wrap;gap:6px}
.had-profile-interests span{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:5px 9px;
  border:1px solid #235a70;
  border-radius:999px;
  background:rgba(8,39,53,.68);
  color:#c5e8ef;
  font:650 10px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

/* The SVG root uses preserveAspectRatio="none"; this stage and every marker now share one exact coordinate surface. */
.had-reach-map-stage,
.had-reach-map-stage>img{
  width:100%!important;
  height:100%!important;
}
.had-reach-map-stage{position:relative!important;inset:auto!important;overflow:hidden!important}
.had-reach-map-stage>img{
  position:absolute!important;
  inset:0!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
}
.had-reach-map-stage>.had-reach-dot{position:absolute!important;transform:translate(-50%,-50%)!important}

@media(min-width:901px){
  /* Identity-first hierarchy: the profile occupies the full right column. */
  .had-home-v320{
    grid-template-columns:minmax(0,1.58fr) minmax(370px,.72fr)!important;
    grid-template-rows:minmax(320px,1.15fr) minmax(245px,.85fr)!important;
    gap:8px!important;
  }
  .had-home-v320 .had-home-top{
    grid-column:1!important;
    grid-row:1!important;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;
    grid-template-areas:"scholar news"!important;
    height:100%!important;
    min-height:0!important;
  }
  .had-home-v320>.had-profile-card{
    grid-column:2!important;
    grid-row:1 / span 2!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:minmax(0,1.05fr) minmax(0,.95fr) 40px!important;
    overflow:hidden!important;
  }
  .had-home-v320>.had-profile-card .had-portrait{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    border:0!important;
    border-bottom:1px solid #1c495e!important;
    background:#dce8ee!important;
  }
  .had-home-v320>.had-profile-card .had-protected-portrait-image{
    background-size:auto 108%!important;
    background-position:center top!important;
    background-repeat:no-repeat!important;
    background-color:#dce8ee!important;
    filter:saturate(.92) contrast(1.02)!important;
  }
  .had-home-v320>.had-profile-card .had-portrait:after{
    height:18%!important;
    background:linear-gradient(transparent,rgba(3,15,24,.65))!important;
  }
  .had-home-v320>.had-profile-card .had-profile-copy{
    grid-column:1!important;
    grid-row:2!important;
    min-height:0!important;
    padding:15px 17px 12px!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .had-home-v320>.had-profile-card .had-profile-network{
    grid-column:1!important;
    grid-row:3!important;
    height:40px!important;
    min-height:40px!important;
  }
  .had-home-v320>.had-profile-card .had-kicker{margin:0 0 3px!important}
  .had-home-v320>.had-profile-card h1{
    margin:4px 0 3px!important;
    font-size:clamp(26px,2vw,37px)!important;
    line-height:1.02!important;
    letter-spacing:-.035em!important;
  }
  .had-home-v320>.had-profile-card .had-profile-role{
    margin:0 0 7px!important;
    font-size:12px!important;
    line-height:1.25!important;
    white-space:normal!important;
  }
  .had-home-v320>.had-profile-card .had-profile-summary{
    margin:0!important;
    padding-top:7px!important;
    font-size:11px!important;
    line-height:1.4!important;
    -webkit-line-clamp:3!important;
  }
  .had-home-v320>.had-profile-card .had-profile-interests{
    margin-top:10px!important;
    padding-top:9px!important;
  }
  .had-home-v320>.had-profile-card .had-profile-interests>small{margin-bottom:6px!important;font-size:8px!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:23px!important;
    padding:4px 7px!important;
    font-size:9px!important;
  }
  .had-home-v320>.had-profile-card .had-profile-actions{display:flex!important;margin-top:auto!important;padding-top:9px!important}
  .had-home-v320>.had-profile-card .had-profile-actions a{
    min-height:31px!important;
    padding:0 10px!important;
    font-size:9px!important;
  }

  .had-home-v320 .had-home-reach{
    grid-column:1!important;
    grid-row:2!important;
  }
  .had-home-v320 .had-home-reach .had-reach-card{
    grid-template-columns:minmax(0,1fr) minmax(155px,.23fr)!important;
  }
  .had-home-v320 .had-reach-map,
  .had-home-v320 .had-reach-map-stage{height:100%!important;min-height:0!important;max-height:none!important}

  /* The removed category index must never retain a grid track through cached markup. */
  .had-home-v320>.had-dashboard-zone{display:none!important}
}

@media(min-width:901px) and (max-height:720px){
  .had-home-v320{
    grid-template-rows:minmax(285px,1.12fr) minmax(205px,.88fr)!important;
  }
  .had-home-v320>.had-profile-card{
    grid-template-rows:minmax(0,1.02fr) minmax(0,.98fr) 34px!important;
  }
  .had-home-v320>.had-profile-card .had-profile-network{height:34px!important;min-height:34px!important}
  .had-home-v320>.had-profile-card .had-protected-portrait-image{background-size:auto 112%!important;background-position:center top!important}
  .had-home-v320>.had-profile-card .had-profile-copy{padding:10px 13px 8px!important}
  .had-home-v320>.had-profile-card h1{font-size:clamp(23px,1.8vw,31px)!important}
  .had-home-v320>.had-profile-card .had-profile-role{font-size:10px!important;margin-bottom:4px!important}
  .had-home-v320>.had-profile-card .had-profile-summary{font-size:9px!important;line-height:1.32!important;-webkit-line-clamp:2!important}
  .had-home-v320>.had-profile-card .had-profile-interests{margin-top:6px!important;padding-top:6px!important}
  .had-home-v320>.had-profile-card .had-profile-interests>small{margin-bottom:4px!important}
  .had-home-v320>.had-profile-card .had-profile-interests span{min-height:20px!important;padding:3px 6px!important;font-size:8px!important}
  .had-home-v320>.had-profile-card .had-profile-actions{padding-top:5px!important}
  .had-home-v320>.had-profile-card .had-profile-actions a{min-height:27px!important}
}

@media(min-width:901px) and (max-width:1280px){
  .had-home-v320{
    grid-template-columns:minmax(0,1.48fr) minmax(320px,.72fr)!important;
  }
  .had-home-v320 .had-home-top{
    grid-template-columns:minmax(0,1fr) minmax(0,.9fr)!important;
  }
  .had-home-v320>.had-profile-card h1{font-size:clamp(22px,2vw,29px)!important}
  .had-home-v320>.had-profile-card .had-profile-interests span{font-size:8px!important;padding-inline:6px!important}
}

@media(max-width:900px){
  .had-home-v320{
    display:flex!important;
    flex-direction:column!important;
    overflow:visible!important;
  }
  .had-home-v320>.had-profile-card{order:1!important}
  .had-home-v320 .had-home-top{order:2!important;grid-template-columns:1fr!important;grid-template-areas:"news" "scholar"!important}
  .had-home-v320 .had-home-reach{order:3!important}
  .had-home-v320>.had-dashboard-zone{display:none!important}
  .had-home-v320>.had-profile-card .had-portrait{min-height:410px!important}
  .had-home-v320>.had-profile-card .had-protected-portrait-image{background-size:contain!important;background-position:center top!important}
  .had-home-v320>.had-profile-card .had-profile-copy{padding:18px!important}
  .had-home-v320>.had-profile-card .had-profile-interests span{font-size:11px!important}
  .had-home-v320 .had-reach-map-stage{min-height:260px!important}
}

@media(max-width:560px){
  .had-home-v320>.had-profile-card .had-portrait{min-height:340px!important}
  .had-profile-interests>div{gap:5px}
  .had-profile-interests span{font-size:10px!important}
}
