/* Shared layouts for the shorter homepage and its focused detail pages. */
.detail-page main{padding-top:88px;min-height:70vh}
.detail-page .fr,.home-overview .sec .fr{opacity:1;transform:none}
.detail-page{padding-bottom:0}
.detail-page #hdr{background:rgba(4,7,15,.94);border-bottom:1px solid var(--line)}
.detail-page [id],.home-overview [id]{scroll-margin-top:100px}
.page-heading{max-width:1120px;margin:0 auto;padding:58px 28px 34px}
.page-heading h1{font-size:clamp(2.2rem,5vw,3.7rem);max-width:850px;margin-bottom:20px;line-height:1.12}
.page-heading p{max-width:65ch;color:var(--muted);font-size:1.08rem}
.page-heading .eyebrow{margin-bottom:14px}
.page-wrap{max-width:1120px;margin:0 auto;padding:0 28px}
.page-nav{max-width:1120px;margin:0 auto 32px;padding:0 28px;display:flex;gap:10px;flex-wrap:wrap}
.page-nav a{padding:8px 15px;border:1px solid var(--line);border-radius:30px;color:var(--muted);font-size:.88rem}
.page-nav a:hover{color:var(--text);border-color:var(--teal)}
.detail-page .sec{padding:48px 0}
.detail-page .sec-tight{padding:36px 0}
.detail-page .section-head{margin-bottom:32px}
.detail-page #about{padding-top:22px}
.detail-page #final{padding:64px 28px 90px}
.detail-page #final .pitch h1{font-size:clamp(1.9rem,3.6vw,2.8rem);margin-bottom:16px;line-height:1.15}
.detail-page .cform h2{font-size:1.2rem;margin-bottom:6px}
.detail-page .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border:1px solid var(--line);border-radius:10px;font-weight:600}
.detail-page .btn-hot{background:var(--amber);color:var(--ink);border-color:var(--amber)}
.section-disclosure{border:1px solid var(--line);border-radius:16px;margin:18px auto;background:rgba(11,19,34,.5);overflow:hidden}
.section-disclosure>summary{cursor:pointer;padding:22px 26px;font-family:'Space Grotesk',sans-serif;font-size:1.14rem;font-weight:600}
.section-disclosure[open]>summary{border-bottom:1px solid var(--line);color:var(--amber-2)}
.section-disclosure>.sec,.section-disclosure>.sec-tight{padding:28px 0}
.home-overview .sec{padding:66px 0}
.home-overview .section-head{margin-bottom:32px}
.home-overview .aud-card{padding:30px}
.home-overview .aud-card>p{margin-bottom:16px}
.home-overview #about .about-wrap{align-items:center}
.home-overview .about-photo,.detail-page .about-photo{width:100%}
.home-overview .about-photo img,.detail-page .about-photo img{height:auto}
.home-overview #about .about-body p{max-width:65ch}
.text-link{display:inline-flex;gap:10px;color:var(--amber-2);font-weight:600;margin-top:8px}
.chapter-grid{max-width:1120px;margin:0 auto;padding:0 28px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.chapter-link{display:flex;flex-direction:column;padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--panel);transition:transform .2s,border-color .2s}
.chapter-link:hover{transform:translateY(-3px);border-color:var(--teal)}
.chapter-link .chapter-number{font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.15em;color:var(--teal);margin-bottom:22px}
.chapter-link h3{font-size:1.35rem;line-height:1.2;margin-bottom:12px}
.chapter-link p{color:var(--muted);font-size:.94rem;flex:1}
.chapter-link .text-link{margin-top:24px;font-size:.9rem}
.home-overview #final{padding:68px 28px;background:radial-gradient(600px 240px at 50% 100%,rgba(0,174,165,.08),transparent)}
.home-overview #final .inner{display:block;max-width:720px;text-align:center}
.home-overview #final h2{font-size:clamp(2rem,4vw,3rem);margin-bottom:18px}
.home-overview #final p{color:var(--muted);max-width:52ch;margin:0 auto 26px}
.home-overview #final .hero-ctas{margin-top:0}
.navlink[aria-current="page"]{color:var(--amber-2)}
@media(max-width:760px){
  .page-heading{padding:34px 24px 24px}
  .page-heading h1{font-size:2.25rem}
  .page-wrap,.page-nav{padding-left:24px;padding-right:24px}
  .detail-page #final{padding:36px 24px 60px}
  .home-overview .sec{padding:44px 0}
  .home-overview .section-head{margin-bottom:24px}
  .home-overview .aud-card{padding:24px}
  .chapter-grid{grid-template-columns:1fr;gap:12px;padding:0 24px}
  .chapter-link{padding:22px}
  .chapter-link .chapter-number{margin-bottom:10px}
  .chapter-link .text-link{margin-top:16px}
  .home-overview #final{padding:48px 24px}
}
@media(prefers-reduced-motion:reduce){.chapter-link{transition:none}.chapter-link:hover{transform:none}}

/* Keep the homepage's visual story, with shorter chapters than the original. */
.home-overview .home-story{height:180vh;scroll-margin-top:0}
.home-overview .home-story .pin{padding-top:64px}
@media(max-width:900px){
  .home-overview .home-story{height:auto!important}
  .home-overview .home-story .pin{position:relative;top:auto;height:auto;min-height:0;display:block;padding:38px 0}
  .home-overview .home-story .pin-viz{height:min(58vh,420px)}
  .home-overview .home-story .pin-inner{gap:12px}
  .home-overview .home-story .pin-viz{margin-top:10px}
}
@media(prefers-reduced-motion:reduce){
  .home-overview .home-story{height:auto!important}
  .home-overview .home-story *{transition:none!important}
  .home-overview .home-story .pin{position:relative;height:auto;min-height:0;padding:48px 0}
}
