/* Rebranded copy of science.css. Generated, do not hand edit.
   14 colour values translated. See DESIGN.md.
   The original is kept untouched so the old look can be restored
   by pointing the <link> back at it. */

/* =====================================================================
   science.css — Elevated-brand design system for the Tellstone Science
   section (/science/). Shared by every page in /science/ AND served as
   the look for the methodology microsite.

   Pages served by this stylesheet:
     science/index.html · the-problem · the-composite · forced-choice
     independent-review · dataset · validation · honest-limits
     references · faq

   Self-contained: pages do NOT load the main-site style.css or main.js.
   Fonts (Jost + Open Sans) and Bootstrap-Icons are linked per page.
   ===================================================================== */

/* ---------- Tokens ---------------------------------------------------- */
:root {
  --ink:        var(--ts-slate);   /* deepest navy — display headings */
  --navy:       var(--ts-matter);
  --navy-2:     var(--ts-slate);
  --accent:     var(--ts-glow);   /* brand cyan — the single accent */
  --accent-deep:var(--ts-glow-dark);
  --accent-soft:rgba(var(--ts-glow-rgb), 0.10);
  --accent-soft-2:rgba(var(--ts-glow-rgb), 0.18);

  --bg:         var(--ts-marble);   /* page surface */
  --surface:    #ffffff;
  --surface-2:  var(--ts-cloud);
  --text:       var(--ts-ink-blue);
  --text-strong:var(--ts-matter);
  --muted:      var(--ts-muted);
  --faint:      var(--ts-gray);
  --line:       var(--ts-river);
  --line-2:     var(--ts-marble);

  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 2px rgba(var(--ts-slate-rgb), 0.05);
  --shadow:     0 4px 18px rgba(var(--ts-slate-rgb), 0.07);
  --shadow-md:  0 12px 34px rgba(var(--ts-slate-rgb), 0.10);
  --shadow-lg:  0 24px 60px rgba(var(--ts-slate-rgb), 0.14);

  --maxw:       1080px;
  --readw:      720px;

  --grad: linear-gradient(120deg, var(--ts-glow) -20%, var(--ts-glow-dark) 12%, var(--ts-slate-2) 55%, var(--ts-slate) 100%);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .font-display { font-family: 'Jost', 'Open Sans', sans-serif; }
a { color: var(--accent-deep); }
img { max-width: 100%; display: block; }
.sci-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- Header / site nav ----------------------------------------- */
.sci-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.sci-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.sci-header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.85rem 1.4rem;
  display: flex; align-items: center; gap: 1.4rem;
}
.sci-logo {
  font-family: 'Jost', sans-serif; font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em; margin-right: auto;
}
.sci-logo:hover { color: var(--accent-deep); }
.sci-header-nav { display: flex; align-items: center; gap: 1.35rem; }
.sci-header-nav a {
  font-family: 'Jost', sans-serif; font-size: 0.92rem; font-weight: 500;
  color: var(--navy); text-decoration: none; transition: color .15s var(--ease);
  white-space: nowrap;
}
.sci-header-nav a:hover { color: var(--accent-deep); }
.sci-header-nav a.is-current { color: var(--accent-deep); font-weight: 600; }
.sci-btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 0.6rem 1.25rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; box-shadow: 0 4px 14px rgba(var(--ts-glow-rgb), 0.28);
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.sci-btn:hover { background: #997392; transform: translateY(-1px); color: #fff !important; box-shadow: 0 8px 22px rgba(var(--ts-glow-rgb), 0.34); }
.sci-nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy); cursor: pointer; padding: 0; line-height: 1; }

/* ---------- Hero ------------------------------------------------------ */
.sci-hero {
  position: relative; overflow: hidden;
  background: var(--grad); color: #fff;
  padding: 6.5rem 0 5rem;
}
.sci-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(var(--ts-glow-rgb), 0.45), transparent 60%),
    radial-gradient(700px 380px at 0% 120%, rgba(31, 39, 59, 0.6), transparent 55%);
  pointer-events: none;
}
.sci-hero .sci-wrap { position: relative; }
.sci-eyebrow {
  font-family: 'Jost', sans-serif; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.72);
  margin-bottom: 1.1rem;
}
.sci-hero h1 {
  font-weight: 700; font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.06;
  letter-spacing: -0.02em; margin: 0 0 1.15rem; max-width: 16ch;
}
.sci-hero .sci-lead {
  font-size: 1.18rem; line-height: 1.6; max-width: 660px; color: rgba(255,255,255,0.92); margin: 0;
}
.sci-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.sci-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; padding: 0.5rem 0.95rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 500; backdrop-filter: blur(4px);
}
.sci-chip i { color: #ddd7df; font-size: 0.95rem; }

/* Compact hero band for sub-pages */
.sci-pagehero { background: var(--grad); color: #fff; padding: 3.4rem 0 3rem; position: relative; overflow: hidden; }
.sci-pagehero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 360px at 92% -30%, rgba(var(--ts-glow-rgb), 0.4), transparent 60%);
}
.sci-pagehero .sci-wrap { position: relative; }
.sci-pagehero h1 { font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0.5rem 0 0.7rem; max-width: 20ch; }
.sci-pagehero .sci-lead { font-size: 1.05rem; color: rgba(255,255,255,0.9); max-width: 640px; margin: 0; }

/* ---------- Breadcrumb ------------------------------------------------ */
.sci-crumb { font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.sci-crumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.sci-crumb a:hover { color: #fff; text-decoration: underline; }
.sci-crumb .sep { margin: 0 0.45rem; opacity: 0.6; }

/* ---------- Section sub-nav (pill bar) -------------------------------- */
.sci-subnav {
  position: sticky; top: 60px; z-index: 30;
  background: rgba(249, 248, 250, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sci-subnav-inner {
  max-width: 1300px; margin: 0 auto; padding: 0.7rem 1.4rem;
  display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none;
}
.sci-subnav-inner::-webkit-scrollbar { display: none; }
.sci-subnav a {
  flex: 0 0 auto; font-family: 'Jost', sans-serif; font-size: 0.85rem; font-weight: 500;
  color: var(--navy); text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 50px;
  white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease);
}
.sci-subnav a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.sci-subnav a.is-current { background: var(--navy); color: #fff; }

/* ---------- Body / prose ---------------------------------------------- */
.sci-main { padding: 3.5rem 0 4rem; }
.sci-section { margin-bottom: 3.25rem; scroll-margin-top: 120px; }
.sci-section-eyebrow {
  font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.6rem;
}
.sci-section-title {
  font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink);
  line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 1.1rem;
}
.sci-h3 { font-family: 'Jost', sans-serif; font-weight: 600; color: var(--text-strong); font-size: 1.2rem; margin: 2rem 0 0.8rem; }
.sci-prose p { margin: 0 0 1.1rem; }
.sci-prose .lead { font-size: 1.12rem; color: #4a3646; }
.sci-prose a:not(.sci-btn):not(.sci-card) { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color .15s var(--ease); }
.sci-prose a:not(.sci-btn):not(.sci-card):hover { color: var(--ink); }
.sci-prose strong { color: var(--text-strong); font-weight: 700; }
.sci-prose ul { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.sci-prose ul li { margin-bottom: 0.55rem; }
.sci-prose ul li::marker { color: var(--accent); }
.sci-narrow { max-width: var(--readw); }

/* ---------- Citation pills (optional inline) -------------------------- */
.sci-cite {
  display: inline-block; background: var(--accent-soft); color: var(--accent-deep);
  font-size: 0.78rem; font-weight: 600; padding: 1px 7px; border-radius: 5px;
  text-decoration: none !important; margin: 0 1px; white-space: nowrap;
}
.sci-cite:hover { background: var(--accent-soft-2); color: var(--ink); }

/* ---------- Cards (hub topic grid) ------------------------------------ */
.sci-cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; margin: 1.5rem 0; }
.sci-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.35rem;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.sci-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ts-river); color: inherit; }
.sci-card-num {
  font-family: 'Jost', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-deep); margin-bottom: 0.6rem;
}
.sci-card h3 { font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 0 0 0.5rem; line-height: 1.25; }
.sci-card p { font-size: 0.94rem; color: var(--muted); margin: 0 0 0.9rem; line-height: 1.55; }
.sci-card .go { margin-top: auto; font-family: 'Jost', sans-serif; font-weight: 600; font-size: 0.88rem; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 0.35rem; }
.sci-card:hover .go i { transform: translateX(3px); }
.sci-card .go i { transition: transform .15s var(--ease); }

/* Editorial "contents" list — calm, journal-style table of contents for the hub */
.sci-index { margin: 1.6rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.sci-index a { display: grid; grid-template-columns: 2rem 1fr auto; gap: 1rem; align-items: center; padding: 1.05rem 1.4rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line-2); transition: background .15s var(--ease); }
.sci-index a:last-child { border-bottom: 0; }
.sci-index a:hover { background: var(--ts-cloud); }
.sci-index .n { font-family: 'Jost', sans-serif; font-weight: 700; color: var(--accent-deep); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.sci-index .tx h3 { margin: 0 0 0.12rem; font-family: 'Jost', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.sci-index .tx p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.sci-index .ar { color: var(--accent); font-size: 1.1rem; opacity: 0; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.sci-index a:hover .ar { opacity: 1; transform: translateX(3px); }

/* ---------- Stat tiles ------------------------------------------------ */
.sci-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1.6rem 0 2rem; }
.sci-stat {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.3rem 1.3rem;
}
.sci-stat-num { font-family: 'Jost', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; margin-bottom: 0.3rem; }
.sci-stat-label { font-size: 0.83rem; color: var(--muted); font-weight: 500; line-height: 1.4; }

/* ---------- Claim / quote callouts ------------------------------------ */
.sci-claim {
  background: linear-gradient(135deg, var(--ts-glow-tint) 0%, var(--surface-2) 100%);
  border: 1px solid var(--ts-river); border-radius: var(--radius); padding: 1.5rem 1.8rem; margin: 1.6rem 0;
}
.sci-claim .label { font-family: 'Jost', sans-serif; font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; margin-bottom: 0.55rem; }
.sci-claim .label a { color: inherit; }
.sci-claim p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text-strong); font-weight: 500; }

/* Featured expert-review card */
.sci-expert {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 2.2rem 2.2rem 2rem; margin: 1.8rem 0; position: relative; overflow: hidden;
}
.sci-expert::before { content: "\201C"; position: absolute; top: -0.4rem; right: 1.2rem; font-family: Georgia, serif; font-size: 7rem; color: var(--accent-soft); line-height: 1; }
.sci-expert .quote { font-size: 1.3rem; line-height: 1.5; color: var(--ink); font-weight: 500; font-style: italic; margin: 0 0 1.4rem; max-width: 40ch; position: relative; }
.sci-expert .who { display: flex; align-items: center; gap: 0.85rem; }
.sci-expert .badge {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Jost', sans-serif; font-weight: 700; font-size: 1.1rem;
}
.sci-expert .who .name { font-family: 'Jost', sans-serif; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.sci-expert .who .name a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sci-expert .who .title { font-size: 0.85rem; color: var(--muted); }

/* ---------- Tables ---------------------------------------------------- */
.sci-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sci-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.sci-table th {
  text-align: left; padding: 0.7rem 1rem; background: var(--ts-marble); color: var(--navy); font-weight: 700;
  border-bottom: 2px solid var(--line); font-family: 'Jost', sans-serif; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.sci-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-2); color: var(--text); font-variant-numeric: tabular-nums; }
.sci-table tr:last-child td { border-bottom: 0; }
.sci-table td:first-child { font-weight: 600; color: var(--text-strong); }
.sci-table tbody tr { transition: background .12s var(--ease); }
.sci-table tbody tr:hover td { background: var(--ts-cloud); }
.sci-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }

/* Distribution bars (polished alternative for the personality table) */
.sci-dist { margin: 1.4rem 0 1.8rem; display: grid; gap: 0.85rem; }
.sci-dist-row { display: grid; grid-template-columns: 1fr; gap: 0.3rem; }
.sci-dist-poles { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.sci-dist-poles .lhs { color: var(--navy); } .sci-dist-poles .rhs { color: var(--accent-deep); }
.sci-dist-track { position: relative; height: 12px; background: var(--accent-soft); border-radius: 50px; overflow: hidden; }
.sci-dist-fill { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(90deg, var(--navy), var(--accent)); border-radius: 50px; transition: width .9s var(--ease); }

/* ---------- FAQ accordion --------------------------------------------- */
.sci-faq { margin: 1.5rem 0; display: grid; gap: 0.7rem; }
.sci-faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.sci-faq-item[open] { box-shadow: var(--shadow); border-color: var(--ts-river); }
.sci-faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: 'Jost', sans-serif;
  font-weight: 600; font-size: 1.04rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.sci-faq-item summary::-webkit-details-marker { display: none; }
.sci-faq-item summary::after { content: "+"; font-family: 'Jost', sans-serif; font-weight: 400; color: var(--accent); transition: transform .25s var(--ease); font-size: 1.6rem; line-height: 1; flex: 0 0 auto; }
.sci-faq-item[open] summary::after { transform: rotate(45deg); }
.sci-faq-item .body { padding: 0 1.3rem 1.2rem; color: var(--text); }
.sci-faq-item .body p { margin: 0 0 0.8rem; }
.sci-faq-item .body p:last-child { margin-bottom: 0; }

/* ---------- References ------------------------------------------------ */
.sci-refs { display: grid; gap: 1.6rem; }
.sci-ref-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; scroll-margin-top: 130px; }
.sci-ref-group h3 { font-family: 'Jost', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 0.9rem; }
.sci-ref-group ul { list-style: none; padding: 0; margin: 0; }
.sci-ref-group li { padding: 0.5rem 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.sci-ref-group li:last-child { border-bottom: 0; }
.sci-ref-group a { color: var(--accent-deep); text-decoration: none; }
.sci-ref-group a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Inline "next / related" --------------------------------- */
.sci-pager { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.sci-pager a { flex: 1 1 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.sci-pager a:hover { border-color: var(--ts-river); box-shadow: var(--shadow); }
.sci-pager .dir { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-family: 'Jost', sans-serif; font-weight: 600; }
.sci-pager .ttl { font-family: 'Jost', sans-serif; font-weight: 600; color: var(--ink); }

/* ---------- CTA ------------------------------------------------------- */
.sci-cta { background: var(--grad); color: #fff; text-align: center; padding: 3.6rem 0; position: relative; overflow: hidden; margin-top: 1rem; }
.sci-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% -40%, rgba(var(--ts-glow-rgb), 0.4), transparent 60%); }
.sci-cta .sci-wrap { position: relative; }
.sci-cta h2 { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.6rem; }
.sci-cta p { opacity: 0.9; margin: 0 0 1.6rem; font-size: 1.05rem; }

/* ---------- Footer ---------------------------------------------------- */
.sci-footer { background: #181f2e; color: rgba(255,255,255,0.7); padding: 2.4rem 0; font-size: 0.9rem; }
.sci-footer .sci-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: center; justify-content: space-between; }
.sci-footer a { color: var(--accent); text-decoration: none; }
.sci-footer a:hover { text-decoration: underline; }
.sci-footer .links a { margin-left: 1rem; }

/* ---------- Back to top ---------------------------------------------- */
.sci-top { position: fixed; right: 1.3rem; bottom: 1.3rem; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; text-decoration: none; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease); box-shadow: var(--shadow-md); z-index: 40; }
.sci-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.sci-top:hover { background: var(--accent-deep); color: #fff; }

/* ---------- Scroll reveal --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .sci-wrap { padding: 0 1.1rem; }

  /* Nav → hamburger dropdown */
  .sci-header-nav { display: none; }
  .sci-nav-toggle { display: block; }
  .sci-header-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 1.2rem 1.4rem; box-shadow: var(--shadow);
  }

  /* Heroes — tighter, less vertical real estate */
  .sci-hero { padding: 4rem 0 3rem; }
  .sci-hero .sci-lead { font-size: 1.04rem; }
  .sci-pagehero { padding: 2.6rem 0 2.2rem; }

  /* On mobile the section sub-nav scrolls away (static) so one slim sticky
     header is the only fixed chrome — keeps reading space clean. */
  .sci-subnav { position: static; }
  .sci-subnav-inner { flex-wrap: nowrap; overflow-x: auto; }

  /* Tighter rhythm */
  .sci-main { padding: 2.6rem 0 3rem; }
  .sci-section { margin-bottom: 2.4rem; }
  .sci-claim { padding: 1.2rem 1.3rem; }
  .sci-ref-group { padding: 1.15rem 1.25rem; }
  .sci-cta { padding: 2.8rem 0; }

  /* Contents list — drop the hover-only arrow (no hover on touch) */
  .sci-index a { grid-template-columns: 1.7rem 1fr; gap: 0.8rem; padding: 0.95rem 1.1rem; }
  .sci-index .ar { display: none; }

  /* Footer stacks cleanly */
  .sci-footer .sci-wrap { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .sci-footer .links a { margin-left: 0; margin-right: 1rem; }

  /* Smaller floating back-to-top */
  .sci-top { right: 1rem; bottom: 1rem; width: 40px; height: 40px; font-size: 1.25rem; }
}

@media (max-width: 420px) {
  .sci-hero h1 { font-size: 2.05rem; }
  .sci-chips { gap: 0.45rem; }
  .sci-chip { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
}
