:root {
  --ink: #263e5b;
  --ink-soft: #5c6f85;
  --paper: #f7f9fc;
  --white: #fff;
  --line: #dfe6ee;
  --line-strong: #bccada;
  --accent: #426fa1;
  --accent-pale: #e8eff7;
  --green: #537f87;
  --green-pale: #eaf2f3;
  --max-width: 1180px;
  --header-height: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 28px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--ink); background: #d6e3f1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button { font: inherit; }
sup { font-size: .65em; }
.wrap { width: min(var(--max-width), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: var(--white); }
.skip-link:focus { top: 12px; }

/* A quiet masthead, with the finding and its evidence doing the visual work. */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-nav {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { font-size: 1.06rem; font-weight: 750; letter-spacing: -.035em; text-decoration: none; }
.wordmark::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .8rem; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.hero-content { padding-top: 48px; }
.eyebrow, .section-label, .model-label, .evidence-columns, .download-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 18px; color: var(--ink-soft); }
.eyebrow span { padding-inline: 9px; color: var(--accent); }
.hero h1 { margin: 0 0 34px -5px; font-size: clamp(3.5rem, 8.2vw, 7rem); font-weight: 600; line-height: 1; letter-spacing: -.07em; }
.hero-masthead { display: flex; align-items: center; gap: 30px; margin-bottom: 24px; }
.hero-masthead h1 { margin: 0; font-size: clamp(3.5rem, 6.5vw, 5.6rem); }
.bench-name { display: block; margin-top: 15px; font-size: .2em; font-weight: 400; text-transform: uppercase; letter-spacing: .3em; }
.brand-art { width: 160px; flex: 0 0 160px; }
.hero { background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(240px, .74fr) minmax(0, 1.26fr); gap: clamp(20px, 2.5vw, 36px); align-items: stretch; }
.hero-copy { display: flex; min-width: 0; }
.tagline { max-width: 830px; margin: 0 0 18px; font-size: 1.55rem; font-weight: 550; line-height: 1.4; letter-spacing: -.018em; }
.finding-callout { display: flex; flex-direction: column; justify-content: center; width: 100%; padding: clamp(18px, 2.3vw, 30px); border-left: 3px solid var(--green); background: #f0f5fa; }
.finding-callout .section-label { margin-bottom: 14px; color: #466681; }
.hero-finding { margin: 0 0 17px; font-size: clamp(1.25rem, 1.85vw, 1.6rem); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.hero-summary { max-width: 500px; margin: 0; color: #3e566f; font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.7; }
.hero-summary strong { color: #263e5b; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 22px; padding: 10px 17px; border: 1px solid var(--ink); border-radius: 3px; font-size: .78rem; font-weight: 550; text-decoration: none; transition: background-color .16s, color .16s; }
.button-primary { color: var(--paper); background: var(--ink); }
.button-primary:hover { color: var(--white); background: var(--accent); border-color: var(--accent); }
.button-secondary { background: transparent; border-color: var(--line-strong); }
.button-secondary:hover { color: var(--ink); background: var(--white); border-color: var(--ink); }
.button.nav-repo { min-height: 38px; gap: 8px; padding: 6px 12px; white-space: nowrap; }
.nav-links .nav-repo:hover { text-decoration: none; }
.text-link { padding: 10px; font-size: .8rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hero-evidence { min-width: 0; margin: 0; padding: 20px 0 0; border-top: 2px solid var(--ink); }
.evidence-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 20px; }
.evidence-heading .section-label { margin: 0; color: var(--ink); letter-spacing: .045em; }
.evidence-subtitle { margin: 5px 0 0; color: var(--ink-soft); font-size: .75rem; }
.view-controls { margin-bottom: 14px; }
.view-controls[hidden] { display: none; }
.view-labels { display: flex; justify-content: space-between; align-items: center; }
.view-labels button { min-height: 30px; padding: 3px 0; border: 0; background: transparent; color: var(--ink-soft); font-size: .75rem; cursor: pointer; }
.view-labels button[aria-pressed="true"] { color: var(--ink); font-weight: 650; }
.view-labels button:first-child { color: #32547c; }
.view-labels button:last-child { color: #436f79; }
#heatmap-view { display: block; width: 100%; height: 28px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
#heatmap-view::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--line-strong); }
#heatmap-view::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line-strong); }
#heatmap-view::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; margin-top: -6.5px; border: 2px solid #fff; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
#heatmap-view::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
#heatmap-view:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
#view-help { min-height: 1.5em; margin: 3px 0 0; color: var(--ink-soft); font-size: .68rem; }
.matrix-scroll { overflow-x: auto; padding: 2px; }
.results-matrix { border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.results-matrix th, .results-matrix td { padding: 13px 3px; border: 0; white-space: normal; text-align: center; font-size: .76rem; line-height: 1.3; }
.results-matrix thead th { padding: 4px 0 8px; background: transparent; color: var(--ink-soft); font-size: .61rem; }
.results-matrix th:first-child { width: 25%; padding-left: 0; text-align: left; }
.results-matrix tbody th { font-size: .73rem; font-weight: 500; }
.results-matrix td { padding: 7px 2px; background: linear-gradient(180deg, var(--accuracy-color) 50%, var(--cost-color) 50%); border-radius: 3px; font-variant-numeric: tabular-nums; }
.results-matrix[data-metric="accuracy"] td { background: var(--accuracy-color); }
.results-matrix[data-metric="cost"] td { background: var(--cost-color); }
.matrix-values { display: flex; flex-direction: column; justify-content: center; gap: 7px; height: 40px; font-weight: 550; }
.matrix-accuracy { color: var(--accuracy-ink); }
.matrix-cost { color: var(--cost-ink); }
.matrix-values [hidden] { display: none; }
.matrix-legends { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; margin: 16px 6px 0; }
.matrix-scale { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .64rem; }
.matrix-scale > span:first-child { margin-right: 3px; }
.scale-ramp { width: 65px; height: 6px; border-radius: 1px; background: var(--accuracy-scale, linear-gradient(to right, #eff4fa, #32547c)); }
.scale-ramp-cost { background: var(--cost-scale, linear-gradient(to right, #f1f7f7, #436f79)); }
.hero-evidence figcaption { margin: 16px 6px 0; font-size: .69rem; line-height: 1.7; text-align: left; }
.hero-evidence figcaption a { white-space: nowrap; }
.hero-credits { margin: 0 0 34px; }
.authors { margin: 0; font-size: .86rem; font-weight: 500; }
.affiliations { margin: 6px 0 0; color: var(--ink-soft); font-size: .73rem; line-height: 1.8; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0 0; padding: 24px 0 29px; border-top: 1px solid var(--line-strong); gap: 28px; }
.hero-stats div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.hero-stats dt { font-size: 2rem; font-weight: 500; line-height: 1.2; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.hero-stats dt span { font-size: 1.25rem; }
.hero-stats dd { margin: 5px 0 0; color: var(--ink-soft); font-size: .75rem; }

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-label { margin: 0 0 19px; color: var(--accent); }
.section h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 500; line-height: 1.13; letter-spacing: -.045em; text-wrap: balance; }
.section h3 { letter-spacing: -.025em; font-weight: 550; }
.intro-section { padding: 68px 0; }
.intro-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 84px); align-items: start; }
.intro-grid h2 { max-width: 430px; font-size: clamp(1.85rem, 2.8vw, 2.4rem); line-height: 1.2; letter-spacing: -.03em; }
.intro-definition { max-width: 380px; margin: 22px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.intro-point + .intro-point { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.intro-point h3 { margin: 0 0 11px; color: var(--ink); font-size: 1.15rem; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.intro-copy p { margin: 0; color: #465e77; font-size: 1.04rem; line-height: 1.75; }
.intro-copy strong { color: var(--ink); font-weight: 650; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 88px; align-items: end; margin-bottom: 38px; }
.section-heading > p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.key-finding strong { color: var(--ink); font-weight: 550; }
.results-section { background: var(--white); }
.figure-wide, .task-figure { margin: 0; }
.figure-wide img, .task-figure img { width: 100%; background: var(--white); }
figcaption { max-width: 900px; margin: 14px auto 0; color: var(--ink-soft); font-size: .77rem; text-align: center; }
.table-header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-top: 48px; }
.table-header h3 { margin: 0; font-size: 1.15rem; }
.table-header p { margin: 0; color: var(--ink-soft); font-size: .75rem; }
.table-scroll { margin-top: 18px; overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.results-table { min-width: 760px; }
th, td { padding: 17px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-size: .88rem; }
thead th { color: var(--ink-soft); background: var(--paper); font-size: .7rem; font-weight: 500; }
th:first-child, td:first-child, tbody th { text-align: left; }
tbody th { font-weight: 500; }
tbody tr:last-child > * { border-bottom: 0; }
.results-table tbody tr:hover { background: var(--paper); }
.best { color: var(--accent); background: var(--accent-pale); }

.principles-section h2 { max-width: 620px; }
.benchmark-table-scroll { margin-top: 34px; overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.benchmark-comparison { min-width: 900px; table-layout: fixed; }
.benchmark-property-column { width: clamp(140px, 25vw, 280px); }
.benchmark-ours-column { width: 120px; }
.benchmark-comparison caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.benchmark-comparison th, .benchmark-comparison td { padding: 13px 12px; }
.benchmark-comparison thead th { color: var(--ink-soft); font-size: .72rem; text-align: center; }
.benchmark-comparison thead th:first-child, .benchmark-comparison tbody th { text-align: left; }
.benchmark-comparison tbody th { font-size: .79rem; white-space: normal; }
.benchmark-comparison td { text-align: center; }
.benchmark-comparison .benchmark-ours { background: var(--green-pale); }
.benchmark-comparison thead .benchmark-ours { color: var(--green); font-weight: 600; }
.benchmark-comparison .outcome-start > * { border-top: 1px solid var(--ink-soft); }
.status { display: inline-block; min-width: 1.2em; font-size: 1rem; font-weight: 600; line-height: 1; text-align: center; }
.status.supported { color: var(--green); }
.status.partial { color: #6a829d; }
.status.absent { color: #7e8fa4; }
.benchmark-legend { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; color: var(--ink-soft); font-size: .72rem; }
.benchmark-legend span { display: inline-flex; align-items: center; gap: 6px; }
.principles-note { max-width: 960px; margin: 17px 0 0; color: var(--ink-soft); font-size: .75rem; line-height: 1.7; }

.tasks-section { background: var(--white); }
.task-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-strong); }
.task-tab { min-height: 56px; padding: 12px; border: 0; border-bottom: 2px solid transparent; color: var(--ink-soft); background: transparent; font-size: .83rem; cursor: pointer; }
.task-tab:hover { color: var(--ink); background: var(--paper); }
.task-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.task-panel { display: grid; grid-template-columns: 60px minmax(0, 1.25fr) minmax(250px, .75fr); gap: 30px; align-items: start; padding: 38px 0 0; }
.task-panel[hidden] { display: none; }
.task-number { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 2.4rem; line-height: 1.2; }
.task-panel h3 { margin: 0 0 12px; font-size: 1.4rem; }
.task-panel p { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: .9rem; }
.task-facts { margin: 0; border-top: 1px solid var(--line-strong); }
.task-facts div { display: grid; grid-template-columns: 65px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.task-facts dt { color: var(--ink-soft); font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; }
.task-facts dd { margin: 0; font-size: .8rem; }
.task-figure { width: 100%; margin-top: 12px; grid-column: 1 / -1; }
.task-demo-link { display: block; }
.task-figure[hidden] { display: none; }
/* The complete example stays visible while the reasoning highlights its sources. */
.task-walkthrough { grid-column: 1 / -1; min-width: 0; margin-top: 12px; }
.walk-query { padding: 22px 26px; background: var(--accent-pale); border-left: 3px solid var(--accent); }
.walk-label { display: block; color: var(--accent); font-size: .65rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.walk-query h4 { margin: 8px 0 12px; font-size: 1.15rem; font-weight: 550; letter-spacing: -.02em; }
.task-panel .walk-query p { max-width: 900px; font-size: .85rem; }
.walk-conditions { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding-left: 18px; font-size: .84rem; }
.walk-query pre { font-size: .8rem; line-height: 1.7; }
.walk-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 30px; align-items: start; margin-top: 28px; }
.walk-context { min-width: 0; }
.walk-context > h5 { margin: 0 0 14px; color: var(--ink-soft); font-size: .75rem; font-weight: 400; }
.walk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.walk-cards-programs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.walk-cards-programs .walk-card { grid-column: span 2; }
.walk-cards-programs .walk-card:nth-last-child(-n+2) { grid-column: span 3; }
.walk-card { min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.walk-card-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 12px; min-height: 22px; }
.walk-card h6 { margin: 0; color: var(--ink); font-size: .77rem; font-weight: 600; }
.walk-badge { color: var(--green); font-size: .65rem; }
.task-panel .walk-card p { color: var(--ink); font-size: .84rem; line-height: 1.65; }
.walk-card mark { color: inherit; background: transparent; }
.walk-card.walk-support { border-color: #8cabae; background: #f2f7f7; }
.walk-support mark { background: #deeceb; }
.walk-card.walk-caution { border-color: #c8aa8b; background: #fcf7f1; }
.walk-caution mark { background: #f6e8d5; }
.walk-caution .walk-badge { color: #89603a; }
.walk-card pre { font-size: .71rem; line-height: 1.7; }
.task-panel .walk-card .walk-io { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .72rem; color: var(--ink-soft); }
.walk-card ul { list-style: none; padding: 0; margin: 0; font-size: .81rem; line-height: 1.6; }
.walk-card li + li { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.walk-reasoning { position: sticky; top: calc(var(--header-height) + 24px); min-width: 0; padding: 23px; background: var(--paper); border-top: 2px solid var(--accent); }
.walk-step-dots { display: flex; gap: 8px; margin: 18px 0; }
.walk-step-dots button { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: white; color: var(--ink-soft); font-size: .75rem; cursor: pointer; }
.walk-step-dots button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.walk-step-count { color: var(--ink-soft); font-size: .69rem; }
.walk-explanation h5 { margin: 7px 0 12px; font-size: 1.02rem; font-weight: 550; line-height: 1.4; }
.task-panel .walk-explanation p { font-size: .83rem; line-height: 1.7; }
.walk-explanation p strong { color: var(--ink); font-weight: 600; }
.walk-explanation code { font-size: .75rem; }
.walk-result { margin-top: 20px; padding: 16px 0; border-block: 1px solid var(--line-strong); }
.walk-result > span, .walk-result > strong { display: block; }
.walk-result > strong { margin: 5px 0; font-size: 1.02rem; font-weight: 550; overflow-wrap: anywhere; }
.walk-result > span { color: var(--ink-soft); font-size: .75rem; }
.walk-result .walk-result-label { font-size: .69rem; }
.walk-route { list-style: none; padding: 0; margin: 0; }
.walk-route li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: .78rem; }
.walk-route li + li { margin-top: 10px; }
.walk-route span { color: var(--ink-soft); }
.walk-route strong { font-weight: 550; text-align: right; }
.walk-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; }
.walk-navigation button { padding: 5px 0; border: 0; background: none; color: var(--accent); font-size: .77rem; cursor: pointer; }
.walk-navigation button:disabled { color: var(--ink-soft); opacity: .45; cursor: default; }
@media (max-width: 1000px) {
  .walk-layout { grid-template-columns: 1fr; gap: 22px; }
  .walk-reasoning { position: static; grid-row: 1; }
  .walk-explanation { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .walk-step-count, .walk-explanation h5, .walk-explanation p { grid-column: 1; }
  .walk-result { grid-column: 2; grid-row: 1 / 4; margin: 0; align-self: center; width: 100%; }
}
@media (max-width: 600px) {
  .walk-query { padding: 18px; }
  .walk-conditions { display: block; }
  .walk-conditions li + li { margin-top: 6px; }
  .walk-cards { grid-template-columns: 1fr; }
  .walk-cards-programs .walk-card { grid-column: auto; }
  .walk-explanation { display: block; }
  .walk-result { margin-top: 18px; }
  .walk-reasoning { padding: 20px; }
}

.access-section { padding: 60px 0; }
.access-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: end; }
.access-summary { max-width: 740px; margin: 0; font-size: .95rem; }
.resource-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: .85rem; }
.download-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-top: 28px; padding: 17px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.download-label { color: var(--ink-soft); font-size: .65rem; }
.download-row code { min-width: 0; overflow-x: auto; font-size: .78rem; white-space: nowrap; }
.copy-command, .copy-citation { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 3px; color: inherit; background: transparent; font-size: .72rem; cursor: pointer; }
.copy-command:hover { background: var(--white); }
.access-note { margin: 12px 0 0; color: var(--ink-soft); font-size: .72rem; }
.citation-section { background: var(--white); }
.citation-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 88px; align-items: start; }
.citation-grid > div:first-child > p:not(.section-label) { max-width: 360px; color: var(--ink-soft); font-size: .87rem; }
.citation-block { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
pre { margin: 0; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.citation-block pre { padding: 24px 24px 68px; font-size: .74rem; line-height: 1.8; }
.copy-citation { position: absolute; right: 18px; bottom: 16px; }
.copy-citation:hover { background: var(--white); }
.site-footer { padding: 35px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-footer strong { font-weight: 600; letter-spacing: -.025em; }
.site-footer p { margin: 3px 0 0; color: var(--ink-soft); font-size: .72rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-size: .75rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Shared model colors and harness shapes across overview and dataset plots. */
.results-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.results-tabs button { padding: 10px 1px 12px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; color: var(--ink-soft); background: none; font: inherit; font-size: .88rem; cursor: pointer; }
.results-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.results-tabs[hidden], .results-section [role="tabpanel"][hidden], .chart-tooltip[hidden] { display: none; }
#results-table-panel .table-header { margin-top: 30px; }
.results-explorer { margin: 30px 0 42px; }
.results-explorer[hidden], #results-static-figure[hidden], #datasets-static-figure[hidden] { display: none; }
.dataset-view-note { margin: 0 0 24px; color: var(--ink-soft); font-size: .78rem; }
.dataset-selection-help { margin: 0 0 10px; color: var(--ink-soft); font-size: .78rem; }
.dataset-plots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
.dataset-plot { min-width: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.dataset-plot h3 { margin: 0 0 16px; font-size: .92rem; font-weight: 600; }
.chart-legend { display: grid; gap: 8px; margin-bottom: 28px; }
.legend-row { display: grid; grid-template-columns: 66px 1fr; align-items: baseline; gap: 12px; }
.legend-label { color: var(--ink-soft); font-size: .76rem; }
.legend-items { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: .78rem; cursor: pointer; }
.legend-item.active { text-decoration: underline; text-underline-offset: 5px; }
.legend-item[aria-pressed="true"] { background: var(--accent-pale); border-radius: 3px; box-shadow: 0 0 0 5px var(--accent-pale); font-weight: 600; }
.legend-item.dimmed { opacity: .35; }
.legend-item svg { fill: currentColor; flex-shrink: 0; }
.legend-swatch { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.legend-selection-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 12px; }
.legend-selection-status { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.legend-reset { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; font-size: .78rem; cursor: pointer; }
.legend-reset:hover:enabled { background: var(--accent-pale); border-color: var(--accent); }
.legend-reset:disabled { opacity: .45; cursor: default; }
.chart-stage { position: relative; width: 100%; }
.chart-tooltip { position: absolute; z-index: 2; width: max-content; max-width: calc(100% - 8px); padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; color: var(--ink); box-shadow: 0 5px 20px #263e5b16; pointer-events: none; font-size: .78rem; line-height: 1.5; }
.chart-tooltip strong, .chart-tooltip span { display: block; }
.tooltip-values { margin-top: 7px; font-variant-numeric: tabular-nums; }
.results-plot { display: block; width: 100%; }
.plot-axes text { fill: var(--ink-soft); font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif; }
.plot-axes .plot-axis-title { fill: var(--ink); font-size: 12px; font-weight: 500; }
.plot-gridline { stroke: var(--line); stroke-width: 1; }
.plot-axis-line { stroke: var(--line-strong); stroke-width: 1; }
.plot-point { transition: opacity .15s ease; cursor: help; }
.plot-hit-area { pointer-events: all; }
.plot-marker { fill: currentColor; stroke: white; stroke-width: 1; pointer-events: none; }
.plot-point.inspected .plot-marker { stroke: var(--ink); stroke-width: 1.5; }
.plot-point.dimmed { opacity: .12; }
.plot-point.highlighted .plot-marker { transform: scale(1.3); }
.chart-caption { display: flex; justify-content: space-between; gap: 20px; margin: 16px 0 0; color: var(--ink-soft); font-size: .75rem; }
.chart-caption a { white-space: nowrap; }
@media (max-width: 760px) {
  .dataset-plots { grid-template-columns: 1fr; gap: 24px; }
  .results-tabs { gap: 24px; }
  .legend-row { grid-template-columns: 1fr; gap: 2px; }
  .legend-items { gap: 2px 14px; }
  .chart-caption { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .plot-point { transition: none; }
}

@media (max-width: 1000px) {
  .section-heading, .intro-grid, .citation-grid { gap: 42px; }
  .evidence-heading { gap: 12px; margin-bottom: 16px; }
  .evidence-heading .section-label { font-size: .61rem; }
  .results-matrix { border-spacing: 3px; }
  .results-matrix th { padding: 12px 2px; }
  .results-matrix thead th { font-size: .57rem; }
  .results-matrix tbody th { font-size: .66rem; }
  .scale-ramp { width: 65px; }
  .hero-masthead { gap: 24px; }
  .brand-art { width: 140px; flex-basis: 140px; }
  .task-panel { grid-template-columns: 45px 1fr; }
  .task-facts { grid-column: 2; }
  .access-row { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .wrap { width: calc(100% - 40px); }
  .nav-links { gap: 17px; }
  .nav-links a { font-size: .73rem; }
  .hero-content { padding-top: 34px; }
  .hero-masthead { gap: 18px; }
  .hero h1 { font-size: clamp(1.65rem, 7.6vw, 3.9rem); letter-spacing: -.065em; }
  .brand-art { width: clamp(68px, 20vw, 110px); flex-basis: clamp(68px, 20vw, 110px); }
  .bench-name { margin-top: 10px; font-size: .23em; }
  .intro-grid, .section-heading, .citation-grid { grid-template-columns: 1fr; gap: 32px; }
  .tagline { max-width: 640px; margin-bottom: 16px; font-size: 1.24rem; }
  .finding-callout { padding: 20px 18px; }
  .hero-summary { max-width: 540px; }
  .hero-evidence { width: 100%; }
  .results-matrix { min-width: 0; border-spacing: 2px; }
  .results-matrix th:first-child { width: 24%; }
  .results-matrix thead th { font-size: .53rem; overflow-wrap: anywhere; }
  .results-matrix tbody th { font-size: .66rem; overflow-wrap: anywhere; }
  .results-matrix td { font-size: .67rem; padding: 7px 1px; }
  .matrix-scale { font-size: .59rem; gap: 6px; }
  .scale-ramp { width: 40px; }
  .matrix-legends { gap: 10px; }
  .hero-credits { margin-bottom: 28px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .hero-stats div + div { padding-left: 0; border-left: 0; }
  .hero-stats div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .section { padding: 58px 0; }
  .section-label { margin-bottom: 14px; }
  .section-heading { margin-bottom: 28px; gap: 20px; }
  .intro-grid h2 { max-width: 480px; }
  .table-header, .footer-grid { align-items: flex-start; flex-direction: column; gap: 12px; }
  .task-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-panel { grid-template-columns: 35px minmax(0, 1fr); gap: 20px; }
  .task-panel h3 { font-size: 1.25rem; }
  .task-number { font-size: 1.9rem; }
  .task-facts { grid-column: 1 / -1; }
  .download-row { grid-template-columns: 1fr auto; gap: 12px; }
  .download-row code { grid-column: 1 / -1; grid-row: 2; padding-bottom: 5px; }
  .citation-block pre { padding: 18px 18px 68px; font-size: .69rem; }
}
/* Stack only once the finding and the five data columns no longer fit. */
@media (max-width: 680px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-finding { font-size: 1.4rem; }
  .hero-summary { font-size: 1.05rem; }
  .finding-callout { padding: 23px; }
}
@media (max-width: 600px) {
  :root { --header-height: 100px; }
  .site-nav { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; padding-block: 12px; }
  .nav-links { justify-content: space-between; gap: 8px; }
}
@media (max-width: 390px) {
  .wordmark { white-space: nowrap; font-size: .9rem; }
  .wordmark::before { width: 8px; height: 8px; margin-right: 8px; }
  .eyebrow { font-size: .58rem; }
  .hero-finding { font-size: 1.3rem; }
  .hero-masthead { gap: 12px; }
  .hero-masthead h1 { font-size: clamp(1.65rem, 7.6vw, 2rem); }
  .hero-summary { font-size: 1rem; }
  .evidence-heading { gap: 12px; }
  .hero-actions { gap: 9px; }
  .button { gap: 14px; padding-inline: 12px; }
  .text-link { padding-inline: 4px; }
  .authors { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
