/* AgentGid stylesheet. Colour roles are defined once here; charts read the
   same custom properties, so light and dark stay in step. */

:root {
  color-scheme: light;
  --plane: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f2ee;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --meta: #6b6a65;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.1);
  --border-strong: rgba(11, 11, 11, 0.18);
  --accent: #2a78d6;
  --accent-wash: rgba(42, 120, 214, 0.1);
  --link: #1c5cab;
  --up: #006300;
  --down: #b3261e;
  --up-mark: #0ca30c;
  --down-mark: #d03b3b;
  --flat-mark: #898781;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --warn: #fab219;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 4px 16px rgba(11, 11, 11, 0.04);
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --plane: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232321;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --meta: #a3a29b;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --accent: #3987e5;
    --accent-wash: rgba(57, 135, 229, 0.14);
    --link: #6da7ec;
    --up: #0ca30c;
    --down: #e66767;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232321;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --meta: #a3a29b;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #3987e5;
  --accent-wash: rgba(57, 135, 229, 0.14);
  --link: #6da7ec;
  --up: #0ca30c;
  --down: #e66767;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--plane);
  color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
code, kbd { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--meta); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- top bar ------------------------------------------------------- */
.statsbar { border-bottom: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--ink-2); }
.statsbar .wrap { display: flex; gap: 22px; padding-top: 7px; padding-bottom: 7px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.statsbar .wrap::-webkit-scrollbar { display: none; }
.statsbar b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.statsbar .updated { margin-left: auto; color: var(--meta); }

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand-accent { color: var(--accent); }
.nav { display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); padding: 7px 10px; border-radius: 7px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search { position: relative; }
.search input { width: 220px; height: 34px; padding: 0 12px 0 32px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.search svg { position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--meta); pointer-events: none; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---- page furniture ------------------------------------------------ */
main { padding: 28px 0 64px; }
.page-head { margin-bottom: 22px; }
.page-head .lede { color: var(--ink-2); font-size: 1.02rem; max-width: 78ch; margin: 10px 0 0; }
.crumbs { font-size: 13px; color: var(--meta); margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--meta); }
.section { margin-top: 40px; }
.section > h2 { margin-bottom: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--meta); font-size: 13.5px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px 18px; }
.grid { display: grid; gap: 14px; }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

/* ---- highlight cards ----------------------------------------------- */
.hl h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: none; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.hl h3 small { font-weight: 400; color: var(--meta); font-size: 12px; }
.hl ol { list-style: none; margin: 0; padding: 0; }
.hl li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 14px; }
.hl li:first-child { border-top: 0; }
.hl li a { color: var(--ink); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl li .val { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13.5px; }
.hl li .sub { color: var(--meta); font-size: 12.5px; white-space: nowrap; }

/* ---- avatars, chips, deltas ----------------------------------------- */
.avatar { width: 24px; height: 24px; border-radius: 6px; flex: none; background: var(--surface-2); border: 1px solid var(--border); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink-2); overflow: hidden; }
.avatar img { width: 100%; height: 100%; display: block; }
.avatar.lg { width: 56px; height: 56px; border-radius: 12px; font-size: 22px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
a.chip:hover { color: var(--ink); text-decoration: none; border-color: var(--border-strong); }
.delta { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 550; position: relative; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat, .na { color: var(--meta); font-weight: 400; }
.delta .arrow { font-size: 0.72em; margin-right: 2px; vertical-align: 0.08em; }

/* ---- tabs and filters ------------------------------------------------ */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; min-width: 0; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab[aria-pressed="true"], .tab[aria-current="page"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tab .count { opacity: 0.65; margin-left: 4px; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar > * { min-width: 0; }

/* ---- the big table --------------------------------------------------- */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 10px 10px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data th { position: sticky; top: 0; background: var(--surface); color: var(--meta); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; z-index: 1; user-select: none; }
table.data th.sortable { cursor: pointer; }
table.data th.sortable:hover { color: var(--ink); }
table.data th[aria-sort="ascending"]::after { content: " ▲"; font-size: 9px; }
table.data th[aria-sort="descending"]::after { content: " ▼"; font-size: 9px; }
table.data td.l, table.data th.l { text-align: left; }
table.data td { font-variant-numeric: tabular-nums; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data .rank { color: var(--meta); width: 44px; text-align: left; }
table.data .name-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
table.data .name-cell a { color: var(--ink); font-weight: 600; }
table.data .name-cell .maker { color: var(--meta); font-size: 12.5px; font-weight: 400; display: block; line-height: 1.2; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data .sticky { position: sticky; left: 0; background: inherit; z-index: 1; }
table.data tbody tr { background: var(--surface); }
table.data td .sub { display: block; color: var(--meta); font-size: 12px; font-weight: 400; line-height: 1.2; }
.spark { display: block; margin-left: auto; }
.spark path { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark.up path { stroke: var(--up-mark); }
.spark.down path { stroke: var(--down-mark); }
.spark.flat path { stroke: var(--flat-mark); }
.score { display: inline-flex; align-items: center; gap: 8px; }
.score b { font-weight: 650; min-width: 2.4ch; text-align: right; }
.meter { width: 44px; height: 5px; border-radius: 3px; background: var(--accent-wash); overflow: hidden; display: inline-block; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.empty-row td { text-align: center; color: var(--meta); padding: 28px; }
.table-note { color: var(--meta); font-size: 12.5px; margin: 10px 2px 0; }

/* ---- agent page ------------------------------------------------------ */
.agent-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.agent-head .title { flex: 1 1 320px; min-width: 0; }
.agent-head h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.agent-head h1 small { font-size: 0.95rem; font-weight: 500; color: var(--meta); letter-spacing: 0; }
.agent-head .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.agent-head .links { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 550; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.small { height: 28px; padding: 0 10px; font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 22px; }
.kpi { padding: 14px 16px; }
.kpi .label { color: var(--meta); font-size: 12.5px; font-weight: 500; }
.kpi .value { font-size: 1.55rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; margin-top: 2px; }
.kpi .value small { font-size: 0.85rem; font-weight: 500; color: var(--meta); letter-spacing: 0; }
.kpi .foot { font-size: 12.5px; color: var(--meta); margin-top: 2px; }
.summary { font-size: 1.02rem; color: var(--ink-2); max-width: 86ch; }
.summary p:last-child { margin-bottom: 0; }
.facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts th, .facts td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; color: var(--meta); font-weight: 500; padding-right: 12px; }
.breakdown { display: grid; gap: 10px; }
.breakdown .row { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; }
.breakdown .track { height: 8px; border-radius: 4px; background: var(--accent-wash); overflow: hidden; }
.breakdown .track i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.breakdown .row span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.release { padding: 14px 0; border-top: 1px solid var(--border); }
.release:first-child { border-top: 0; padding-top: 0; }
.release header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.release header a.tag { font-weight: 650; color: var(--ink); font-family: var(--mono); font-size: 13.5px; }
.release header time { color: var(--meta); font-size: 13px; }
.release ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.release li { margin: 2px 0; }
.feed-item { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--border); }
.feed-item:first-child { border-top: 0; }
.feed-item .who { display: flex; gap: 10px; align-items: flex-start; }
.feed-item .who a { color: var(--ink); font-weight: 600; }
.feed-item .who time { display: block; color: var(--meta); font-size: 12.5px; }
.feed-item ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.day-label { font-size: 13px; font-weight: 600; color: var(--meta); margin: 22px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- charts ---------------------------------------------------------- */
.range { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.range button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 550; padding: 5px 11px; cursor: pointer; }
.range button + button { border-left: 1px solid var(--border); }
.range button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.chart { margin: 0; padding: 14px 16px 12px; position: relative; }
.chart figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.chart figcaption .t { font-weight: 600; font-size: 14px; }
.chart figcaption .s { color: var(--meta); font-size: 12.5px; display: block; font-weight: 400; }
.chart figcaption .now { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; text-align: right; white-space: nowrap; }
.chart .plot { position: relative; height: 220px; }
.chart .plot svg { display: block; width: 100%; height: 100%; overflow: visible; outline-offset: 4px; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis-line { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--meta); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: 0.1; }
.chart .bar { rx: 0; }
.chart .cross { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .end-label { fill: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.chart .tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14); white-space: nowrap; z-index: 5; }
.chart .tip .d { color: var(--meta); margin-bottom: 3px; }
.chart .tip .r { display: flex; align-items: center; gap: 7px; }
.chart .tip .r b { font-weight: 650; font-variant-numeric: tabular-nums; }
.chart .tip .k { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.chart .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.chart .legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart .legend i { width: 14px; height: 2px; border-radius: 1px; display: inline-block; }
.chart .chart-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; color: var(--meta); font-size: 12px; }
.chart .linkish { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; margin-left: auto; }
.chart .linkish:hover { text-decoration: underline; }
.chart .tableview { max-height: 260px; overflow: auto; margin-top: 8px; border-top: 1px solid var(--border); }
.chart .tableview table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chart .tableview th, .chart .tableview td { text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--border); }
.chart .tableview th:first-child, .chart .tableview td:first-child { text-align: left; }
.chart .empty { height: 100%; display: grid; place-items: center; color: var(--meta); font-size: 13px; text-align: center; padding: 0 20px; }

/* ---- prose (guides, methodology) -------------------------------------- */
.prose { max-width: 76ch; font-size: 1.04rem; line-height: 1.7; color: var(--ink); }
.prose h2 { margin: 2.1em 0 0.6em; font-size: 1.45rem; }
.prose h3 { margin: 1.7em 0 0.5em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0.3em 0; }
.prose blockquote { margin: 1.2em 0; padding: 2px 16px; border-left: 3px solid var(--axis); color: var(--ink-2); }
.prose pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; }
.prose :not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.93rem; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { color: var(--meta); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.prose .table-wrap { margin: 1.2em 0; }
.prose .table-wrap table { display: table; margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.toc { position: sticky; top: 76px; font-size: 13.5px; }
.toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--meta); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc li a { display: block; padding: 4px 12px; color: var(--ink-2); }
.toc li.sub a { padding-left: 24px; }
.article-meta { color: var(--meta); font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.callout { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin: 1.4em 0; font-size: 0.97rem; }
.callout strong:first-child { display: block; margin-bottom: 2px; }
.guide-card { padding: 18px; display: block; color: var(--ink); }
.guide-card:hover { text-decoration: none; border-color: var(--border-strong); }
.guide-card h3 { margin-bottom: 6px; }
.guide-card p { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }
.guide-card .meta { color: var(--meta); font-size: 12.5px; }
.faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); max-width: 80ch; }
dl.glossary dt { font-weight: 650; margin-top: 1.4em; font-size: 1.05rem; scroll-margin-top: 80px; }
dl.glossary dd { margin: 0.3em 0 0; color: var(--ink-2); max-width: 76ch; }

/* ---- footer ---------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 34px 0 44px; font-size: 13.5px; color: var(--ink-2); }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.site-footer h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--meta); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: var(--ink-2); }
.site-footer .fine { margin-top: 26px; color: var(--meta); font-size: 12.5px; max-width: 90ch; }

@media (max-width: 1180px) {
  .search input { width: 150px; }
  .site-header .wrap { gap: 14px; }
  .nav a { padding: 7px 8px; }
}
@media (max-width: 900px) {
  .search input { width: 120px; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .feed-item { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 10px; }
  .search { display: none; }
  .statsbar .updated { display: none; }
  .breakdown .row { grid-template-columns: 92px 1fr 36px; }
  .chart .plot { height: 190px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
