/* Human Earth Lab — editorial UX layer v22 (2026-08-17) */
:root{
  --hel-ink:#171715;
  --hel-muted:#66645f;
  --hel-paper:#fbfaf7;
  --hel-paper-2:#f3f0ea;
  --hel-line:#e3dfd7;
  --hel-red:#a51d2d;
  --hel-red-deep:#7d1420;
  --hel-green:#355445;
  --hel-shadow:0 18px 55px rgba(25,23,18,.09);
  --hel-shadow-hover:0 28px 72px rgba(25,23,18,.15);
  --hel-radius:22px;
  --hel-radius-lg:34px;
  --hel-max:1240px;
}

html{scroll-padding-top:118px}
body{
  color:var(--hel-ink);
  background:#fff;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  font-feature-settings:"kern" 1,"liga" 1;
  text-rendering:optimizeLegibility;
}
.container{max-width:var(--hel-max)}
main{overflow:clip}
main p{max-width:76ch}

/* Header: quieter, more institute-like */
header.border-bottom{border-bottom:0!important;position:relative;z-index:1040}
.brandbar{border-bottom:1px solid rgba(0,0,0,.055)!important;background:rgba(255,255,255,.97)!important}
.brandbar.py-3{padding-top:.8rem!important;padding-bottom:.8rem!important}
.brandbar .container>div{min-height:54px}
.brand .logo-mark{width:46px!important;height:46px!important}
.brand h1{font-size:1.1rem!important;letter-spacing:-.02em}
.brand p{font-size:.76rem!important;letter-spacing:.015em;color:#77736d!important}
.lang.hel-language-switcher{display:flex;align-items:center;gap:.32rem;padding:.25rem;border:1px solid var(--hel-line);border-radius:999px;background:#fff;box-shadow:0 6px 24px rgba(0,0,0,.04)}
.hel-lang-link{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;text-decoration:none!important;font-size:1.05rem;line-height:1;border:1px solid transparent;transition:transform .18s ease,background .18s ease,border-color .18s ease}
.hel-lang-link:hover{transform:translateY(-1px);background:var(--hel-paper-2);border-color:#ded9cf}
.hel-lang-link.is-active{background:#1f1e1b;border-color:#1f1e1b;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.hel-lang-link.is-active span{filter:saturate(1.05)}

.navbar.sticky-top{top:0!important;border:0!important;border-bottom:1px solid rgba(0,0,0,.07)!important;background:rgba(255,255,255,.93)!important;backdrop-filter:saturate(150%) blur(16px);-webkit-backdrop-filter:saturate(150%) blur(16px);box-shadow:0 6px 26px rgba(20,20,18,.035)}
.navbar .container{min-height:58px}
.navbar-nav{align-items:center;gap:.15rem}
.navbar .nav-link{color:#3f3d38!important;font-size:.91rem;font-weight:650;padding:.64rem .78rem!important;border-radius:999px;transition:background .18s ease,color .18s ease}
.navbar .nav-link:hover{background:var(--hel-paper-2);color:#111!important;text-decoration:none}
.navbar .nav-link.active,.navbar .nav-link[aria-current="page"]{background:#1d1d1b;color:#fff!important}
.hel-more-nav{position:relative}
.hel-more-nav .dropdown-toggle{border:0;background:transparent}
.hel-more-nav .dropdown-menu{border:1px solid var(--hel-line);border-radius:16px;padding:.5rem;box-shadow:var(--hel-shadow);min-width:210px}
.hel-more-nav .dropdown-item{border-radius:10px;padding:.62rem .75rem;font-size:.9rem}
.hel-more-nav .dropdown-item:active{background:var(--hel-red)}

/* Editorial typography and rhythm */
.hero:not(.home-hero),.team-hero,.methods-hero,.research-hero{background:var(--hel-paper)!important;border-bottom:1px solid var(--hel-line)}
.hero-inner,.team-hero .container,.research-hero .container,.methods-hero .container{padding-top:clamp(4rem,8vw,7rem)!important;padding-bottom:clamp(3.8rem,7vw,6.5rem)!important}
.hero h2,.team-hero h2,.research-hero h2,.methods-hero h2{font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;font-weight:600!important;letter-spacing:-.035em;line-height:.98;font-size:clamp(3rem,7vw,6.2rem)!important}
.hero .lead,.team-hero .lead,.research-hero .lead,.methods-hero .lead{font-size:clamp(1.08rem,1.7vw,1.34rem);line-height:1.6;color:#4a4842!important}
.kicker,.team-section-label,.site-section-label,.research-section-label{letter-spacing:.14em!important;text-transform:uppercase;font-size:.74rem!important;font-weight:800!important;color:var(--hel-red)!important}
.section,.section.py-5,main>section.py-5{padding-top:clamp(4.4rem,7vw,7.5rem)!important;padding-bottom:clamp(4.4rem,7vw,7.5rem)!important}
.section-head{margin-bottom:clamp(2rem,4vw,3.4rem)!important}
.section-head h2,main section>div>.row h2{letter-spacing:-.032em}

/* Homepage hero: more cinematic, less dashboard-like */
.home-hero{min-height:min(860px,88vh)!important;background:#171915!important}
.home-hero::after{background:linear-gradient(90deg,rgba(10,12,10,.86) 0%,rgba(10,12,10,.70) 42%,rgba(10,12,10,.22) 76%,rgba(10,12,10,.12) 100%),linear-gradient(0deg,rgba(10,10,8,.56),rgba(10,10,8,.03) 55%)!important}
.home-hero-video,.home-hero-fallback{filter:saturate(.86) contrast(1.05)}
.home-hero .container{max-width:var(--hel-max)}
.home-hero .col-lg-8{max-width:720px}
.home-hero-content{padding-top:clamp(5.5rem,10vw,9rem)!important;padding-bottom:clamp(5rem,9vw,8rem)!important;max-width:700px!important}
.home-hero-logo{width:72px!important;margin-bottom:2rem!important}
.home-hero h2{font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;font-weight:600!important;letter-spacing:-.045em;line-height:.96!important;font-size:clamp(3.5rem,7.4vw,7rem)!important;max-width:760px!important;text-wrap:balance}
.home-hero .lead{font-size:clamp(1.18rem,1.8vw,1.45rem)!important;max-width:620px!important;line-height:1.5}
.home-hero p:not(.lead):not(.kicker){font-size:1rem;max-width:610px!important;line-height:1.65;color:rgba(255,255,255,.76)!important}
.home-hero .btn{border-radius:999px;padding:.76rem 1.12rem;font-weight:700}
.home-hero .btn-light{box-shadow:0 8px 24px rgba(0,0,0,.16)}
.home-proof{background:#171715!important;border:0!important}
.home-proof .home-proof-grid{gap:0!important}
.home-proof .home-proof-item{border-color:rgba(255,255,255,.11)!important;padding-top:1.5rem!important;padding-bottom:1.5rem!important}
.home-proof-value{font-family:"Iowan Old Style",Georgia,serif;font-weight:600!important;font-size:1.55rem!important}
.home-proof-label{font-size:.8rem!important;color:rgba(255,255,255,.58)!important}

/* Sticky section nav becomes a subtle scroll rail */
.home-section-nav,.site-section-nav,.team-section-nav,.research-section-nav,.hel-section-nav{background:rgba(251,250,247,.95)!important;border-color:var(--hel-line)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.home-section-nav-inner,.site-section-nav .container,.team-section-nav .container,.research-section-nav .container,.hel-section-nav .container{scrollbar-width:none;overflow-x:auto;white-space:nowrap}
.home-section-nav-inner::-webkit-scrollbar,.site-section-nav .container::-webkit-scrollbar{display:none}
.home-section-nav a,.site-section-nav a,.team-section-nav a,.research-section-nav a,.hel-section-nav a{border-radius:999px!important;border:1px solid transparent!important;padding:.48rem .72rem!important;color:#65615b!important;font-size:.82rem!important;font-weight:650!important}
.home-section-nav a.is-active,.site-section-nav a.is-active,.team-section-nav a.is-active,.research-section-nav a.is-active,.hel-section-nav a.is-active,.home-section-nav a[aria-current="location"]{color:#fff!important;background:#1d1d1b!important}

/* Cards: less generic Bootstrap, more editorial */
.card,.study-card,.zenodo-card,.home-site-card,.site-finding-card,.home-media-card,.team-expertise-card{border-color:var(--hel-line)!important;border-radius:var(--hel-radius)!important;box-shadow:none!important;overflow:hidden;background:#fff;transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
.card:hover,.study-card:hover,.zenodo-card:hover,.home-site-card:hover,.home-media-card:hover{transform:translateY(-4px);box-shadow:var(--hel-shadow-hover)!important;border-color:#d5cfc4!important}
.card-body{padding:1.45rem!important}

/* Site cards on homepage and Sites page */
.home-site-card{background:#fff!important}
.home-site-media{aspect-ratio:16/10;overflow:hidden;background:#e9e5de}
.home-site-media img,.hel-site-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .65s cubic-bezier(.2,.7,.2,1),filter .3s ease}
.home-site-card:hover .home-site-media img,.card.hel-visual-site-card:hover .hel-site-card-media img{transform:scale(1.035);filter:saturate(1.03) contrast(1.02)}
.home-site-card-body{padding:1.35rem 1.35rem 1.5rem!important}
.home-site-card h3{font-family:"Iowan Old Style",Georgia,serif;font-size:1.55rem!important;letter-spacing:-.025em}
.card.hel-visual-site-card{padding:0!important;display:flex;flex-direction:column;min-height:100%}
.hel-site-card-media{aspect-ratio:16/9;overflow:hidden;background:var(--hel-paper-2)}
.hel-site-card-content{padding:1.45rem 1.5rem 1.55rem;display:flex;flex-direction:column;flex:1}
.card.hel-visual-site-card h3{font-family:"Iowan Old Style",Georgia,serif;font-size:1.75rem;letter-spacing:-.03em;margin:.35rem 0 .75rem}
.card.hel-visual-site-card .card-link{margin-top:auto;padding-top:.7rem;font-weight:750}

/* Featured study */
.featured-study-section{background:var(--hel-paper)!important}
.featured-study-card{border:0!important;border-radius:var(--hel-radius-lg)!important;overflow:hidden;box-shadow:var(--hel-shadow)!important;background:#fff!important}
.featured-study-card:hover{transform:translateY(-3px);box-shadow:var(--hel-shadow-hover)!important}
.featured-study-media{overflow:hidden}
.featured-study-media img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.featured-study-card:hover .featured-study-media img{transform:scale(1.025)}
.featured-study-content{padding:clamp(2rem,4vw,4.2rem)!important}
.featured-study-title{font-family:"Iowan Old Style",Georgia,serif;font-weight:600!important;font-size:clamp(2rem,4vw,3.7rem)!important;letter-spacing:-.045em!important}

/* Team: consistent portrait system + progressive disclosure */
.person-photo,.advisor-photo{width:100%!important;aspect-ratio:4/5!important;height:auto!important;object-fit:cover!important;background:var(--hel-paper-2);filter:saturate(.93);transition:filter .25s ease,transform .5s ease}
.person:hover .person-photo,.advisor-card:hover .advisor-photo{filter:saturate(1.02);transform:scale(1.012)}
.person h3,.advisor-card h3{font-family:"Iowan Old Style",Georgia,serif;letter-spacing:-.025em}
.profile-links{gap:.4rem!important}
.profile-links a{border-radius:999px!important;font-size:.78rem!important;padding:.43rem .65rem!important}
.hel-person-more[hidden]{display:none!important}
.hel-person-toggle{margin-top:.7rem;border:0;background:transparent;color:var(--hel-red);font-weight:750;font-size:.84rem;padding:0}
.hel-person-toggle:hover{text-decoration:underline}

/* Publication library toolbar */
.hel-output-toolbar{display:flex;gap:.8rem;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 2rem;padding:1rem;border:1px solid var(--hel-line);background:var(--hel-paper);border-radius:18px}
.hel-output-search{flex:1 1 280px;position:relative}
.hel-output-search input{width:100%;border:1px solid #d8d3ca;border-radius:999px;background:#fff;padding:.68rem 1rem .68rem 2.55rem;outline:none}
.hel-output-search::before{content:"⌕";position:absolute;left:1rem;top:50%;transform:translateY(-53%);font-size:1.15rem;color:#6d6962}
html[dir="rtl"] .hel-output-search::before{left:auto;right:1rem}
html[dir="rtl"] .hel-output-search input{padding-left:1rem;padding-right:2.55rem}
.hel-output-filters{display:flex;gap:.35rem;flex-wrap:wrap}
.hel-output-filter{border:1px solid #d8d3ca;background:#fff;border-radius:999px;padding:.55rem .8rem;font-size:.82rem;font-weight:700;color:#4f4b45}
.hel-output-filter.is-active{background:#1d1d1b;border-color:#1d1d1b;color:#fff}
.study-card{overflow:hidden!important}
.study-card-image-wrap{overflow:hidden!important}
.study-card-image{transition:transform .65s cubic-bezier(.2,.7,.2,1)}
.study-card:hover .study-card-image{transform:scale(1.025)}
.study-card-title{font-family:"Iowan Old Style",Georgia,serif!important;font-weight:600!important;letter-spacing:-.025em!important}
.study-card-action{border-radius:999px!important}
.hel-filter-hidden{display:none!important}

/* Site detail: digital science story */
.site-section-nav{position:sticky!important;z-index:1010!important}
.site-finding-card{padding:clamp(1.4rem,3vw,2.15rem)!important;background:#fff!important}
.site-finding-number{font-family:"Iowan Old Style",Georgia,serif!important;font-size:2rem!important;color:var(--hel-red)!important}
.site-finding-card h3{font-family:"Iowan Old Style",Georgia,serif;font-size:clamp(1.45rem,2.4vw,2rem)!important;letter-spacing:-.03em}
.figure-grid{gap:1.25rem!important}
.figure-tile{border:1px solid var(--hel-line)!important;border-radius:18px!important;overflow:hidden;background:#fff;box-shadow:0 10px 32px rgba(20,18,14,.05)}
.figure-tile img{background:var(--hel-paper-2);transition:transform .4s ease}
.figure-tile:hover img{transform:scale(1.008)}
.figure-tile figcaption{padding:1rem 1.05rem!important}
.hel-figure-meta{font-size:.72rem!important;letter-spacing:.04em;text-transform:uppercase;color:#79746c!important}

/* Sections alternate with quiet editorial contrast */
main>section.bg-light,.home-map-section,.home-collab-section{background:var(--hel-paper)!important}
.home-workflow{background:#1b1c19!important;color:#fff}
.home-workflow h2,.home-workflow h3{color:#fff!important}
.home-workflow p{color:rgba(255,255,255,.7)!important}

/* Consent: discreet, localized, not a public counter */
.hel-consent{position:fixed;z-index:20000;left:1rem;right:1rem;bottom:1rem;max-width:760px;margin:auto;background:rgba(24,24,22,.97);color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.28);padding:1rem 1.1rem;display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center;backdrop-filter:blur(16px)}
.hel-consent p{margin:0;font-size:.86rem;line-height:1.45;color:rgba(255,255,255,.82)}
.hel-consent strong{display:block;margin-bottom:.15rem;color:#fff;font-size:.9rem}
.hel-consent-actions{display:flex;gap:.45rem;flex-wrap:wrap;justify-content:flex-end}
.hel-consent button{border-radius:999px;padding:.55rem .8rem;border:1px solid rgba(255,255,255,.28);font-size:.78rem;font-weight:750;cursor:pointer}
.hel-consent-accept{background:#fff;color:#171715;border-color:#fff!important}
.hel-consent-reject{background:transparent;color:#fff}

/* Subtle scroll progress on long science pages */
.hel-scroll-progress{position:fixed;z-index:1100;left:0;top:0;width:100%;height:2px;pointer-events:none}
.hel-scroll-progress span{display:block;height:100%;width:0;background:var(--hel-red);transform-origin:left center}
html[dir="rtl"] .hel-scroll-progress span{transform-origin:right center;margin-left:auto}

/* RTL remains truly RTL, flags remain LTR */
html[dir="rtl"] body{text-align:right}
html[dir="rtl"] .lang.hel-language-switcher{direction:ltr}
html[dir="rtl"] .navbar-nav{padding-right:0}

@media (max-width:991.98px){
  .brand p{display:none}
  .brandbar .container>div{min-height:48px}
  .navbar .container{min-height:52px}
  .navbar-nav{align-items:stretch;gap:.2rem;padding:1rem 0}
  .navbar .nav-link{border-radius:12px;padding:.72rem .8rem!important}
  .hel-more-nav .dropdown-menu{position:static!important;box-shadow:none;border:0;background:var(--hel-paper);margin-top:.3rem}
  .home-hero{min-height:78svh!important}
  .home-hero::after{background:linear-gradient(180deg,rgba(10,12,10,.42) 0%,rgba(10,12,10,.80) 62%,rgba(10,12,10,.92) 100%)!important}
  .home-hero-content{padding-top:7rem!important;padding-bottom:4rem!important}
  .home-hero h2{font-size:clamp(3rem,12vw,5.1rem)!important}
  .home-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .home-proof-item{border-bottom:1px solid rgba(255,255,255,.11)}
  .featured-study-grid{grid-template-columns:1fr!important}
  .featured-study-media img{min-height:280px!important;max-height:420px}
  .hel-consent{grid-template-columns:1fr}
  .hel-consent-actions{justify-content:flex-start}
}

@media (max-width:575.98px){
  .brand .logo-mark{width:40px!important;height:40px!important}
  .brand h1{font-size:1rem!important}
  .hel-lang-link{width:31px;height:31px;font-size:.98rem}
  .home-hero-logo{display:none}
  .home-hero-content{padding-top:6rem!important}
  .home-hero h2{font-size:clamp(2.9rem,14vw,4.5rem)!important}
  .home-proof-grid{grid-template-columns:1fr 1fr!important}
  .home-proof-item{padding:1.1rem .85rem!important}
  .home-proof-value{font-size:1.15rem!important}
  .home-proof-label{font-size:.72rem!important}
  .section,.section.py-5,main>section.py-5{padding-top:3.7rem!important;padding-bottom:3.7rem!important}
  .hero-inner,.team-hero .container,.research-hero .container,.methods-hero .container{padding-top:3.8rem!important;padding-bottom:3.5rem!important}
  .hero h2,.team-hero h2,.research-hero h2,.methods-hero h2{font-size:clamp(2.65rem,14vw,4.3rem)!important}
  .hel-consent{left:.65rem;right:.65rem;bottom:.65rem;padding:.9rem;border-radius:15px}
  .hel-consent-actions button{flex:1}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
  .home-site-media img,.study-card-image,.person-photo,.advisor-photo{transform:none!important}
}


/* Human Earth Lab — layout normalization v23 (2026-08-17) */

/* One width system only: sections are full-width, .container owns the content width. */
main:not(.error-main){
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.error-main{max-width:var(--hel-max);margin-inline:auto}

/* Slightly wider editorial canvas on large screens without stretching text columns. */
:root{--hel-max:1280px}
.container{width:100%;max-width:var(--hel-max)!important}

/* Consistent vertical rhythm. The previous layer stacked section padding with local margins. */
.section,.section.py-5,main>section.py-5{
  padding-top:clamp(3.2rem,4.4vw,4.8rem)!important;
  padding-bottom:clamp(3.2rem,4.4vw,4.8rem)!important;
}
.section-head{
  grid-template-columns:minmax(150px,.62fr) minmax(0,1fr) minmax(0,1.35fr)!important;
  column-gap:clamp(1.2rem,2.5vw,2rem)!important;
  row-gap:.75rem!important;
  margin-bottom:clamp(1.45rem,2.5vw,2.25rem)!important;
  padding-bottom:clamp(1rem,1.8vw,1.35rem)!important;
}
.section-head>h2:only-child,
.section-head>div:only-child{
  grid-column:1/-1!important;
  width:min(100%,900px);
}
.section-head>h2:first-child:nth-last-child(2){grid-column:1/3!important}
.section-head>p:first-child:nth-last-child(2)+h2{grid-column:2/-1!important}
.section-head>div:first-child:nth-last-child(2){grid-column:1/3!important}
.section-head>a:last-child{justify-self:end;align-self:end}
.section-head h2{max-width:18ch;text-wrap:balance}
.section-head>h2:only-child{max-width:22ch}
.section-head p{max-width:68ch}

/* Non-home heroes: remove stacked container + row padding and oversized type. */
.hero:not(.home-hero) .hero-inner,
.methods-hero .hero-inner,
.outputs-hero .hero-inner{
  padding-top:clamp(2.8rem,4.6vw,4rem)!important;
  padding-bottom:clamp(2.8rem,4.6vw,4rem)!important;
}
.team-hero .container,
.research-hero .container,
.locations-hero .container{
  padding-top:0!important;
  padding-bottom:0!important;
}
.team-hero .row,
.research-hero .row,
.locations-hero .row{
  padding-top:clamp(2.8rem,4.6vw,4.2rem)!important;
  padding-bottom:clamp(2.8rem,4.6vw,4.2rem)!important;
}
.hero:not(.home-hero) h2,
.team-hero h2,
.research-hero h2,
.locations-hero h2,
.methods-hero h2,
.outputs-hero h2{
  font-size:clamp(2.7rem,5vw,4.6rem)!important;
  max-width:15ch;
  text-wrap:balance;
}

/* Site details: facts no longer add a second 4rem spacer before the map. */
.site-key-findings-section+main>.section:first-child{
  padding-top:clamp(1.8rem,3vw,2.6rem)!important;
  padding-bottom:clamp(1.8rem,3vw,2.6rem)!important;
}
.quick-facts{margin-bottom:0!important}
.fact{min-width:0}
.fact strong{overflow-wrap:anywhere}
.map-layout{align-items:stretch}
.site-map,.map-panel{min-width:0}
.map-panel{height:100%}

/* Prevent narrow desktop columns from feeling cramped. */
@media (max-width:1199.98px){
  .section-head{
    grid-template-columns:minmax(130px,.5fr) minmax(0,1fr) minmax(0,1.15fr)!important;
  }
  .quick-facts{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media (max-width:991.98px){
  .section-head{
    grid-template-columns:1fr!important;
    gap:.7rem!important;
  }
  .section-head>*{grid-column:1!important;justify-self:stretch!important}
  .section-head>h2:only-child,
  .section-head>div:only-child,
  .section-head>h2:first-child:nth-last-child(2),
  .section-head>p:first-child:nth-last-child(2)+h2,
  .section-head>div:first-child:nth-last-child(2){
    grid-column:1!important;
    width:100%;
  }
  .section-head h2{max-width:22ch}
  .section-head>a:last-child{justify-self:start!important;align-self:auto}
  .team-hero .row,
  .research-hero .row,
  .locations-hero .row{padding-top:2.7rem!important;padding-bottom:2.7rem!important}
  .map-layout{grid-template-columns:1fr!important}
  .quick-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (max-width:575.98px){
  .section,.section.py-5,main>section.py-5{
    padding-top:3rem!important;
    padding-bottom:3rem!important;
  }
  .site-key-findings-section+main>.section:first-child{
    padding-top:1.5rem!important;
    padding-bottom:1.5rem!important;
  }
  .quick-facts{grid-template-columns:1fr!important}
  .fact{border-right:0!important;border-bottom:1px solid var(--hel-line)}
  .fact:last-child{border-bottom:0}
  .hero:not(.home-hero) .hero-inner,
  .methods-hero .hero-inner,
  .outputs-hero .hero-inner{padding-top:2.5rem!important;padding-bottom:2.5rem!important}
  .hero:not(.home-hero) h2,
  .team-hero h2,
  .research-hero h2,
  .locations-hero h2,
  .methods-hero h2,
  .outputs-hero h2{font-size:clamp(2.45rem,12vw,3.55rem)!important}
}

/* RTL keeps the same geometry; only action alignment is mirrored. */
html[dir="rtl"] .section-head>a:last-child{justify-self:start}
@media (max-width:991.98px){html[dir="rtl"] .section-head>a:last-child{justify-self:start!important}}


/* =========================================================
   Human Earth Lab — editorial width architecture v24
   2026-08-17
   Purpose: stop text and controls from stretching across wide screens.
   ========================================================= */
:root{
  --hel-shell:1200px;
  --hel-wide:1120px;
  --hel-content:1000px;
  --hel-reading-wide:900px;
  --hel-reading:820px;
  --hel-measure:68ch;
  --hel-radius:16px;
  --hel-radius-lg:24px;
  --hel-max:var(--hel-shell);
}

/* Global shell. Large media may opt into --hel-wide; prose never inherits it. */
.container{
  max-width:var(--hel-shell)!important;
}
main p{
  max-width:var(--hel-measure);
}

/* Content width utilities attached directly to sections in v24. */
.hel-layout-wide>.container{max-width:var(--hel-wide)!important}
.hel-layout-content>.container{max-width:var(--hel-content)!important}
.hel-layout-reading-wide>.container{max-width:var(--hel-reading-wide)!important}
.hel-layout-reading>.container{max-width:var(--hel-reading)!important}

/* Reading sections are articles, not dashboard panels. */
.hel-layout-reading .section-head,
.hel-layout-reading-wide .section-head{
  grid-template-columns:1fr!important;
  width:100%!important;
  max-width:none!important;
  padding-bottom:.85rem!important;
  margin-bottom:1rem!important;
}
.hel-layout-reading .section-head>*,
.hel-layout-reading-wide .section-head>*{
  grid-column:1!important;
  max-width:none!important;
}
.hel-layout-reading>.container>article.card,
.hel-layout-reading-wide>.container>article.card{
  border-radius:14px!important;
  padding:clamp(1.35rem,2.2vw,1.8rem)!important;
}
.hel-layout-reading article.card p,
.hel-layout-reading-wide article.card p,
.hel-layout-reading .band p,
.hel-layout-reading-wide .band p{
  max-width:var(--hel-measure)!important;
  font-size:clamp(.96rem,.35vw + .88rem,1.04rem);
  line-height:1.7!important;
}

/* Secondary navigation: narrower, lower and visually lighter. */
.home-section-nav>.container,
.site-section-nav>.container,
.team-section-nav>.container,
.research-section-nav>.container,
.hel-section-nav>.container{
  max-width:1040px!important;
  border-radius:14px!important;
  padding:.3rem .38rem!important;
  box-shadow:0 7px 22px rgba(24,28,26,.055)!important;
}
.home-section-nav a,
.site-section-nav a,
.team-section-nav a,
.research-section-nav a,
.hel-section-nav a{
  padding:.4rem .66rem!important;
  font-size:.79rem!important;
  border-radius:10px!important;
}

/* Cards: retain hierarchy but remove the oversized app-panel effect. */
.card,.study-card,.zenodo-card,.home-site-card,.site-finding-card,.home-media-card,.team-expertise-card,
.research-framework-card,.research-question-card,.research-direction-card,.research-scale-card,.research-connection-card{
  border-radius:16px!important;
}
.featured-study-card{border-radius:24px!important}
.card-body{padding:1.25rem!important}
.card{padding:1.25rem}

/* Site detail pages */
.hel-site-detail-page .hero-inner{max-width:var(--hel-wide)!important;margin-inline:auto}
.hel-site-detail-page .hero-inner>div:first-child,
.hel-site-detail-page .hero .lead{max-width:760px!important}
.hel-site-detail-page .site-key-findings-section>.container{max-width:var(--hel-wide)!important}
.hel-site-detail-page .site-finding-card{padding:clamp(1.15rem,2vw,1.65rem)!important}
.hel-site-detail-page .quick-facts{max-width:var(--hel-wide);margin-inline:auto}
.hel-site-detail-page #figures .figure-grid{max-width:var(--hel-wide);margin-inline:auto}
.hel-site-detail-page #interpretation .band{max-width:var(--hel-reading-wide);margin-inline:auto}
.hel-site-detail-page #study .study-card,
.hel-site-detail-page #media .media-feature{max-width:var(--hel-content);margin-inline:auto}

/* Homepage: wide imagery, contained editorial copy. */
.hel-home-page .home-hero>.container,
.hel-home-page .home-proof>.container{max-width:var(--hel-shell)!important}
.hel-home-page #latest>.container{max-width:var(--hel-wide)!important}
.hel-home-page #questions>.container,
.hel-home-page #workflow>.container,
.hel-home-page #team-home>.container,
.hel-home-page #field-notes-home>.container,
.hel-home-page #collaboration-home>.container,
.hel-home-page #media>.container{max-width:1080px!important}
.hel-home-page #research-map>.container,
.hel-home-page #sites-home>.container{max-width:var(--hel-wide)!important}
.hel-home-page .home-hero-content{max-width:680px!important}

/* Publications */
.hel-publications-page #studies>.container,
.hel-publications-page #open-data>.container{max-width:var(--hel-wide)!important}
.hel-publications-page #bibliography>.container{max-width:var(--hel-reading-wide)!important}
.hel-publications-page .hel-output-tools{max-width:var(--hel-content);margin-inline:auto}

/* Team */
.hel-team-page #core-team>.container{max-width:var(--hel-wide)!important}
.hel-team-page #expertise>.container{max-width:1080px!important}
.hel-team-page #advisory-board>.container{max-width:1040px!important}
.hel-team-page #collaboration>.container{max-width:var(--hel-content)!important}

/* Research */
.hel-research-page main>section>.container{max-width:1080px!important}
.hel-research-page #evidence-chain>.container,
.hel-research-page #scales>.container{max-width:1040px!important}
.hel-research-page .research-hero>.container{max-width:var(--hel-wide)!important}

/* Standard information pages */
.hel-methods-page main>.section>.container{max-width:var(--hel-content)!important}
.hel-sites-page main>.section>.container{max-width:var(--hel-wide)!important}
.hel-contact-page main>.section>.container{max-width:960px!important}
.hel-partnerships-page main>.section>.container{max-width:1040px!important}
.hel-field-notes-page main>.section>.container{max-width:1080px!important}
.hel-field-note-detail-page main>.section>.container{max-width:var(--hel-reading-wide)!important}

/* Section rhythm: less vertical dead space on desktop. */
.section,.section.py-5,main>section.py-5{
  padding-top:clamp(2.85rem,3.8vw,4.2rem)!important;
  padding-bottom:clamp(2.85rem,3.8vw,4.2rem)!important;
}
.section-head{
  margin-bottom:clamp(1.15rem,2vw,1.8rem)!important;
}

/* Headers use the wide shell, but copy keeps a readable line length. */
.team-hero>.container,.research-hero>.container,.locations-hero>.container,
.hero:not(.home-hero) .hero-inner{max-width:var(--hel-wide)!important}
.hero:not(.home-hero) h2,.team-hero h2,.research-hero h2,.locations-hero h2,.methods-hero h2,.outputs-hero h2{
  font-size:clamp(2.55rem,4.1vw,4.15rem)!important;
  line-height:1.02!important;
}
.hero:not(.home-hero) .lead,.team-hero .lead,.research-hero .lead,.methods-hero .lead{
  max-width:66ch!important;
}

/* Ultra-wide monitors: intentionally preserve whitespace instead of stretching content. */
@media (min-width:1440px){
  .container{padding-left:24px!important;padding-right:24px!important}
  .hel-layout-reading>.container{padding-left:20px!important;padding-right:20px!important}
}

@media (max-width:1199.98px){
  :root{
    --hel-shell:1120px;
    --hel-wide:1060px;
    --hel-content:960px;
    --hel-reading-wide:880px;
    --hel-reading:800px;
  }
}

@media (max-width:991.98px){
  :root{
    --hel-shell:100%;
    --hel-wide:100%;
    --hel-content:100%;
    --hel-reading-wide:100%;
    --hel-reading:100%;
  }
  .home-section-nav>.container,
  .site-section-nav>.container,
  .team-section-nav>.container,
  .research-section-nav>.container,
  .hel-section-nav>.container{max-width:calc(100% - 1.5rem)!important}
  .card,.study-card,.zenodo-card,.home-site-card,.site-finding-card,.home-media-card,.team-expertise-card{border-radius:14px!important}
}

@media (max-width:575.98px){
  .section,.section.py-5,main>section.py-5{padding-top:2.65rem!important;padding-bottom:2.65rem!important}
  .card{padding:1.05rem}
  .card-body{padding:1.05rem!important}
  .home-section-nav>.container,
  .site-section-nav>.container,
  .team-section-nav>.container,
  .research-section-nav>.container,
  .hel-section-nav>.container{max-width:calc(100% - 1rem)!important;border-radius:12px!important}
}


/* =========================================================
   v25 — SCROLL STABILITY + EDITORIAL GALLERIES
   ========================================================= */

/* Sticky rails must never capture vertical scrolling. Their overflow is horizontal only. */
.home-section-nav-inner,
.site-section-nav > .container,
.team-section-nav > .container,
.research-section-nav > .container,
.hel-section-nav > .container{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-inline:contain;
  overscroll-behavior-block:auto;
  touch-action:pan-x pan-y;
  scroll-behavior:auto!important;
}

/* Latest study: tighter newsroom-style feature instead of a huge dashboard tile. */
.hel-home-page #latest>.container{max-width:1040px!important}
.featured-study-card{
  border:1px solid var(--hel-line)!important;
  border-radius:18px!important;
  box-shadow:0 12px 34px rgba(24,28,26,.075)!important;
}
.featured-study-card:hover{
  transform:none!important;
  box-shadow:0 16px 40px rgba(24,28,26,.095)!important;
}
.featured-study-grid{
  grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)!important;
  align-items:stretch!important;
}
.featured-study-media{
  min-height:0!important;
  background:#ece9e2!important;
}
.featured-study-media img{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:3/2;
  object-fit:contain!important;
  background:#171715!important;
}
.featured-study-content{
  padding:clamp(1.35rem,2.4vw,2.2rem)!important;
  justify-content:flex-start!important;
}
.featured-study-title{
  font-size:clamp(1.7rem,2.7vw,2.65rem)!important;
  line-height:1.08!important;
  margin-bottom:.8rem!important;
}
.featured-study-summary{
  font-size:.98rem!important;
  line-height:1.58!important;
  margin-bottom:.8rem!important;
}
.featured-study-public-findings{
  gap:0!important;
  margin:.65rem 0 .9rem!important;
  border-top:1px solid var(--hel-line);
}
.featured-study-public-findings li{
  border:0!important;
  border-bottom:1px solid var(--hel-line)!important;
  border-radius:0!important;
  background:transparent!important;
  padding:.6rem .15rem .6rem 1.55rem!important;
  font-size:.86rem!important;
  line-height:1.42!important;
}
.featured-study-public-findings li::before{left:.1rem!important;top:.58rem!important}
html[dir="rtl"] .featured-study-public-findings li{padding:.6rem 1.55rem .6rem .15rem!important}
html[dir="rtl"] .featured-study-public-findings li::before{right:.1rem!important;left:auto!important}
.featured-study-site{margin:0 0 .55rem!important;font-size:.9rem!important}

/* Horizontal editorial slider. Native scrolling keeps touch interaction fluid. */
.hel-editorial-gallery-shell{
  position:relative;
  width:100%;
  min-width:0;
}
.figure-grid.hel-editorial-slider,
.hel-field-gallery.hel-editorial-slider,
#field-note-gallery .row.hel-editorial-slider{
  display:flex!important;
  grid-template-columns:none!important;
  gap:clamp(.7rem,1.2vw,1rem)!important;
  width:100%;
  max-width:none!important;
  margin:0!important;
  padding:0 0 .35rem!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:0;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
  overscroll-behavior-block:auto;
  touch-action:pan-x pan-y;
  direction:ltr;
}
.figure-grid.hel-editorial-slider::-webkit-scrollbar,
.hel-field-gallery.hel-editorial-slider::-webkit-scrollbar,
#field-note-gallery .row.hel-editorial-slider::-webkit-scrollbar{display:none}

.figure-grid.hel-editorial-slider > .figure-tile{
  flex:0 0 min(84%,860px)!important;
  width:min(84%,860px)!important;
  max-width:860px!important;
  grid-column:auto!important;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  border-radius:14px!important;
  align-self:stretch;
}
.figure-grid.hel-editorial-slider > .figure-tile img{
  width:100%!important;
  height:clamp(320px,52vw,590px)!important;
  min-height:0!important;
  max-height:590px!important;
  object-fit:contain!important;
  background:#f4f1eb!important;
}

.hel-field-gallery.hel-editorial-slider > [class*="col-"],
#field-note-gallery .row.hel-editorial-slider > [class*="col-"]{
  flex:0 0 min(78%,760px)!important;
  width:min(78%,760px)!important;
  max-width:760px!important;
  padding:0!important;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
.hel-field-gallery.hel-editorial-slider .field-note-gallery-item,
#field-note-gallery .row.hel-editorial-slider .field-note-gallery-item{
  height:100%!important;
  border:1px solid var(--hel-line);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.hel-field-gallery.hel-editorial-slider .field-note-gallery-link,
#field-note-gallery .row.hel-editorial-slider .field-note-gallery-link{
  display:block;
  height:auto!important;
  overflow:hidden;
  cursor:zoom-in;
}
.hel-field-gallery.hel-editorial-slider img,
#field-note-gallery .row.hel-editorial-slider img{
  display:block;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:3/2!important;
  object-fit:cover!important;
}
.hel-field-gallery.hel-editorial-slider figcaption,
#field-note-gallery .row.hel-editorial-slider figcaption{
  padding:.8rem .9rem .9rem;
  color:var(--muted);
  font-size:.88rem;
  line-height:1.45;
}
html[dir="rtl"] .hel-editorial-slider figcaption{direction:rtl;text-align:right}

.hel-editorial-gallery-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.75rem;
  margin-top:.65rem;
}
.hel-editorial-gallery-count{
  min-width:3.3rem;
  color:var(--muted);
  font-size:.78rem;
  font-weight:750;
  letter-spacing:.04em;
  text-align:right;
}
.hel-editorial-gallery-buttons{display:flex;gap:.38rem}
.hel-editorial-gallery-prev,
.hel-editorial-gallery-next{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  padding:0;
  border:1px solid rgba(17,17,17,.14);
  border-radius:50%;
  background:#fff;
  color:#1d1d1b;
  font:600 1.35rem/1 Georgia,serif;
  cursor:pointer;
  transition:border-color .16s ease,background-color .16s ease,opacity .16s ease;
}
.hel-editorial-gallery-prev:hover:not(:disabled),
.hel-editorial-gallery-next:hover:not(:disabled),
.hel-editorial-gallery-prev:focus-visible,
.hel-editorial-gallery-next:focus-visible{
  border-color:rgba(143,22,32,.4);
  background:#f8f3f1;
  outline:none;
}
.hel-editorial-gallery-prev:disabled,
.hel-editorial-gallery-next:disabled{opacity:.3;cursor:default}

/* Field-note lightbox. */
body.hel-editorial-lightbox-open{overflow:hidden!important}
.hel-editorial-lightbox[hidden]{display:none!important}
.hel-editorial-lightbox{
  position:fixed;
  inset:0;
  z-index:25000;
  display:grid;
  grid-template-columns:minmax(42px,72px) minmax(0,1fr) minmax(42px,72px);
  align-items:center;
  gap:.5rem;
  padding:clamp(.8rem,2vw,1.5rem);
  background:rgba(10,10,9,.94);
  backdrop-filter:blur(10px);
}
.hel-editorial-lightbox-stage{
  display:grid;
  grid-template-rows:minmax(0,1fr) auto auto;
  justify-items:center;
  min-width:0;
  max-height:94svh;
}
.hel-editorial-lightbox-stage img{
  display:block;
  max-width:100%;
  max-height:78svh;
  width:auto;
  height:auto;
  object-fit:contain;
}
.hel-editorial-lightbox-caption{
  max-width:880px!important;
  margin:.75rem auto 0!important;
  color:rgba(255,255,255,.82)!important;
  font-size:.9rem;
  line-height:1.45;
  text-align:center;
}
.hel-editorial-lightbox-count{margin-top:.35rem;color:rgba(255,255,255,.55);font-size:.78rem}
.hel-editorial-lightbox-close,
.hel-editorial-lightbox-prev,
.hel-editorial-lightbox-next{
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  font:500 1.55rem/1 Arial,sans-serif;
  cursor:pointer;
}
.hel-editorial-lightbox-close{
  position:absolute;
  top:clamp(.8rem,2vw,1.5rem);
  right:clamp(.8rem,2vw,1.5rem);
  z-index:2;
}
.hel-editorial-lightbox-prev{grid-column:1}
.hel-editorial-lightbox-stage{grid-column:2}
.hel-editorial-lightbox-next{grid-column:3}

@media (max-width:991.98px){
  .hel-home-page #latest>.container{max-width:760px!important}
  .featured-study-grid{grid-template-columns:1fr!important}
  .featured-study-media,.featured-study-media img{min-height:0!important;max-height:none!important}
  .featured-study-media img{height:auto!important;aspect-ratio:3/2;object-fit:contain!important}
  .featured-study-content{padding:1.35rem!important}
  .featured-study-title{font-size:clamp(1.65rem,6.2vw,2.25rem)!important}
  .figure-grid.hel-editorial-slider > .figure-tile{flex-basis:88%!important;width:88%!important}
  .hel-field-gallery.hel-editorial-slider > [class*="col-"],
  #field-note-gallery .row.hel-editorial-slider > [class*="col-"]{flex-basis:86%!important;width:86%!important}
}

@media (max-width:575.98px){
  .featured-study-card{border-radius:14px!important}
  .featured-study-content{padding:1.1rem!important}
  .featured-study-summary{font-size:.93rem!important}
  .figure-grid.hel-editorial-slider > .figure-tile,
  .hel-field-gallery.hel-editorial-slider > [class*="col-"],
  #field-note-gallery .row.hel-editorial-slider > [class*="col-"]{
    flex-basis:92%!important;
    width:92%!important;
  }
  .figure-grid.hel-editorial-slider > .figure-tile img{
    height:min(68svh,480px)!important;
  }
  .hel-editorial-gallery-controls{justify-content:space-between}
  .hel-editorial-gallery-prev,.hel-editorial-gallery-next{width:42px;height:42px}
  .hel-editorial-lightbox{
    grid-template-columns:1fr;
    padding:.65rem;
  }
  .hel-editorial-lightbox-stage{grid-column:1;grid-row:1;align-self:center}
  .hel-editorial-lightbox-prev,
  .hel-editorial-lightbox-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:2;
  }
  .hel-editorial-lightbox-prev{left:.6rem}
  .hel-editorial-lightbox-next{right:.6rem}
  .hel-editorial-lightbox-stage img{max-height:72svh}
  .hel-editorial-lightbox-caption{padding:0 2.6rem;font-size:.82rem}
}

@media (prefers-reduced-motion:reduce){
  .featured-study-media img{transition:none!important;transform:none!important}
  .hel-editorial-gallery-prev,.hel-editorial-gallery-next{transition:none!important}
}
