:root {
  --ink: #12242c;
  --muted: #5d6c70;
  --paper: #f5f0e6;
  --paper-deep: #e9e1d3;
  --white: #fffdf8;
  --dark: #102b35;
  --cyan: #47a9a5;
  --coral: #e66e50;
  --gold: #d6a33f;
  --violet: #796b9c;
  --line: rgba(18, 36, 44, .17);
  --serif: Iowan Old Style, Baskerville, "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 17px/1.7 var(--sans); }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.progress { position: fixed; z-index: 100; inset: 0 0 auto; height: 3px; }
.progress span { display: block; width: 0; height: 100%; background: var(--coral); }
.topbar { position: sticky; z-index: 50; top: 0; height: 60px; padding: 0 clamp(18px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; background: rgba(245, 240, 230, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 850; letter-spacing: .1em; text-decoration: none; }
.brand svg { width: 32px; height: 32px; padding: 5px; color: var(--paper); background: var(--ink); }
.brand path { fill: none; stroke: currentColor; stroke-width: 2; }
.brand circle { fill: var(--coral); }
.topbar nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.topbar nav a { color: var(--muted); font-size: 14px; font-weight: 750; text-decoration: none; }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--coral); }

.hero { min-height: calc(100vh - 60px); padding: clamp(64px, 8vw, 118px) clamp(22px, 7vw, 112px); display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); align-items: center; gap: clamp(36px, 7vw, 112px); overflow: hidden; }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--coral); font-size: 12px; font-weight: 850; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 28px; font: 700 clamp(50px, 6.4vw, 96px)/1.01 var(--serif); letter-spacing: -.055em; }
h1 em { display: inline-block; color: var(--coral); font-weight: 400; }
.deck { max-width: 700px; color: #344b52; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin: 34px 0 48px; }
.button { padding: 12px 18px; border: 1px solid var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.button.primary { color: var(--paper); background: var(--ink); }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(18, 36, 44, .12); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); gap: 18px; max-width: 690px; margin: 0; }
.hero-stats div { padding-top: 12px; border-top: 1px solid var(--line); }
.hero-stats dt { font: 700 30px/1 var(--serif); }
.hero-stats dd { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.hero-visual { width: min(100%, 690px); justify-self: end; }
.hero-visual svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 45px rgba(18, 36, 44, .11)); }
.visual-field { fill: var(--white); stroke: var(--line); }
.density path:first-child { fill: #b9d8d3; }
.density path:last-child { fill: #f0b39d; opacity: .64; }
.backbone path { fill: none; stroke: var(--dark); stroke-width: 8; stroke-linecap: round; }
.atoms circle { fill: var(--coral); stroke: var(--white); stroke-width: 3; }
.residue-links path { fill: none; stroke: var(--violet); stroke-width: 2; stroke-dasharray: 5 7; }
.residue-links circle { fill: var(--violet); }
.coordinate-card rect, .trajectory rect { fill: var(--dark); }
.coordinate-card text { fill: #f7d985; font: 700 12px var(--sans); }
.trajectory path { fill: none; stroke: #f7d985; stroke-width: 3; }
.trajectory circle { fill: #f7d985; }
.trajectory text { fill: #dce7e5; font: 700 9px var(--sans); letter-spacing: .08em; }
.visual-labels { fill: var(--muted); font: 800 9px var(--sans); letter-spacing: .18em; }

.section { padding: clamp(80px, 10vw, 150px) clamp(22px, 7vw, 112px); border-top: 1px solid var(--line); }
.section-head { max-width: 920px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 22px; font: 700 clamp(42px, 5.3vw, 76px)/1.04 var(--serif); letter-spacing: -.045em; }
.section-head > p:last-child { max-width: 800px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.section-head.light > p:last-child { color: #b8c8ca; }

.rules-section, .audit-section { color: var(--paper); background: var(--dark); }
.gate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gate-card { min-height: 360px; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.gate-card.impact { background: #173e48; }
.gate-card.landmark { background: #3e3852; }
.gate-index { float: right; color: rgba(255,255,255,.24); font: italic 500 76px/1 var(--serif); }
.gate-type { margin-bottom: 28px; color: #f0c86a; font-size: 12px; font-weight: 850; letter-spacing: .14em; }
/* #f0c86a is the gold for the dark .gate-card. .evidence-card is a cream panel,
   where the same gold reads 1.4:1; this is the same hue darkened to clear AA. */
.evidence-card .gate-type { color: #8c670e; }
.gate-card h3 { margin-bottom: 20px; font: 700 clamp(27px, 3vw, 39px)/1.14 var(--serif); }
.gate-card p:not(.gate-type) { color: #c0ccce; font-size: 15px; line-height: 1.75; }
.gate-card strong { display: block; margin-top: 30px; color: #f0c86a; font: 700 22px var(--serif); }
.scope-line, .exclusion-line { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.scope-line > *, .exclusion-line > * { padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #c2ced0; font-size: 13px; }
.scope-line b { color: var(--dark); background: #f0c86a; border-color: #f0c86a; }
.exclusion-line { margin-top: 9px; }
.exclusion-line b { color: #fff; background: var(--coral); border-color: var(--coral); }

.shape-section { background: var(--paper-deep); }
.chart-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 16px; }
.chart-panel { min-width: 0; margin: 0; padding: 22px; background: var(--white); border: 1px solid var(--line); }
.timeline-panel { grid-row: span 2; }
.chart-panel figcaption { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; color: var(--ink); font-size: 15px; }
.chart-panel figcaption span { color: var(--muted); font-size: 13px; }
.timeline-scroll { overflow-x: auto; }
.timeline-scroll svg { display: block; min-width: 780px; width: 100%; height: auto; }
.journal-bars { display: grid; gap: 9px; }
.journal-row { display: grid; grid-template-columns: minmax(0, 1fr) 116px 28px; gap: 9px; align-items: center; font-size: 13px; }
.journal-track { height: 7px; background: #e5ded2; }
.journal-track i { display: block; height: 100%; background: var(--cyan); }
.journal-row strong { text-align: right; }
.method-cloud { display: flex; flex-wrap: wrap; align-content: start; gap: 8px; }
.method-cloud span { padding: 6px 9px; border: 1px solid var(--line); background: #f6f0e5; font-size: 13px; }
.method-cloud span b { color: var(--coral); }
.cluster-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.cluster-card { min-height: 210px; padding: 22px; display: flex; flex-direction: column; align-items: stretch; border: 0; color: var(--white); background: var(--cluster-color); text-align: left; cursor: pointer; box-shadow: 0 0 0 rgba(18,36,44,0); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.cluster-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(18,36,44,.16); filter: saturate(1.08); }
.cluster-card.is-selected { box-shadow: inset 0 0 0 3px rgba(255,255,255,.78), 0 14px 28px rgba(18,36,44,.18); }
.cluster-card .cluster-count { font: 700 34px/1 var(--serif); }
.cluster-card h3 { margin: 25px 0 8px; font: 700 21px/1.28 var(--serif); }
.cluster-card p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.62; }
.cluster-card .cluster-action { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font: 800 13px/1.2 var(--sans); }
.cluster-card .cluster-action i { font-style: normal; font-size: 18px; transition: transform .2s ease; }
.cluster-card:hover .cluster-action i { transform: translateX(4px); }

.atlas-section { background: var(--paper); }
.atlas-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.atlas-head > div:first-child { max-width: 900px; }
.question-key { display: grid; grid-template-columns: repeat(5, auto); gap: 13px; padding-bottom: 8px; }
.question-key span { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.question-key b { display: grid; place-items: center; width: 26px; height: 26px; color: var(--paper); background: var(--ink); border-radius: 50%; }
.atlas-tools { position: sticky; z-index: 20; top: 60px; margin: 0 -10px 32px; padding: 14px 10px 13px; background: rgba(245,240,230,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.view-switch-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 10px; }
.view-switch-row > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.view-switch-row b { font-size: 14px; }
.view-switch-row span { color: var(--muted); font-size: 13px; }
.view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.view-switch button { min-width: 80px; padding: 7px 11px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 0; border-radius: 5px; background: transparent; font-size: 13px; font-weight: 800; cursor: pointer; }
.view-switch button[aria-pressed="true"] { color: var(--white); background: var(--ink); }
.view-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.view-switch rect { fill: currentColor; stroke: none; }
.search-box { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; border: 1px solid var(--ink); background: var(--white); }
.search-box span { padding: 0 16px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.search-box input { min-width: 0; padding: 13px 14px; border: 0; border-left: 1px solid var(--line); outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-box:focus-within { box-shadow: 0 0 0 3px rgba(71,169,165,.25); }
.select-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.select-row label { display: flex; align-items: center; gap: 8px; padding-left: 11px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 13px; font-weight: 800; }
.select-row select { min-width: 120px; padding: 7px 30px 7px 7px; border: 0; background: transparent; color: var(--ink); font-size: 13px; }
.select-row button { padding: 7px 13px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 13px; font-weight: 800; }
.cluster-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cluster-filter { padding: 6px 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px; }
.cluster-filter[aria-pressed="true"] { color: var(--white); background: var(--cluster-color, var(--ink)); border-color: var(--cluster-color, var(--ink)); }
.filter-status { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.filter-status:focus { outline: 0; }
.paper-groups { display: grid; gap: 48px; }
.paper-group { scroll-margin-top: 270px; }
.paper-group-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 12px; }
.paper-group-head i { width: 11px; height: 11px; background: var(--cluster-color); border-radius: 50%; }
.paper-group-head h3 { margin: 0; font: 700 clamp(26px, 3vw, 38px)/1.1 var(--serif); }
.paper-group-head span { color: var(--muted); font-size: 14px; }
.paper-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.paper-tile { min-width: 0; min-height: 500px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--cluster-color); box-shadow: 0 8px 20px rgba(18,36,44,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.paper-tile:hover { transform: translateY(-5px); border-color: var(--cluster-color); box-shadow: 0 20px 38px rgba(18,36,44,.11); }
.paper-tile-trigger { width: 100%; height: 100%; padding: 20px; display: flex; flex-direction: column; align-items: stretch; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.paper-tile-trigger:focus-visible { outline-offset: -4px; }
.tile-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.tile-meta b { color: var(--cluster-color); }
.paper-tile h4 { margin: 12px 0 9px; font: 700 clamp(20px, 1.5vw, 22px)/1.35 var(--serif); display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tile-cluster { color: var(--cluster-color); font-size: 13px; font-weight: 850; }
.tile-tags { min-height: 58px; margin: 11px 0 13px; display: flex; flex-wrap: wrap; align-content: start; gap: 6px; }
.tile-tags .badge { font-size: 13px; }
.tile-brief { margin-bottom: 18px; padding: 14px; display: grid; gap: 8px; color: #42575c; background: var(--paper); border-left: 3px solid var(--cluster-color); }
.tile-brief b { color: var(--cluster-color); font-size: 12px; letter-spacing: .07em; }
.tile-brief > span { font-size: 15px; line-height: 1.72; }
.tile-action { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; color: var(--cluster-color); border-top: 1px solid var(--line); font-size: 14px; font-weight: 850; }
.tile-action i { font-style: normal; transition: transform .2s ease; }
.paper-tile:hover .tile-action i { transform: translate(3px, -3px); }
.paper-list { border-top: 1px solid var(--line); }
.paper-card { border-bottom: 1px solid var(--line); }
.paper-card[open] { margin: 0 -18px; padding: 0 18px 18px; background: var(--white); border-color: transparent; box-shadow: 0 16px 34px rgba(18,36,44,.07); }
.paper-card summary { display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(180px, 330px) 22px; gap: 18px; align-items: start; padding: 17px 0; cursor: pointer; list-style: none; }
.paper-card summary::-webkit-details-marker { display: none; }
.paper-year { padding-top: 3px; color: var(--muted); font: 700 14px var(--serif); }
.paper-title h4 { margin: 0 0 7px; font: 700 clamp(20px, 1.5vw, 22px)/1.35 var(--serif); }
.paper-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.badge { padding: 2px 6px; border: 1px solid var(--line); border-radius: 999px; }
.badge.channel { color: var(--cluster-color); border-color: currentColor; }
.paper-advance { max-width: 330px; padding-top: 2px; color: #42575c; font-size: 15px; line-height: 1.6; }
.paper-card summary::after { content: "+"; grid-column: 4; justify-self: end; color: var(--cluster-color); font: 700 22px/1 var(--serif); }
.paper-card[open] summary::after { content: "×"; }
.paper-card[open] .paper-advance { display: none; }
.paper-body { padding: 4px 0 8px 96px; }
.five-answers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); }
.answer { min-height: 190px; padding: 16px; border-right: 1px solid var(--line); }
.answer:last-child { border-right: 0; }
.answer b { display: block; margin-bottom: 14px; color: var(--cluster-color); font-size: 13px; letter-spacing: .06em; }
.answer p { margin: 0; font-size: 15px; line-height: 1.75; }
.paper-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 12px; }
.paper-links a { color: var(--cluster-color); font-size: 14px; font-weight: 850; text-underline-offset: 3px; }
.paper-links span { color: var(--muted); font-size: 13px; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px solid var(--line); }

.paper-dialog { width: min(1180px, calc(100vw - 48px)); max-height: calc(100vh - 48px); padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(8,22,28,.38); }
.paper-dialog::backdrop { background: rgba(10,25,31,.74); backdrop-filter: blur(7px); }
.dialog-shell { position: relative; }
.dialog-close { position: sticky; z-index: 3; top: 14px; float: right; width: 44px; height: 44px; margin: 14px 14px -58px 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: var(--white); background: rgba(18,36,44,.78); font: 400 27px/1 var(--sans); cursor: pointer; backdrop-filter: blur(8px); }
.dialog-hero { min-height: 280px; padding: 52px 64px; display: grid; align-items: center; color: var(--white); background: var(--cluster-color); }
.dialog-heading { max-width: 940px; }
.dialog-heading > p { margin-bottom: 14px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 800; }
.dialog-heading h2 { margin: 0 0 20px; font: 700 clamp(30px, 4vw, 50px)/1.13 var(--serif); letter-spacing: -.025em; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.dialog-tags .badge { border-color: rgba(255,255,255,.48); font-size: 13px; }
.dialog-tags .cluster-badge { color: var(--cluster-color); background: var(--white); border-color: var(--white); font-weight: 850; }
.dialog-answers { padding: 34px 42px 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dialog-answers section { min-width: 0; padding: 0 20px 24px; border-left: 1px solid var(--line); }
.dialog-answers section:first-child { padding-left: 0; border-left: 0; }
.dialog-answers section:last-child { padding-right: 0; }
.dialog-answers section > span { color: var(--cluster-color); font: 700 24px/1 var(--serif); }
.dialog-answers h3 { margin: 9px 0 13px; font: 700 20px/1.25 var(--serif); }
.dialog-answers p { margin: 0; font-size: 15px; line-height: 1.72; }
.dialog-citation { margin: 0 42px 40px; padding: 20px 0 0; display: grid; grid-template-columns: 2fr 1fr .7fr auto; gap: 18px; align-items: start; border-top: 1px solid var(--line); }
.dialog-citation b { color: var(--cluster-color); font-size: 13px; }
.dialog-citation p { margin: 4px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.dialog-citation a { align-self: center; padding: 10px 14px; color: var(--white); background: var(--cluster-color); font-size: 14px; font-weight: 850; text-decoration: none; }

.audit-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.funnel { display: grid; gap: 9px; align-content: start; padding: 26px; border: 1px solid rgba(255,255,255,.2); }
.funnel div { width: var(--w); min-width: 44%; padding: 13px 16px; display: flex; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.08); border-left: 4px solid #f0c86a; }
.funnel strong { font: 700 23px/1 var(--serif); }
.funnel span { color: #bdc9cb; font-size: 13px; text-align: right; }
.evidence-card { padding: 28px; color: var(--ink); background: var(--paper); }
.evidence-card h3 { font: 700 27px/1.22 var(--serif); }
.evidence-card > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.evidence-levels { display: grid; gap: 8px; }
.evidence-level { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.evidence-level b { color: var(--coral); }
.coverage-panel { margin-top: 18px; color: var(--ink); background: var(--paper); }
.coverage-head { padding: 26px 28px 12px; display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.coverage-head h3 { margin: 0; font: 700 28px var(--serif); }
.coverage-head p { margin: 0; color: var(--muted); font-size: 14px; }
.coverage-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 28px; border-top: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--muted); font-size: 13px; letter-spacing: .05em; }
tbody td:not(:first-child) { font: 700 15px var(--serif); }
.audit-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.audit-notes article { padding: 24px; border: 1px solid rgba(255,255,255,.18); }
.audit-notes span { color: #f0c86a; font-size: 13px; font-weight: 850; letter-spacing: .1em; }
.audit-notes h3 { margin: 14px 0 10px; font: 700 20px var(--serif); }
.audit-notes p { margin: 0; color: #b9c6c8; font-size: 15px; }
.venue-list { margin-top: 18px; border: 1px solid rgba(255,255,255,.18); }
.venue-list summary { padding: 16px 20px; cursor: pointer; color: #f0c86a; font-size: 14px; font-weight: 800; }
.venue-list div { padding: 0 20px 16px; color: #bac7c9; font-size: 15px; }
.venue-list p:last-child { margin-bottom: 0; }

footer { padding: 26px clamp(22px,7vw,112px); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .05em; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 620px); justify-self: center; }
  .chart-layout { grid-template-columns: 1fr; }
  .timeline-panel { grid-row: auto; }
  .cluster-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .paper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-head { grid-template-columns: 1fr; }
  .question-key { justify-self: start; }
  .paper-card summary { grid-template-columns: 62px minmax(0,1fr) 22px; }
  .paper-advance { display: none; }
  .paper-card summary::after { grid-column: 3; grid-row: 1; }
  .paper-body { padding-left: 80px; }
  .five-answers { grid-template-columns: 1fr 1fr; }
  .answer { min-height: 0; border-bottom: 1px solid var(--line); }
  .answer:nth-child(2n) { border-right: 0; }
  .answer:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .dialog-answers { grid-template-columns: 1fr 1fr; }
  .dialog-answers section, .dialog-answers section:first-child, .dialog-answers section:last-child { padding: 0 18px 24px; border-left: 1px solid var(--line); }
  .dialog-answers section:nth-child(odd) { padding-left: 0; border-left: 0; }
  .dialog-citation { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar nav a:nth-child(2) { display: none; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(46px, 15vw, 70px); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-visual { margin: -12px 0 -20px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .gate-grid { grid-template-columns: 1fr; }
  .gate-card { min-height: 0; }
  .cluster-cards { grid-template-columns: 1fr; }
  .cluster-card { min-height: 210px; }
  .question-key { gap: 8px; }
  .view-switch-row { align-items: stretch; flex-direction: column; gap: 9px; }
  .view-switch { align-self: stretch; }
  .view-switch button { flex: 1; }
  .search-box { grid-template-columns: 1fr; }
  .search-box span { padding: 8px 12px 0; }
  .search-box input { border-left: 0; }
  .select-row label { flex: 1 1 145px; justify-content: space-between; }
  .select-row select { min-width: 0; width: 100%; }
  .paper-card summary { grid-template-columns: 48px minmax(0,1fr) 20px; gap: 10px; }
  .paper-card[open] { margin: 0 -8px; padding: 0 8px 10px; }
  .paper-grid { grid-template-columns: 1fr; }
  .paper-tile { min-height: 0; }
  .paper-body { padding-left: 0; }
  .five-answers { grid-template-columns: 1fr; }
  .answer, .answer:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .answer:last-child { grid-column: auto; }
  .audit-layout, .audit-notes { grid-template-columns: 1fr; }
  .funnel { padding: 16px; }
  .funnel div { width: 100%; }
  .coverage-head { align-items: start; flex-direction: column; }
  th, td { padding: 10px 16px; }
  footer { flex-direction: column; }
  .paper-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; }
  .paper-group { scroll-margin-top: 390px; }
  .dialog-hero { min-height: 0; padding: 68px 18px 32px; }
  .dialog-heading h2 { font-size: clamp(28px, 9vw, 42px); }
  .dialog-close { position: fixed; top: 8px; right: 8px; margin: 0; }
  .dialog-answers { padding: 26px 18px 8px; grid-template-columns: 1fr; }
  .dialog-answers section, .dialog-answers section:first-child, .dialog-answers section:last-child, .dialog-answers section:nth-child(odd) { padding: 0 0 24px; border-left: 0; border-bottom: 1px solid var(--line); }
  .dialog-answers section:last-child { border-bottom: 0; }
  .dialog-citation { margin: 0 18px 28px; grid-template-columns: 1fr; }
  .dialog-citation a { justify-self: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
