@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #131018;
  --ink-deep: #0b0716;
  --muted: #6b6577;
  --faint: #6f687a;
  --paper: #f6f5f2;
  --surface: #ffffff;
  --line: #e6e3dc;
  --line-strong: #d8d4cb;
  --accent: #e10014;
  --accent-dark: #b00010;
  --accent-pale: #fdeef0;
  --positive: #1a7f37;
  --positive-pale: #e9f5ec;
  --negative: #c03320;
  --violet: #6441fd;
  --violet-pale: #f4f1ff;
  --amber: #b57d10;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-card: 0 1px 2px rgba(19, 16, 24, 0.04), 0 8px 28px rgba(19, 16, 24, 0.05);
  --shadow-pop: 0 18px 60px rgba(11, 7, 22, 0.18);
  --radius: 16px;
}

* { 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;
}
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(1240px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 99; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }
.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 {
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink-deep);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.faros-wordmark { width: 112px; height: auto; color: white; }
.brand-divider { height: 20px; width: 1px; background: rgba(255,255,255,.28); margin-inline: 2px; }
.brand-replay { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #cfc9dd; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.developer-control { position: relative; }
.developer-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 7px 10px; border: 1px solid #453a5e; border-radius: 8px; color: #cfc9dd; background: #221a33; font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.developer-toggle:hover, .developer-toggle:focus-visible, .developer-control.active .developer-toggle { border-color: #8e79ec; color: white; }
.developer-dot { width: 7px; height: 7px; border-radius: 50%; background: #8f86a4; }
.developer-control.active .developer-dot { background: #7ee2a1; box-shadow: 0 0 0 4px rgba(126,226,161,.12); }
.developer-form { position: absolute; z-index: 70; top: calc(100% + 10px); right: 0; width: min(310px, calc(100vw - 28px)); padding: 16px; border: 1px solid #453a5e; border-radius: 11px; background: #171024; box-shadow: var(--shadow-pop); }
.developer-form label { display: block; margin-bottom: 7px; color: #b6aec6; font: 600 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.developer-form input { width: 100%; padding: 9px 10px; border: 1px solid #51446e; border-radius: 7px; color: white; background: #0d0817; }
.developer-form > div { display: flex; gap: 8px; margin-top: 10px; }
.developer-form button { padding: 7px 10px; border: 1px solid #594979; border-radius: 7px; color: white; background: #2a2040; font-size: 11px; cursor: pointer; }
.developer-form button[type="submit"] { border-color: #c32938; background: #a60010; }
.developer-form p { min-height: 1.4em; margin: 10px 0 0; color: #ff8d98; font-size: 10.5px; line-height: 1.4; }
.official-pill { font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #a79fb8; display: flex; align-items: center; gap: 8px; }
.official-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(225,0,20,.18); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(225,0,20,.18); } 50% { box-shadow: 0 0 0 7px rgba(225,0,20,.07); } }
.release-control { display: flex; align-items: center; gap: 9px; color: #a79fb8; font-size: 12px; }
.release-control select { width: clamp(180px, 26vw, 340px); font-family: var(--mono); font-size: 12px; color: white; background: #221a33; border: 1px solid #453a5e; border-radius: 8px; padding: 8px 30px 8px 11px; }

/* ---------- Hero ---------- */
.hero {
  width: 100%; max-width: none;
  padding: 84px max(24px, calc((100vw - 1240px) / 2)) 76px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 76px; align-items: center;
  color: white;
  background:
    radial-gradient(1000px 480px at 82% 8%, rgba(100,65,253,.17), transparent 62%),
    radial-gradient(720px 420px at 8% 100%, rgba(225,0,20,.12), transparent 60%),
    linear-gradient(150deg, #0b0716 0%, #0e0820 58%, #170d31 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(720px 520px at 68% 42%, rgba(0,0,0,.9), transparent 75%);
}
.hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -300px; bottom: -340px; border: 1px solid rgba(225,0,20,.35); border-radius: 50%; box-shadow: 0 0 0 70px rgba(100,65,253,.04), 0 0 0 140px rgba(225,0,20,.03); }
.eyebrow { font: 600 11px/1.25 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #ff5f6e; margin-bottom: 20px; }
.eyebrow.dark { color: var(--accent-dark); }
.hero h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(48px, 5.4vw, 80px); line-height: .97; letter-spacing: -.05em; margin: 0; }
.hero h1 em { font-style: normal; font-weight: 700; background: linear-gradient(96deg, #ff5f6e 10%, #ff2438 55%, #c96bff 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { font-size: 17px; line-height: 1.65; max-width: 600px; color: #b6aec6; margin: 26px 0 0; }
.hero-copy .hero-descriptor { margin-top: 24px; color: white; font-size: 20px; font-weight: 700; line-height: 1.4; }
.hero-copy .hero-explainer { margin-top: 10px; }
.hero-copy .hero-method { margin-top: 16px; color: #91899f; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hero-leader { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 30px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.05); backdrop-filter: blur(6px); font-size: 13px; color: #cfc7de; }
.hero-leader b { font-family: var(--mono); font-weight: 600; color: white; }
.hero-leader .crown { color: #ffb03b; }
.hero-leader .lead-score { font-family: var(--mono); font-weight: 600; color: #7ee2a1; }

.release-card { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 26px; backdrop-filter: blur(14px); position: relative; z-index: 1; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.release-card-top { min-height: 1.25em; display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #8f86a4; }
.release-card > strong { display: block; min-height: 2.44em; font-size: 24px; font-weight: 700; line-height: 1.22; letter-spacing: -.02em; margin: 18px 0 22px; }
.release-metrics { border-block: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 0; }
.release-metrics div + div { border-left: 1px solid rgba(255,255,255,.12); padding-left: 18px; }
.release-metrics b { display: block; font-family: var(--mono); font-weight: 600; color: #ff5f6e; font-size: 24px; letter-spacing: -.02em; }
.release-metrics div:nth-child(2) b { color: #a68bff; }
.release-metrics div:nth-child(3) b { color: #7ee2a1; }
.release-metrics span { color: #8f86a4; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.release-method, .release-story-link { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 15px; padding: 0; border: 0; background: transparent; font-size: 11px; color: #8f86a4; cursor: pointer; text-align: left; text-decoration: none; }
.release-method strong, .release-story-link strong { color: #d9d2e6; text-align: right; font-size: 12px; }
.release-method:hover strong, .release-story-link:hover strong { color: #ff5f6e; }
.release-story-link { padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.12); }

/* ---------- Section nav ---------- */
.section-nav { position: sticky; top: 0; z-index: 30; height: 62px; display: flex; align-items: stretch; gap: 28px; border-bottom: 1px solid var(--line); background: rgba(246,245,242,.93); backdrop-filter: blur(14px); }
.nav-tab { display: flex; align-items: center; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 2px 2px 0; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: color .15s ease, border-color .15s ease; }
.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; margin-top: 45px; padding: 25px; display: flex; align-items: center; gap: 12px; color: var(--muted); transform: translateX(-50%); }
.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 .release-card,
.is-loading .view,
.is-loading .related-reading,
.is-loading footer { visibility: hidden; }
.error-banner { margin-top: 34px; background: #ffe9e3; border: 1px solid #ffc9bb; color: #8e2d18; padding: 16px; border-radius: 10px; }

.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: var(--shadow-card); 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: 18px; }
.table-scroll { overflow-x: auto; }
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: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfaf8; }
td { border-bottom: 1px solid #efede8; padding: 15px 16px; font-size: 12.5px; }
tbody tr:last-child td { border-bottom: 0; }
.leaderboard-table td { vertical-align: middle; }
.route-row { cursor: pointer; transition: background .12s ease; }
.route-row:hover, .route-row:focus, .route-row.route-selected { background: var(--violet-pale); }
.route-row:focus-visible, .task-row:focus-visible { outline: 3px solid rgba(100,65,253,.55); outline-offset: -3px; }
.route-row.route-selected { box-shadow: inset 3px 0 var(--violet); }
.winner-row { background: linear-gradient(90deg, rgba(225,0,20,.045), rgba(225,0,20,.012) 55%, transparent); }

.rank-cell { width: 74px; }
.rank { display: block; font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 17px; 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-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: 5px; background: #faf9f6; color: var(--muted); font-size: 10px; line-height: 1.2; white-space: nowrap; }
.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: 14px; width: min(190px, 100%); margin-top: 7px; background: #efede7; border-radius: 4px; overflow: visible; }
.score-track .fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px 2px 2px 4px; background: var(--accent); opacity: .85; }
.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 { padding: 13px 24px; border-top: 1px solid var(--line); background: #fbfaf8; color: var(--faint); font-size: 11px; line-height: 1.5; }

.help-tip { display: inline-flex; flex: 0 0 17px; width: 17px; height: 17px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--violet); background: white; font: 600 10px/1 var(--mono); cursor: help; vertical-align: 1px; }
.help-tip:focus { outline: 3px solid rgba(100,65,253,.3); outline-offset: 2px; }
.help-tooltip { position: fixed; z-index: 100; width: min(290px, calc(100vw - 28px)); padding: 11px 12px; border-radius: 8px; 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: 18px; padding: 30px; color: white; background: radial-gradient(640px 300px at 90% -30%, rgba(100,65,253,.28), transparent 65%), linear-gradient(125deg, #0b0716, #1d1140); }
.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: #b6aec6; font-size: 13px; line-height: 1.62; }
.run-story > a { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; padding: 12px 16px; border: 1px solid rgba(255,255,255,.26); border-radius: 9px; color: white; font-size: 12px; font-weight: 700; text-decoration: none; transition: border-color .15s ease; }
.run-story > a:hover { border-color: #ff5f6e; color: #ff9ca5; }

/* ---------- Signal leaders ---------- */
.insight-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.insight { position: relative; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); min-height: 128px; text-align: left; cursor: pointer; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.insight::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent); }
.insight:nth-child(2)::before { background: var(--positive); }
.insight:nth-child(3)::before { background: var(--violet); }
.insight:nth-child(4)::before { background: var(--amber); }
.insight:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: var(--line-strong); }
.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: 14.5px; font-weight: 600; margin: 11px 0 7px; letter-spacing: -.01em; }
.insight .insight-stat { font-family: var(--mono); font-weight: 600; font-size: 21px; letter-spacing: -.02em; text-transform: none; color: var(--ink); display: block; margin-bottom: 6px; }
.insight p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* ---------- Decision grid ---------- */
.decision-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-bottom: 18px; }
.recommendation-panel { padding: 26px; background: linear-gradient(150deg, #fdeef0, #fffdfd 70%); }
.recommendation-copy { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.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; font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 10px 0; }
.recommendation-copy p { color: var(--muted); font-size: 12px; margin: 0; }
.secondary-button { border: 1px solid var(--line-strong); background: white; border-radius: 9px; color: var(--accent-dark); font-weight: 700; font-size: 12.5px; padding: 11px 14px; cursor: pointer; transition: border-color .15s ease; }
.secondary-button:hover { border-color: var(--accent); }
.caveat { color: var(--faint); font-size: 10px; line-height: 1.55; margin: 18px 0 0; }
.impact-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 24px 8px; }
.impact-controls label, .matchup-scope label { display: flex; flex-direction: column; gap: 7px; color: var(--faint); font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; }
input { border: 1px solid var(--line-strong); background: white; color: var(--ink); border-radius: 9px; padding: 11px 12px; width: 100%; font-variant-numeric: tabular-nums; }
.impact-result { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 24px; gap: 10px; }
.impact-result div { border-top: 1px solid var(--line); padding-top: 12px; }
.impact-result strong { display: block; font-family: var(--mono); font-size: 22px; font-weight: 600; margin-top: 6px; color: var(--positive); }
.impact-result strong.negative { color: var(--negative); }
.impact-result strong.neutral { color: var(--ink); font-family: var(--sans); font-weight: 700; }
.impact-panel .caveat { padding: 0 24px 18px; }

/* ---------- Charts ---------- */
.overview-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.overview-evidence { grid-template-columns: 1fr; }
.overview-evidence .scorecard-panel { margin-top: 0; }
.pareto-panel { min-height: 430px; }
.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: 14px; height: 2px; border-top: 2px dashed var(--accent); }
.zone-key i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(19,16,24,.08); }
.zone-key.strong i { background: #e6f2e9; }
.zone-key.mixed i { background: #f6efdd; }
.zone-key.weak i { background: #f9e4e1; }
.chart { padding: 12px 18px 22px; }
.chart svg { width: 100%; height: 348px; 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: rgba(19,16,24,.4); font: 600 8px/1 var(--mono); letter-spacing: .1em; }
.chart-median { stroke: rgba(19,16,24,.16); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-grid { stroke: #eceae4; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-label { font: 500 9px/1 var(--mono); fill: var(--faint); }
.chart-marker { fill: white; font: 600 8px/1 var(--mono); pointer-events: none; }
.chart-dot { stroke: white; stroke-width: 3; filter: drop-shadow(0 3px 5px rgba(0,0,0,.14)); }
.route-point { cursor: pointer; }
.route-point:focus { outline: none; }
.route-point:focus .chart-dot, .route-point:hover .chart-dot { stroke: var(--violet); 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, .matrix-route-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 4px 10px 0; }
.chart-route-legend button, .matrix-route-key button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.chart-route-legend button:hover, .matrix-route-key button:hover { background: var(--violet-pale); }
.chart-route-legend i, .matrix-route-key i { display: inline-flex; flex: 0 0 24px; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; color: white; font: 600 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: 11.5px; }
.chart-route-legend small { margin-top: 3px; color: var(--muted); font-size: 9.5px; }

.scorecard-panel { margin-top: 18px; }
.scorecard { padding: 14px 24px 24px; overflow-x: auto; }
.scorecard-row { display: grid; grid-template-columns: minmax(200px, 1.25fr) repeat(4, minmax(145px, 1fr)); align-items: center; min-width: 850px; border-bottom: 1px solid #efede8; }
.scorecard-row:last-child { border-bottom: 0; }
.scorecard-row > div { padding: 12px; }
.scorecard-route { width: 100%; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.scorecard-route:hover { background: var(--violet-pale); }
.scorecard-route strong { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.scorecard-head { color: var(--faint); font: 600 10px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.scorecard-head > div { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: normal; }
.dimension-score { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; }
.dimension-score i { width: 46px; height: 5px; border-radius: 5px; background: #eceae4; overflow: hidden; }
.dimension-score i span { display: block; height: 100%; background: var(--accent); }

/* ---------- Matchups ---------- */
.matchup-picker { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: end; gap: 18px; padding: 25px; max-width: 800px; margin-inline: auto; }
.matchup-scope { max-width: 800px; margin: 0 auto 14px; padding: 18px 25px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; align-items: end; }
.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-variant-numeric: tabular-nums; }
.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 { border: 1px solid var(--line-strong); background: white; color: var(--ink); border-radius: 9px; padding: 11px 34px 11px 12px; }
.versus { border: 1px solid var(--line-strong); background: var(--paper); width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); color: var(--muted); margin: auto; }
.matchup-spotlight { display: grid; grid-template-columns: 1fr 180px 1fr; margin: 34px auto; max-width: 950px; align-items: center; }
.matchup-side { text-align: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.matchup-side:hover strong { text-decoration: underline; }
.matchup-side b { display: block; font-family: var(--mono); font-size: 50px; font-weight: 600; letter-spacing: -.04em; }
.matchup-side strong { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.matchup-side span { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.matchup-center { text-align: center; color: var(--faint); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.matchup-center b { display: block; color: var(--ink); font-size: 17px; margin: 7px; letter-spacing: 0; }
.heatmap-panel { max-width: 950px; margin-inline: auto; }
.heatmap-wrap { padding: 25px; overflow-x: auto; }
.heatmap { min-width: 660px; table-layout: fixed; border-collapse: separate; border-spacing: 5px; }
.heatmap th, .heatmap td { width: auto; height: 52px; padding: 0; border: 0; border-radius: 7px; 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: #f0efe9; color: var(--faint); }
.heatmap-cell.selected-axis { box-shadow: inset 0 0 0 2px rgba(100,65,253,.55); }
.heatmap-cell.selected-a { background-color: rgba(225,0,20,.12) !important; }
.heatmap-cell.selected-b { background-color: rgba(100,65,253,.13) !important; }
.heatmap-cell.selected-pair { box-shadow: inset 0 0 0 3px var(--ink-deep); font-weight: 600; }
.matrix-route-key { min-width: 660px; margin-top: 18px; padding-inline: 0; }
.matrix-route-key span { font-family: var(--mono); font-size: 10.5px; font-weight: 600; }

/* ---------- Slices ---------- */
.dimension-tabs { display: inline-flex; background: #eceae3; padding: 4px; border-radius: 11px; margin-bottom: 24px; }
.dimension-tab { border: 0; background: transparent; color: var(--muted); padding: 10px 16px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.dimension-tab.active { background: white; color: var(--ink); font-weight: 700; box-shadow: 0 2px 7px rgba(0,0,0,.08); }
.slice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.slice-card { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 22px; box-shadow: var(--shadow-card); }
.slice-card h3 { margin: 0; display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; text-transform: capitalize; }
.slice-card > span { color: var(--faint); font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; }
.slice-routes { margin-top: 19px; }
.slice-route { width: 100%; display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(90px, .8fr) 52px; gap: 10px; align-items: center; margin: 7px 0; padding: 6px 4px; border: 0; background: transparent; color: var(--ink); font-size: 11px; cursor: pointer; }
.slice-route:hover { background: var(--violet-pale); border-radius: 7px; }
.slice-route.route-selected, .task-result.route-selected, .scorecard-route.route-selected, .matchup-side.route-selected { background: var(--violet-pale); box-shadow: inset 3px 0 var(--violet); }
.slice-route b { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--mono); font-weight: 600; font-size: 10.5px; 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-bar { height: 7px; background: #eceae4; border-radius: 7px; overflow: hidden; }
.slice-bar i { display: block; height: 100%; background: var(--accent); border-radius: 7px; }

/* ---------- Task catalog ---------- */
.task-controls { padding: 19px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; overflow: visible; }
.task-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; transition: grid-template-columns .2s ease; }
.task-workspace.has-detail { grid-template-columns: minmax(520px, 1.45fr) minmax(340px, .85fr); }
.task-panel .panel-heading { min-height: 64px; }
.task-table td { font-size: 11.5px; }
.task-description { min-width: 280px; max-width: 370px; }
.task-description strong, .task-description span { display: block; }
.task-description span { color: var(--muted); margin-top: 4px; line-height: 1.45; }
.task-row { cursor: pointer; }
.task-row:hover, .task-row:focus, .task-row.selected { background: var(--violet-pale); }
.task-link { color: var(--accent-dark); font-family: var(--mono); font-weight: 600; text-decoration: none; white-space: nowrap; }
.task-link:hover { text-decoration: underline; }
.task-link span { font-size: 10px; }
.tag { display: inline-block; border-radius: 5px; padding: 5px 7px; background: #f0efe9; color: var(--muted); text-transform: capitalize; white-space: nowrap; }
.task-best-route { display: inline-flex; align-items: center; gap: 7px; min-width: 170px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; }
.task-best-route-tie { flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.3; }
.task-best-route-tie strong { color: var(--accent-dark); }
.task-best-route-tie small { max-width: 170px; overflow: hidden; color: var(--muted); font: inherit; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.task-empty-row td { padding: 42px 20px; text-align: center; }
.task-empty-state { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--muted); }
.task-empty-state strong { color: var(--ink); font-size: 15px; }
.task-empty-state button { margin-top: 7px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 8px 12px; background: white; color: var(--ink); cursor: pointer; }
.task-empty-state button:hover, .task-empty-state button:focus-visible { border-color: var(--violet); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 17px; border-top: 1px solid var(--line); }
.pagination button { border: 1px solid var(--line-strong); border-radius: 7px; background: white; padding: 8px 12px; cursor: pointer; }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination span { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.task-detail-panel { position: sticky; top: 80px; max-height: calc(100vh - 98px); overflow-y: auto; }
.panel-close { position: absolute; right: 14px; top: 13px; z-index: 2; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: white; width: 34px; height: 34px; border-radius: 50%; font-size: 23px; cursor: pointer; }

/* ---------- Route drawer ---------- */
.route-drawer { position: fixed; z-index: 60; inset: 0 0 0 auto; width: min(570px, calc(100vw - 48px)); overflow-y: auto; color: var(--ink); background: white; border-left: 1px solid var(--line); box-shadow: -24px 0 70px rgba(11,7,22,.22); animation: route-drawer-in .2s ease-out; }
.route-drawer .task-detail-head { padding: 38px 30px 30px; }
.route-drawer .panel-close { position: fixed; right: 18px; top: 16px; background: rgba(255,255,255,.12); }
.route-drawer .route-summary { grid-template-columns: repeat(2, 1fr); }
.route-drawer .route-summary div:last-child { grid-column: 1 / -1; }
.route-drawer .route-dimensions > div { grid-template-columns: 135px 1fr 48px; }
@keyframes route-drawer-in { from { transform: translateX(28px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.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; }
.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; }
.raw-data-link { display: inline-flex; gap: 7px; align-items: center; margin-top: 18px; color: #ff5f6e; font-size: 12px; font-weight: 700; text-decoration: none; }
.raw-data-link:hover { text-decoration: underline; }
.task-results { padding: 24px 30px 32px; }
.task-result { width: 100%; display: grid; grid-template-columns: minmax(180px, 1.4fr) 1fr 70px; gap: 16px; align-items: center; padding: 13px 6px; border: 0; border-bottom: 1px solid #efede8; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.task-result:hover { background: var(--violet-pale); }
.task-result:last-child { border-bottom: 0; }
.task-result > div > b { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600; font-size: 11.5px; }
.task-result > div > span { color: var(--faint); font-family: var(--mono); font-size: 10px; margin-left: 18px; }
.task-result-score { font-family: var(--mono); font-size: 21px; font-weight: 600; text-align: right; }
.result-track { height: 8px; background: #eceae4; border-radius: 8px; overflow: hidden; }
.result-track i { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
.detail-footnote { color: var(--faint); font-size: 10px; line-height: 1.55; margin: 18px 0 0; }
.task-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px 30px 0; }
.task-evidence div { padding: 15px; background: #f5f4f0; border-radius: 10px; }
.task-evidence p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 7px 0 0; }
.route-summary { display: grid; grid-template-columns: repeat(5, 1fr); padding: 24px 30px; gap: 12px; border-bottom: 1px solid var(--line); }
.route-summary div { padding: 14px; background: #f5f4f0; border-radius: 10px; }
.route-summary strong { display: block; font-family: var(--mono); font-size: 22px; font-weight: 600; margin-top: 7px; }
.route-dimensions { padding: 20px 30px; }
.route-dimensions > div { display: grid; grid-template-columns: 160px 1fr 55px; gap: 15px; align-items: center; padding: 9px 0; font-size: 12px; }
.route-dimensions strong { font-family: var(--mono); font-weight: 600; }
.route-dimensions i { height: 7px; background: #eceae4; border-radius: 7px; overflow: hidden; }
.route-dimensions i b { display: block; height: 100%; background: var(--accent); }
.provenance-note { margin: 0 30px 20px; padding: 15px; background: #fff6e3; border: 1px solid #efdfb8; border-radius: 10px; }
.provenance-note p { color: #6f654f; font-size: 11px; margin: 5px 0 0; }
.route-segments { padding: 0 30px 28px; }
.route-segments h3 { font-size: 14px; }
.route-segments > div { display: grid; grid-template-columns: 1fr 90px 55px; padding: 9px 0; border-bottom: 1px solid #efede8; font-size: 11px; }
.route-segments strong { font-family: var(--mono); font-weight: 600; }

/* ---------- Methodology ---------- */
.method-hero { padding: 30px; display: flex; justify-content: space-between; gap: 30px; align-items: end; background: var(--ink-deep); color: white; }
.method-hero h3 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin: 8px 0; }
.method-hero p { color: #b6aec6; line-height: 1.62; max-width: 720px; }
.method-hero span { color: #b6aec6; }
.method-hero a { color: #ff5f6e; text-decoration: none; white-space: nowrap; }
.benchmark-scope { margin-top: 18px; padding: 25px; border-left: 4px solid var(--amber); }
.benchmark-scope h3 { margin: 9px 0; font-size: 24px; }
.benchmark-scope p { max-width: 900px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.62; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 18px 0; }
.method-card { padding: 25px; }
.method-card h3 { font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin: 9px 0; }
.method-card p { color: var(--muted); font-size: 13px; line-height: 1.62; }
.method-card a { display: inline-block; margin-top: 8px; color: var(--violet); font-size: 12px; font-weight: 700; text-decoration: none; }
.judge-card { border-left: 4px solid var(--violet); }
.validation-card { border-left: 4px solid var(--positive); }
.rubric-disclosure { margin-top: 18px; }
.rubric-disclosure > summary { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 22px 25px; cursor: pointer; list-style: none; }
.rubric-disclosure > summary::-webkit-details-marker { display: none; }
.rubric-disclosure > summary span { color: var(--accent-dark); font: 600 9px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rubric-disclosure > summary strong { font-size: 15px; }
.rubric-disclosure > summary i { color: var(--accent-dark); font-size: 22px; font-style: normal; transition: transform .15s ease; }
.rubric-disclosure[open] > summary i { transform: rotate(45deg); }
.rubric-definitions > div { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #efede8; }
.rubric-definitions section { display: flex; gap: 15px; padding: 22px; border-bottom: 1px solid #efede8; }
.rubric-definitions section:nth-child(odd) { border-right: 1px solid #efede8; }
.rubric-definitions section > b { display: flex; flex: 0 0 29px; height: 29px; align-items: center; justify-content: center; background: var(--accent-pale); color: var(--accent-dark); border-radius: 50%; 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)); gap: 14px; }
.faq-list details { align-self: start; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow-card); overflow: hidden; }
.faq-list summary { padding: 19px 48px 19px 20px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 15px; color: var(--accent-dark); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.related-reading { padding: 76px 0 82px; color: white; background: radial-gradient(900px 400px at 12% 0%, rgba(100,65,253,.14), transparent 60%), 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); gap: 18px; }
.reading-grid a { display: flex; min-height: 250px; padding: 24px; flex-direction: column; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; color: white; background: rgba(255,255,255,.045); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.reading-grid a:hover { border-color: #ff5f6e; transform: translateY(-2px); }
.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: 40px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.footer-brand { font-size: 18px; font-weight: 700; }
.footer-inner p { margin: 7px 0 0; color: #8f86a4; font-size: 11px; }
.footer-meta { max-width: 540px; text-align: right; }
.footer-meta .footer-legal { color: #b2aabd; }

[hidden] { display: none !important; }
.hero-leader[hidden] { display: inline-flex !important; visibility: hidden; }
:focus-visible { outline: 3px solid rgba(100,65,253,.45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .insight-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 45px; }
  .release-card { max-width: 600px; }
  .overview-grid { grid-template-columns: 1fr; }
  .decision-grid { grid-template-columns: 1fr; }
  .slice-grid { grid-template-columns: 1fr; }
  .task-controls { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; }
  .reading-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .task-workspace.has-detail { grid-template-columns: 1fr; }
  .task-detail-panel { position: fixed; z-index: 55; inset: 0 0 0 auto; width: min(570px, calc(100vw - 28px)); height: 100vh; height: 100dvh; max-height: none; overflow-y: auto; border-radius: 0; box-shadow: -24px 0 70px rgba(11,7,22,.22); animation: route-drawer-in .2s ease-out; }
  .task-detail-panel .panel-close { position: fixed; right: 18px; top: 16px; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1240px); }
  .site-header { height: auto; min-height: 66px; padding: 12px 16px; }
  .official-pill, .release-control > span { display: none; }
  .header-actions { gap: 8px; }
  .developer-toggle { width: 32px; justify-content: center; padding-inline: 0; }
  .developer-toggle span:last-child { display: none; }
  .faros-wordmark { width: 94px; }
  .brand-replay { font-size: 11px; }
  .release-control select { max-width: 145px; }
  .hero { padding: 55px 20px 48px; }
  .hero h1 { font-size: 46px; }
  .hero-copy p { font-size: 15px; }
  .hero-leader { font-size: 12px; padding: 10px 13px; }
  .release-card { padding: 20px; }
  .release-metrics div + div { padding-left: 10px; }
  .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; }
  .lead-leaderboard .panel-heading { align-items: flex-start; }
  .leaderboard-table th:nth-child(4), .leaderboard-table td:nth-child(4),
  .leaderboard-table th:nth-child(6), .leaderboard-table td:nth-child(6),
  .leaderboard-table th:nth-child(7), .leaderboard-table td:nth-child(7) { display: none; }
  .leaderboard-table th, .leaderboard-table td { padding-inline: 8px; }
  .leaderboard-table th { white-space: normal; }
  .leaderboard-table .route-cell { min-width: 150px; }
  .route-chips .chip:nth-child(n+2) { display: none; }
  .score-cell { min-width: 150px; }
  .score-line { flex-wrap: wrap; gap: 4px 7px; }
  .score-track { width: 100%; }
  .chart svg { height: 300px; }
  .chart-route-legend, .matrix-route-key { grid-template-columns: 1fr; }
  .matchup-picker { grid-template-columns: 1fr; }
  .matchup-scope { grid-template-columns: 1fr; }
  .versus { margin: -2px auto; }
  .matchup-spotlight { grid-template-columns: 1fr 70px 1fr; }
  .matchup-side b { font-size: 36px; }
  .task-controls { grid-template-columns: 1fr; }
  .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) 55px; }
  .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; }
  .route-summary { grid-template-columns: repeat(2, 1fr); }
  .route-dimensions > div { grid-template-columns: 120px 1fr 48px; }
  .route-drawer { width: calc(100vw - 14px); }
  .task-detail-panel { width: calc(100vw - 14px); }
  .route-drawer .task-detail-head { padding: 64px 22px 24px; }
  .route-drawer .task-detail-head h2 { font-size: 26px; }
  .route-drawer .route-summary, .route-drawer .route-dimensions, .route-drawer .route-segments { padding-inline: 22px; }
  .route-drawer .provenance-note { margin-inline: 22px; }
  .route-drawer .route-dimensions > div { grid-template-columns: 105px 1fr 44px; gap: 9px; }
  .method-hero { display: block; }
  .method-hero a { display: inline-block; margin-top: 15px; }
  .rubric-definitions > div { grid-template-columns: 1fr; }
  .rubric-definitions section:nth-child(odd) { border-right: 0; }
  .related-reading { padding-block: 58px; }
  .reading-grid a { min-height: 220px; }
  .footer-inner { display: block; }
  .footer-meta { margin-top: 24px; text-align: left; }
}
@media (max-width: 480px) {
  .hero-leader { width: 100%; min-height: 89.5px; }
  .release-card-top { min-height: 2.5em; }
  .release-card > strong { min-height: 3.66em; }
}
@media (max-width: 380px) {
  .site-header { gap: 8px; padding-inline: 10px; }
  .faros-wordmark { width: 78px; }
  .brand-divider, .brand-replay { display: none; }
  .release-control select { max-width: 116px; padding-inline: 8px 24px; }
}
