/**
 * Hamed Academic Dashboard 3.3.0
 * Desktop viewport containment, map calibration and interaction corrections.
 */

/* Shared safeguards. */
.had-screen,
.had-screen *{min-width:0}
.had-scroll-list,
.had-project-sections,
.had-timeline-scroll,
.had-credential-scroll,
.had-blog-list,
.had-teaching-course-matrix,
.had-collection-analytics,
.had-side-scroll{
  scrollbar-width:thin;
  scrollbar-color:#2b6279 transparent;
  overscroll-behavior:contain;
}

/* The credential buttons now live inside a dedicated scroll wrapper. */
.had-credential-scroll>button{
  width:100%;
  min-height:0;
  display:grid;
  grid-template-columns:27px minmax(0,1fr) 18px;
  gap:8px;
  align-items:center;
  padding:7px 6px;
  border:0;
  border-left:2px solid transparent;
  border-bottom:1px solid #15394c;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.had-credential-scroll>button>span{color:#476e81;font:8px ui-monospace,monospace}
.had-credential-scroll>button>div{min-width:0}
.had-credential-scroll>button b{display:block;overflow-wrap:anywhere}
.had-credential-scroll>button small{display:block;margin-top:3px;color:#638293}
.had-credential-scroll>button>.dashicons{justify-self:end}

@media(min-width:901px){
  html,body.had-theme{height:100%;overflow:hidden!important}
  body.had-theme .had-app-shell{height:100dvh!important;min-height:0!important;overflow:hidden!important}
  body.admin-bar.had-theme .had-app-shell{height:calc(100dvh - 32px)!important}
  body.had-theme .had-shell-body{height:calc(100dvh - var(--had-topbar))!important;min-height:0!important;overflow:hidden!important}
  body.admin-bar.had-theme .had-shell-body{height:calc(100dvh - var(--had-topbar) - 32px)!important}
  body.had-theme .had-workspace{height:100%!important;min-height:0!important;overflow:hidden!important}
  body.had-theme .had-screen{height:100%!important;min-height:0!important;overflow:hidden!important;padding:10px!important}
  body.had-theme .had-standard-screen{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:8px!important}
  body.had-theme .had-screen-header{min-height:70px!important;padding:4px 5px 8px 8px!important}
  body.had-theme .had-screen-header h1{font-size:clamp(24px,1.85vw,32px)!important}
  body.had-theme .had-screen-header p{font-size:10px!important}
  body.had-theme .had-screen-actions{gap:7px!important}
  body.had-theme .had-metric-pill,
  body.had-theme .had-header-link{min-height:38px!important;padding:0 11px!important}

  /* Home: one viewport, with the full category index visible at once. */
  .had-home-v320{
    display:grid!important;
    grid-template-columns:minmax(0,1.56fr) minmax(330px,.64fr)!important;
    grid-template-rows:minmax(340px,1.55fr) minmax(230px,.85fr)!important;
    gap:8px!important;
    overflow:hidden!important;
  }
  .had-home-v320 .had-home-top{
    grid-column:1/-1!important;
    grid-row:1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.04fr) minmax(0,.88fr) minmax(0,1.08fr)!important;
    grid-template-areas:"scholar news profile"!important;
    gap:8px!important;
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
  }
  .had-home-v320 .had-impact-stack,
  .had-home-v320 .had-news-console,
  .had-home-v320 .had-profile-card,
  .had-home-v320 .had-impact-stack .had-scholar-card{
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  .had-home-v320 .had-scholar-card{
    padding:11px!important;
    grid-template-rows:auto auto minmax(0,1fr) auto!important;
  }
  .had-home-v320 .had-scholar-card .had-panel-title{min-height:38px!important;padding-bottom:6px!important}
  .had-home-v320 .had-scholar-card h2{font-size:17px!important}
  .had-home-v320 .had-scholar-kpis{min-height:58px!important;padding:5px 0!important}
  .had-home-v320 .had-scholar-kpis span{padding:5px 7px!important}
  .had-home-v320 .had-scholar-kpis b{font-size:19px!important}
  .had-home-v320 .had-scholar-kpis em{font-size:8px!important}
  .had-home-v320 .had-scholar-chart-frame{min-height:0!important;margin-top:3px!important;overflow:hidden!important}
  .had-home-v320 .had-scholar-line-chart{width:100%!important;height:100%!important;min-height:0!important}
  .had-home-v320 .had-sync-line{min-height:25px!important;font-size:8px!important;overflow:hidden!important}

  .had-home-v320 .had-news-console{padding:12px!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important}
  .had-home-v320 .had-news-title{min-height:38px!important}
  .had-home-v320 .had-news-slides{min-height:0!important}
  .had-home-v320 .had-news-item{padding:10px 2px!important;overflow:hidden!important}
  .had-home-v320 .had-news-item h3{font-size:clamp(17px,1.35vw,24px)!important;line-height:1.16!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
  .had-home-v320 .had-news-item p{font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .had-home-v320 .had-news-item>b{font-size:10px!important}
  .had-home-v320 .had-news-nav{min-height:32px!important}

  /* Identity copy is left; portrait is right. */
  .had-home-v320 .had-profile-card{
    display:grid!important;
    grid-template-columns:minmax(0,1.48fr) minmax(125px,.72fr)!important;
    grid-template-rows:minmax(0,1fr) 38px!important;
  }
  .had-home-v320 .had-profile-copy{
    grid-column:1!important;grid-row:1!important;
    padding:14px 12px 10px 15px!important;
    overflow:hidden!important;
    display:flex!important;flex-direction:column!important;
  }
  .had-home-v320 .had-portrait{
    grid-column:2!important;grid-row:1!important;
    min-height:0!important;height:100%!important;
    border-left:1px solid #1c495e;border-right:0!important;
  }
  .had-home-v320 .had-profile-network{grid-column:1/-1!important;grid-row:2!important;min-height:38px!important;height:38px!important}
  .had-home-v320 .had-profile-copy h1{margin:7px 0 3px!important;font-size:clamp(22px,1.8vw,31px)!important;line-height:1.04!important}
  .had-home-v320 .had-profile-role{margin:0 0 7px!important;font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .had-home-v320 .had-profile-summary{margin:0 0 7px!important;font-size:11px!important;line-height:1.38!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .had-home-v320 .had-home-primary-links{gap:4px!important;margin:6px 0!important}
  .had-home-v320 .had-home-primary-links a{min-height:34px!important;padding:5px 6px!important;font-size:9px!important}
  .had-home-v320 .had-profile-telemetry{margin-top:auto!important}
  .had-home-v320 .had-profile-telemetry span{padding:5px!important}
  .had-home-v320 .had-profile-telemetry b{font-size:16px!important}
  .had-home-v320 .had-profile-telemetry small{font-size:7px!important}
  .had-home-v320 .had-profile-actions{margin-top:6px!important}
  .had-home-v320 .had-profile-actions a{min-height:31px!important;padding:0 9px!important;font-size:9px!important}

  .had-home-v320 .had-home-reach{
    grid-column:1!important;grid-row:2!important;
    height:100%!important;min-height:0!important;margin:0!important;overflow:hidden!important;
  }
  .had-home-v320 .had-home-reach .had-reach-card{
    width:100%!important;height:100%!important;min-height:0!important;
    padding:9px 11px!important;
    display:grid!important;
    grid-template-columns:minmax(0,3.2fr) minmax(175px,.8fr)!important;
    grid-template-rows:34px minmax(0,1fr)!important;
    gap:7px 11px!important;overflow:hidden!important;
  }
  .had-home-v320 .had-reach-head{grid-column:1/-1!important;min-height:0!important;height:34px!important;padding-bottom:6px!important}
  .had-home-v320 .had-reach-head h2{font-size:15px!important}
  .had-home-v320 .had-reach-head>span{font-size:8px!important}
  .had-home-v320 .had-reach-map{
    grid-column:1!important;grid-row:2!important;
    width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
    overflow:hidden!important;
  }
  .had-home-v320 .had-reach-map>img{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;
    object-fit:fill!important;display:block!important;
  }
  .had-home-v320 .had-reach-metrics{
    grid-column:2!important;grid-row:2!important;
    height:100%!important;min-height:0!important;
    grid-template-rows:repeat(3,minmax(0,1fr)) auto!important;
    padding-left:10px!important;
  }
  .had-home-v320 .had-reach-metrics>span{padding:3px 0!important;grid-template-columns:22px minmax(0,1fr)!important;column-gap:6px!important}
  .had-home-v320 .had-reach-metrics>span>.dashicons{font-size:17px!important;width:17px!important;height:17px!important}
  .had-home-v320 .had-reach-metrics b{font-size:17px!important}
  .had-home-v320 .had-reach-metrics small{font-size:8px!important}
  .had-home-v320 .had-reach-source{margin:3px 0 0!important;font-size:7px!important}
  .had-home-v320 .had-reach-dot{transform:translate(-50%,-50%)!important}

  .had-home-v320 .had-dashboard-zone{
    grid-column:2!important;grid-row:2!important;
    height:100%!important;min-height:0!important;margin:0!important;
    padding:9px!important;overflow:hidden!important;
    display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;
  }
  .had-home-v320 .had-dashboard-zone-head{min-height:35px!important;margin:0!important}
  .had-home-v320 .had-dashboard-zone-head h2{margin:3px 0 0!important;font-size:12px!important;line-height:1.15!important}
  .had-home-v320 .had-dashboard-zone-head p{display:none!important}
  .had-home-v320 .had-home-dashboard-grid{
    height:100%!important;min-height:0!important;margin-top:5px!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:repeat(7,minmax(0,1fr))!important;gap:3px!important;overflow:hidden!important;
  }
  .had-home-v320 .had-home-dashboard-grid .had-dashboard-card{
    min-height:0!important;height:auto!important;padding:3px 5px!important;border-radius:5px!important;
    display:grid!important;grid-template-columns:19px minmax(0,1fr) 24px!important;grid-template-rows:1fr!important;
    align-items:center!important;gap:4px!important;overflow:hidden!important;
  }
  .had-home-v320 .had-home-dashboard-grid .had-dash-card-head{display:contents!important}
  .had-home-v320 .had-home-dashboard-grid .had-dash-card-head>span{grid-column:1!important;display:grid!important;place-items:center!important}
  .had-home-v320 .had-home-dashboard-grid .had-dash-card-head .dashicons{font-size:13px!important;width:13px!important;height:13px!important}
  .had-home-v320 .had-home-dashboard-grid .had-dash-card-head>b{grid-column:3!important;grid-row:1!important;font-size:11px!important;text-align:right!important}
  .had-home-v320 .had-home-dashboard-grid h3{grid-column:2!important;grid-row:1!important;height:auto!important;margin:0!important;font-size:8px!important;line-height:1.05!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .had-home-v320 .had-home-dashboard-grid .had-spark-bars,
  .had-home-v320 .had-home-dashboard-grid .had-velocity,
  .had-home-v320 .had-home-dashboard-grid .had-dashboard-card>p,
  .had-home-v320 .had-home-dashboard-grid .had-portfolio-code-lines{display:none!important}

  /* Research: normal card flow, no overlapping footers, internal project scrolling. */
  .had-research-v301{overflow:hidden!important}
  .had-research-v301 .had-research-layout{height:100%!important;min-height:0!important;overflow:hidden!important;grid-template-columns:minmax(0,3.15fr) minmax(245px,.85fr)!important;gap:8px!important}
  .had-research-v301 .had-project-sections{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:4px!important}
  .had-research-v301 .had-project-group{min-width:0!important;margin:0 0 9px!important}
  .had-research-v301 .had-project-group:last-child{margin-bottom:0!important}
  .had-research-v301 .had-project-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:minmax(222px,auto)!important;gap:7px!important;align-items:stretch!important}
  .had-research-v301 .had-project-group:last-child .had-project-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:minmax(245px,auto)!important}
  .had-research-v301 .had-project-card{
    position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;
    padding:13px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;
  }
  .had-research-v301 .had-project-meta{min-height:25px!important;gap:8px!important}
  .had-research-v301 .had-project-meta span{font-size:16px!important;flex:0 0 auto!important}
  .had-research-v301 .had-project-meta b{font-size:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:right!important}
  .had-research-v301 .had-project-card h3{margin:7px 0 5px!important;font-size:14px!important;line-height:1.22!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important}
  .had-research-v301 .had-project-card>p{margin:0!important;font-size:10px!important;line-height:1.38!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:4!important;overflow:hidden!important}
  .had-research-v301 .had-project-role{position:static!important;margin:8px 0 0!important;flex:0 0 auto!important;overflow:hidden!important}
  .had-research-v301 .had-project-role span{font-size:9px!important;line-height:1.3!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .had-research-v301 .had-project-card .had-tag-row{position:static!important;margin-top:auto!important;padding-top:7px!important;max-height:26px!important;overflow:hidden!important;flex:0 0 auto!important}
  .had-research-v301 .had-project-card .had-tag-row span{font-size:7px!important;padding:3px 6px!important}
  .had-research-v301 .had-open-detail{position:static!important;margin-top:6px!important;font-size:8px!important;flex:0 0 auto!important}
  .had-research-v301 .had-research-side{height:100%!important;min-height:0!important;overflow-y:auto!important;grid-template-rows:auto auto!important;gap:8px!important}
  .had-research-v301 .had-focus-panel,
  .had-research-v301 .had-methods-panel{height:auto!important;min-height:0!important;padding:13px!important;overflow:hidden!important}
  .had-research-v301 .had-focus-panel h2{font-size:16px!important}
  .had-research-v301 .had-focus-panel p{font-size:9px!important}

  /* Publications: compact, readable evidence cards and contained latest-record list. */
  .had-publications-final{overflow:hidden!important}
  .had-publications-final .had-publications-layout{height:100%!important;min-height:0!important;overflow:hidden!important;grid-template-columns:minmax(0,1.72fr) minmax(305px,.58fr)!important;gap:8px!important}
  .had-publications-final .had-publication-dashboard{
    height:100%!important;min-height:0!important;padding:10px!important;overflow:hidden!important;
    display:grid!important;grid-template-rows:minmax(0,1.55fr) minmax(0,.85fr)!important;gap:8px!important;
  }
  .had-publications-final .had-publication-section{min-height:0!important;display:grid!important;grid-template-rows:31px minmax(0,1fr)!important;overflow:hidden!important}
  .had-publications-final .had-publication-section + .had-publication-section{margin:0!important;padding:0!important;border-top:0!important}
  .had-publications-final .had-publication-section .had-section-title{min-height:31px!important;height:31px!important;padding-bottom:6px!important}
  .had-publications-final .had-publication-card-grid{min-height:0!important;height:100%!important;padding-top:5px!important;display:grid!important;gap:6px!important;overflow:hidden!important}
  .had-publications-final .had-output-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
  .had-publications-final .had-dissemination-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important}
  .had-publications-final .had-publication-overview-card{
    height:100%!important;min-height:0!important;padding:9px 11px!important;overflow:hidden!important;
    display:grid!important;grid-template-rows:auto auto minmax(48px,1fr) auto!important;
  }
  .had-publications-final .had-publication-overview-head{min-height:24px!important}
  .had-publications-final .had-publication-overview-head b{font-size:17px!important}
  .had-publications-final .had-publication-overview-card h3{height:auto!important;margin:4px 0!important;font-size:11px!important;line-height:1.15!important}
  .had-publications-final .had-publication-trend-wrap{min-height:0!important;height:auto!important;margin:2px 0!important;overflow:hidden!important}
  .had-publication-compact-trend{height:100%;min-height:46px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(22px,1fr);gap:4px;align-items:end;overflow:hidden}
  .had-publication-compact-trend>span{height:100%;min-width:0;display:grid;grid-template-rows:12px minmax(24px,1fr) 11px;justify-items:center;gap:1px}
  .had-publication-compact-trend b{font:700 8px/1 ui-monospace,monospace;color:#dff9fd}
  .had-publication-compact-trend i{width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #21495c;background:linear-gradient(180deg,transparent,rgba(34,211,238,.04));overflow:hidden}
  .had-publication-compact-trend em{display:block;width:min(12px,55%);min-height:3px;background:currentColor;box-shadow:0 0 6px currentColor;font-style:normal}
  .had-publication-compact-trend small{font:700 7px/1 ui-monospace,monospace;color:#7597a5;white-space:nowrap}
  .had-publications-final .had-publication-evidence-summary{min-height:0!important;height:100%!important;margin:2px 0!important;gap:5px!important}
  .had-publications-final .had-publication-evidence-summary>span{height:100%!important;min-height:44px!important;padding:5px!important}
  .had-publications-final .had-publication-evidence-summary b{font-size:17px!important}
  .had-publications-final .had-publication-evidence-summary small{font-size:7px!important}
  .had-publications-final .had-publication-overview-card>p{min-height:22px!important;margin:3px 0 0!important;padding-top:4px!important;display:grid!important;grid-template-columns:34px minmax(0,1fr) 14px!important;gap:5px!important;align-items:center!important;overflow:hidden!important}
  .had-publications-final .had-publication-overview-card>p em{font-size:8px!important}
  .had-publications-final .had-publication-overview-card>p span{font-size:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .had-publications-final .had-latest-list{height:100%!important;min-height:0!important;padding:10px!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}
  .had-publications-final .had-latest-list .had-scroll-list{min-height:0!important;overflow-y:auto!important}
  .had-publications-final .had-record-row{min-height:62px!important;padding:7px 3px!important}
  .had-publications-final .had-record-row b{font-size:9px!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

  /* Teaching: compact introductory evidence, then internally scrolling course matrix. */
  .had-teaching-final{
    display:flex!important;flex-direction:column!important;gap:7px!important;overflow:hidden!important;
  }
  .had-teaching-final>.had-screen-header{flex:0 0 auto!important}
  .had-teaching-final .had-featured-course{
    flex:0 0 105px!important;height:105px!important;min-height:0!important;margin:0!important;padding:11px 14px!important;
    display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr) 18px!important;gap:14px!important;overflow:hidden!important;
  }
  .had-teaching-final .had-featured-course h2{margin:4px 0 3px!important;font-size:17px!important}
  .had-teaching-final .had-featured-course p{margin:0!important;font-size:9px!important;line-height:1.35!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .had-teaching-final .had-featured-course .had-tag-row{margin-top:5px!important;max-height:22px!important;overflow:hidden!important}
  .had-teaching-final .had-featured-course dl{margin:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 8px!important;align-content:center!important}
  .had-teaching-final .had-featured-course dl div{padding:4px 6px!important}
  .had-teaching-final .had-featured-course dt{font-size:7px!important}
  .had-teaching-final .had-featured-course dd{font-size:8px!important;line-height:1.2!important}
  .had-teaching-final .had-teaching-philosophy{
    flex:0 0 62px!important;height:62px!important;min-height:0!important;margin:0!important;padding:8px 12px!important;
    display:grid!important;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr)!important;align-items:center!important;gap:12px!important;overflow:hidden!important;
  }
  .had-teaching-final .had-teaching-philosophy h2{margin:0 0 3px!important;font-size:13px!important}
  .had-teaching-final .had-teaching-philosophy p{margin:0!important;font-size:8px!important;line-height:1.3!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .had-teaching-final .had-teaching-evidence{gap:4px!important}
  .had-teaching-final .had-teaching-evidence span{padding:4px 6px!important;font-size:7px!important}
  .had-teaching-final .had-teaching-layout{flex:1 1 auto!important;height:auto!important;min-height:0!important;margin:0!important;overflow:hidden!important;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr)!important;gap:7px!important}
  .had-teaching-final .had-teaching-intelligence,
  .had-teaching-final .had-teaching-dimensions{height:100%!important;min-height:0!important;padding:10px!important;overflow:hidden!important}
  .had-teaching-final .had-teaching-intelligence{display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important}
  .had-teaching-final .had-teaching-summary-kpis{margin:6px 0!important}
  .had-teaching-final .had-teaching-course-matrix{min-height:0!important;overflow-y:auto!important}
  .had-teaching-final .had-teaching-dimensions{overflow-y:auto!important}

  /* Career: timeline and synthesis stay inside the viewport. */
  .had-experience-layout{height:100%!important;min-height:0!important;overflow:hidden!important;gap:8px!important}
  .had-timeline-panel{height:100%!important;min-height:0!important;padding:11px!important;overflow:hidden!important}
  .had-timeline-scroll{min-height:0!important;overflow-y:auto!important}
  .had-timeline-item{min-height:78px!important}
  .had-career-dashboard{height:100%!important;min-height:0!important;overflow-y:auto!important;gap:8px!important}
  .had-career-dashboard>article{padding:13px!important}

  /* Credentials: wheel-scrollable index, static detail panel and hover/focus preview. */
  .had-credentials-v3{overflow:hidden!important}
  .had-credentials-v3 .had-credential-layout{height:100%!important;min-height:0!important;overflow:hidden!important;align-items:stretch!important;grid-template-columns:minmax(330px,.82fr) minmax(0,1.38fr)!important;gap:8px!important}
  .had-credentials-v3 .had-credential-list{
    height:100%!important;min-height:0!important;max-height:none!important;padding:10px!important;overflow:hidden!important;
    display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;
  }
  .had-credentials-v3 .had-credential-scroll{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:3px!important}
  .had-credentials-v3 .had-credential-list button{min-height:59px!important;padding:8px 6px!important}
  .had-credentials-v3 .had-credential-list button:hover,
  .had-credentials-v3 .had-credential-list button:focus-visible,
  .had-credentials-v3 .had-credential-list button.is-active{background:rgba(14,78,91,.5)!important;border-left-color:var(--had-cyan)!important}
  .had-credentials-v3 .had-credential-list button b{font-size:11px!important;line-height:1.25!important}
  .had-credentials-v3 .had-credential-list button small{font-size:9px!important}
  .had-credentials-v3 .had-credential-detail{
    height:100%!important;min-height:0!important;max-height:none!important;padding:clamp(18px,2.2vw,38px)!important;
    overflow:hidden!important;align-self:stretch!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  }
  .had-credentials-v3 .had-credential-detail h2{margin:12px 0 6px!important;font-size:clamp(28px,3.1vw,48px)!important;line-height:1.04!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .had-credentials-v3 .had-credential-detail>p{margin:0!important}
  .had-credentials-v3 .had-credential-meta{margin-top:clamp(18px,4vh,38px)!important}
  .had-credentials-v3 .had-credential-summary{margin:15px 0 10px!important;font-size:12px!important;line-height:1.45!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
  .had-credentials-v3 .had-skill-grid{max-height:84px!important;overflow:hidden!important}
  .had-credentials-v3 .had-credential-image{position:absolute!important;right:22px!important;top:22px!important;width:150px!important;max-height:105px!important;margin:0!important;float:none!important;object-fit:contain!important;z-index:2!important}
  .had-credentials-v3 .had-credential-verify{margin-top:auto!important;align-self:flex-start!important}

  /* Blog: the stream scrolls; preview follows hovered/focused records. */
  .had-blog-v3{overflow:hidden!important}
  .had-blog-v3 .had-blog-layout{height:100%!important;min-height:0!important;overflow:hidden!important;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr)!important;gap:8px!important}
  .had-blog-v3 .had-featured-story{height:100%!important;min-height:0!important;overflow:hidden!important;display:grid!important;grid-template-columns:minmax(190px,.72fr) minmax(0,1.28fr)!important;grid-template-rows:minmax(0,1fr)!important}
  .had-blog-v3 .had-story-visual{min-height:0!important}
  .had-blog-v3 .had-story-copy{min-height:0!important;padding:14px 17px!important;overflow:hidden!important}
  .had-blog-v3 .had-story-copy h2{margin:7px 0!important;font-size:clamp(21px,2vw,31px)!important;line-height:1.1!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .had-blog-v3 .had-story-copy>p:not(.had-kicker){font-size:10px!important;line-height:1.45!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
  .had-blog-v3 .had-blog-console{height:100%!important;min-height:0!important;padding:10px!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important}
  .had-blog-v3 .had-blog-list{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
  .had-blog-v3 [data-had-blog-row]{min-height:76px!important}
  .had-blog-v3 [data-had-blog-row].is-previewed{background:rgba(15,65,83,.55)!important}
  .had-blog-v3 .had-blog-topics{min-height:34px!important;overflow:hidden!important}

  /* Contact and code portfolio use panel-level scrolling only. */
  .had-contact-final .had-contact-layout{height:100%!important;min-height:0!important;overflow:hidden!important;gap:8px!important}
  .had-contact-final .had-contact-card,
  .had-contact-final .had-contact-form{height:100%!important;min-height:0!important;padding:16px!important;overflow-y:auto!important}
  .had-contact-final .had-contact-portrait{min-height:0!important;height:100%!important}
  .had-portfolio-final{overflow:hidden!important}
  .had-portfolio-final .had-portfolio-layout{height:100%!important;min-height:0!important;overflow:hidden!important;gap:8px!important}
  .had-portfolio-final .had-portfolio-index,
  .had-portfolio-final .had-portfolio-side{height:100%!important;min-height:0!important;overflow:hidden!important}
  .had-portfolio-final .had-portfolio-side{display:grid!important;grid-template-rows:minmax(0,1.15fr) minmax(0,.85fr)!important;gap:8px!important}
  .had-portfolio-final .had-portfolio-side>*{height:100%!important;min-height:0!important;overflow:hidden!important;padding:14px!important}
  .had-portfolio-final .had-portfolio-project-grid{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
  .had-portfolio-final .had-code-project{min-height:108px!important}
  .had-portfolio-final .had-latest-code h2{font-size:16px!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .had-portfolio-final .had-latest-code p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
  .had-portfolio-final .had-composition-wrap{height:calc(100% - 30px)!important;grid-template-columns:minmax(96px,.72fr) minmax(0,1.28fr)!important;gap:10px!important}
  .had-portfolio-final .had-composition-donut{width:min(104px,100%)!important;height:auto!important;aspect-ratio:1!important}

  /* Collection dashboards: fixed header/notes, flexible contained analysis and record panes. */
  .had-collection-screen{
    display:flex!important;flex-direction:column!important;gap:7px!important;
    height:100%!important;min-height:0!important;overflow:hidden!important;
  }
  .had-collection-screen>.had-collection-header,
  .had-collection-screen>.had-collection-insight-note,
  .had-collection-screen>.had-evidence-note,
  .had-collection-screen>.had-journal-feature-strip{flex:0 0 auto!important}
  .had-collection-header{min-height:82px!important;padding:4px 7px 8px!important}
  .had-collection-identity>span{width:48px!important;height:48px!important}
  .had-collection-identity h1{font-size:clamp(27px,2.5vw,40px)!important;margin:4px 0!important}
  .had-collection-kpis{min-width:285px!important}
  .had-collection-kpis span{min-height:55px!important;padding:8px 11px!important}
  .had-collection-insight-note{min-height:38px!important;padding:7px 12px!important;margin:0!important}
  .had-evidence-note{
    min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;padding:8px 12px!important;
    display:block!important;overflow:visible!important;font-size:9px!important;line-height:1.35!important;
  }
  .had-journal-feature-strip{max-height:118px!important;padding:8px 10px!important;overflow:hidden!important}
  .had-journal-feature-strip>.had-section-title{min-height:29px!important;padding-bottom:5px!important}
  .had-journal-feature-strip>div:last-child{gap:6px!important}
  .had-journal-feature-strip button{min-height:66px!important;padding:8px!important}
  .had-collection-body.had-collection-advanced{
    flex:1 1 auto!important;height:auto!important;min-height:0!important;margin:0!important;
    display:grid!important;grid-template-columns:minmax(0,1.42fr) minmax(350px,.78fr)!important;gap:8px!important;
    align-items:stretch!important;overflow:hidden!important;
  }
  .had-collection-analytics,
  .had-collection-records{height:100%!important;min-height:0!important;max-height:none!important;padding:9px!important;overflow:hidden!important}
  .had-collection-analytics{overflow-y:auto!important;overflow-x:hidden!important}
  .had-collection-records{display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important}
  .had-collection-records>.had-section-title{min-height:34px!important;padding-bottom:6px!important}
  .had-collection-filter-row{min-height:39px!important;margin:5px 0!important;gap:6px!important}
  .had-collection-filter-row .had-search-box{height:34px!important;margin:0!important}
  .had-collection-filter-row .had-year-filter{margin:0!important;align-content:center!important}
  .had-collection-records>.had-scroll-list{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
  .had-collection-records .had-record-row.is-detailed{min-height:78px!important}
  .had-analytics-grid{min-height:0!important;align-content:start!important}

  /* Conference and visit coordinates use the exact cropped SVG geometry. */
  .had-europe-map{position:relative!important;width:100%!important;aspect-ratio:205/120!important;height:auto!important;min-height:210px!important;overflow:hidden!important}
  .had-europe-map>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important}
  .had-europe-map>.had-map-marker{transform:translate(-50%,-50%)!important}
  [data-had-collection-type="conferences"] .had-analytics-grid{grid-template-columns:minmax(0,1.3fr) minmax(270px,.7fr)!important;gap:7px!important}
  [data-had-collection-type="conferences"] .had-analytics-grid>.had-analytics-wide:first-child{grid-column:1!important;grid-row:1/3!important}
  [data-had-collection-type="conferences"] [data-had-conference-analytics-body="map"]{overflow:hidden!important}
  [data-had-collection-type="conferences"] .had-map-location-list{max-height:118px!important;overflow-y:auto!important}

  /* Funding: evidence note stays one line-height block; filtered years do not create dead space. */
  [data-had-collection-type="scholarships"] .had-evidence-note{flex:0 0 auto!important;min-height:0!important;height:auto!important}
  [data-had-collection-type="scholarships"] .had-funding-chart{min-height:210px!important;height:auto!important}
  [data-had-collection-type="scholarships"] [data-had-scholarship-bars]{min-height:150px!important;height:150px!important}

  /* Sparse and content-heavy dashboards scroll inside their analysis panel. */
  [data-had-collection-type="book"] .had-analytics-panel,
  [data-had-collection-type="theses"] .had-analytics-panel,
  [data-had-collection-type="persian-articles"] .had-analytics-panel,
  [data-had-collection-type="media"] .had-analytics-panel,
  [data-had-collection-type="editorial-referee"] .had-analytics-panel{
    height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;
  }
}

/* Tighter laptop-height calibration. */
@media(min-width:901px) and (max-height:780px){
  :root{--had-topbar:56px}
  body.had-theme .had-screen{padding:7px!important}
  body.had-theme .had-screen-header{min-height:62px!important}
  .had-home-v320{grid-template-rows:minmax(305px,1.48fr) minmax(205px,.92fr)!important;gap:6px!important}
  .had-home-v320 .had-profile-copy{padding:10px!important}
  .had-home-v320 .had-profile-summary{-webkit-line-clamp:2!important}
  .had-home-v320 .had-home-primary-links a{min-height:29px!important}
  .had-home-v320 .had-profile-actions{display:none!important}
  .had-home-v320 .had-home-reach .had-reach-card{padding:7px 9px!important}
  .had-home-v320 .had-dashboard-zone{padding:7px!important}
  .had-research-v301 .had-project-grid{grid-auto-rows:minmax(205px,auto)!important}
  .had-research-v301 .had-project-group:last-child .had-project-grid{grid-auto-rows:minmax(225px,auto)!important}
  .had-teaching-final .had-featured-course{flex-basis:92px!important;height:92px!important}
  .had-teaching-final .had-teaching-philosophy{flex-basis:54px!important;height:54px!important}
  .had-collection-header{min-height:70px!important}
  .had-collection-insight-note{min-height:34px!important}
}

/* Intermediate desktop width: preserve three home columns without hard minimums. */
@media(min-width:901px) and (max-width:1280px){
  :root{--had-sidebar:220px}
  .had-home-v320{grid-template-columns:minmax(0,1.48fr) minmax(285px,.72fr)!important}
  .had-home-v320 .had-home-top{grid-template-columns:minmax(0,1fr) minmax(0,.86fr) minmax(0,1.14fr)!important}
  .had-home-v320 .had-profile-card{grid-template-columns:minmax(0,1.55fr) minmax(110px,.65fr)!important}
  .had-home-v320 .had-profile-summary{-webkit-line-clamp:2!important}
  .had-home-v320 .had-home-primary-links{grid-template-columns:1fr!important}
  .had-home-v320 .had-home-primary-links a:nth-child(n+2){display:none!important}
  .had-research-v301 .had-project-group:last-child .had-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .had-publications-final .had-publications-layout{grid-template-columns:minmax(0,1.62fr) minmax(285px,.58fr)!important}
  .had-collection-body.had-collection-advanced{grid-template-columns:minmax(0,1.28fr) minmax(320px,.72fr)!important}
}

/* Mobile and narrow tablets remain document-scroll layouts. */
@media(max-width:900px){
  .had-credential-scroll{max-height:560px;overflow-y:auto;overscroll-behavior:contain}
  .had-credential-detail{overflow:hidden!important}
  .had-publication-compact-trend{min-height:70px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(34px,1fr);gap:6px;align-items:end}
  .had-publication-compact-trend>span{display:grid;grid-template-rows:14px 42px 14px;justify-items:center}
  .had-publication-compact-trend i{width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #21495c}
  .had-publication-compact-trend em{display:block;width:14px;background:currentColor}
  .had-home-v320 .had-profile-card{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,.45fr)!important;grid-template-rows:auto 42px!important}
  .had-home-v320 .had-profile-copy{grid-column:1;grid-row:1}
  .had-home-v320 .had-portrait{grid-column:2;grid-row:1;min-height:320px!important}
  .had-home-v320 .had-profile-network{grid-column:1/-1;grid-row:2}
  .had-home-v320 .had-reach-map>img{object-fit:fill!important}
}

@media(max-width:560px){
  .had-home-v320 .had-profile-card{display:block!important}
  .had-home-v320 .had-portrait{min-height:300px!important}
}
