@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0a051d;
  --ink-deep: #0a051d;
  --ink-soft: #2c2a34;
  --red: #e10014;
  --red-dark: #b7091b;
  --red-pale: #fff0f1;
  --paper: #f4f4f5;
  --surface: #ffffff;
  --line: #e4e4e7;
  --line-strong: #c9c8d0;
  --muted: #615e6e;
  --faint: #6f687a;
  --muted-dark: #afaeb7;
  --accent: var(--red);
  --accent-dark: var(--red-dark);
  --accent-pale: var(--red-pale);
  --positive: #027a48;
  --positive-pale: #e9f5ec;
  --negative: #c43220;
  --violet: #6441fd;
  --violet-pale: #f4f1ff;
  --amber: #b57d10;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Geist", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --page-pad: clamp(1rem, 3.1vw, 3.5rem);
  --content-width: 92rem;
  --shadow-card: none;
  --shadow-pop: 0 18px 60px rgba(10, 5, 29, 0.2);
  --radius: 4px;
  --control-value-size: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.task-panel-modal-open { overflow: hidden; }
button, select, input { font: inherit; }
button, select, input, .task-row { touch-action: manipulation; }
.num, td, .rank, .score-cell, .metric-cell { font-variant-numeric: tabular-nums; }
.shell { width: min(var(--content-width), calc(100% - (2 * var(--page-pad)))); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -70px; z-index: 99; min-height: 44px; display: flex; align-items: center; background: var(--red); color: white; padding: 10px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ---------- Header ---------- */
.site-header {
  min-height: 84px;
  padding: 14px max(var(--page-pad), calc((100vw - var(--content-width)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; width: max-content; }
.faros-wordmark { width: 112px; height: auto; color: var(--ink); }
.brand-divider { height: 20px; width: 1px; background: var(--line-strong); margin-inline: 2px; }
.brand-replay { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.official-pill { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.official-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.official-pill b { font: inherit; }
.whitepaper-link { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); background: white; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: color 140ms var(--ease-out), background-color 140ms var(--ease-out); }
.whitepaper-link b { color: var(--red-dark); font: 650 11px/1 var(--mono); letter-spacing: .03em; }
.release-control { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.release-control select { width: clamp(180px, 26vw, 340px); min-width: 0; min-height: 44px; font: 500 var(--control-value-size)/1.25 var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 34px 10px 12px; text-transform: none; letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero-field { color: white; background: var(--ink); }
.hero {
  min-height: 36rem;
  padding-block: clamp(4.25rem, 6vw, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(28rem, 7fr);
  align-items: center;
}
.hero-copy, .hero-index { min-width: 0; }
.hero-copy { padding-right: clamp(2.5rem, 5vw, 6rem); }
.eyebrow { font: 600 10px/1.25 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #ff6f7c; margin-bottom: 20px; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--red); }
.eyebrow.dark { color: var(--accent-dark); }
.hero h1 { font-family: var(--sans); font-weight: 650; font-size: clamp(3.5rem, 6vw, 5.75rem); line-height: .9; letter-spacing: -.038em; margin: 0; }
.hero h1 em { font-style: normal; font-weight: 650; color: var(--red); }
.hero-copy p { font-size: 16px; line-height: 1.65; max-width: 35rem; color: var(--muted-dark); margin: 26px 0 0; }
.hero-copy .hero-descriptor { margin-top: 30px; color: white; font-size: 20px; font-weight: 650; line-height: 1.4; }
.hero-copy .hero-explainer { margin-top: 10px; }
.hero-copy .hero-method { margin-top: 18px; color: var(--muted-dark); font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }

.hero-index { border-left: 1px solid #4d4959; padding-left: clamp(2.5rem, 4vw, 4.5rem); }
.hero-index-meta { display: flex; justify-content: space-between; gap: 22px; padding-bottom: 15px; color: var(--muted-dark); font: 500 9.5px/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.hero-index-meta span:last-child { flex: 0 0 auto; color: white; }
.hero-index-heading { min-height: 64px; display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 16px 0 18px; border-block: 1px solid #4d4959; }
.hero-index-heading span, .comparison-contract-summary > span { display: block; color: var(--muted-dark); font: 500 9.5px/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hero-index-heading h2 { margin: 5px 0 0; color: white; font-size: 21px; font-weight: 620; letter-spacing: -.025em; }
.hero-index-heading a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #ff8d97; font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.hero-index-release-title { display: block; padding: 17px 0 13px; color: #d2d1d6; font-size: 12px; font-weight: 500; line-height: 1.45; }
.hero-index-list { margin: 0; padding: 0; border-top: 1px solid #4d4959; list-style: none; }
.hero-index-list li { border-bottom: 1px solid #4d4959; }
.hero-index-route { position: relative; width: 100%; min-height: 96px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 58px; grid-template-rows: 1fr 3px; gap: 12px 16px; align-items: center; padding: 15px 0 0; border: 0; color: white; background: transparent; text-align: left; cursor: pointer; transition: background 140ms var(--ease-out); }
.hero-index-rank { color: var(--muted-dark); font: 500 15px/1 var(--mono); }
.hero-index-identity { min-width: 0; }
.hero-index-identity strong { display: flex; align-items: center; gap: 10px; color: white; font: 600 13px/1.35 var(--mono); }
.hero-index-identity small { display: block; margin: 7px 0 0 20px; color: var(--muted-dark); font: 450 9.5px/1.4 var(--mono); }
.hero-index-quality { text-align: right; }
.hero-index-quality strong { display: block; color: white; font: 600 22px/1 var(--mono); letter-spacing: -.035em; }
.hero-index-quality small { display: block; margin-top: 7px; color: var(--muted-dark); font: 450 9px/1 var(--mono); white-space: nowrap; }
.hero-index-delta { color: #d2d1d6; font: 500 9.5px/1.2 var(--mono); text-align: right; white-space: nowrap; }
.hero-index-bar { grid-column: 1 / -1; width: 100%; height: 3px; align-self: end; opacity: .9; transform: scaleX(var(--quality)); transform-origin: left center; transition: transform 200ms var(--ease-out); }
.hero-index-empty { min-height: 112px; display: flex; align-items: center; color: var(--muted-dark); font-size: 13px; line-height: 1.6; }

.comparison-contract { display: grid; grid-template-columns: minmax(16rem, 2fr) minmax(0, 5fr); border-block: 1px solid #4d4959; }
.comparison-contract-summary { padding: 20px 28px 20px 0; }
.comparison-contract-summary strong { display: block; margin-top: 6px; color: white; font-size: 15px; font-weight: 620; }
.comparison-contract-summary p { max-width: 36rem; margin: 7px 0 0; color: var(--muted-dark); font-size: 10.5px; line-height: 1.5; }
.comparison-contract-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid #4d4959; }
.release-metrics { display: contents; }
.release-metrics > div, .release-method { min-width: 0; padding: 20px; }
.release-metrics div + div, .release-method { border-left: 1px solid #4d4959; }
.release-metrics b { display: block; color: white; font: 600 19px/1.2 var(--mono); letter-spacing: -.02em; }
.release-metrics span, .release-method > span:first-child { display: block; margin-top: 6px; color: var(--muted-dark); font: 500 9px/1.35 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.release-method { display: flex; min-height: 100%; flex-direction: column; justify-content: center; border-top: 0; color: var(--muted-dark); background: transparent; text-align: left; text-decoration: none; }
.release-method strong { margin-top: 6px; color: white; font-size: 11px; line-height: 1.35; }
.release-method > span:last-child { margin-top: 8px; color: #ff8d97; }
.comparison-contract-evidence { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.release-coverage { margin: 0; padding: 11px 14px; border-top: 1px solid #4d4959; color: #d2d1d6; font: 500 9.5px/1.5 var(--mono); }
.release-story-link { min-height: 44px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid #4d4959; border-left: 1px solid #4d4959; color: var(--muted-dark); font-size: 10px; text-decoration: none; }
.release-story-link strong { color: white; font-size: 11px; }

/* ---------- Section nav ---------- */
.section-nav { position: sticky; top: 0; z-index: 30; height: 62px; display: flex; align-items: stretch; gap: 28px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; border-block: 1px solid var(--ink); background: var(--surface); }
.section-nav::-webkit-scrollbar { display: none; }
.nav-tab { display: flex; flex: 0 0 auto; align-items: center; border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 3px 2px 0; color: var(--muted); font-size: 13px; font-weight: 550; cursor: pointer; text-decoration: none; white-space: nowrap; transition: color 140ms var(--ease-out), border-color 140ms var(--ease-out); }
.nav-tab:hover, .nav-tab:focus-visible { color: var(--ink); }
.nav-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.view { padding-block: 68px 90px; scroll-margin-top: 62px; }
.section-divider { border-top: 1px solid var(--line); }
.loading { position: absolute; left: 50%; z-index: 2; width: auto; margin-top: 16px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; color: var(--ink); background: white; border-left: 4px solid var(--red); transform: translateX(-50%); font: 500 11px/1.2 var(--mono); white-space: nowrap; }
.loading span { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .hero-index,
.is-loading .comparison-contract,
.is-loading .view,
.is-loading .related-reading,
.is-loading footer { visibility: hidden; }
.error-banner { margin-top: 24px; background: white; border: 1px solid var(--line); border-left: 4px solid var(--red); color: var(--red-dark); padding: 16px; border-radius: 0; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; margin: 0; }
.section-heading p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 430px; margin: 0 0 5px; }
.section-subheading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin: 72px 0 28px; scroll-margin-top: 80px; }
.section-subheading h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; }
.section-subheading p { max-width: 440px; margin: 0 0 3px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; overflow: hidden; }
.panel-heading { min-height: 70px; padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading h3 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.panel-heading p, .panel-heading > span { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; }
.text-link { color: var(--accent-dark); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* ---------- Leaderboard table ---------- */
.lead-leaderboard { margin-bottom: 24px; border: 0; border-block: 2px solid var(--ink); border-radius: 0; }
.lead-leaderboard .panel-heading { min-height: 82px; border-bottom-color: var(--ink); background: var(--surface); }
.lead-leaderboard .panel-heading h3 { font-size: 19px; }
.table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.table-scroll:focus-visible { outline-offset: -3px; }
table { border-collapse: collapse; width: 100%; }
th { color: var(--faint); text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--ink); white-space: nowrap; background: var(--paper); }
td { border-bottom: 1px solid var(--line); padding: 17px 16px; font-size: 12.5px; }
.leaderboard-table th + th, .leaderboard-table td + td { border-left: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
.leaderboard-table td { vertical-align: middle; }
.route-row { cursor: pointer; transition: background 120ms var(--ease-out); }
.route-row.route-selected, .route-row:has(.route-cell-launcher:focus-visible) { background: var(--paper); }
.task-row:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.route-row.route-selected { box-shadow: inset 3px 0 var(--route-color); }
.winner-row { background: #fffafb; }

.rank-cell { width: 74px; }
.rank { display: block; font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 18px; line-height: 1; }
.winner-row .rank { color: var(--accent-dark); }
.rank-range { display: block; margin-top: 5px; font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: .02em; white-space: nowrap; }

.route-cell { min-width: 215px; }
.route-cell strong { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: -.01em; }
.route-cell-launcher { display: block; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 2px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.route-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 0 19px; }
.chip { display: inline-block; padding: 3px 7px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--muted); font-size: 10px; line-height: 1.2; white-space: nowrap; }
.source-chip { border-color: var(--line-strong); color: var(--muted); background: white; }
.route-swatch { display: inline-block; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(19,16,24,.06); }
.scorecard-route .route-swatch, .task-detail-head h2 .route-swatch { margin-right: 10px; }

.score-cell { min-width: 215px; }
.score-line { display: flex; align-items: baseline; gap: 7px; }
.score-line strong { font-family: var(--mono); font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.score-ci { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.score-delta { font-family: var(--mono); font-size: 10.5px; color: var(--negative); white-space: nowrap; }
.score-delta.tied { color: var(--positive); }
.score-track { position: relative; height: 7px; width: min(190px, 100%); margin-top: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 0; overflow: visible; }
.score-track .fill { position: absolute; inset: -1px auto -1px -1px; border-radius: 0; background: var(--accent); opacity: .9; }
.score-track .whisker { position: absolute; top: 50%; height: 1.5px; margin-top: -0.75px; background: rgba(19,16,24,.55); }
.score-track .whisker::before, .score-track .whisker::after { content: ""; position: absolute; top: -4.25px; width: 1.5px; height: 10px; background: rgba(19,16,24,.55); }
.score-track .whisker::before { left: 0; }
.score-track .whisker::after { right: 0; }

.metric-cell { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.metric-cell .sub { display: block; margin-top: 4px; font-size: 10px; color: var(--faint); }
td.best-cell { color: var(--positive); font-weight: 600; }
td.best-cell .best-flag { display: block; margin-top: 4px; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--positive); }
.table-footnote { margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--paper); color: var(--faint); font-size: 11px; line-height: 1.55; }
.coverage-note { margin: 0; padding: 13px 24px; border-bottom: 1px solid #eadfbf; background: #fff8e8; color: #675b3e; font-size: 11px; line-height: 1.55; }
.ledger-empty-row td { height: 180px; }
.ledger-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--muted); text-align: center; }
.ledger-empty strong { color: var(--ink); font-size: 15px; }

.help-tip { display: inline-flex; flex: 0 0 24px; width: 24px; height: 24px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--red-dark); background: white; font: 600 10px/1 var(--mono); cursor: help; vertical-align: middle; }
.help-tip:focus { outline: 3px solid rgba(225,0,20,.35); outline-offset: 2px; }
.help-tooltip { position: fixed; z-index: 100; width: min(290px, calc(100vw - 28px)); padding: 11px 12px; border-radius: var(--radius); color: white; background: var(--ink-deep); box-shadow: 0 10px 28px rgba(11,7,22,.3); font-size: 11px; line-height: 1.5; pointer-events: none; }

/* ---------- Run story ---------- */
.run-story { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 42px; margin-bottom: 0; padding: 34px 24px; border: 0; border-block: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--surface); }
.run-story .eyebrow { margin-bottom: 10px; }
.run-story h3 { max-width: 780px; margin: 0; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.03em; line-height: 1.12; }
.run-story p { max-width: 780px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.62; }
.run-story > a { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; min-height: 44px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--red); border-radius: 0; color: var(--red-dark); font-size: 12px; font-weight: 700; text-decoration: none; transition: color 140ms var(--ease-out); }

/* ---------- Signal leaders ---------- */
.insight-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 24px; border-bottom: 1px solid var(--ink); background: var(--surface); }
.insight { position: relative; min-height: 164px; padding: 24px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; text-align: left; cursor: pointer; color: var(--ink); transition: background 140ms var(--ease-out); }
.insight:last-child { border-right: 0; }
.insight:not(button) { cursor: default; }
.insight-empty { grid-column: 1 / -1; }
.insight span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--faint); }
.insight b { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; font-weight: 600; margin: 13px 0 10px; letter-spacing: -.01em; }
.insight .insight-stat { font-family: var(--mono); font-weight: 600; font-size: 26px; letter-spacing: -.035em; text-transform: none; color: var(--ink); display: block; margin-bottom: 8px; }
.insight p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.insight .insight-action { display: block; margin-top: 14px; color: var(--red-dark); font-family: var(--sans); font-size: 10px; letter-spacing: 0; text-transform: none; }
.insight-action i { display: inline-block; font-style: normal; transition: transform 140ms var(--ease-out); }

/* ---------- Decision grid ---------- */
.decision-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(22rem, 5fr); gap: 0; margin: 24px 0 0; border-block: 2px solid var(--ink); background: var(--surface); }
.decision-grid > .panel { border: 0; border-radius: 0; }
.recommendation-panel { display: flex; flex-direction: column; border-right: 1px solid var(--ink) !important; background: var(--surface); }
.decision-label { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; color: white; background: var(--ink); }
.decision-label span, .panel-index { font: 600 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.decision-label strong { color: #ff8d97; font: 600 15px/1 var(--mono); }
.panel-index { display: inline-block; margin-right: 10px; color: var(--red-dark); }
.recommendation-copy { flex: 1; display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 30px 24px; }
.recommendation-copy span, .impact-result span, .route-summary span, .method-card > span, .method-hero span, .task-evidence span { color: var(--faint); font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.recommendation-copy h3 { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; font: 600 clamp(21px, 2vw, 28px)/1.15 var(--mono); letter-spacing: -.025em; }
.recommendation-copy p { max-width: 54ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.secondary-button { min-height: 44px; border: 1px solid var(--line-strong); background: white; border-radius: var(--radius); color: var(--accent-dark); font-weight: 700; font-size: 12.5px; padding: 11px 14px; cursor: pointer; transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), transform 130ms var(--ease-out); }
.secondary-button:disabled { color: var(--faint); background: var(--paper); cursor: not-allowed; opacity: .72; }
.caveat { margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--faint); background: var(--paper); font-size: 10px; line-height: 1.55; }
.impact-panel { display: flex; flex-direction: column; }
.impact-panel .panel-heading { min-height: 86px; background: var(--paper); }
.impact-panel .panel-heading h3 { display: inline; }
.impact-controls { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.impact-controls label, .matchup-scope label { display: flex; min-width: 0; flex-direction: column; gap: 8px; padding: 18px 20px; color: var(--faint); font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; }
.impact-controls label + label { border-left: 1px solid var(--line); }
input { min-height: 44px; border: 1px solid var(--line-strong); background: white; color: var(--ink); border-radius: var(--radius); padding: 11px 12px; width: 100%; font-size: var(--control-value-size); line-height: 1.25; font-variant-numeric: tabular-nums; }
.impact-result { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; border-top: 1px solid var(--ink); }
.impact-result div { min-height: 92px; padding: 16px 20px; }
.impact-result div + div { border-left: 1px solid var(--line); }
.impact-result strong { display: block; margin-top: 8px; color: var(--positive); font: 600 24px/1.1 var(--mono); letter-spacing: -.03em; }
.impact-result strong.negative { color: var(--negative); }
.impact-result strong.neutral { color: var(--ink); font-family: var(--sans); font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.impact-panel .caveat { margin-top: 0; }

/* ---------- Charts ---------- */
.overview-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.scorecard-panel.overall-scorecard { grid-column: 1 / -1; }
.overview-evidence { grid-template-columns: 1fr; }
.overview-evidence .scorecard-panel { margin-top: 0; }
.pareto-panel, .scorecard-panel { border: 0; border-block: 2px solid var(--ink); border-radius: 0; }
.pareto-panel { min-height: 430px; }
.pareto-panel .panel-heading, .scorecard-panel .panel-heading { border-bottom-color: var(--ink); background: var(--surface); }
.pareto-panel .panel-heading h3::before { content: "FIGURE 01"; display: block; margin-bottom: 7px; color: var(--red-dark); font: 600 9px/1.2 var(--mono); letter-spacing: .12em; }
.scorecard-panel .panel-heading h3::before { content: "TABLE 02"; display: block; margin-bottom: 7px; color: var(--red-dark); font: 600 9px/1.2 var(--mono); letter-spacing: .12em; }
.frontier-legend { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 9.5px; }
.frontier-key, .zone-key { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.frontier-key i { width: 16px; height: 2px; border-top: 2px dashed var(--accent); }
.zone-key i { width: 10px; height: 10px; border: 1px solid var(--line-strong); }
.zone-key.strong i { background: #e6f2e9; }
.zone-key.mixed i { background: #f6efdd; }
.zone-key.weak i { background: #f9e4e1; }
.figure-note { margin: 0; padding: 11px 24px; border-bottom: 1px solid #eadfbf; color: #675b3e; background: #fff8e8; font-size: 11px; line-height: 1.5; }
.chart { display: grid; grid-template-columns: minmax(620px, 8fr) minmax(240px, 4fr); padding: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.chart:focus-visible, .scorecard:focus-visible, .heatmap-wrap:focus-visible { outline-offset: -3px; }
.chart > svg { width: 100%; min-width: 620px; height: 390px; padding: 18px 8px 12px 10px; overflow: visible; }
.chart-zone-strong { fill: #e6f2e9; fill-opacity: .55; }
.chart-zone-mixed { fill: #f6efdd; fill-opacity: .5; }
.chart-zone-weak { fill: #f9e4e1; fill-opacity: .5; }
.chart-zone-label { fill: #5b5665; font: 650 9px/1 var(--mono); letter-spacing: .08em; }
.chart-median { stroke: rgba(10,5,29,.32); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-grid { stroke: #dedde2; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-label { font: 600 9px/1 var(--mono); fill: #5b5665; }
.chart-marker { fill: var(--ink); font: 650 8px/1 var(--mono); pointer-events: none; }
.chart-hit { fill: transparent; stroke: transparent; stroke-width: 2; }
.chart-dot { stroke-width: 3; }
.route-point { cursor: pointer; }
.route-point:focus { outline: none; }
.route-point:focus .chart-hit { stroke: var(--red); }
.route-point:focus .chart-dot { stroke-width: 5; }
.chart-ci { stroke: rgba(19,16,24,.35); stroke-width: 1.5; }
.frontier-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 5; }
.chart-route-legend { display: grid; grid-template-columns: 1fr; align-content: start; border-left: 1px solid var(--ink); }
.chart-route-legend, .matrix-route-key { padding: 0; }
.chart-route-legend button, .matrix-route-key button { display: flex; min-height: 54px; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.chart-route-legend i, .matrix-route-key i { display: inline-flex; flex: 0 0 26px; width: 26px; height: 26px; align-items: center; justify-content: center; border: 2px solid var(--line-strong); border-radius: 50%; color: var(--ink); background: white; font: 650 9px/1 var(--mono); font-style: normal; }
.chart-route-legend span { min-width: 0; }
.chart-route-legend strong, .chart-route-legend small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-route-legend strong { font-family: var(--mono); font-weight: 600; font-size: 11px; }
.chart-route-legend small { margin-top: 3px; color: var(--muted); font-size: 9.5px; }

.scorecard-panel { margin-top: 0; }
.scorecard { overflow-x: auto; overscroll-behavior-inline: contain; }
.scorecard-table { min-width: 900px; table-layout: auto; }
.scorecard-table th, .scorecard-table td { border-right: 1px solid var(--line); }
.scorecard-table th:last-child, .scorecard-table td:last-child { border-right: 0; }
.scorecard-table thead th { min-width: 150px; white-space: normal; }
.scorecard-table thead th:first-child { min-width: 230px; }
.scorecard-table thead th > span { margin-right: 6px; }
.scorecard-table tbody th { padding: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; }
.scorecard-table tbody td { min-width: 150px; padding: 16px; }
.scorecard-table tbody tr:last-child th, .scorecard-table tbody tr:last-child td { border-bottom: 0; }
.scorecard-route { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.scorecard-route.route-selected { background: var(--paper); box-shadow: inset 3px 0 var(--route-color); }
.scorecard-route strong { font-family: var(--mono); font-weight: 600; font-size: 11.5px; }
.dimension-score { display: grid; grid-template-columns: minmax(54px, 1fr) auto; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; }
.dimension-score i { width: 100%; height: 5px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.dimension-score i span { display: block; height: 100%; }
.dimension-score b { min-width: 44px; text-align: right; }
.dimension-unavailable i { border-style: dashed; background: white; }
.dimension-unavailable b { min-width: 66px; color: var(--faint); font-size: 9.5px; font-weight: 550; }

/* ---------- Matchups ---------- */
.matchup-controls { border: 0; border-block: 2px solid var(--ink); border-radius: 0; }
.matchup-scope { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: stretch; border-bottom: 1px solid var(--ink); }
.matchup-scope > div, .matchup-scope > label { min-width: 0; padding: 18px 20px; }
.matchup-scope > * + * { border-left: 1px solid var(--line); }
.matchup-scope > div { display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.matchup-scope > div span { display: block; color: var(--faint); font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; }
.matchup-scope > div strong { display: block; margin-top: 8px; font: 600 15px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.matchup-picker { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); align-items: stretch; padding: 0; }
.matchup-picker label { min-width: 0; padding: 20px; }
.matchup-picker label + label { border-left: 1px solid var(--line); }
.matchup-picker label, .task-controls label { display: flex; flex-direction: column; gap: 8px; color: var(--faint); font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; }
select { min-height: 44px; border: 1px solid var(--line-strong); background: white; color: var(--ink); border-radius: var(--radius); padding: 11px 34px 11px 12px; font-size: var(--control-value-size); line-height: 1.25; }
.versus { display: flex; align-items: center; justify-content: center; border-inline: 1px solid var(--ink); color: white; background: var(--ink); font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.analysis-status { margin: 0; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--muted); background: var(--paper); font: 550 10px/1.45 var(--mono); }
.analysis-status.analysis-error { color: var(--red-dark); background: var(--red-pale); }
.analysis-pending { grid-column: 1 / -1; min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 28px; color: var(--muted); background: var(--paper); font: 550 11px/1.5 var(--mono); text-align: center; }
.analysis-pending::before { content: ""; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--red); }
.analysis-error-state { color: var(--red-dark); background: var(--red-pale); }
.matchup-spotlight { display: grid; grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); margin: 34px 0 24px; border-block: 2px solid var(--ink); background: var(--surface); align-items: stretch; }
.matchup-side { min-height: 210px; padding: 28px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; box-shadow: inset 0 3px var(--route-color); }
.matchup-side:nth-child(3) { text-align: right; }
.matchup-side b { display: block; margin: 22px 0 11px; font-family: var(--mono); font-size: clamp(42px, 5vw, 64px); font-weight: 600; letter-spacing: -.045em; }
.matchup-side strong { display: block; font-family: var(--mono); font-weight: 600; font-size: 13px; line-height: 1.45; }
.matchup-side > span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.matchup-side .matchup-route-label { margin: 0; color: var(--faint); font: 600 9.5px/1.2 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.matchup-side.route-selected { background: var(--paper); }
.matchup-center { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 18px; color: var(--muted-dark); background: var(--ink); font-family: var(--mono); text-align: center; }
.matchup-center span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.matchup-center b { display: block; margin: 10px 0 8px; color: white; font-size: 24px; letter-spacing: -.025em; }
.matchup-center strong { color: #d2d1d6; font-size: 10px; font-weight: 500; }
.heatmap-panel { border: 0; border-block: 2px solid var(--ink); border-radius: 0; }
.heatmap-panel .panel-heading h3::before { content: "TABLE 03"; display: block; margin-bottom: 7px; color: var(--red-dark); font: 600 9px/1.2 var(--mono); letter-spacing: .12em; }
.heatmap-wrap { padding: 24px; overflow-x: auto; overscroll-behavior-inline: contain; }
.heatmap { min-width: 660px; table-layout: fixed; border-collapse: separate; border-spacing: 3px; }
.heatmap th, .heatmap td { width: auto; height: 50px; padding: 0; border: 0; border-radius: 0; text-align: center; vertical-align: middle; background-clip: padding-box; }
.heatmap thead td { height: 28px; background: transparent; }
.heatmap-cell { font-family: var(--mono); font-size: 11px; }
.heatmap-cell b { font-size: 13px; }
.heatmap-label { position: relative; color: var(--ink); font-weight: 600; font-size: 11px; letter-spacing: normal; text-transform: none; background: transparent; }
.heatmap-empty { background: var(--paper); color: var(--faint); }
.heatmap-cell.selected-axis { font-weight: 700; }
.heatmap-cell.selected-a { outline: 2px solid var(--route-a-color, var(--red)); outline-offset: -2px; }
.heatmap-cell.selected-b { outline: 2px solid var(--route-b-color, var(--ink)); outline-offset: -2px; }
.heatmap-cell.selected-pair { outline: 3px solid var(--ink-deep); outline-offset: -3px; font-weight: 700; }
.heatmap-label.selected-axis::after { position: absolute; top: 3px; right: 4px; font: 700 8px/1 var(--mono); }
.heatmap-label.selected-a::after { content: "A"; color: var(--route-a-color, var(--red)); }
.heatmap-label.selected-b::after { content: "B"; color: var(--route-b-color, var(--ink)); }
.matrix-route-key { min-width: 660px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--ink); }
.matrix-route-key button:nth-child(odd) { border-right: 1px solid var(--line); }
.matrix-route-key span { font-family: var(--mono); font-size: 10.5px; font-weight: 600; }

/* ---------- Slices ---------- */
.dimension-tabs { display: inline-grid; grid-template-columns: repeat(2, auto); margin-bottom: 24px; border-bottom: 1px solid var(--ink); }
.dimension-tab { min-height: 44px; padding: 10px 16px 9px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 12.5px; transition: border-color 140ms var(--ease-out), color 140ms var(--ease-out), transform 130ms var(--ease-out); }
.dimension-tab.active { border-bottom-color: var(--red); color: var(--ink); font-weight: 700; }
.slice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-block: 2px solid var(--ink); background: white; }
.slice-card { min-width: 0; background: white; border: 0; border-radius: 0; box-shadow: none; }
.slice-card:nth-child(odd) { border-right: 1px solid var(--ink); }
.slice-card:nth-child(n+3) { border-top: 1px solid var(--ink); }
.slice-card header { min-height: 92px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
.slice-card h3 { margin: 7px 0 0; display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 22px; letter-spacing: -.025em; text-transform: capitalize; }
.slice-card header > span { color: var(--faint); font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; }
.slice-routes { margin: 0; }
.slice-route { width: 100%; min-height: 58px; display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(90px, .8fr) 66px; gap: 12px; align-items: center; margin: 0; padding: 11px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 11px; cursor: pointer; }
.slice-route:last-child { border-bottom: 0; }
.slice-route.route-selected { background: var(--paper); box-shadow: inset 3px 0 var(--route-color); }
.task-result.route-selected { background: var(--paper); box-shadow: inset 3px 0 var(--route-color, var(--red)); }
.slice-route b { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--mono); font-weight: 600; font-size: 10.5px; line-height: 1.35; text-align: left; }
.slice-route b > i, .task-best-route > i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.slice-route strong { font-family: var(--mono); font-weight: 600; }
.slice-route-unavailable strong { color: var(--faint); font-size: 9.5px; }
.slice-bar { height: 5px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.slice-bar i { display: block; height: 100%; }
.slice-empty-state, .slice-grid > .analysis-pending, .slice-grid > .analysis-error-state { grid-column: 1 / -1; min-height: 210px; }

/* ---------- Task catalog ---------- */
.task-controls { display: grid; grid-template-columns: minmax(230px, 1.2fr) repeat(3, minmax(160px, 1fr)); gap: 0; margin: 0; padding: 0; border: 2px solid var(--ink); border-bottom: 0; border-radius: 0; overflow: visible; }
.task-register-folio { display: flex; min-height: 78px; flex-direction: column; justify-content: center; padding: 14px 20px; color: white; background: var(--ink); }
.task-register-folio span, .task-panel-kicker, .task-state-kicker { color: var(--faint); font: 600 9px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.task-register-folio span { color: #b6aec6; }
.task-register-folio strong { margin-top: 7px; font: 600 12px/1.35 var(--mono); }
.task-controls > label { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 15px; border-left: 1px solid var(--ink); color: var(--faint); font: 600 9px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.task-controls select { width: 100%; min-height: 44px; margin-top: 7px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 9px 28px 9px 9px; color: var(--ink); background: white; font: 500 var(--control-value-size)/1.25 var(--sans); letter-spacing: 0; text-transform: none; }
#task-list-status { grid-column: 1 / -1; margin: 0; padding: 10px 16px; border-top: 1px solid var(--ink); color: var(--muted); background: var(--paper); font: 500 10px/1.45 var(--mono); }
#task-list-status.task-list-error { color: var(--red-dark); background: var(--red-pale); }
.task-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
.task-panel { border: 2px solid var(--ink); border-radius: 0; }
.task-panel .panel-heading { min-height: 72px; padding: 15px 18px; border-bottom-color: var(--ink); }
.task-panel .panel-heading h3 { margin-top: 4px; font-size: 18px; }
.task-panel .panel-heading > span { margin: 0; font-family: var(--mono); font-size: 10px; }
#task-count:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 0; }
.task-table { min-width: 1060px; }
.task-table th + th, .task-table td + td { border-left: 1px solid var(--line); }
.task-table td { min-height: 72px; padding: 15px 13px; font-size: 11.5px; vertical-align: middle; }
.task-record-id { display: block; max-width: 150px; overflow-wrap: anywhere; font: 600 9.5px/1.45 var(--mono); }
.task-description { width: 32%; min-width: 260px; max-width: 390px; padding: 0 !important; }
.task-open-button { width: 100%; min-height: 72px; display: block; padding: 15px 13px; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; transition: transform 130ms var(--ease-out); }
.task-open-button strong, .task-open-button span { display: block; }
.task-open-button > span { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.task-open-cue { margin-top: 8px; color: var(--red-dark) !important; font: 600 10px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.task-row { cursor: pointer; }
.task-row.selected { background: var(--paper); box-shadow: inset 3px 0 var(--red); }
.task-row.selected .task-open-cue { color: var(--ink) !important; }
.tag, .task-taxonomy { display: inline-block; padding: 0; color: var(--muted); background: transparent; font: 600 9.5px/1.35 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: normal; }
.task-best-route { display: inline-flex; min-width: 170px; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; font-weight: 600; line-height: 1.35; }
.task-best-route > span, .task-best-route-tie { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.task-best-route strong { color: var(--ink); font: inherit; }
.task-best-route small { max-width: 210px; color: var(--muted); font: 500 9px/1.4 var(--mono); white-space: normal; }
.task-best-route-tie strong { color: var(--red-dark); }
.task-no-valid-result strong { color: var(--faint); }
.task-quality { min-width: 112px; font-family: var(--mono); }
.task-quality > strong { display: block; font-size: 15px; }
.task-quality > small { display: block; margin-top: 5px; color: var(--faint); font: 500 10px/1.35 var(--mono); text-transform: uppercase; }
.task-spread { min-width: 92px; font-family: var(--mono); font-weight: 600; }
.task-metric-unavailable { color: var(--faint); font: 500 9.5px/1.35 var(--mono); }
.task-list-state { min-height: 210px; border-bottom: 1px solid var(--ink); }
.task-list-state .task-empty-state { min-height: 210px; padding: 38px 20px; text-align: center; }
.task-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.task-empty-state strong { color: var(--ink); font-size: 16px; }
.task-empty-state button { min-height: 44px; margin-top: 8px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 8px 13px; background: white; color: var(--ink); cursor: pointer; }
.task-empty-state button:disabled { cursor: progress; opacity: .7; }
.task-error-state { background: var(--red-pale); }
.task-overall-state { min-height: 260px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(320px, 7fr); align-items: stretch; padding: 0; text-align: left; }
.task-overall-copy { display: flex; min-height: 260px; flex-direction: column; justify-content: center; padding: 34px; color: white; background: var(--ink); }
.task-overall-copy > span { color: #ff8d97; font: 600 9px/1.2 var(--mono); letter-spacing: .13em; }
.task-overall-copy strong { margin-top: 14px; color: white; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.08; letter-spacing: -.03em; }
.task-overall-copy p { margin: 13px 0 0; color: #b6aec6; font-size: 12px; line-height: 1.6; }
.task-overall-action { display: flex; min-height: 260px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 34px; background: white; }
.task-overall-action span { color: var(--muted); font: 500 10px/1.55 var(--mono); }
.task-overall-action button { margin: 0; border-color: var(--red); color: white; background: var(--red); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 14px 16px; border-top: 1px solid var(--ink); }
.pagination button { min-height: 44px; width: max-content; border: 1px solid var(--line-strong); border-radius: 2px; background: white; padding: 8px 13px; cursor: pointer; }
.pagination button:last-child { justify-self: end; }
.pagination button:disabled { color: var(--faint); background: var(--paper); opacity: .65; cursor: default; }
.pagination span { color: var(--muted); font: 600 10px/1.3 var(--mono); text-align: center; }
.task-detail-panel { min-height: 100%; }
.panel-close { position: absolute; right: 14px; top: 13px; z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.32); border-radius: 2px; background: rgba(255,255,255,.1); color: white; font-size: 26px; line-height: 1; cursor: pointer; transition: transform 130ms var(--ease-out), background 130ms var(--ease-out); }

/* ---------- Route drawer ---------- */
.route-drawer { position: fixed; z-index: 60; inset: 0 0 0 auto; width: min(640px, calc(100vw - 48px)); height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; color: var(--ink); background: white; border-left: 1px solid var(--ink); box-shadow: -18px 0 56px rgba(10,5,29,.2); }
.drawer-view { min-height: 100%; }
.route-drawer .task-detail-head { position: sticky; top: 0; z-index: 2; padding: 34px 84px 28px 30px; border-bottom: 1px solid #4d4959; }
.route-drawer .panel-close { position: fixed; right: 18px; top: 16px; z-index: 4; width: 44px; height: 44px; border-color: #6b6776; border-radius: var(--radius); background: #1c172d; font-size: 28px; line-height: 1; }
.drawer-back { position: sticky; top: 0; z-index: 3; width: 100%; min-height: 49px; display: flex; align-items: center; border: 0; border-bottom: 1px solid #4d4959; padding: 0 78px 0 30px; color: white; background: var(--ink-deep); font: 600 11px/1.2 var(--mono); text-align: left; cursor: pointer; }
.route-detail-view.has-parent .task-detail-head { top: 49px; }
.route-drawer .route-summary { grid-template-columns: repeat(2, 1fr); }
.route-drawer .route-summary div:first-child { grid-column: 1 / -1; }
.route-drawer .route-summary div:first-child strong { font-size: 34px; }
.route-drawer .route-dimensions > .route-dimension-row { grid-template-columns: 145px 1fr 52px; }
.task-detail-head { background: var(--ink-deep); color: white; padding: 30px; }
.task-detail-head .eyebrow { margin-bottom: 12px; }
.task-detail-head h2 { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; margin: 0 0 14px; }
.task-detail-head h2 .route-swatch { box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
.task-detail-head > p { color: #b6aec6; line-height: 1.58; max-width: 650px; }
.route-dossier-topline { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.route-dossier-topline > span { color: var(--muted-dark); font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.task-meta span { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 6px 8px; color: #c6bed6; font-family: var(--mono); font-size: 10px; text-transform: capitalize; }
.route-drawer .task-meta span { border-radius: 2px; background: transparent; }
.task-detail-panel .task-detail-head { padding: 30px 76px 0 30px; border-bottom: 1px solid #4d4959; }
.task-detail-panel .task-detail-head > p { margin-bottom: 24px; }
.task-detail-panel .task-meta { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 0; margin: 0 -76px 0 -30px; border-top: 1px solid #4d4959; }
.task-detail-panel .task-meta span { min-width: 0; padding: 12px 14px; border: 0; border-left: 1px solid #4d4959; border-radius: 0; background: transparent; overflow-wrap: anywhere; text-transform: uppercase; }
.task-detail-panel .task-meta span:first-child { border-left: 0; }
.task-evidence { display: block; padding: 0; border-bottom: 1px solid var(--ink); }
.task-evidence div { padding: 22px 30px 22px 27px; border-left: 3px solid var(--red); border-radius: 0; background: var(--paper); }
.task-evidence p { max-width: 70ch; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.58; }
.task-comparison-note { padding: 18px 30px; border-bottom: 1px solid #eadfbf; background: #fff8e8; }
.task-comparison-note strong { font-size: 12px; }
.task-comparison-note p { margin: 5px 0 0; color: #675b3e; font-size: 11px; line-height: 1.5; }
.task-results { padding: 0; }
.task-results-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 15px 30px; border-bottom: 1px solid var(--ink); }
.task-results-heading span { color: var(--faint); font: 600 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.task-results-heading h3 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.02em; }
.task-results-heading > strong { color: var(--muted); font: 600 10px/1.4 var(--mono); text-transform: uppercase; }
.task-result { width: 100%; min-height: 84px; display: grid; grid-template-columns: minmax(190px, 1.35fr) minmax(90px, 1fr) 88px; gap: 16px; align-items: center; padding: 14px 30px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.task-result-route { min-width: 0; }
.task-result-route > b { display: flex; align-items: center; gap: 8px; font: 600 11px/1.35 var(--mono); }
.task-result-route > span { display: block; margin: 6px 0 0 18px; color: var(--faint); font: 500 10px/1.45 var(--mono); }
.task-result-route > em { display: block; margin: 7px 0 0 18px; color: var(--faint); font: 600 10px/1.2 var(--mono); font-style: normal; letter-spacing: .09em; }
.task-result-best .task-result-route > em { color: var(--red-dark); }
.task-result-score { font: 600 19px/1.1 var(--mono); text-align: right; }
.task-result-score span { display: block; margin-bottom: 5px; color: var(--faint); font: 600 10px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.task-result-missing { color: var(--muted); background: var(--paper); }
.task-result-missing .result-track { background: transparent; border-color: var(--line-strong); }
.task-result-missing .task-result-score { color: var(--faint); font-size: 10px; line-height: 1.35; }
.task-result-missing .task-result-route > em { color: var(--faint); }
.result-track { height: 7px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); overflow: hidden; }
.result-track i { display: block; height: 100%; border-radius: 0; background: var(--accent); }
.detail-footnote { margin: 0; padding: 16px 30px 18px; color: var(--faint); background: var(--paper); font-size: 9.5px; line-height: 1.55; }
.task-detail-state { min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; padding: 30px; }
.task-detail-state strong { font-size: 18px; }
.task-detail-state p { max-width: 42ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.task-detail-error { background: var(--red-pale); }
.task-detail-state .secondary-button { margin-top: 10px; }
.route-detail-state { min-height: 280px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; padding: 30px; }
.route-detail-state strong { font-size: 18px; }
.route-detail-state p { max-width: 42ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.route-detail-error { background: var(--red-pale); }
.route-detail-state .secondary-button { margin-top: 10px; }
.route-dimension-unavailable i { background: transparent; }
.route-dimension-unavailable strong { color: var(--faint); font-size: 9.5px; }
.route-summary { display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; gap: 0; border-bottom: 1px solid var(--ink); }
.route-summary div { min-height: 98px; padding: 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; border-radius: 0; }
.route-summary div:nth-child(odd) { border-right: 0; }
.route-summary div:nth-last-child(-n+2) { border-bottom: 0; }
.route-summary strong { display: block; margin-top: 10px; font-family: var(--mono); font-size: 23px; font-weight: 600; letter-spacing: -.03em; }
.route-dimensions { padding: 28px 30px 30px; border-bottom: 1px solid var(--ink); }
.route-dimensions > .route-dimension-row { display: grid; grid-template-columns: 160px 1fr 55px; gap: 15px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.route-dimensions > .route-dimension-row:last-child { border-bottom: 0; }
.route-dimensions strong { font-family: var(--mono); font-weight: 600; text-align: right; }
.route-dimensions i { height: 5px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.route-dimensions i b { display: block; height: 100%; background: var(--route-color); }
.route-dossier-section-head { margin-bottom: 14px; }
.route-dossier-section-head span { color: var(--faint); font: 600 9px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.route-dossier-section-head h3 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.02em; }
.provenance-note { margin: 0; padding: 22px 30px; background: #fff8e8; border: 0; border-bottom: 1px solid #eadfbf; border-radius: 0; }
.provenance-note strong { font-size: 13px; }
.provenance-note p { color: #675b3e; font-size: 11px; line-height: 1.55; margin: 7px 0 0; }
.provenance-note .secondary-button { margin-top: 15px; }
.route-segments { padding: 28px 30px 34px; }
.route-segments > div { display: grid; grid-template-columns: 1fr 90px 55px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.route-segments > div:last-child { border-bottom: 0; }
.route-segments strong { font-family: var(--mono); font-weight: 600; }

/* ---------- Methodology ---------- */
.method-contract { border-block: 2px solid var(--ink); background: var(--surface); overflow: hidden; }
.method-contract-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(15rem, 2fr); color: white; background: var(--ink); }
.method-contract-copy { padding: clamp(28px, 4vw, 46px); }
.method-contract-copy > span, .method-stamp span, .method-ledger section > span, .method-comparison-copy > span, .method-validation span, .method-provenance > summary span { color: #ff7c88; font: 600 9px/1.25 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.method-contract-copy h3 { max-width: 820px; margin: 11px 0; font-size: clamp(29px, 3.2vw, 42px); line-height: 1.04; letter-spacing: -.035em; }
.method-contract-copy p { max-width: 780px; margin: 0; color: var(--muted-dark); font-size: 13px; line-height: 1.65; }
.method-stamp { min-height: 100%; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); border-left: 1px solid #4d4959; }
.method-stamp > div { display: flex; flex-direction: column; justify-content: end; padding: clamp(22px, 2.8vw, 34px); }
.method-stamp > div + div { border-top: 1px solid #4d4959; }
.method-stamp strong { margin-top: 10px; font-size: 16px; line-height: 1.35; }
.method-stamp code { margin-top: 7px; color: var(--muted-dark); font: 500 10px/1.45 var(--mono); overflow-wrap: anywhere; }
.method-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.method-ledger section { min-height: 250px; padding: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--ink); }
.method-ledger section:nth-child(odd) { border-right: 1px solid var(--ink); }
.method-ledger section:nth-last-child(-n+2) { border-bottom: 0; }
.method-ledger section > span { color: var(--accent-dark); }
.method-ledger h4, .method-comparison h4, .method-validation h4 { margin: 11px 0 0; font-size: 21px; line-height: 1.2; letter-spacing: -.022em; }
.method-ledger p, .method-comparison p, .method-validation p { max-width: 66ch; margin: 14px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.method-comparison { display: grid; grid-template-columns: minmax(0, 5fr) minmax(17rem, 2fr); border-top: 1px solid var(--ink); background: var(--paper); }
.method-comparison-copy { padding: clamp(24px, 3vw, 36px); }
.method-comparison-copy > span { color: var(--accent-dark); }
.method-comparison-facts { margin: 0; border-left: 1px solid var(--ink); }
.method-comparison-facts div { min-height: 76px; padding: 16px 20px; border-bottom: 1px solid var(--line-strong); }
.method-comparison-facts div:last-child { border-bottom: 0; }
.method-comparison-facts dt, .method-version-list dt { color: var(--faint); font: 600 9px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.method-comparison-facts dd, .method-version-list dd { margin: 6px 0 0; font: 600 11px/1.45 var(--mono); overflow-wrap: anywhere; }
.method-comparison-caveat { grid-column: 1 / -1; max-width: none !important; margin: 0 !important; padding: 16px clamp(24px, 3vw, 36px); border-top: 1px solid var(--ink); background: white; }
.method-validation { display: grid; grid-template-columns: minmax(14rem, 2fr) minmax(0, 5fr); border-top: 1px solid var(--ink); background: var(--paper); }
.method-validation > div { padding: clamp(24px, 3vw, 36px); }
.method-validation > div + div { border-left: 1px solid var(--ink); }
.method-validation span { color: var(--accent-dark); }
.method-validation p { max-width: 78ch; margin-top: 0; }
.method-validation a { display: inline-flex; min-height: 44px; align-items: center; margin-top: 15px; color: var(--accent-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.method-provenance { border-top: 1px solid var(--ink); }
.method-provenance > summary, .rubric-disclosure > summary { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; min-height: 68px; padding: 18px clamp(20px, 3vw, 30px); cursor: pointer; list-style: none; }
.method-provenance > summary::-webkit-details-marker,
.rubric-disclosure > summary::-webkit-details-marker { display: none; }
.method-provenance > summary span, .rubric-disclosure > summary span { color: var(--accent-dark); }
.method-provenance > summary strong, .rubric-disclosure > summary strong { font-size: 15px; }
.method-provenance > summary i, .rubric-disclosure > summary i { color: var(--accent-dark); font-size: 22px; font-style: normal; transition: transform 140ms var(--ease-out); }
.method-provenance[open] > summary i,
.rubric-disclosure[open] > summary i { transform: rotate(45deg); }
.method-version-list, .rubric-definitions { border-top: 1px solid var(--ink); }
.method-version-list section { display: grid; grid-template-columns: 34px minmax(11rem, 1.1fr) minmax(0, 2fr); gap: 20px; align-items: start; padding: 20px clamp(20px, 3vw, 30px); border-bottom: 1px solid var(--line); }
.method-version-list section:last-child { border-bottom: 0; }
.method-version-list section > b { color: var(--accent-dark); font: 600 11px/1.4 var(--mono); }
.method-version-source h4 { margin: 0; font-size: 14px; }
.method-version-source p { margin: 6px 0 0; color: var(--muted); font: 500 9.5px/1.45 var(--mono); overflow-wrap: anywhere; }
.method-version-list dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.rubric-disclosure { border-top: 1px solid var(--ink); }
.rubric-definitions > div { display: grid; grid-template-columns: repeat(2, 1fr); }
.rubric-definitions section { display: flex; gap: 15px; min-height: 134px; padding: 22px; border-bottom: 1px solid var(--line); }
.rubric-definitions section:nth-child(odd) { border-right: 1px solid var(--line); }
.rubric-definitions section:nth-last-child(-n+2) { border-bottom: 0; }
.rubric-definitions section > b { display: flex; flex: 0 0 29px; height: 29px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); color: var(--accent-dark); font-family: var(--mono); }
.rubric-definitions h4 { margin: 0 0 6px; }
.rubric-definitions p, .continuous-loop > p { color: var(--muted); font-size: 12px; line-height: 1.58; margin: 0; }
.continuous-loop { margin-top: 18px; }
.continuous-loop > p { padding: 0 24px 24px; }
.process-flow { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 25px; overflow-x: auto; }
.process-flow span { background: #eef4ef; border: 1px solid #d3e4d8; border-radius: 8px; padding: 11px 13px; white-space: nowrap; font-size: 11px; font-weight: 700; }
.process-flow i { color: var(--accent); font-style: normal; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px; }

/* ---------- FAQ + reading ---------- */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 2px solid var(--ink); background: white; }
.faq-column + .faq-column { border-left: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); background: white; overflow: hidden; }
.faq-column details:last-child { border-bottom: 0; }
.faq-list summary { min-height: 64px; padding: 20px 54px 20px 22px; font-size: 15px; font-weight: 700; line-height: 1.45; cursor: pointer; list-style: none; position: relative; }
.faq-list summary:focus-visible { outline-offset: -3px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; top: 16px; color: var(--accent-dark); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] { background: var(--paper); }
.faq-list p { max-width: 65ch; margin: 0; padding: 0 54px 24px 22px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.related-reading { padding: 76px 0 82px; color: white; background: var(--ink-deep); scroll-margin-top: 62px; }
.related-reading .section-heading { margin-bottom: 28px; }
.related-reading .section-heading h2 { max-width: 720px; }
.related-reading .section-heading p { color: #9d94ae; }
.reading-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #4d4959; }
.reading-grid a { display: flex; min-height: 250px; padding: 26px; flex-direction: column; color: white; background: transparent; text-decoration: none; transition: background 140ms var(--ease-out); }
.reading-grid a + a { border-left: 1px solid #4d4959; }
.reading-grid span { color: #ff7c88; font: 600 9px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.reading-grid h3 { margin: 22px 0 9px; font-size: 23px; letter-spacing: -.025em; }
.reading-grid p { margin: 0; color: #a89fb9; font-size: 12px; line-height: 1.62; }
.reading-grid b { margin-top: auto; padding-top: 25px; color: #ff9ca5; font-size: 11px; }

footer { background: var(--ink-deep); color: white; padding: 52px 0 42px; border-top: 1px solid #4d4959; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: end; gap: clamp(48px, 8vw, 112px); }
.footer-lockup { display: flex; align-items: center; gap: 18px; }
.footer-brand { display: flex; color: white; text-decoration: none; transition: opacity 140ms var(--ease-out); }
.footer-brand .faros-wordmark { width: 132px; color: white; }
.footer-divider { width: 1px; height: 38px; flex: 0 0 1px; background: #4d4959; }
.footer-product { display: grid; gap: 6px; }
.footer-product strong { font-size: 16px; line-height: 1; letter-spacing: -.01em; }
.footer-product span, .footer-provenance { color: #b2aabd; font: 600 10px/1.25 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-inner .footer-description { max-width: 52ch; margin: 20px 0 0; color: white; font-size: 14px; line-height: 1.5; }
.footer-inner .footer-provenance { margin: 8px 0 0; color: #ff9ca5; }
.footer-meta { max-width: 560px; text-align: right; }
.footer-inner .footer-meta > p:first-child { margin: 0; color: #b2aabd; font-size: 12px; line-height: 1.6; }
.footer-links { display: flex; justify-content: flex-end; gap: 24px; margin-top: 20px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: white; font-size: 12px; font-weight: 600; text-underline-offset: 4px; }
.footer-links span { margin-left: 5px; color: #ff9ca5; font: 600 9px/1 var(--mono); letter-spacing: .05em; }
.footer-inner .footer-legal { margin: 24px 0 0; color: #b2aabd; font-size: 11px; line-height: 1.5; }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .whitepaper-link:hover { color: white; background: var(--ink); }
  .whitepaper-link:hover b { color: #ff8d97; }
  .footer-brand:hover { opacity: .78; }
  .footer-links a:hover { color: #ff9ca5; }
  .release-method:hover strong, .release-story-link:hover strong { color: #ff6f7c; }
  .hero-index-route:hover { background: rgba(255,255,255,.04); }
  .hero-index-route:hover .hero-index-delta { color: white; }
  .route-row:hover { background: var(--paper); }
  .insight:hover { background: var(--paper); }
  .insight:hover .insight-action i { transform: translateX(3px); }
  .secondary-button:not(:disabled):hover { border-color: var(--red); background: var(--red-pale); }
  .chart-route-legend button:hover, .matrix-route-key button:hover, .scorecard-route:hover, .slice-route:hover { background: var(--paper); }
  .matchup-side:hover strong { text-decoration: underline; text-underline-offset: 3px; }
  .route-point:hover .chart-hit { stroke: var(--red); }
  .route-point:hover .chart-dot { stroke-width: 5; }
  .task-row:hover { background: var(--paper); }
  .task-result:hover { background: var(--paper); }
  .drawer-back:hover { background: #251f38; }
  .method-validation a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .faq-list summary:hover { color: var(--accent-dark); }
  .reading-grid a:hover { background: rgba(255,255,255,.055); }
  .task-empty-state button:not(:disabled):hover { border-color: var(--red); background: var(--red-pale); }
  .task-overall-action button:not(:disabled):hover { border-color: var(--red-dark); color: white; background: var(--red-dark); }
  .secondary-button:not(:disabled):active,
  .dimension-tab:active,
  .chart-route-legend button:active,
  .matrix-route-key button:active,
  .scorecard-route:active,
  .slice-route:active,
  .task-open-button:active,
  .task-result:active,
  .drawer-back:active,
  .panel-close:active,
  .task-empty-state button:not(:disabled):active,
  .matchup-side:active,
  .pagination button:not(:disabled):active,
  .release-method:active,
  .release-story-link:active,
  .nav-tab:active { transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 74rem) {
  .official-pill { display: none; }
}
@media (max-width: 1000px) {
  .insight-row { grid-template-columns: repeat(2, 1fr); }
  .insight:nth-child(2n) { border-right: 0; }
  .insight:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 3.75rem; }
  .hero-copy { padding-right: 0; }
  .hero-index { padding: 3rem 0 0; border-top: 1px solid #4d4959; border-left: 0; }
  .comparison-contract { grid-template-columns: minmax(0, 1fr); }
  .comparison-contract-summary { padding-right: 0; border-bottom: 1px solid #4d4959; }
  .comparison-contract-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; }
  .release-metrics > div, .release-method { border-top: 1px solid #4d4959; }
  .release-metrics div:nth-child(3) { border-left: 0; }
  .overview-grid { grid-template-columns: 1fr; }
  .decision-grid { grid-template-columns: 1fr; }
  .recommendation-panel { border-right: 0 !important; border-bottom: 1px solid var(--ink) !important; }
  .chart { display: block; }
  .chart-route-legend { border-top: 1px solid var(--ink); border-left: 0; }
  .slice-grid { grid-template-columns: 1fr; }
  .slice-card:nth-child(odd) { border-right: 0; }
  .slice-card:nth-child(n+3) { border-top: 0; }
  .slice-card + .slice-card { border-top: 1px solid var(--ink); }
  .task-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task-register-folio { grid-column: 1 / -1; min-height: 70px; }
  .task-controls > label { border-top: 1px solid var(--ink); }
  .task-controls > label:first-of-type { border-left: 0; }
  .task-overall-state { grid-template-columns: minmax(0, 1fr); }
  .task-overall-copy, .task-overall-action { min-height: 210px; }
  .method-contract-head, .method-comparison { grid-template-columns: minmax(0, 1fr); }
  .method-stamp, .method-comparison-facts { border-top: 1px solid #4d4959; border-left: 0; }
  .method-comparison-facts { border-top-color: var(--ink); }
  .method-stamp { min-height: 150px; }
  .method-validation { grid-template-columns: minmax(0, 1fr); }
  .method-validation > div + div { border-top: 1px solid var(--ink); border-left: 0; }
  .method-version-list section { grid-template-columns: 34px minmax(0, 1fr); }
  .method-version-list dl { grid-column: 2; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-grid a + a { border-top: 1px solid #4d4959; border-left: 0; }
}
@media (max-width: 48rem) {
  .site-header { min-height: 0; grid-template-columns: 1fr; gap: 13px; padding: 16px var(--page-pad); }
  .official-pill, .release-control > span { display: none; }
  .header-actions { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .release-control { width: auto; min-width: 0; }
  .release-control select { width: 100%; max-width: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .footer-meta { max-width: none; text-align: left; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - (2 * var(--page-pad))); }
  .faros-wordmark { width: 94px; }
  .brand-replay { font-size: 11px; }
  .hero { padding-block: 4rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  .hero-copy p { font-size: 15px; }
  .hero-index { padding-top: 2.5rem; }
  .hero-index-heading { gap: 14px; }
  .hero-index-release-title { font-size: 11px; }
  .hero-index-route { grid-template-columns: 34px minmax(0, 1fr) auto 52px; gap-inline: 10px; }
  .hero-index-identity strong { font-size: 11.5px; }
  .hero-index-identity small { font-size: 8.5px; }
  .hero-index-quality strong { font-size: 19px; }
  .comparison-contract-summary { padding-block: 18px; }
  .release-metrics > div, .release-method { padding: 18px 14px; }
  .section-nav { width: 100%; padding-inline: 14px; gap: 0; overflow-x: auto; justify-content: flex-start; }
  .nav-tab { flex: 0 0 auto; padding-inline: 9px; font-size: 12px; }
  .view { padding-block: 48px 65px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 17px; }
  .section-subheading { display: block; margin-top: 52px; }
  .section-subheading p { margin-top: 15px; }
  .run-story { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .run-story > a { width: max-content; min-width: 0; }
  .insight-row { grid-template-columns: 1fr; }
  .insight { border-top: 1px solid var(--line); border-right: 0; }
  .insight:first-child { border-top: 0; }
  .lead-leaderboard .panel-heading { align-items: flex-start; }
  .leaderboard-table { min-width: 1040px; }
  .leaderboard-table th, .leaderboard-table td { padding-inline: 8px; }
  .leaderboard-table th { white-space: normal; }
  .leaderboard-table .route-cell { min-width: 210px; }
  .score-cell { min-width: 195px; }
  .score-line { flex-wrap: wrap; gap: 4px 7px; }
  .score-track { width: 100%; }
  .chart > svg { height: 330px; }
  .chart-route-legend, .matrix-route-key { grid-template-columns: 1fr; }
  .matchup-picker { grid-template-columns: 1fr; }
  .matchup-scope { grid-template-columns: 1fr; }
  .matchup-scope > * + * { border-top: 1px solid var(--line); border-left: 0; }
  .matchup-picker label { padding: 18px; }
  .matchup-picker label:last-child { border-top: 1px solid var(--line); }
  .versus { min-height: 44px; margin: 0; border-block: 1px solid var(--ink); border-inline: 0; }
  .matchup-spotlight { grid-template-columns: 1fr; }
  .matchup-side, .matchup-side:nth-child(3) { min-height: 176px; text-align: left; }
  .matchup-side b { font-size: 42px; }
  .matchup-center { min-height: 132px; }
  .matrix-route-key button:nth-child(odd) { border-right: 0; }
  .task-controls { grid-template-columns: minmax(0, 1fr); }
  .task-register-folio { grid-column: auto; }
  .task-controls > label { border-left: 0; }
  .dimension-tabs { width: 100%; overflow-x: auto; }
  .dimension-tab { white-space: nowrap; }
  .slice-route { grid-template-columns: minmax(0, 1fr) 52px; }
  .slice-route .slice-bar { grid-column: 1 / -1; grid-row: 2; }
  .task-result { grid-template-columns: minmax(140px, 1fr) 68px; padding-inline: 22px; }
  .task-result .result-track { grid-column: 1 / -1; grid-row: 2; }
  .recommendation-copy { display: block; }
  .recommendation-copy .secondary-button { margin-top: 18px; }
  .impact-controls, .impact-result, .task-evidence { grid-template-columns: 1fr; }
  .impact-controls label + label, .impact-result div + div { border-top: 1px solid var(--line); border-left: 0; }
  .route-drawer { width: 100vw; }
  .task-detail-panel .task-detail-head { padding: 64px 64px 0 22px; }
  .task-detail-panel .task-meta { grid-template-columns: minmax(0, 1fr); margin: 0 -64px 0 -22px; }
  .task-detail-panel .task-meta span { border-top: 1px solid #4d4959; border-left: 0; }
  .task-detail-panel .task-meta span:first-child { border-top: 0; }
  .task-evidence div, .task-comparison-note { padding-inline: 22px; }
  .task-results-heading { display: block; padding-inline: 22px; }
  .task-results-heading > strong { display: block; margin-top: 8px; }
  .detail-footnote { padding-inline: 22px; }
  .route-drawer .task-detail-head { padding: 64px 72px 24px 22px; }
  .route-drawer .task-detail-head h2 { font-size: 26px; }
  .route-summary div { padding: 20px 22px; }
  .route-drawer .route-dimensions, .route-drawer .route-segments { padding-inline: 22px; }
  .route-drawer .provenance-note { padding-inline: 22px; }
  .route-drawer .route-dimensions > .route-dimension-row { grid-template-columns: 105px 1fr 44px; gap: 9px; }
  .method-ledger { grid-template-columns: minmax(0, 1fr); }
  .method-ledger section { min-height: 0; border-right: 0 !important; border-bottom: 1px solid var(--ink) !important; }
  .method-ledger section:last-child { border-bottom: 0 !important; }
  .method-version-list section { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
  .method-version-list dl { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .method-provenance > summary, .rubric-disclosure > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .method-provenance > summary span, .rubric-disclosure > summary span { grid-column: 1 / -1; }
  .rubric-definitions > div { grid-template-columns: 1fr; }
  .rubric-definitions section { min-height: 0; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .rubric-definitions section:last-child { border-bottom: 0 !important; }
  .faq-list { grid-template-columns: minmax(0, 1fr); }
  .faq-column + .faq-column { border-top: 1px solid var(--ink); border-left: 0; }
  .related-reading { padding-block: 58px; }
  .reading-grid a { min-height: 220px; }
  footer { padding-block: 42px 36px; }
  .footer-inner { gap: 30px; }
  .footer-brand .faros-wordmark { width: 112px; }
  .footer-lockup { gap: 14px; }
  .footer-divider { height: 32px; }
  .footer-product strong { font-size: 15px; }
  .footer-links { flex-wrap: wrap; gap: 12px 22px; }
}
@media (max-width: 480px) {
  .hero-index-meta { display: grid; gap: 6px; }
  .hero-index-heading { display: block; }
  .hero-index-heading a { width: max-content; margin-top: 8px; }
  .hero-index-route { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .hero-index-delta { display: none; }
  .comparison-contract-grid { grid-template-columns: minmax(0, 1fr); }
  .release-metrics div + div, .release-metrics div:nth-child(3), .release-method { border-left: 0; }
  .comparison-contract-evidence { grid-template-columns: minmax(0, 1fr); }
  .release-story-link { border-left: 0; }
}
@media (max-width: 380px) {
  .site-header { gap: 12px; padding-inline: var(--page-pad); }
  .faros-wordmark { width: 78px; }
  .brand-divider { height: 18px; }
  .brand-replay { display: inline; font-size: 10px; letter-spacing: .08em; }
  .release-control select { width: 100%; max-width: none; padding-inline: 10px 30px; }
}
