/* EvalOpt project site — minimal mint academic style.
   Palette tokens are shared with the v2 research video. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-VF-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-VF.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --mint: #20a77a;        /* graphics: bars, rules, markers */
  --mint-display: #1e9f74; /* "Eval" in the wordmark: >= 3:1 on white and mint wash */
  --mint-dark: #0f766e;   /* text-level emphasis, buttons, links */
  --mint-pale: #ecfdf5;
  --mint-wash: #f4fbf8;
  --ink: #17211f;
  --text: #34413d;
  --muted: #5e6b67;
  --rule: #dde8e3;
  --rule-strong: #c9d8d2;
  --bg: #ffffff;
  --max: 1160px;
  --prose: 44rem;
  --radius: 12px;
  --nav-h: 60px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand-font: "Manrope", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 16.5px/1.62 var(--font);
  letter-spacing: -.006em;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--mint-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
::selection { background: rgba(32, 167, 122, .2); }
:focus-visible { outline: 2px solid var(--mint-dark); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; z-index: 100; top: 8px; left: 8px;
  padding: 8px 14px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; color: #fff; }

/* ------------------------------------------------------- shared site nav */
.site-nav {
  position: sticky; inset-block-start: 0; z-index: 50;
  height: 68px; background: rgba(249, 251, 248, .92);
  -webkit-backdrop-filter: saturate(1.25) blur(14px);
  backdrop-filter: saturate(1.25) blur(14px);
  border-bottom: 1px solid rgba(38, 80, 65, .12);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-nav.scrolled { background: rgba(249, 251, 248, .97); border-bottom-color: #cbd9d1; box-shadow: 0 5px 18px rgba(27, 59, 48, .045); }
.site-nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 44px);
  width: min(calc(100% - 2 * clamp(19px, 5.5vw, 88px)), 1280px); height: 100%; margin-inline: auto;
}
.site-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; color: #183d32; font-family: var(--brand-font); font-size: 23px; font-weight: 650; letter-spacing: -.045em; text-decoration: none; }
.site-brand:hover { color: #183d32; }
.site-brand img { display: block; width: 32px; height: 32px; }
.site-brand .brand-name { display: inline-flex; }
.wordmark-eval { color: #183d32; }
.wordmark-opt { color: #4a9d7d; }
.site-links { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: clamp(4px, .6vw, 10px); overflow-x: auto; scrollbar-width: none; }
.site-links::-webkit-scrollbar { display: none; }
.site-links a { flex: 0 0 auto; padding: 7px 9px; border-radius: 8px; color: #4c5e56; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-links a:hover { color: #183d32; background: #edf6f0; }
.site-links a[aria-current="page"] { color: #183d32; background: #e4f2e9; font-weight: 650; }
.site-links .site-code { margin-left: 4px; padding-left: 14px; border-left: 1px solid #cbd9d1; border-radius: 0; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--nav-h);
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(23, 33, 31, .06);
  transition: border-color .2s ease, background-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--rule); background: rgba(255, 255, 255, .92); }
.wordmark { color: var(--ink); font-weight: 650; font-size: 21px; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.wordmark .eval { color: var(--mint-dark); }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 6px 12px; border-radius: 8px;
  color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--mint-wash); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--mint);
}

/* ----------------------------------------------------------------- hero */
.hero {
  padding: calc(var(--nav-h) + clamp(64px, 12vh, 128px)) 24px clamp(64px, 10vh, 104px);
  text-align: center;
  background: linear-gradient(180deg, var(--mint-wash) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--rule);
}
.hero h1 { margin: 0; font-size: clamp(56px, 11vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.hero h1 .eval { color: var(--mint-display); }
.hero .subtitle { margin: 22px auto 0; max-width: 34rem; color: var(--text); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; }
.hero .summary { margin: 18px auto 0; max-width: 36rem; color: var(--muted); font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--rule-strong); border-radius: 10px;
  background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.button:hover { border-color: var(--mint-dark); color: var(--ink); }
.button.primary { background: var(--mint-dark); border-color: var(--mint-dark); color: #fff; }
.button.primary:hover { background: #0b5f58; border-color: #0b5f58; color: #fff; }
.metrics-context { margin: 56px 0 18px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px; margin: 0 auto; padding: 0; list-style: none;
  border-top: 1px solid var(--rule);
}
.metrics li { padding: 20px 12px 0; }
.metrics li + li { border-left: 1px solid var(--rule); }
.metric-value { display: block; color: var(--mint-dark); font-size: clamp(32px, 4.6vw, 46px); font-weight: 650; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metric-label { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* -------------------------------------------------------------- sections */
.section { width: min(100%, var(--max)); margin: 0 auto; padding: clamp(64px, 9vw, 104px) clamp(20px, 4vw, 40px); }
.section + .section { border-top: 1px solid var(--rule); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; color: var(--mint-dark); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--mint); }
.section h2 { max-width: 43rem; margin: 0 0 18px; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; }
.lead { max-width: var(--prose); color: var(--text); font-size: 18.5px; line-height: 1.62; }
.prose { max-width: var(--prose); color: var(--text); }
.prose h3 { margin: 36px 0 10px; font-size: 20px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.note { max-width: var(--prose); margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--mint); color: var(--muted); font-size: 15px; }
.more { display: inline-block; margin-top: 24px; font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }

.band { background: var(--mint-wash); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band + .section { border-top: 0; }

/* --------------------------------------------------------------- figures */
.figure { margin: 40px 0 0; }
.figure a { display: block; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: #fff; }
.figure a:hover { border-color: var(--rule-strong); }
.figure img { width: 100%; }
.figure figcaption { max-width: var(--prose); margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.figure figcaption b { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------- decision diagram */
.decisions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.decision { padding: 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.decision.direction { background: var(--mint-pale); border-color: #cdeedf; }
.decision h3 { margin: 0; font-size: 19px; }
.decision .question { margin: 4px 0 4px; color: var(--mint-dark); font-weight: 600; }
.decision .basis { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.outcomes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.direction .outcomes { border-top-color: #cdeedf; }
.outcomes li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; color: var(--text); }
.direction .outcomes li { border-bottom-color: #cdeedf; }
.outcomes li:last-child { border-bottom: 0; padding-bottom: 0; }
.outcomes b { color: var(--ink); font-weight: 600; }
.persist {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border: 1px dashed var(--mint); border-radius: var(--radius);
  color: var(--ink); font-size: 15.5px; background: #fff;
}
.persist::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.retention { grid-column: 1 / -1; padding: 14px 20px; border-radius: var(--radius); background: var(--mint-wash); border: 1px solid var(--rule); color: var(--text); font-size: 15.5px; }
.retention b { color: var(--ink); }

/* ------------------------------------------------------------ method rows */
.rows { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 3rem minmax(12rem, 18rem) 1fr; gap: 8px 28px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.rows .idx { color: var(--mint-dark); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rows h3 { margin: 0; font-size: 18.5px; line-height: 1.35; }
.rows p { margin: 0; color: var(--text); font-size: 16px; }

/* ----------------------------------------------------------------- tables */
.table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.table-caption { max-width: var(--prose); margin: 28px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.table-caption b { color: var(--ink); font-weight: 600; }
.table-caption + .table-wrap { margin-top: 10px; }
th, td { padding: 11px 18px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
thead th { color: var(--muted); font-size: 13px; font-weight: 600; background: var(--mint-wash); vertical-align: bottom; white-space: normal; }
th:first-child, td:first-child { text-align: left; }
tbody th { font-weight: 500; color: var(--ink); white-space: normal; }
tbody tr:last-child > * { border-bottom: 0; }
.text-table th, .text-table td { text-align: left; white-space: normal; }
.text-table td:last-child { white-space: nowrap; }
tr.ours > * { background: var(--mint-pale); font-weight: 600; color: var(--ink); }
tr.ours > *:first-child { box-shadow: inset 3px 0 0 var(--mint); }
tr.group-start > * { border-top: 1px solid var(--rule-strong); }
.table-note { max-width: var(--prose); margin: 10px 0 0; color: var(--muted); font-size: 14px; }
details.more-data { margin-top: 24px; }
details.more-data > summary { cursor: pointer; color: var(--mint-dark); font-weight: 600; }
details.more-data > summary:hover { color: var(--ink); }

/* ------------------------------------------------- stat pairs and yields */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.stat { padding: 22px 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.stat .value { display: block; color: var(--mint-dark); font-size: clamp(32px, 4vw, 42px); font-weight: 650; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .label { display: block; margin-top: 10px; color: var(--text); font-size: 15.5px; line-height: 1.5; }
.stat.quiet .value { color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.bars { margin: 8px 0 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 5.5rem 3.5rem 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.bars .name { color: var(--text); font-size: 15px; }
.bars .count { text-align: right; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bars .bar { height: 12px; border-radius: 6px; background: var(--rule); overflow: hidden; }
.bars .bar span { display: block; height: 100%; border-radius: 6px; background: #93a5a0; }
.bars .mined .bar span { background: var(--mint); }
.bars-note { margin-top: 12px; color: var(--muted); font-size: 14.5px; }

/* --------------------------------------------------------------- tech page */
.tech-page { --max: 1240px; --prose: 48rem; background: #fbfcfa; }
.page-head { padding: clamp(56px, 9vh, 96px) clamp(20px, 4vw, 40px) clamp(40px, 6vh, 64px); background: linear-gradient(180deg, var(--mint-wash), #fff); border-bottom: 1px solid var(--rule); }
.page-head > div { width: min(100%, calc(var(--max) - 80px)); margin: 0 auto; }
.tech-page .page-head > div { display: grid; grid-template-columns: minmax(210px, 280px) minmax(0, 1fr); gap: 12px clamp(42px, 6vw, 84px); width: min(100%, var(--max)); }
.tech-page .page-head .eyebrow { grid-column: 1; grid-row: 1 / span 3; align-self: start; margin-top: 8px; }
.tech-page .page-head h1, .tech-page .page-head p, .tech-page .page-head nav { grid-column: 2; }
.page-head h1 { max-width: 46rem; margin: 0 0 16px; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.1; letter-spacing: -.03em; }
.page-head p { max-width: var(--prose); color: var(--text); font-size: 18px; }
.toc { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--text); font-size: 14px; text-decoration: none; }
.toc a:hover { border-color: var(--mint-dark); color: var(--ink); }
.numbered { display: flex; align-items: baseline; gap: 14px; }
.numbered .n { color: var(--mint-dark); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.states li { padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; font-size: 15.5px; color: var(--text); }
.states b { display: block; color: var(--ink); font-size: 16px; }
.states .sym { color: var(--mint-dark); font-weight: 650; }
.limits { max-width: var(--prose); margin: 24px 0 0; padding: 0; list-style: none; }
.limits li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--rule); color: var(--text); }
.limits li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 2px; background: var(--mint); }
.tech-page .section { display: grid; grid-template-columns: minmax(210px, 280px) minmax(0, 1fr); gap: 0 clamp(42px, 6vw, 84px); padding-block: clamp(60px, 7vw, 88px); }
.tech-page .section > * { grid-column: 2; min-width: 0; }
.tech-page .section > .numbered { grid-column: 1; grid-row: 1 / span 80; align-self: start; display: block; padding-top: 3px; }
.tech-page .numbered .n { display: block; margin-bottom: 10px; }
.tech-page .numbered h2 { max-width: 9.5em; margin: 0; font-size: clamp(27px, 2.6vw, 38px); }
.tech-page .section .prose, .tech-page .section .lead, .tech-page .table-caption, .tech-page .table-note, .tech-page .note, .tech-page .figure figcaption, .tech-page .limits { max-width: none; }
.tech-page .section > .prose:first-of-type > p:first-child,
.tech-page .section > .lead:first-of-type { margin-top: 0; font-size: 17.5px; line-height: 1.66; }
.tech-page .table-wrap { border-radius: 10px; }
.tech-page .figure { margin-top: 34px; }

/* -------------------------------------------------------------- video page */
.video-page { padding: clamp(48px, 8vh, 88px) clamp(16px, 4vw, 40px) clamp(48px, 8vh, 88px); }
.video-head { max-width: 46rem; margin: 0 auto 32px; text-align: center; }
.video-head h1 { margin: 0 0 12px; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -.03em; }
.video-head p { margin: 0; color: var(--text); font-size: 18px; }
.player { width: min(100%, 1040px); margin: 0 auto; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: #0f1513; aspect-ratio: 8 / 5; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #0f1513; }
.player:focus-within { outline: 2px solid var(--mint-dark); outline-offset: 3px; }
.player-error, .video-pending {
  width: min(100%, 1040px); margin: 0 auto; padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--mint-wash); text-align: center; color: var(--text);
}
.video-pending h2 { margin: 0 0 8px; font-size: 22px; }
.player-error { margin-top: 16px; }
.video-meta { width: min(100%, 1040px); margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: 14.5px; }
.video-meta ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--rule); background: #fff; }
.footer-inner { width: min(100%, var(--max)); margin: 0 auto; padding: 32px clamp(20px, 4vw, 40px) 40px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; color: var(--muted); font-size: 14.5px; }
.footer p { margin: 0; max-width: 40rem; }
.footer .wordmark { font-size: 20px; }

/* ------------------------------------------------------------------ motion */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .decisions, .split { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 2.4rem 1fr; }
  .rows p { grid-column: 2; }
  .states { grid-template-columns: 1fr; }
  .tech-page .page-head > div, .tech-page .section { grid-template-columns: 1fr; }
  .tech-page .page-head .eyebrow, .tech-page .page-head h1, .tech-page .page-head p, .tech-page .page-head nav,
  .tech-page .section > *, .tech-page .section > .numbered { grid-column: 1; grid-row: auto; }
  .tech-page .section > .numbered { margin-bottom: 24px; }
  .tech-page .numbered .n { display: inline; margin-right: 9px; }
  .tech-page .numbered h2 { display: inline; max-width: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 88px; }
  body { font-size: 16px; }
  .site-nav { height: 88px; }
  .site-nav-inner { width: calc(100% - 24px); flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; }
  .site-brand { gap: 7px; font-size: 20px; }
  .site-brand img { width: 29px; height: 29px; }
  .site-links { width:100%; justify-content:flex-start; }
  .site-links a:first-child { display: none; }
  .site-links a { padding: 5px 7px; font-size: 12.5px; }
  .site-links .site-code { margin-left: 0; padding-left: 9px; }
  .nav { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding-top: 10px; padding-bottom: 8px; }
  .nav-links { width: calc(100% + 24px); margin-left: -12px; overflow-x: auto; scrollbar-width: none; }
  .nav-links a { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
  .metrics { grid-template-columns: 1fr; border-top: 0; }
  .metrics li { padding: 16px 0; border-top: 1px solid var(--rule); }
  .metrics li + li { border-left: 0; }
  .lead { font-size: 17px; }
  .outcomes li { grid-template-columns: 1fr; gap: 2px; }
  .bars li { grid-template-columns: 4.5rem 3rem 1fr; }
  th, td { padding: 10px 12px; }
  .footer-inner { flex-direction: column; }
}

@media print {
  .nav, .skip-link, .actions, .toc { display: none; }
  .hero, .page-head { padding-top: 24px; }
  .js .reveal { opacity: 1; transform: none; }
}
