/* Shared phone and tablet layout, loaded after the page-specific styles. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.atlas-hero-nameplate{position:relative;z-index:2;grid-column:1/-1;min-width:0;max-width:100%}
.atlas-hero-nameplate .personal-label{font-size:.72rem;line-height:1.8;letter-spacing:.09em;margin:0 0 18px;color:#a8b6cd}
.atlas-hero-nameplate .atlas-person-name{font-family:Baskerville,'Baskerville Old Face','Iowan Old Style','Palatino Linotype',Palatino,Georgia,serif;font-size:clamp(3.7rem,8.6vw,7.8rem);font-weight:400;line-height:1.12;letter-spacing:-.025em;white-space:nowrap;color:#f5f7fd;margin:0;width:100%;max-width:100%}
@media(min-width:801px){
  .atlas-hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:30px 3%;align-items:start;min-height:0;padding:62px 7% 32px}
  .atlas-hero-nameplate{margin-bottom:12px}
  .atlas-intro{grid-column:1;grid-row:2;width:auto;max-width:600px;padding-top:0}
  .atlas-experience{grid-column:2;grid-row:2;position:relative;inset:auto;width:100%;height:490px;margin:0}
  .atlas-selection{grid-column:1/-1;position:relative;inset:auto;width:100%;margin:0}
}
@media(max-width:1100px){
  .header{gap:12px;padding-left:max(5%,env(safe-area-inset-left));padding-right:max(5%,env(safe-area-inset-right))}
  .header .wordmark{min-width:0;white-space:normal}
  .header .brand-copy{min-width:0}
  .header .brand-subtitle{line-height:1.6}
  .header .menu-toggle{min-width:76px;min-height:44px;flex-shrink:0;justify-content:center;font-size:.8rem;padding:9px 12px}
  .header nav{overscroll-behavior:contain;max-height:calc(100svh - 82px);max-height:calc(100dvh - 82px);padding-bottom:max(22px,env(safe-area-inset-bottom));scrollbar-gutter:stable}
  .header nav a{display:flex;align-items:center;min-height:48px;padding:12px 4px;font-size:.95rem;line-height:1.5;white-space:normal}
  .header nav a[aria-current=page]{border-left-color:#bb8966}
}
@media(max-width:800px){
  main,main>section,article,aside,figure,.spatial-heading>*,.atlas-selection>*,.scholar-evidence-grid>*,.footer-top>*{min-width:0}
  h1,h2,h3,h4,p,a,summary{overflow-wrap:break-word}
  input,select,textarea,.profile-controls input,.profile-controls select,.publication-filters input,.publication-filters select,.connection-card input{font-size:16px;min-height:48px;max-width:100%}
  button,.button,.profile-controls>button,.globe-tools button,.profile-locations button,.atlas-map-tools button,.atlas-map-tools a{min-height:44px}
  .page-intro h1{font-size:clamp(2.15rem,7.8vw,3.6rem);line-height:1.16}
  .intro-copy{font-size:1rem;line-height:1.8}
  .header .wordmark{font-size:clamp(.69rem,2.6vw,.9rem);letter-spacing:.075em;gap:9px;line-height:1.4}
  .header .brand-subtitle{font-size:.5rem;letter-spacing:.035em;margin-top:3px}
  .brand-spatial{width:30px;height:30px}
  .atlas-hero-inner{padding:36px 5% 24px}
  .atlas-hero-nameplate{margin-bottom:24px}
  .atlas-hero-nameplate .personal-label{font-size:.68rem;line-height:1.8;letter-spacing:.06em;margin-bottom:16px}
  .atlas-hero-nameplate .atlas-person-name{font-size:clamp(1.8rem,8.4vw,4.1rem);line-height:1.15;letter-spacing:-.025em}
  .atlas-intro{pointer-events:auto}
  .atlas-intro .personal-label{font-size:.68rem;line-height:1.8;letter-spacing:.06em;margin-bottom:23px}
  .atlas-identity{font-size:clamp(1.05rem,4.2vw,1.35rem);line-height:1.5;margin-bottom:20px}
  .atlas-statement{font-size:1rem;line-height:1.8}
  .atlas-intro-copy{font-size:.95rem;line-height:1.8;max-width:36rem}
  .atlas-hero-actions{gap:12px 20px;align-items:stretch}
  .atlas-hero-actions .button{font-size:.8rem;line-height:1.5;padding:13px 17px;min-height:48px;gap:12px}
  .atlas-about-link{font-size:.85rem;line-height:1.5;min-height:44px;gap:12px;padding:12px 0}
  .atlas-appointment{font-size:.8rem;line-height:1.8;padding-top:20px}
  .atlas-experience{position:relative;display:grid;grid-template-rows:auto auto auto auto;gap:12px;width:100%;height:auto;margin:28px 0 20px;right:auto;top:auto;bottom:auto}
  .atlas-layer-controls{position:relative;inset:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .atlas-layer-controls button{border:1px solid #405372;padding:11px 5px;min-width:0;min-height:44px;font-size:.73rem;letter-spacing:0;line-height:1.5}
  .atlas-layer-controls button:last-child{border-right:1px solid #405372}
  .atlas-canvas-frame{position:relative;inset:auto;width:100%;height:clamp(280px,78vw,430px);border:1px solid #273a55;grid-row:2}
  .atlas-map-tools{position:relative;inset:auto;justify-content:flex-end;gap:10px;grid-row:3}
  .atlas-map-tools button,.atlas-map-tools a{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:44px;font-size:.75rem}
  .atlas-legend{position:relative;inset:auto;grid-row:4;font-size:.7rem;line-height:1.7;flex-wrap:wrap;gap:8px}
  #atlas-interaction-hint{display:none}
  .atlas-status{left:10px;right:10px;bottom:140px;font-size:.8rem;line-height:1.7;padding:12px}
  .atlas-selection{grid-template-columns:minmax(0,1fr);gap:13px;padding:20px}
  .atlas-selection-tag{font-size:.66rem;line-height:1.7}
  .atlas-selection h2{font-size:1.15rem;line-height:1.4}
  .atlas-selection p{font-size:.85rem;line-height:1.7}
  .atlas-selection>a{font-size:.85rem;line-height:1.6;min-height:44px;max-width:none;display:flex;align-items:center;gap:12px}
  .atlas-place-shortcuts{padding:20px 5%;gap:8px 22px}
  .atlas-place-shortcuts>span:first-child{font-size:.68rem;line-height:1.7}
  .atlas-place-shortcuts>a{font-size:.85rem;min-height:44px;white-space:normal;gap:10px}
  .spatial-stories,.spatial-subjects{padding:48px 5%}
  .page-home .spatial-heading .atlas-label,.page-home .place-story .atlas-label,.page-home .spatial-person .atlas-label,.page-home .spatial-horizon .atlas-label{font-size:.68rem;line-height:1.8;letter-spacing:.07em}
  .spatial-heading h2,.spatial-person h2{font-size:clamp(2rem,7.3vw,2.8rem);line-height:1.2}
  .spatial-heading>p:last-child,.place-story>p:not(.atlas-label),.spatial-person>div>p:not(.atlas-label),.spatial-horizon p:not(.atlas-label){font-size:.95rem;line-height:1.85}
  .story-coordinate{font-size:.72rem;line-height:1.7}
  .story-links{flex-wrap:wrap;justify-content:flex-start;gap:8px 24px;font-size:.85rem}
  .story-links a,.spatial-inline-link,.horizon-routes a{min-height:44px;display:inline-flex;align-items:center;font-size:.85rem;line-height:1.6}
  .spatial-subject-index{grid-template-columns:minmax(0,1fr)}
  .spatial-subject-index>a>div{min-width:0}
  .spatial-subject-index h3{font-size:1.5rem;line-height:1.3}
  .spatial-subject-index p{font-size:.85rem;line-height:1.75}
  .subject-index{font-size:.75rem}
  .spatial-person{padding-left:5%;padding-right:5%}
  .horizon-credit{display:inline-block;font-size:.72rem;line-height:1.7;padding-block:12px}
  .scholarly-observatory{padding:44px 5% 30px}
  .scholarly-heading{gap:18px;margin-bottom:27px}
  .scholarly-heading h2{font-size:clamp(2rem,7.5vw,2.7rem);line-height:1.2}
  .scholarly-heading>p{font-size:.95rem;line-height:1.8}
  .scholarly-kicker{font-size:.68rem;line-height:1.8;letter-spacing:.08em}
  .scholar-profile{padding:22px 20px}
  .scholar-profile-top{flex-direction:column;align-items:flex-start;gap:7px;margin-bottom:16px}
  .scholar-source-index,.scholar-source-status{font-size:.72rem;line-height:1.6;text-align:left}
  .scholar-profile h3{font-size:1.5rem}
  .scholar-profile h3 a{min-height:44px}
  .scholar-index-table{table-layout:fixed;font-size:.85rem;margin-block:20px}
  .scholar-index-table th,.scholar-index-table td{padding-block:13px}
  .scholar-index-table thead th{font-size:.66rem;line-height:1.6;white-space:normal;overflow-wrap:normal}
  .scholar-index-table td{font-size:clamp(1.4rem,5.7vw,1.9rem);font-variant-numeric:tabular-nums}
  .scholar-profile-link{min-height:48px;font-size:.85rem;line-height:1.7;padding-top:13px}
  .scholar-source-note{font-size:.77rem;line-height:1.8;min-height:0;color:#66768c}
  .scholar-primary-metric{gap:22px}
  .scholar-primary-metric strong{font-size:3.8rem}
  .scholar-primary-metric>span{font-size:.85rem}
  .scopus-live-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px;max-width:none}
  .scopus-live-metrics strong{font-size:clamp(2rem,8vw,2.8rem);font-variant-numeric:tabular-nums}
  .scopus-live-metrics span{font-size:.72rem;line-height:1.7}
  .metrics-refresh-bar{align-items:flex-start;flex-wrap:wrap;gap:14px}
  .metrics-refresh-bar p{max-width:none;flex:1 1 200px;font-size:.72rem;line-height:1.8;color:#66768c}
  .metrics-refresh-bar button{font-size:.85rem;min-height:44px;padding:10px 14px;white-space:normal}
  .scholar-year-bars{gap:5px}
  .scholar-bar-number,.scholar-bar-year{font-size:.66rem;line-height:1.3;color:#637797}
  .scholar-chart-foot{flex-wrap:wrap;gap:8px;font-size:.7rem;line-height:1.7}
  .scholar-timeline figcaption>p{font-size:.85rem;line-height:1.7;color:#697b94}
  .scholar-citation-timeline{overflow-x:auto;overscroll-behavior-x:contain;padding:20px 15px}
  .scholar-citation-timeline .scholar-year-bars{min-width:380px;gap:10px}
  .scholar-citation-timeline .scholar-bar-number,.scholar-citation-timeline .scholar-bar-year{font-size:.66rem}
  .scholar-recent-heading{align-items:flex-start;flex-direction:column;gap:10px}
  .scholar-recent-heading>a{font-size:.85rem;min-height:44px;display:flex;align-items:center}
  .scholar-work-list li{grid-template-columns:38px minmax(0,1fr);gap:12px;padding-block:18px}
  .scholar-work-list h4{font-size:.95rem;line-height:1.7}
  .scholar-work-list p{font-size:.8rem;line-height:1.7;color:#697b94}
  .scholar-work-year{font-size:.75rem;line-height:1.7}
  .scholar-source-details summary{font-size:.9rem;line-height:1.6;min-height:44px;padding-block:10px}
  .scholar-source-details p{font-size:.85rem;line-height:1.85;color:#65758c}
  .dashboard-card{display:flex}
  .dashboard-card-copy{padding:24px}
  .dashboard-card-meta{font-size:.73rem;line-height:1.7;flex-direction:column;gap:5px}
  .dashboard-card-copy>p{font-size:.95rem;line-height:1.8}
  .dashboard-card-actions .button,.dashboard-workspace-toolbar .button,.dashboard-fullscreen{font-size:.8rem;line-height:1.5;min-height:48px}
  .dashboard-card-actions .text-link,.dashboard-back{font-size:.85rem;min-height:44px;display:inline-flex;align-items:center}
  .dashboard-visual-sub,.dashboard-status{font-size:.7rem;line-height:1.8}
  .dashboard-workspace-toolbar{gap:12px;align-items:center}
  .dashboard-workspace-toolbar>div{width:100%;margin-left:0;flex-wrap:wrap;justify-content:flex-start;gap:12px}
  .dashboard-frame{height:80svh;min-height:420px;max-height:none}
  .dashboard-frame-help,.dashboard-collection-footer p{font-size:.85rem;line-height:1.8}
  .profile-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
  .profile-controls label{min-width:0;font-size:.85rem;gap:8px}
  .profile-controls .profile-search-label{grid-column:1/-1;order:0}
  .profile-controls input,.profile-controls select{width:100%}
  .profile-controls>button{font-size:.85rem;align-self:end}
  .profile-layout{grid-template-columns:minmax(0,1fr)}
  .globe-stage{height:clamp(320px,80vw,480px)}
  .globe-tools{gap:7px;top:12px;left:12px}
  .globe-tools button{min-width:44px;min-height:44px}
  .globe-caption,.profile-count{font-size:.85rem;line-height:1.7}
  .profile-locations button{font-size:.85rem;padding:10px 12px}
  .profile-detail{max-height:none;padding:24px}
  .profile-detail p{font-size:.95rem;line-height:1.8}
  .profile-detail .detail-meta,.profile-detail .detail-precision,.profile-detail .detail-source{font-size:.8rem;line-height:1.75}
  .profile-sources summary,.profile-directory summary{min-height:44px;font-size:.9rem;line-height:1.7;padding-block:8px}
  .profile-sources p,.profile-directory p,.profile-directory li{font-size:.9rem;line-height:1.8}
  .earth-download .button{white-space:normal;max-width:100%;text-align:left}
  .publication-filters{grid-template-columns:minmax(0,1fr)}
  .publication-filters label,.publication-filters .search-field,.publication-filters .author-field{grid-column:1;font-size:.85rem}
  .publication-pagination{gap:12px;flex-wrap:wrap;font-size:.85rem}
  .publication-pagination button{padding:12px;min-height:44px}
  .record-authors summary{font-size:.85rem;line-height:1.7;min-height:44px;padding-block:10px}
  .record-journal,.record-authors p{font-size:.85rem;line-height:1.8}
  .record h2,.book-entry h3{overflow-wrap:anywhere}
  .evidence-links .text-link,.practice-areas .text-link{font-size:1rem;line-height:1.7;min-height:44px}
  .contact-methods{align-items:stretch}
  .contact-methods .button{white-space:normal;max-width:100%;font-size:.8rem}
  .site-footer{padding-bottom:max(24px,env(safe-area-inset-bottom))}
  .footer-top{align-items:flex-start;flex-direction:column;gap:20px}
  .footer-links{gap:4px 20px;font-size:.85rem;line-height:1.6}
  .footer-links a{min-height:44px;display:flex;align-items:center}
  .footer-bottom{flex-wrap:wrap;gap:12px;font-size:.75rem;line-height:1.8}
  .footer-bottom>a{min-height:44px;display:flex;align-items:center}
  .connections-main{padding-left:5%;padding-right:5%}
  .connections-main h1{font-size:clamp(2.5rem,10vw,4rem)}
  .connections-grid{grid-template-columns:minmax(0,1fr)}
  .connection-card{padding:24px 20px;min-width:0}
  .connection-card button{min-height:48px;font-size:.85rem}
  .connections-back,.connection-card>a{min-height:44px;display:inline-flex;align-items:center;line-height:1.7}
}
@media(max-width:480px){
  .header{padding-inline:5%;min-height:78px}
  .header .brand-subtitle{max-width:170px;font-size:.47rem}
  .header .menu-toggle{min-width:70px;padding-inline:9px}
  .atlas-layer-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
  .atlas-canvas-frame{height:300px}
  .atlas-statement br{display:none}
  .place-story{grid-template-columns:minmax(0,1fr)}
  .story-map-mark{grid-row:auto}
  .place-story h3,.place-story>p,.place-story>span,.place-story>.story-links{grid-column:1}
  .spatial-person figure{flex-wrap:wrap;gap:18px}
  .spatial-portrait{width:110px}
  .scholar-profile{padding:22px 18px}
  .scholar-profile-top{gap:7px}
  .scholar-index-table td{font-size:1.6rem}
  .scholar-index-table th:first-child{width:36%}
  .scholar-index-table thead th{font-size:.63rem}
  .scholar-recent h3,.scholar-timeline h3{font-size:1.7rem}
  .metrics-refresh-bar button{width:100%}
  .record{grid-template-columns:minmax(0,1fr);gap:12px}
  .record-year{display:flex;gap:12px;align-items:baseline}
  .record-year span{display:inline;font-size:.78rem;margin:0}
  .record-citations{grid-column:1}
  .book-entry{grid-template-columns:40px minmax(0,1fr) 16px;gap:12px}
  .profile-controls{grid-template-columns:minmax(0,1fr)}
  .profile-controls .profile-search-label{grid-column:1}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.spatial-portrait img[src$="gowhar-meraj-approved-2026.webp"],.portrait-wrap img[src$="gowhar-meraj-approved-2026.webp"]{object-position:center 35%;filter:none}

/* Give the expanded navigation a second row on narrower desktops. */
@media(min-width:1101px) and (max-width:1500px){.header{flex-wrap:wrap;gap:10px}.header nav{flex-basis:100%;justify-content:space-between;gap:12px}.header nav a{padding-block:8px}}

/* All mobile navigation rows share the same inset and selection border. */
@media(max-width:1100px){
  .header{align-items:center;flex-wrap:nowrap}
  .header .wordmark{display:flex;align-items:center;min-width:0;flex:0 1 auto}
  .header .brand-copy{margin-top:0}
  .header .menu-toggle{display:inline-flex;align-items:center;justify-content:center;margin:0;line-height:1.2;border-radius:0;min-height:46px}
  .header #navigation{width:100%;margin:0;left:0;right:0;top:100%;padding:12px max(5%,env(safe-area-inset-left)) max(18px,env(safe-area-inset-bottom));max-height:calc(100svh - var(--site-header-height,82px));max-height:calc(100dvh - var(--site-header-height,82px));overflow-y:auto;overflow-x:hidden;gap:4px 16px;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;scrollbar-gutter:auto;border-top:1px solid #33445c;border-bottom:1px solid #33445c;box-shadow:0 20px 32px #050c1640}
  .header #navigation.open{display:grid}
  .header #navigation a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;width:100%;min-height:52px;margin:0;padding:12px 14px;border:0;border-bottom:1px solid #293a50;border-left:2px solid transparent;font:400 .94rem/1.5 var(--sans);letter-spacing:0;text-align:left;white-space:normal;color:#d0dbec;overflow-wrap:normal}
  .header #navigation a:after{content:'↗';color:#7f96b7;font-size:.8rem;flex-shrink:0}
  .header #navigation a:hover{background:#1a2b42;color:#fff}
  .header #navigation a[aria-current=page]{padding:12px 14px;border-left:2px solid #c6936d;border-bottom:1px solid #293a50;background:#20334d;color:#fff}
  .header #navigation a[aria-current=page]:after{color:#d4a281}
  .atlas-layer-controls button{display:flex;align-items:center;justify-content:center;text-align:center;min-height:46px}
}
@media(max-width:600px){.header #navigation{grid-template-columns:minmax(0,1fr);gap:0}.header #navigation a{min-height:50px}.header .menu-toggle{gap:8px}.header .menu-toggle span{width:16px;text-align:center}}
@media(min-width:1101px){
  .header nav a{display:flex;align-items:center;min-height:44px;font-size:.78rem;line-height:1.5;letter-spacing:0}
  .header .wordmark{font-size:.86rem}
  .header .brand-subtitle{font-size:.48rem}
}

/* Direct globe interaction; controls and attribution occupy their own rows. */
.atlas-experience{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:10px;height:550px}
.atlas-experience .atlas-layer-controls{position:relative;inset:auto;grid-row:1}
.atlas-experience .atlas-canvas-frame{position:relative;inset:auto;grid-row:2;min-height:0;height:100%;width:100%}
.atlas-experience .atlas-map-tools{position:relative;inset:auto;grid-row:3;justify-content:flex-end;flex-wrap:wrap}
.atlas-experience .atlas-legend{position:relative;inset:auto;grid-row:5;flex-wrap:wrap}
.atlas-experience #atlas-interaction-hint{display:block;flex-basis:100%;margin-left:0;color:#a5b6cf}
.globe-attribution{position:relative;min-width:0;max-width:100%;padding:5px 10px;background:#0c1521;color:#a5b6cf;border-top:1px solid #273a55;font:11px/1.6 var(--sans);text-shadow:none}
.atlas-experience .globe-attribution{grid-row:4}
.globe-attribution:empty{display:none}
.globe-attribution.cesium-widget-credits{position:relative;inset:auto;display:block;font-size:11px;color:#a5b6cf;text-shadow:none}
.globe-attribution img{width:auto;height:16px;max-width:120px;vertical-align:middle}
.globe-attribution a,.globe-attribution .cesium-credit-expand-link{display:inline-flex;align-items:center;min-height:28px;color:#bac8dd;text-decoration:underline;text-underline-offset:3px}
#atlas-globe canvas,#profile-globe canvas{touch-action:none;pointer-events:auto;cursor:grab}
#atlas-globe canvas:active,#profile-globe canvas:active{cursor:grabbing}
@media(max-width:800px){
  .atlas-experience{height:auto;grid-template-rows:auto auto auto auto auto}
  .atlas-experience .atlas-canvas-frame{height:clamp(280px,78vw,430px)}
  .atlas-experience .atlas-legend{font-size:.7rem}
  .atlas-experience .atlas-status{grid-row:6;position:relative;inset:auto;margin:0}
}
@media(max-width:480px){.atlas-experience .atlas-canvas-frame{height:300px}}
