:root {
  --canvas: oklch(0.985 0.004 235);
  --surface: oklch(1 0 0);
  --ink: oklch(0.25 0.04 245);
  --muted: oklch(0.47 0.025 240);
  --line: oklch(0.86 0.018 235);
  --blue: oklch(0.39 0.09 246);
  --blue-dark: oklch(0.28 0.065 246);
  --blue-soft: oklch(0.94 0.018 240);
  --teal: oklch(0.48 0.09 184);
  --teal-soft: oklch(0.93 0.025 184);
  --amber: oklch(0.64 0.12 72);
  --amber-ink: oklch(0.48 0.1 72);
  --amber-soft: oklch(0.94 0.04 80);
  --red: oklch(0.53 0.16 27);
  --red-soft: oklch(0.95 0.025 27);
  --white-ink: oklch(0.95 0.01 230);
  --max: 1180px;
  --narrative: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  color: var(--ink);
  background: var(--canvas);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
}

button, a { font: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--canvas) 96%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 28px;
  color: var(--surface);
  background: var(--blue);
  border-radius: 3px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy { display: grid; line-height: 1.12; font-size: 0.78rem; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 0.67rem; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--blue-dark);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle-lines {
  width: 18px;
  display: grid;
  gap: 4px;
}

.nav-toggle-lines span {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:last-child { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid color-mix(in oklch, var(--teal) 70%, white); outline-offset: 3px; }

.nav a {
  text-decoration: none;
  text-underline-offset: 3px;
}

.nav a:hover,
.nav a:focus-visible,
.nav-source { color: var(--blue); text-decoration: underline; }

.nav-source { font-weight: 750; }

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 56px;
  align-items: center;
  padding: 76px 0 38px;
}

.paper-kicker,
.section-kicker {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin-bottom: 12px;
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(1.85rem, 3.3vw, 3.05rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.3;
}

.hero-subtitle {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(1.06rem, 2vw, 1.42rem);
  font-weight: 750;
}

.hero-thesis {
  max-width: 660px;
  margin-bottom: 18px;
  color: var(--ink);
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.28;
}

.hero-abstract {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.04rem;
}

.reader-summary {
  max-width: 720px;
  margin: -8px 0 28px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 750;
}

.button-primary { color: var(--surface); background: var(--blue); }
.button-primary:hover, .button-primary:focus-visible { background: var(--blue-dark); }
.button-secondary { color: var(--blue); background: var(--surface); }
.button-secondary:hover, .button-secondary:focus-visible { background: var(--blue-soft); }

.scope-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0 26px;
  background: var(--blue-soft);
  border-top: 3px solid var(--blue);
}

.hero-scope { padding-bottom: 54px; }

.scope-panel h2 {
  margin-bottom: 18px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.scope-panel h2 { padding-left: 20px; }
.scope-panel dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.scope-panel dl > div { padding: 0 20px; border-left: 1px solid color-mix(in oklch, var(--blue) 25%, var(--line)); }
.scope-panel dl > div:first-child { border-top: 0; }
.scope-panel dt { margin-bottom: 4px; color: var(--blue); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.scope-panel dd { margin: 0; color: var(--ink); font-size: 0.88rem; }

.band-light { padding: 68px 0; background: var(--blue-soft); border-bottom: 1px solid var(--line); }
.band-blue { padding: 76px 0; color: var(--white-ink); background: var(--blue-dark); }
.band-boundary { padding: 72px 0; background: var(--amber-soft); border-top: 1px solid color-mix(in oklch, var(--amber) 45%, var(--line)); border-bottom: 1px solid color-mix(in oklch, var(--amber) 45%, var(--line)); }
.band-reader { padding: 72px 0; background: var(--blue-soft); border-top: 1px solid var(--line); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  transform: translateY(-180%);
  padding: 10px 14px;
  color: var(--surface);
  background: var(--blue-dark);
  text-decoration: none;
  transition: transform 160ms ease-out;
}
.skip-link:focus { transform: translateY(0); }

.reviewer-console { scroll-margin-top: 72px; }
.reviewer-distinction {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  margin: 24px 0 30px;
  padding: 18px 0;
  color: var(--blue-dark);
  border-top: 2px solid var(--teal);
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}
.reviewer-distinction strong { color: var(--amber-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.claim-tablist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.claim-tablist button {
  min-height: 132px;
  padding: 18px 18px 16px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}
.claim-tablist button + button { padding-left: 18px; }
.claim-tablist button:last-child { border-right: 0; }
.claim-tablist button[aria-selected="true"] { color: var(--blue-dark); box-shadow: inset 0 -3px var(--teal); }
.claim-tablist button:focus-visible,
.trace-view-controls button:focus-visible,
.copy-command:focus-visible { outline: 3px solid color-mix(in oklch, var(--teal) 70%, white); outline-offset: 3px; }
.claim-tablist span, .trace-label, .quickstart-number { display: block; color: var(--teal); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.claim-tablist strong { display: block; margin: 10px 0 7px; font-family: ui-serif, Georgia, serif; font-size: 1.2rem; line-height: 1.15; }
.claim-tablist small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.claim-trace-enhanced .claim-panel[hidden], .trace-views-enhanced .trace-view-panel[hidden] { display: none; }
.claim-panel { padding: 24px 0 0; border-bottom: 1px solid var(--line); }
.claim-panel h3 { max-width: 64ch; margin-bottom: 10px; font-family: ui-serif, Georgia, serif; font-size: 1.55rem; line-height: 1.16; }
.claim-panel > .trace-view-panel > p:not(.trace-label) { max-width: 72ch; color: var(--muted); }
.trace-view-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.trace-view-controls button { min-height: 44px; padding: 9px 14px; color: var(--blue-dark); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.trace-view-controls button[aria-pressed="true"] { color: var(--surface); background: var(--blue); border-color: var(--blue); }
.trace-facts { margin: 0; border-top: 1px solid var(--line); }
.trace-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.trace-facts dt { color: var(--blue-dark); font-size: .76rem; font-weight: 800; }
.trace-facts dd { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.trace-facts a, .quickstart-grid a { color: var(--blue); text-underline-offset: 3px; }
.trace-facts a:hover, .trace-facts a:focus-visible, .quickstart-grid a:hover, .quickstart-grid a:focus-visible { text-decoration: underline; }
.sealed-result-strip { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); margin-top: 34px; border-top: 2px solid var(--blue); border-bottom: 1px solid var(--line); }
.sealed-result-strip > div { min-height: 88px; padding: 16px 14px 14px 0; border-right: 1px solid var(--line); }
.sealed-result-strip > div + div { padding-left: 14px; }
.sealed-result-strip > div:last-child { border-right: 0; }
.sealed-result-strip span, .sealed-result-strip small { display: block; color: var(--muted); font-size: .7rem; }
.sealed-result-strip strong { display: block; margin: 8px 0 3px; color: var(--blue-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.non-claims { margin-top: 30px; padding: 20px 0 0; border-top: 2px solid var(--amber); }
.non-claims h3 { margin-bottom: 14px; font-family: ui-serif, Georgia, serif; font-size: 1.3rem; }
.non-claims ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.non-claims li { padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .84rem; }

.quickstart-section { padding-top: 72px; padding-bottom: 72px; scroll-margin-top: 72px; }
.quickstart-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); }
.quickstart-grid article { min-width: 0; padding: 20px 18px 0 0; border-right: 1px solid var(--line); }
.quickstart-grid article:last-child { border-right: 0; }
.quickstart-grid h3 { margin: 12px 0 8px; font-family: ui-serif, Georgia, serif; font-size: 1.25rem; line-height: 1.18; }
.quickstart-grid p { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.quickstart-grid pre { overflow-x: auto; margin: 14px 0; padding: 12px; color: var(--surface); background: var(--blue-dark); font-size: .72rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-command { min-height: 44px; padding: 9px 13px; color: var(--blue-dark); background: var(--surface); border: 1px solid var(--blue); cursor: pointer; }
.copy-status { min-height: 1.4em; margin: 16px 0 0; color: var(--teal); font-size: .8rem; font-weight: 700; }

.section-intro,
.section-header { max-width: var(--narrative); }
.section-intro { margin-bottom: 30px; }
.section-header { margin-bottom: 30px; }
.section-lede { margin-bottom: 0; color: var(--muted); max-width: 72ch; }
.inverse .section-kicker { color: oklch(0.8 0.1 184); }
.inverse h2 { color: var(--surface); }
.inverse .section-lede { color: oklch(0.82 0.025 230); }

.path-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: path;
  border-top: 1px solid color-mix(in oklch, var(--blue) 32%, var(--line));
}

.path-list li {
  min-height: 150px;
  padding: 22px 18px 12px 0;
  border-right: 1px solid color-mix(in oklch, var(--blue) 24%, var(--line));
}

.path-list li:not(:first-child) { padding-left: 18px; }
.path-list li:last-child { border-right: 0; }
.path-list li::before { counter-increment: path; content: "0" counter(path); display: block; margin-bottom: 16px; color: var(--blue); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; }
.path-list a { display: grid; gap: 7px; color: var(--ink); text-decoration: none; }
.path-list strong { font-size: 0.93rem; }
.path-list span { color: var(--muted); font-size: 0.8rem; line-height: 1.42; }
.path-list a:hover strong, .path-list a:focus-visible strong { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.narrative-section { padding: 78px 0; }
.prose-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.prose { max-width: 66ch; color: var(--muted); }
.prose p { margin-bottom: 16px; }
.formula { display: inline-block; margin: 2px 4px; padding: 2px 6px; color: var(--blue-dark); background: var(--blue-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
.plain-callout { margin-top: 28px; padding: 19px 21px; color: var(--ink); background: var(--teal-soft); border-top: 2px solid var(--teal); font-size: 0.92rem; }

.signature-gate {
  margin: 0;
  padding: 0 0 2px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signature-gate figcaption {
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.gate-candidates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gate-candidates span,
.gate-selected,
.gate-check,
.gate-routes span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  text-align: center;
  border-radius: 4px;
}

.gate-candidates span { color: var(--blue-dark); background: var(--blue-soft); font-size: 0.76rem; font-weight: 750; }
.gate-selected, .gate-check { position: relative; margin-top: 22px; }
.gate-selected::before, .gate-check::before { position: absolute; top: -22px; left: 50%; width: 1px; height: 22px; content: ""; background: var(--line); }
.gate-selected { color: var(--surface); background: var(--blue); }
.gate-check { color: var(--blue-dark); background: var(--teal-soft); border: 1px solid color-mix(in oklch, var(--teal) 45%, var(--line)); }
.gate-selected small, .gate-check small { font-size: 0.65rem; line-height: 1.2; }
.gate-selected strong, .gate-check strong { font-size: 0.86rem; }
.gate-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.gate-routes span { position: relative; min-height: 42px; font-size: 0.72rem; font-weight: 800; }
.gate-routes span::before { position: absolute; top: -22px; left: 50%; width: 1px; height: 22px; content: ""; background: var(--line); }
.route-authorize { color: oklch(0.34 0.08 184); background: var(--teal-soft); }
.route-review { color: oklch(0.42 0.1 72); background: var(--amber-soft); }
.route-abstain { color: var(--red); background: var(--red-soft); }
.signature-gate > a { display: inline-block; margin: 14px 0 10px; color: var(--blue); font-size: 0.78rem; font-weight: 750; text-underline-offset: 3px; }

.practice-band {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 34px 0 0;
  border-bottom: 1px solid var(--line);
}

.practice-tabs button {
  min-height: 46px;
  margin: 0 0 -1px;
  padding: 0 1px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 750;
}

.practice-tabs button:hover,
.practice-tabs button[aria-selected="true"] { color: var(--teal); border-bottom: 2px solid var(--teal); }

.scenario-stack { margin-top: 0; }
.scenario-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "visual question"
    "visual anatomy";
  gap: 24px 52px;
  align-items: start;
  scroll-margin-top: 84px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.scenario-panel + .scenario-panel { margin-top: 18px; border-top: 1px solid var(--line); }
.scenario-enhanced .scenario-panel + .scenario-panel { margin-top: 0; border-top: 0; }
.scenario-enhanced .scenario-panel[hidden] { display: none; }
.scenario-question { grid-area: question; }
.scenario-question h3 { max-width: 19ch; margin-bottom: 14px; font-family: ui-serif, Georgia, serif; font-size: clamp(1.45rem, 2.7vw, 2.15rem); line-height: 1.12; }
.scenario-question > p:last-child { max-width: 58ch; margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }
.boundary-label { margin-bottom: 12px; color: var(--amber-ink); font-size: 0.72rem; font-weight: 800; }
.scenario-visual { grid-area: visual; margin: 0; }
.scenario-visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--canvas); border-radius: 6px; }
.scenario-visual figcaption { margin-top: 10px; color: var(--amber-ink); font-size: 0.7rem; font-weight: 750; line-height: 1.4; }
.scenario-anatomy { grid-area: anatomy; margin: 0; border-top: 1px solid var(--line); }
.scenario-anatomy div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.scenario-anatomy dt { color: var(--blue-dark); font-size: 0.75rem; font-weight: 800; }
.scenario-anatomy dd { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.48; }

.gate-explorer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 52px;
  margin-top: 50px;
  padding: 34px 0;
  border-top: 3px solid var(--teal);
  border-bottom: 1px solid var(--line);
}
.explorer-copy h3 { max-width: 22ch; font-family: ui-serif, Georgia, serif; font-size: 1.65rem; }
.explorer-copy > p:not(.boundary-label) { color: var(--muted); font-size: 0.87rem; }
.explorer-copy label { display: flex; justify-content: space-between; gap: 20px; margin: 24px 0 7px; color: var(--blue-dark); font-size: 0.8rem; font-weight: 750; }
.explorer-copy output { color: var(--teal); font-variant-numeric: tabular-nums; }
#gate-threshold { width: 100%; accent-color: var(--teal); }
.explorer-actions { border-top: 1px solid var(--line); }
.explorer-actions article { display: grid; grid-template-columns: minmax(120px, 0.7fr) 90px minmax(0, 1.3fr); gap: 14px; align-items: center; min-height: 80px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.explorer-actions strong { font-size: 0.87rem; }
.explorer-actions span { font-size: 0.76rem; font-weight: 800; }
.explorer-actions small { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.explorer-actions article[data-route-state="authorize"] span { color: var(--teal); }
.explorer-actions article[data-route-state="review"] span { color: var(--amber-ink); }
.explorer-actions article[data-route-state="abstain"] span { color: var(--red); }

.contribution-ledger { margin: 36px 0 44px; }
.contribution-ledger h3 { margin-bottom: 13px; font-family: ui-serif, Georgia, serif; font-size: 1.35rem; }
.contribution-ledger ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contribution-ledger li { border-bottom: 1px solid var(--line); }
.contribution-ledger a { display: grid; grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr); gap: 28px; padding: 14px 0; text-decoration: none; }
.contribution-ledger strong { color: var(--blue-dark); font-size: 0.84rem; }
.contribution-ledger span { color: var(--muted); font-size: 0.82rem; }
.contribution-ledger a:hover strong, .contribution-ledger a:focus-visible strong { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.transfer-lesson { margin: 26px 0 0; padding: 18px 0; color: var(--ink); border-top: 2px solid var(--red); border-bottom: 1px solid var(--line); font-size: 0.88rem; }

.conceptual-architecture { margin: 42px 0 48px; }
.architecture-media { overflow: hidden; background: var(--surface); border-radius: 6px; }
.architecture-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.architecture-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-bottom: 1px solid oklch(0.6 0.04 230); }
.architecture-stages li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 8px; padding: 15px 16px 15px 0; border-right: 1px solid oklch(0.6 0.04 230); }
.architecture-stages li:not(:first-child) { padding-left: 16px; }
.architecture-stages li:last-child { border-right: 0; }
.architecture-stages span { grid-row: 1 / 3; color: oklch(0.76 0.09 184); font-size: 0.72rem; font-weight: 850; }
.architecture-stages strong { color: var(--surface); font-size: 0.8rem; }
.architecture-stages small { color: oklch(0.8 0.025 230); font-size: 0.7rem; line-height: 1.35; }
.conceptual-architecture figcaption { margin-top: 12px; color: oklch(0.83 0.025 230); font-size: 0.77rem; line-height: 1.45; }
.conceptual-architecture figcaption strong { color: oklch(0.82 0.1 74); }

.deployment-checklist { margin: 0 0 42px; padding: 26px 0; border-top: 2px solid var(--teal); border-bottom: 1px solid var(--line); }
.deployment-checklist h3, .open-questions h3 { font-family: ui-serif, Georgia, serif; font-size: 1.35rem; }
.deployment-checklist ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 18px 0; padding-left: 24px; }
.deployment-checklist li { padding: 8px 10px 8px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.deployment-checklist p { max-width: 80ch; margin: 18px 0 0; color: var(--blue-dark); font-size: 0.86rem; font-weight: 700; }
.open-questions { margin: 0 0 44px; }
.open-questions ul { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.open-questions li { padding: 13px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 0.87rem; }

.practice-tabs button:focus-visible,
#gate-threshold:focus-visible { outline: 3px solid color-mix(in oklch, var(--teal) 70%, white); outline-offset: 3px; }

section[id], div[id] { scroll-margin-top: 84px; }

.concept-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.concept-steps article { padding: 24px 22px 23px 0; border-right: 1px solid var(--line); }
.concept-steps article:not(:first-child) { padding-left: 22px; }
.concept-steps article:last-child { border-right: 0; }
.concept-number { display: block; margin-bottom: 14px; color: var(--teal); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.08em; }
.concept-steps h3 { font-family: ui-serif, Georgia, serif; font-size: 1.35rem; }
.concept-steps p { min-height: 78px; margin-bottom: 15px; color: var(--muted); font-size: 0.9rem; }
.concept-steps strong { color: var(--blue); font-size: 0.79rem; }
.concept-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 28px; }
.concept-rules div { display: grid; gap: 5px; }
.concept-rules strong { color: var(--blue-dark); font-size: 0.88rem; }
.concept-rules span { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }

.object-table-wrap,
.result-table-wrap,
.experiment-table-wrap,
.claim-ledger-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.object-table-wrap:focus-visible,
.result-table-wrap:focus-visible,
.experiment-table-wrap:focus-visible,
.claim-ledger-scroll:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--teal) 70%, white);
  outline-offset: 3px;
}
.object-table,
.result-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.object-table th,
.object-table td,
.result-table th,
.result-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.83rem; }
.object-table th,
.result-table th { color: var(--blue-dark); background: var(--blue-soft); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.object-table td:first-child { color: var(--blue); font-weight: 750; }

.wide-figure { max-width: 100%; margin: 42px 0 0; }
.wide-figure img { display: block; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); }
.wide-figure figcaption { max-width: 85ch; margin-top: 11px; color: var(--muted); font-size: 0.81rem; line-height: 1.45; }
.wide-figure:focus-visible { outline: 3px solid color-mix(in oklch, var(--teal) 70%, white); outline-offset: 3px; }
.figure-on-blue img { border-color: color-mix(in oklch, var(--surface) 30%, transparent); }
.figure-on-blue figcaption { color: oklch(0.83 0.025 230); }

.method-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid oklch(0.64 0.04 230);
}

.method-notes article { padding: 22px 20px 0 0; border-right: 1px solid oklch(0.64 0.04 230); }
.method-notes article:not(:first-child) { padding-left: 20px; }
.method-notes article:last-child { border-right: 0; }
.method-notes h3 { color: var(--surface); }
.method-notes p { margin-bottom: 0; color: oklch(0.82 0.025 230); font-size: 0.87rem; }

.interaction-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 34px; border-top: 1px solid oklch(0.64 0.04 230); }
.interaction-map div { padding: 18px 17px 0 0; border-right: 1px solid oklch(0.64 0.04 230); }
.interaction-map div:not(:first-child) { padding-left: 17px; }
.interaction-map div:last-child { border-right: 0; }
.interaction-map strong { display: block; margin-bottom: 6px; color: var(--surface); font-size: 0.85rem; }
.interaction-map span { display: block; color: oklch(0.82 0.025 230); font-size: 0.8rem; line-height: 1.45; }

.experiment-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr); gap: 42px; align-items: start; }
.experiment-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.experiment-table th, .experiment-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.82rem; line-height: 1.45; }
.experiment-table th { color: var(--blue-dark); background: var(--blue-soft); font-size: 0.71rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.experiment-table td:first-child { width: 22%; color: var(--blue); font-weight: 750; }
.experiment-table td:nth-child(2) { width: 35%; }
.experiment-table td:last-child { color: var(--muted); }
.experiment-table-wrap { overflow-x: auto; }
.protocol-note { padding: 22px; background: var(--amber-soft); border-top: 3px solid var(--amber); }
.protocol-note h3 { font-family: ui-serif, Georgia, serif; font-size: 1.28rem; }
.protocol-note ul { margin: 0; padding-left: 19px; }
.protocol-note li { margin-bottom: 10px; color: var(--muted); font-size: 0.85rem; line-height: 1.42; }
.protocol-note li:last-child { margin-bottom: 0; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 35px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-strip div { padding: 18px 16px 18px 0; border-right: 1px solid var(--line); }
.metric-strip div:not(:first-child) { padding-left: 16px; }
.metric-strip div:last-child { border-right: 0; }
.metric-strip strong { display: block; margin-bottom: 5px; color: var(--blue); font-size: 0.84rem; }
.metric-strip span { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.42; }

.theorem-list { border-top: 1px solid var(--line); }
.theorem-item {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.theorem-label { color: var(--teal); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.theorem-item p { max-width: 82ch; margin-bottom: 0; color: var(--muted); }
.support-note { margin-top: 26px; padding: 18px 20px; color: var(--ink); background: var(--teal-soft); border-top: 2px solid var(--teal); font-size: 0.9rem; }

.study-scope {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.study-scope div { padding: 18px 16px; border-right: 1px solid var(--line); }
.study-scope div:last-child { border-right: 0; }
.study-scope strong { display: block; color: var(--blue); font-family: ui-serif, Georgia, serif; font-size: 1.75rem; line-height: 1; }
.study-scope span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.78rem; line-height: 1.35; }

.result-table { min-width: 810px; }
.result-table caption { padding: 0 0 12px; color: var(--muted); caption-side: top; text-align: left; font-size: 0.82rem; line-height: 1.45; }
.result-table td:not(:first-child), .result-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.result-table tbody tr:nth-child(even) { background: oklch(0.98 0.003 240); }
.result-table .focus-row { background: var(--teal-soft); }
.result-table .focus-row td:first-child { color: var(--teal); font-weight: 800; }
.table-note { max-width: 90ch; margin: 14px 0 0; color: var(--muted); font-size: 0.82rem; }

.transfer-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 44px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.transfer-copy p { max-width: 55ch; color: var(--muted); }
.transfer-ledger { margin: 0; border-top: 2px solid var(--blue); }
.transfer-ledger div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.transfer-ledger .negative { border-top: 2px solid var(--red); }
.transfer-ledger dt { margin-bottom: 6px; color: var(--blue); font-size: 0.88rem; font-weight: 800; }
.transfer-ledger .negative dt { color: var(--red); }
.transfer-ledger dd { margin: 0; color: var(--muted); font-size: 0.87rem; }

.claim-ledger-wrap { margin-top: 48px; }
.claim-ledger-wrap h3 { margin-bottom: 14px; font-family: ui-serif, Georgia, serif; font-size: 1.35rem; }
.claim-ledger-scroll { overflow-x: auto; }
.claim-ledger { width: 100%; min-width: 790px; border-collapse: collapse; background: var(--surface); }
.claim-ledger th,
.claim-ledger td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.82rem; line-height: 1.48; }
.claim-ledger th { color: var(--blue-dark); background: var(--blue-soft); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.claim-ledger td:first-child { width: 27%; color: var(--ink); font-weight: 750; }
.claim-ledger td:nth-child(2) { width: 38%; }
.claim-ledger td:last-child { width: 35%; color: var(--muted); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.timeline li { padding: 20px 18px 0 0; border-right: 1px solid var(--line); }
.timeline li:not(:first-child) { padding-left: 18px; }
.timeline li:last-child { border-right: 0; }
.timeline strong { display: block; margin-bottom: 8px; color: var(--blue); font-size: 0.85rem; }
.timeline span { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }

.boundary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.boundary-grid h3 { margin-bottom: 14px; color: var(--ink); }
.boundary-grid ul { margin: 0; padding-left: 20px; }
.boundary-grid li { margin-bottom: 10px; color: var(--muted); font-size: 0.9rem; }

.artifacts-section { padding: 78px 0; }
.deployment-ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deployment-ladder article { padding: 22px 20px 22px 0; border-right: 1px solid var(--line); }
.deployment-ladder article:not(:first-child) { padding-left: 20px; }
.deployment-ladder article:last-child { border-right: 0; }
.deployment-stage { display: block; margin-bottom: 12px; color: var(--teal); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.deployment-ladder h3 { font-family: ui-serif, Georgia, serif; font-size: 1.24rem; }
.deployment-ladder p { min-height: 84px; margin-bottom: 14px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.deployment-ladder strong { color: var(--blue); font-size: 0.78rem; }
.engineering-record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; margin-bottom: 42px; padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.engineering-record h3 { margin-bottom: 7px; color: var(--blue-dark); font-size: 0.94rem; }
.engineering-record p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.48; }
.artifact-heading { margin-bottom: 14px; font-family: ui-serif, Georgia, serif; font-size: 1.38rem; }
.artifact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.artifact-links a { min-height: 132px; padding: 20px; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.artifact-links a:hover, .artifact-links a:focus-visible { background: var(--blue-soft); }
.artifact-links strong { display: block; margin-bottom: 7px; color: var(--blue); font-size: 0.92rem; }
.artifact-links span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.verification-row { display: flex; flex-wrap: wrap; margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.verification-row span { flex: 1 1 210px; padding: 13px 14px; color: var(--muted); border-right: 1px solid var(--line); font-size: 0.78rem; }
.verification-row span:last-child { border-right: 0; }
.verification-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.reader-layout { display: grid; grid-template-columns: minmax(240px, 0.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.reader-layout > div:first-child p:not(.section-kicker) { color: var(--muted); max-width: 48ch; }
.reader-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; }
.reader-tab { min-height: 38px; padding: 0 12px; color: var(--blue); background: var(--surface); border: 1px solid color-mix(in oklch, var(--blue) 45%, var(--line)); border-radius: 3px; cursor: pointer; font-size: 0.8rem; font-weight: 750; }
.reader-tab:hover, .reader-tab:focus-visible, .reader-tab.active { color: var(--surface); background: var(--blue); border-color: var(--blue); }
.download-link { color: var(--blue); font-size: 0.85rem; font-weight: 750; text-underline-offset: 3px; }
.download-link:hover, .download-link:focus-visible { text-decoration: underline; }
.pdf-wrap { background: var(--surface); border: 1px solid var(--line); }
#pdf-viewer { display: block; width: 100%; height: 680px; border: 0; }

.site-footer { padding: 28px 0; color: oklch(0.86 0.018 230); background: var(--blue-dark); font-size: 0.8rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--surface); text-underline-offset: 3px; }

@media (max-width: 980px) {
  .nav { gap: 10px; }
  .hero-layout, .prose-grid, .transfer-layout, .reader-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 32px; }
  .signature-gate { max-width: 720px; }
  .scope-panel { grid-template-columns: 130px minmax(0, 1fr); }
  .scope-panel dl { grid-template-columns: 1fr 1fr; }
  .scope-panel dl > div:nth-child(3) { grid-column: 1 / -1; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .path-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .path-list li:nth-child(4n) { border-right: 0; }
  .path-list li:nth-child(n+5) { border-top: 1px solid var(--line); }
  .path-list li:nth-child(5) { padding-left: 0; }
  .method-notes, .timeline, .interaction-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-notes article:nth-child(2), .timeline li:nth-child(2) { border-right: 0; }
  .method-notes article:nth-child(3), .timeline li:nth-child(3) { padding-left: 0; border-top: 1px solid oklch(0.64 0.04 230); }
  .timeline li:nth-child(3) { border-top-color: var(--line); }
  .concept-steps, .concept-rules, .experiment-grid, .deployment-ladder, .engineering-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concept-steps article:nth-child(2), .deployment-ladder article:nth-child(2), .metric-strip div:nth-child(2) { border-right: 0; }
  .concept-steps article:nth-child(3), .deployment-ladder article:nth-child(3), .metric-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .concept-steps article:nth-child(3), .deployment-ladder article:nth-child(3), .metric-strip div:nth-child(3) { padding-left: 0; }
  .artifact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-scope div:nth-child(2) { border-right: 0; }
  .study-scope div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gate-explorer { grid-template-columns: 1fr; gap: 30px; }
  .scenario-panel { grid-template-columns: 1fr; grid-template-areas: "question" "visual" "anatomy"; gap: 24px; }
}

@media (max-width: 690px) {
  .section-shell, .header-inner { width: min(var(--max), calc(100% - 28px)); }
  .header-inner { position: relative; min-height: 64px; align-items: center; padding: 10px 0; }
  .nav-toggle { display: inline-grid; flex: 0 0 44px; place-items: center; }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 8px 14px max(12px, env(safe-area-inset-bottom));
    color: var(--ink);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    font-size: 0.86rem;
  }
  .nav-enhanced .nav:not(.is-open) { display: none; }
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .brand-copy { display: none; }
  .hero-layout { padding: 58px 0 52px; }
  h1 { font-size: 2.72rem; line-height: 1; }
  h2 { font-size: 2rem; line-height: 1.08; }
  .hero-abstract { font-size: 0.98rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; min-height: 48px; }
  .band-light, .band-blue, .band-boundary, .narrative-section, .artifacts-section, .band-reader, .practice-band { padding: 54px 0; }
  .path-list, .method-notes, .timeline, .boundary-grid, .artifact-links, .concept-steps, .concept-rules, .experiment-grid, .interaction-map, .metric-strip, .deployment-ladder, .engineering-record { grid-template-columns: 1fr; }
  .path-list li, .path-list li:not(:first-child), .method-notes article, .method-notes article:not(:first-child), .timeline li, .timeline li:not(:first-child) { min-height: auto; padding: 18px 0; border-right: 0; border-top: 1px solid var(--line); }
  .path-list li:first-child, .method-notes article:first-child, .timeline li:first-child { border-top: 0; }
  .method-notes article { border-top-color: oklch(0.64 0.04 230); }
  .concept-steps article, .concept-steps article:not(:first-child), .deployment-ladder article, .deployment-ladder article:not(:first-child), .metric-strip div, .metric-strip div:not(:first-child) { padding: 18px 0; border-right: 0; border-top: 1px solid var(--line); }
  .concept-steps article:first-child, .deployment-ladder article:first-child, .metric-strip div:first-child { border-top: 0; }
  .concept-steps p, .deployment-ladder p { min-height: auto; }
  .theorem-item { grid-template-columns: 1fr; gap: 7px; }
  .study-scope { grid-template-columns: 1fr 1fr; }
  .study-scope div:nth-child(even) { border-right: 0; }
  .study-scope div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .verification-row span { border-right: 0; border-bottom: 1px solid var(--line); }
  .verification-row span:last-child { border-bottom: 0; }
  #pdf-viewer { height: 540px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .hero-scope { padding-bottom: 44px; }
  .scope-panel { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .scope-panel h2 { padding-left: 0; }
  .scope-panel dl { grid-template-columns: 1fr; }
  .scope-panel dl > div, .scope-panel dl > div:nth-child(3) { grid-column: auto; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-left: 0; }
  .scope-panel dl > div:first-child { border-top: 0; }
  .practice-tabs { gap: 0 18px; }
  .practice-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  .practice-tabs button { min-height: 44px; flex: 0 0 auto; scroll-snap-align: start; }
  .scenario-panel { padding: 30px 0; }
  .scenario-question h3 { max-width: 23ch; }
  .scenario-anatomy div { grid-template-columns: 1fr; gap: 4px; }
  .gate-candidates { grid-template-columns: 1fr; }
  .wide-figure {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .wide-figure img { width: 760px; max-width: none; }
  .wide-figure figcaption { width: min(100%, 85ch); }
  .architecture-stages { grid-template-columns: 1fr; }
  .architecture-stages li,
  .architecture-stages li:not(:first-child) { padding: 14px 0; border-right: 0; border-top: 1px solid oklch(0.6 0.04 230); }
  .architecture-stages li:first-child { border-top: 0; }
  .gate-explorer { padding: 28px 0; }
  .explorer-actions article { grid-template-columns: 1fr auto; gap: 5px 12px; padding: 14px 0; }
  .explorer-actions small { grid-column: 1 / -1; }
  .contribution-ledger a { grid-template-columns: 1fr; gap: 4px; }
  .deployment-checklist ol { grid-template-columns: 1fr; }
  .reader-tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; }
  .reader-tab { min-height: 44px; flex: 0 0 auto; }
  .study-scope { grid-template-columns: 1fr; }
  .study-scope div, .study-scope div:nth-child(even) { border-right: 0; border-top: 1px solid var(--line); }
  .study-scope div:first-child { border-top: 0; }
  #pdf-viewer { height: 430px; }
}

@media (max-width: 900px) {
  .sealed-result-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sealed-result-strip > div:first-child { grid-column: 1 / -1; border-right: 0; }
  .quickstart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 690px) {
  .claim-tablist, .sealed-result-strip, .quickstart-grid { grid-template-columns: 1fr; }
  .claim-tablist button, .claim-tablist button + button { min-height: 92px; padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .claim-tablist button:last-child { border-bottom: 0; }
  .sealed-result-strip > div, .sealed-result-strip > div + div { min-height: 72px; padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sealed-result-strip > div:first-child { grid-column: auto; }
  .sealed-result-strip > div:last-child { border-bottom: 0; }
  .trace-facts > div { grid-template-columns: 1fr; gap: 5px; }
  .non-claims ul { grid-template-columns: 1fr; }
  .quickstart-grid article { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .quickstart-grid article:last-child { border-bottom: 0; }
  .reviewer-distinction { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}

@media (pointer: coarse) {
  .button,
  .nav a,
  .practice-tabs button,
  .reader-tab,
  .download-link { min-height: 44px; }
  .download-link { display: inline-flex; align-items: center; }
}

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