/* LocalFit: one stylesheet. White and black with silver accents; flat colour only.
   Type: Newsreader (display serif), IBM Plex Sans (UI), IBM Plex Mono (IDs, quants), self-hosted.
   Light by default; dark via prefers-color-scheme or the header toggle ([data-theme] wins both ways).
   Memory-meter steps are a validated one-hue (cool silver) ordinal ramp per theme. */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "LF Sans"; src: url(fonts/plex-sans-latin.woff2) format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "LF Sans"; src: url(fonts/plex-sans-latin-ext.woff2) format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "LF Serif"; src: url(fonts/newsreader-latin.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "LF Mono"; src: url(fonts/plex-mono-latin-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "LF Mono"; src: url(fonts/plex-mono-latin-500.woff2) format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --bg: #ffffff; --bg-2: #fafafa; --fill: #f2f2f2; --fill-2: #e7e7e7; --th: #f6f6f7;
  --ink: #000000; --ink-2: #27272a; --ink-3: #52525b; --muted: #6b7280; --faint: #a1a1aa;
  --line: #e5e7eb; --line-2: #d4d4d8; --ink-hover: #2a2a2a;
  --m-w: #16181d; --m-k: #6d737d; --m-r: #a3a9b3; --m-track: #eff0f2; --est: #8b919b;
  --good: #15803d; --warn: #b45309; --maybe: #6d28d9; --bad: #b91c1c;
  --hatch-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%2316181d' stroke-width='1.3'/%3E%3C/svg%3E");
  --hatch-k: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%236d737d' stroke-width='1.3'/%3E%3C/svg%3E");
  --hatch-bad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%23b91c1c' stroke-width='1.3'/%3E%3C/svg%3E");
  --pop: 0 16px 40px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04);
  --radius: 10px; --hdr: 64px;
  --serif: "LF Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "LF Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "LF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000; --bg-2: #0a0a0a; --fill: #171717; --fill-2: #242424; --th: #0d0d0d;
    --ink: #ffffff; --ink-2: #e4e4e7; --ink-3: #b4b4bb; --muted: #a1a1aa; --faint: #71717a;
    --line: #262626; --line-2: #3a3a3a; --ink-hover: #d9d9d9;
    --m-w: #eceef2; --m-k: #959ba5; --m-r: #575d67; --m-track: #1a1b1e; --est: #6f7680;
    --good: #4ade80; --warn: #fbbf24; --maybe: #a78bfa; --bad: #f87171;
    --hatch-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%23eceef2' stroke-width='1.3'/%3E%3C/svg%3E");
    --hatch-k: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%23959ba5' stroke-width='1.3'/%3E%3C/svg%3E");
    --hatch-bad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%23f87171' stroke-width='1.3'/%3E%3C/svg%3E");
    --pop: 0 16px 40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --bg-2: #0a0a0a; --fill: #171717; --fill-2: #242424; --th: #0d0d0d;
  --ink: #ffffff; --ink-2: #e4e4e7; --ink-3: #b4b4bb; --muted: #a1a1aa; --faint: #71717a;
  --line: #262626; --line-2: #3a3a3a; --ink-hover: #d9d9d9;
  --m-w: #eceef2; --m-k: #959ba5; --m-r: #575d67; --m-track: #1a1b1e; --est: #6f7680;
  --good: #4ade80; --warn: #fbbf24; --maybe: #a78bfa; --bad: #f87171;
  --hatch-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%23eceef2' stroke-width='1.3'/%3E%3C/svg%3E");
  --hatch-k: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%23959ba5' stroke-width='1.3'/%3E%3C/svg%3E");
  --hatch-bad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%23f87171' stroke-width='1.3'/%3E%3C/svg%3E");
  --pop: 0 16px 40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { text-wrap: balance; }
p { margin: 0 0 10px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 820px; }
.center-page { padding-top: 88px; text-align: center; }
.center-page .lede { margin-left: auto; margin-right: auto; }
.sr-only, .cl { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); color: var(--ink); padding: 8px 12px; z-index: 50; border: 1px solid var(--ink); border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); font-size: .88em; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
td.num, th.num { text-align: right; }
.nw { white-space: nowrap; }
.strong { font-weight: 600; color: var(--ink); text-decoration: none; }
.strong:hover { text-decoration: underline; }
a.quiet { text-decoration: none; }
a.quiet:hover { text-decoration: underline; }
code, .code { font-family: var(--mono); font-size: 13px; }
code { background: var(--fill); padding: 1px 5px; border-radius: 5px; }
.code { display: block; margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; white-space: pre-wrap; overflow-x: auto; line-height: 1.65; color: var(--ink-2); }
[hidden] { display: none !important; }
.ic { flex: none; vertical-align: -.15em; }
.plain { list-style: none; padding: 0; margin: 0; }
.label { font: 500 11.5px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0; }
.count { display: inline-block; font: 500 12px/1.6 var(--mono); color: var(--ink-3); background: var(--fill); border-radius: 999px; padding: 0 8px; vertical-align: .25em; letter-spacing: 0; }
.count-lg { font-size: 13px; padding: 1px 10px; vertical-align: .55em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------------ controls */
input[type="search"], input[type="number"], input[type="url"], input[type="text"], input:not([type]), select, textarea {
  font: inherit; font-size: 14.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  height: 40px; padding: 0 12px; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--muted); opacity: .9; }
select { cursor: pointer; appearance: none; padding-right: 32px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23858b98' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:hover, select:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); outline: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 500 14.5px/1 var(--sans); height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--fill); color: var(--ink); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--fill-2); text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; }
.btn-row-c { justify-content: center; }
.arrow-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; text-decoration: none; }
.arrow-link .ic { transition: transform .15s; }
.arrow-link:hover { text-decoration: underline; }
.arrow-link:hover .ic { transform: translateX(2px); }
.muted-link { color: var(--muted); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--fill); color: var(--ink); cursor: pointer; padding: 0; list-style: none; }
.icon-btn:hover { background: var(--fill-2); }
.icon-btn::-webkit-details-marker { display: none; }

/* segmented control: black selected pill on a light-gray track */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--fill); border-radius: 999px; vertical-align: middle; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 5px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); cursor: pointer; font-variant-numeric: tabular-nums; line-height: 20px; transition: color .15s, background .15s; }
.seg span:hover { color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* checkbox as a pill */
.pill-check { position: relative; display: inline-flex; cursor: pointer; vertical-align: middle; }
.pill-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-check span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--fill); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; white-space: nowrap; }
.pill-check span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink-3); flex: none; font: 700 10px/11px var(--sans); text-align: center; }
.pill-check:hover span { background: var(--fill-2); }
.pill-check input:checked + span { background: var(--ink); color: var(--bg); }
.pill-check input:checked + span::before { content: "✓"; background: var(--bg); color: var(--ink); border-color: var(--bg); }
.pill-check input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pill-select { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding-left: 14px; border-radius: 999px; background: var(--fill); font-size: 13.5px; color: var(--ink-3); }
.pill-select select { height: 40px; border: 0; background-color: transparent; font-weight: 600; font-size: 13.5px; padding-left: 4px; border-radius: 999px; max-width: 220px; }
.pill-select select:focus { box-shadow: none; }
.pill-select:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }

.tag { display: inline-flex; align-items: center; font: 500 10.5px/18px var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink-3); border-radius: 5px; padding: 0 6px; white-space: nowrap; vertical-align: .15em; }
.tag-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.flag { display: inline-block; font: 500 10.5px/17px var(--mono); letter-spacing: .02em; color: var(--ink-2); border: 1px dashed var(--faint); border-radius: 5px; padding: 0 5px; white-space: nowrap; vertical-align: .12em; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 8px; padding: 12px 14px; margin: 0 0 20px; font-size: 14px; }
.notice .ic { margin-top: 3px; color: var(--warn); }
.notice-plain { border-left-color: var(--ink); }
.notice-plain .ic { color: var(--ink); }
.notice-inline { display: inline-flex; }
.empty { padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); margin: 0 0 12px; }

/* evidence labels: Measured -> source (solid), Estimated -> formula (outline), Unknown -> why (dashed) */
.ev { display: inline-flex; align-items: center; gap: 5px; font: 500 11px/18px var(--sans); letter-spacing: .01em; border-radius: 999px; padding: 0 8px 0 7px; white-space: nowrap; border: 1px solid transparent; text-decoration: none; vertical-align: .05em; }
.ev::before { content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none; }
.ev:hover { text-decoration: none; }
.ev-m { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ev-m::before { background: var(--bg); }
.ev-m:hover { background: var(--ink-hover); }
.ev-e { color: var(--ink-3); border-color: var(--line-2); background: var(--bg); }
.ev-e::before { border: 1.2px solid currentColor; }
.ev-e:hover { color: var(--ink); border-color: var(--ink-3); }
.ev-u { color: var(--muted); border: 1px dashed var(--line-2); }
.ev-u::before { width: 6px; height: 1.3px; border-radius: 1px; background: currentColor; }
.ev-f { color: var(--ink-2); background: var(--fill); }
.ev-f::before { display: none; }

/* ------------------------------------------------------------------ header & footer */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 36px; height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.02em; flex: none; text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark { flex: none; display: block; color: var(--ink); }
.mark-b { fill: var(--bg); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-2); font-size: 14.5px; white-space: nowrap; text-decoration: none; padding: 4px 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 8px; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
.menu { position: relative; display: none; }
.menu > summary { list-style: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: flex; flex-direction: column; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--pop); }
.menu-panel a { color: var(--ink); padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--fill); }

.foot { margin-top: 112px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0 36px; }
.foot-about p { margin: 14px 0 0; max-width: 44ch; }
.foot-about b { color: var(--ink); font-weight: 500; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h2 { font: 500 11.5px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); margin: 4px 0 6px; }
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-meta { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 18px 0 32px; margin: 0; font-size: 13px; }

/* ------------------------------------------------------------------ type & page heads */
.phead { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.phead + .wrap, .phead + .wrap.doc { padding-top: 32px; }
.phead + .wrap > .block:first-child { margin-top: 4px; }
.phead .label { margin-bottom: 14px; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.03; letter-spacing: -.022em; margin: 0 0 14px; }
.h1-sub { color: var(--muted); }
.h1 .tag { font-size: 12px; line-height: 22px; vertical-align: .55em; letter-spacing: .04em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -.012em; margin: 0 0 12px; }
.h3 { font-size: 16px; line-height: 1.35; font-weight: 600; margin: 0 0 10px; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 70ch; margin: 0; line-height: 1.6; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }
.crumb-sep { color: var(--line-2); }
.sec-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -.012em; margin: 0 0 14px; }
.sq { display: inline-block; width: 13px; height: 13px; background: var(--ink); flex: none; align-self: center; transform: translateY(1px); }
.sec-sub { font: 400 15px/1.4 var(--sans); color: var(--muted); letter-spacing: 0; }
.sec-t .count { font-size: 12px; align-self: center; }
.block { margin: 40px 0; }
.table-note { margin: 10px 0 0; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card-t { font: 600 15.5px/1.35 var(--sans); margin: 0 0 12px; letter-spacing: -.005em; }
.card-k { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.card .big { font: 600 34px/1.1 var(--sans); letter-spacing: -.02em; margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols2 + .notice { margin-top: 20px; }

.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 26px; }
.filterbar-tight { margin: 36px 0 14px; }
.field-search { position: relative; }
.field-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field-search input { padding-left: 40px; width: 340px; max-width: 100%; border-radius: 999px; }
.jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.jumps a { font-size: 13.5px; color: var(--ink-2); background: var(--fill); padding: 0 14px; height: 34px; display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none; }
.jumps a:hover { background: var(--fill-2); color: var(--ink); }

/* ------------------------------------------------------------------ hero (home) */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }
.hero-h { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 6.8vw, 96px); line-height: .96; letter-spacing: -.03em; margin: 18px 0 22px; max-width: 11ch; }
.hero-lede { font-size: 18.5px; color: var(--ink-2); max-width: 52ch; line-height: 1.5; margin: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 26px 0 0; font-size: 13.5px; color: var(--muted); }
.hero-facts b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.hero-side { padding-top: 8px; }
.newslist { list-style: none; margin: 14px 0 18px; padding: 0; border-top: 1px solid var(--line); }
.newslist li { border-bottom: 1px solid var(--line); }
.newslist a { display: grid; grid-template-columns: minmax(0, 1fr) 30px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 15px 0; text-decoration: none; }
.nl-k { font: 500 11.5px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.nl-t { grid-row: 2; font-size: 16px; line-height: 1.35; color: var(--ink); margin-top: 3px; }
.nl-t .mono { color: var(--muted); font-size: 13px; }
.nl-go { grid-row: 1 / 3; grid-column: 2; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); transition: background .15s, border-color .15s; }
.newslist a:hover .nl-t { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.newslist a:hover .nl-go { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ------------------------------------------------------------------ picker / combobox */
.picker { display: flex; gap: 8px; max-width: 760px; margin-top: 34px; position: relative; z-index: 15; }
.combo { position: relative; flex: 1 1 auto; min-width: 0; }
.combo > .ic { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ink); pointer-events: none; }
.combo-input { width: 100%; height: 56px !important; font-size: 16.5px !important; padding: 0 54px 0 50px !important; border-radius: 999px !important; border-color: var(--line-2) !important; }
.combo-input:focus { border-color: var(--ink) !important; box-shadow: 0 0 0 1px var(--ink) !important; }
.kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 500 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 7px; pointer-events: none; }
.combo-input:focus ~ .kbd { display: none; }
.browse select { height: 56px; border-radius: 999px; width: 220px; font-size: 14.5px; border: 0; background-color: var(--fill); padding-left: 20px; color: var(--ink-2); }
.browse select:hover { background-color: var(--fill-2); }
.picker-sm { margin-top: 22px; }
.picker-sm .combo-input { height: 46px !important; font-size: 15px !important; }
.picker-sm .browse select { height: 46px; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(420px, 60vh); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--pop); z-index: 40; overscroll-behavior: contain; }
.combo-grp { font: 500 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; }
.combo-opt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.combo-opt[aria-selected="true"] { background: var(--fill); }
.co-name { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-meta { font: 400 12.5px var(--mono); color: var(--muted); white-space: nowrap; }
.combo-none { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; max-width: 900px; }
.qchip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 13px; font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; background: var(--bg); white-space: nowrap; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.qchip:hover { border-color: var(--ink-3); color: var(--ink); text-decoration: none; }
.qchip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.qchip-all { border-color: transparent; font-weight: 500; color: var(--ink); }
.qchip-all:hover { border-color: transparent; text-decoration: underline; }

/* ------------------------------------------------------------------ device summary */
.tool { padding-top: 8px; }
.hws { margin-top: 40px; }
.hws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.hws-name { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -.02em; margin: 10px 0 0; }
.hws-name .tag { margin-left: 8px; vertical-align: .4em; }
.hws-device { margin-top: 32px; }
.hws-device .hws-name { font: 600 19px/1.3 var(--sans); letter-spacing: -.01em; margin-top: 6px; }
.hws-device .hws-name .tag { vertical-align: .15em; }
.kvs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.kv { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13.5px; line-height: 1.3; }
.kv-k { background: var(--th); color: var(--ink-3); padding: 7px 10px; border-right: 1px solid var(--line); }
.kv-v { padding: 7px 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.kv-s { font-weight: 400; color: var(--muted); }
.hws-pick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 16px 0 0; font-size: 14px; }
.hws-pick a:not(.muted-link) { font-weight: 600; }
.hws-pick .mono { color: var(--muted); }

/* ------------------------------------------------------------------ toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.tb { border: 0; margin: 0; padding: 0; min-width: 0; }
.tb legend, .tb-l { float: left; padding: 0; margin-right: 10px; font-size: 13px; color: var(--muted); line-height: 32px; }
.tb-custom { margin-left: auto; display: flex; align-items: center; }
.pillgroup { display: inline-flex; align-items: center; gap: 3px; padding: 3px; background: var(--fill); border-radius: 999px; }
.pillgroup input { width: 66px; height: 28px; border: 0; border-radius: 999px; padding: 0 12px; font-size: 13.5px; background: var(--bg); }
.pillgroup select { height: 28px; border: 0; border-radius: 999px; font-size: 13.5px; background-color: transparent; padding: 0 28px 0 10px; background-position: right 9px center; }
.pillgroup .btn-sm { height: 28px; padding: 0 13px; }
.tb-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 10px 0 0; }
.tb-foot p { margin: 0 0 0 auto; }
.achips { display: flex; flex-wrap: wrap; gap: 6px; }
.achips:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 5px; font: 500 12.5px var(--sans); border: 0; color: var(--bg); background: var(--ink); border-radius: 999px; padding: 0 8px 0 12px; height: 28px; cursor: pointer; text-decoration: none; }
.achip:hover { background: var(--ink-hover); }
.achip .ic { width: 12px; height: 12px; }
@media (min-width: 1140px) { .toolbar { position: sticky; top: var(--hdr); z-index: 10; } }

/* ------------------------------------------------------------------ charts (horizontal bars, value at the tip) */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 26px; }
.chart { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 14px; min-width: 0; }
.chart-t { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.chart-t .sq { width: 11px; height: 11px; transform: none; }
.chart-s { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.bars { list-style: none; margin: 14px 0 0; padding: 0; }
.brow { display: grid; grid-template-columns: minmax(0, 168px) minmax(0, 1fr) 58px; align-items: center; column-gap: 12px; min-height: 25px; }
.bname { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.bname:hover { color: var(--ink); text-decoration: underline; }
.btrack { display: block; height: 11px; }
.bfill { display: block; height: 100%; background: var(--m-w); border-radius: 0 4px 4px 0; }
.bfill.b-est { background: var(--est); }
.bfill.b-hatch { background: var(--bg) var(--hatch-ink); box-shadow: inset 0 0 0 1px var(--m-w); }
.bval { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.chart-note { margin-left: auto; }
.chart-empty { margin: 18px 0 4px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 8px; font-size: 13.5px; color: var(--muted); }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg-sep { width: 1px; height: 14px; background: var(--line-2); }
.sw { width: 12px; height: 8px; border-radius: 2px; display: inline-block; }
.sw-w, .sw-meas { background: var(--m-w); } .sw-k { background: var(--m-k); } .sw-r { background: var(--m-r); } .sw-est { background: var(--est); }
.sw-free { background: var(--m-track); box-shadow: inset 0 0 0 1px var(--line-2); }
.sw-hatch { background: var(--bg) var(--hatch-ink); box-shadow: inset 0 0 0 1px var(--m-w); }

/* ------------------------------------------------------------------ results table */
.results-wrap { margin-top: 40px; }
.results-head .sec-t { margin-bottom: 6px; }
.results-head p { margin: 0; }
.rtable { --cols: 30px minmax(0, 1fr) 84px 62px 268px 92px 92px 112px 28px; --gap-x: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.res-head, .res { display: grid; grid-template-columns: var(--cols); column-gap: var(--gap-x); padding: 0 14px; }
.res-head { background: var(--th); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; font-size: 12px; color: var(--ink-3); }
.res-head .g { grid-row: 1; padding: 10px 0 2px; font-weight: 600; color: var(--ink); }
.res-head .h { grid-row: 2; padding: 2px 0 10px; font-weight: 500; line-height: 1.3; }
.res-head .h small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.g-model { grid-column: 1 / 3; } .g-q { grid-column: 3 / 5; } .g-mem { grid-column: 5 / 6; } .g-sp { grid-column: 6 / 9; }
.h-pos { grid-column: 1; } .h-model { grid-column: 2; } .h-aa { grid-column: 3; } .h-arena { grid-column: 4; } .h-mem { grid-column: 5; } .h-pp { grid-column: 6; } .h-tg { grid-column: 7; } .h-tt { grid-column: 8; }
/* AA-style column-group separators: hairlines centred in the column gap, full row height */
.res-head > span, .res > div { position: relative; }
.g-q::before, .g-mem::before, .g-sp::before, .h-aa::before, .h-mem::before, .h-pp::before { content: ""; position: absolute; left: calc(var(--gap-x) / -2); top: 0; bottom: 0; width: 1px; background: var(--line); }
.c-aa::before, .c-mem::before, .c-pp::before { content: ""; position: absolute; left: calc(var(--gap-x) / -2); top: -14px; bottom: -14px; width: 1px; background: var(--line); }
.results { list-style: none; padding: 0; margin: 0; }
.res { position: relative; align-items: stretch; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); transition: background .12s; }
.results > .res:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.res:hover { background: var(--bg-2); }
.res > div { min-width: 0; }
.c-pos { font: 400 13px/22px var(--mono); color: var(--muted); }
.res-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: -.005em; }
.res-name { color: var(--ink); text-decoration: none; }
.res-name:hover { text-decoration: underline; }
.res-repo { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.res-meta > span + span::before { content: "·"; margin: 0 6px; color: var(--faint); }
.c-aa, .c-arena { font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.c-aa b, .c-arena b { font-weight: 600; }
.c-aa .flag { display: inline-block; margin-top: 2px; }
.cell-sub { display: block; font: 400 11.5px/1.4 var(--mono); color: var(--muted); margin-top: 2px; }
.res-quant { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; min-height: 22px; }
.qlabel { font: 500 13px var(--mono); color: var(--ink); }
.fit { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px 0 5px; margin-left: auto; white-space: nowrap; line-height: 19px; color: var(--ink-2); }
.fit-c { color: var(--muted); font-weight: 400; }
.fit-ok .ic, .grp-ic.fit-ok { color: var(--good); }
.fit-tight .ic, .grp-ic.fit-tight { color: var(--warn); }
.fit-maybe .ic, .grp-ic.fit-maybe { color: var(--maybe); }
.fit-no .ic, .grp-ic.fit-no { color: var(--bad); }

/* memory meter: part-to-whole, 2px surface gaps between segments, free space is the track */
.meter { --gap: var(--bg); position: relative; display: flex; height: 8px; border-radius: 3px; background: var(--m-track); margin: 8px 0 6px; overflow: hidden; }
.res:hover .meter { --gap: var(--bg-2); }
.ms { height: 100%; flex: none; border-right: 2px solid var(--gap); min-width: 2px; }
.ms-w { background: var(--m-w); } .ms-k { background: var(--m-k); } .ms-r { background: var(--m-r); }
.ms-unk { background: var(--hatch-k); }
.meter-over { box-shadow: 0 0 0 1px var(--bad); }
.m-over { position: absolute; top: 0; bottom: 0; right: 0; background: var(--hatch-bad); border-left: 2px solid var(--bad); }
.res-memtxt { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.res-memtxt b { color: var(--ink); font-weight: 600; }

.c-mt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.mt-v { font-size: 15px; line-height: 22px; font-weight: 600; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.mt-v small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.mt-v.est { font-weight: 500; color: var(--ink-2); }
.mt-v .tilde { color: var(--muted); font-weight: 400; margin-right: 1px; }
.mt-v.unk { color: var(--muted); font-weight: 400; }
.mt-note { font-size: 11px; color: var(--muted); }

.res-more { grid-column: 1 / -1; }
.res-more > summary { position: absolute; top: 12px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: var(--muted); cursor: pointer; list-style: none; }
.res-more > summary::-webkit-details-marker { display: none; }
.res-more > summary:hover { background: var(--fill); color: var(--ink); }
.res-more[open] > summary { background: var(--ink); color: var(--bg); }
details > summary .ic { transition: transform .15s; }
details[open] > summary .ic { transform: rotate(180deg); }
.res-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; margin-top: 14px; padding: 14px 0 4px 44px; border-top: 1px dashed var(--line-2); }
.rd-col { min-width: 0; }
.rd-h { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 8px 0 8px; }
.rd-list li { margin: 0 0 6px; color: var(--ink-2); line-height: 1.5; }
.rd-list b { color: var(--ink); margin-right: 4px; }
.caveats li { padding-left: 14px; position: relative; }
.caveats li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; background: var(--faint); }
.rd-foot { margin: 12px 0 0; color: var(--ink-2); }

table.mini { border-collapse: collapse; font-size: 13.5px; width: 100%; }
table.mini th { text-align: left; font-weight: 400; color: var(--muted); padding: 6px 16px 6px 0; white-space: nowrap; vertical-align: baseline; }
table.mini td { padding: 6px 12px 6px 0; vertical-align: baseline; }
table.mini tr + tr > * { border-top: 1px solid var(--line); }
table.mini td.num { white-space: nowrap; font-weight: 600; }
table.mini td .ev { margin-left: 4px; }
table.mini tr.tot th, table.mini tr.tot td { border-top: 1px solid var(--ink); font-weight: 600; color: var(--ink); }
table.mini tr.tot td:last-child { font-weight: 400; color: var(--muted); }
.mini-spec td:nth-child(2) { text-align: left; }
.src-link { display: inline-flex; align-items: center; gap: 2px; }

.grp { margin-top: 44px; }
.grp-h { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0 0 6px; }
.grp-h .count { font-family: var(--mono); }
.grp-h + p { margin: 0 0 12px; }
.grp-h + .rtable { margin-top: 12px; }
.grp-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line); }
details.nofit { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius); }
details.nofit > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 500; padding: 14px 16px; list-style: none; }
details.nofit > summary::-webkit-details-marker { display: none; }
details.nofit > summary > .ic:last-child { margin-left: auto; color: var(--muted); }
.miss { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; padding: 4px 16px 14px; list-style: none; font-size: 13.5px; margin: 0; border-top: 1px solid var(--line); }
.miss li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.miss li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; }
.miss li a:hover { text-decoration: underline; }
.miss li span { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* how it works (home) */
.how { margin-top: 112px; padding-top: 44px; border-top: 1px solid var(--line); }
.how-h { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 16px 0 40px; max-width: 24ch; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.how-grid article { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; }
.how-grid h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.how-grid p { color: var(--ink-2); font-size: 15px; flex: 1; margin-bottom: 14px; }

/* device page extras */
.below { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.below-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 16px; align-items: start; }
.big-n { font-size: 15px; color: var(--ink-2); margin: 0 0 4px; }
.big-n b { font: 600 32px/1 var(--sans); color: var(--ink); letter-spacing: -.02em; margin-right: 4px; }
.aff li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.aff li:first-child { padding-top: 0; }
.aff li a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.aff li a:hover { text-decoration: underline; }
.aff li > span.small { flex-basis: 100%; }
.aff + p { margin-top: 12px; }
.phead-device .h1 { max-width: 28ch; }

/* ------------------------------------------------------------------ tables */
.table-wrap { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); } /* positioned: keeps visually-hidden cells inside the scroll box */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; background: var(--th); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--bg-2); }
.tbl tbody tr:hover .meter { --gap: var(--bg-2); }
.tbl .gl { border-left: 1px solid var(--line); }
.tbl tr.grp-row th { height: 33px; padding: 8px 12px 4px; font-weight: 600; color: var(--ink); border-bottom: 0; }
.tbl tr.dim td { color: var(--muted); }
.tbl td a:not(.ev):not(.strong) { text-decoration-color: var(--line-2); }
.tbl th[data-sort], .tbl th[data-k] { cursor: pointer; user-select: none; }
.tbl th[data-sort]:hover, .tbl th[data-k]:hover { color: var(--ink); }
.tbl th[aria-sort] { color: var(--ink); font-weight: 600; }
.tbl th[aria-sort="ascending"]::after { content: " ↑"; } .tbl th[aria-sort="descending"]::after { content: " ↓"; }
.tw-sticky { max-height: 78vh; }
.tw-tall { max-height: 80vh; }
.tw-sticky th { position: sticky; top: 0; z-index: 1; }
.tw-sticky tr.grp-row + tr th { top: 33px; }
.rk-cell { font: 500 13px var(--mono); color: var(--ink); width: 44px; }
.model-cell { min-width: 200px; }
.model-cell .mono { margin-top: 2px; }
.tbl-models th, .tbl-models td { padding-left: 11px; padding-right: 11px; }
.tbl-models .minibar { width: 40px; }
.rel-cell { min-width: 104px; }
.size-cell { min-width: 138px; }
.minibar { display: inline-block; width: 56px; height: 6px; background: var(--m-track); vertical-align: .12em; margin-right: 8px; overflow: hidden; border-radius: 0 3px 3px 0; }
.minibar i { display: block; height: 100%; background: var(--m-w); border-radius: 0 3px 3px 0; }
.aa-wrap, .fitcell { display: inline-flex; align-items: center; justify-content: flex-end; white-space: nowrap; }
.tbl-dev { table-layout: fixed; }
.tbl-dev td { vertical-align: middle; }
.tbl-dev th:nth-child(2), .tbl-dev th:nth-child(3) { width: 170px; }
.fitcol { width: 220px; }
.fitcell { justify-content: flex-start; }
.fitcell .minibar { width: 110px; }
.fitcell b { font-weight: 600; min-width: 2ch; }
.dev-group { scroll-margin-top: calc(var(--hdr) + 16px); }
.dev-group .sec-t { font-size: 26px; }
.tbl-speed td { overflow-wrap: break-word; }
.tbl-speed td.num, .tbl-speed td.nw, .tbl-speed td:last-child { white-space: nowrap; overflow-wrap: normal; }
.tbl-speed td:first-child { min-width: 170px; }
.tbl-speed td:nth-child(2) { min-width: 100px; max-width: 170px; font-family: var(--mono); font-size: 12.5px; }
.tbl-speed td:nth-child(3) { min-width: 160px; }
.tbl-speed td:nth-child(4) { min-width: 110px; }
.tbl-speed td:nth-child(8) { min-width: 210px; max-width: 300px; color: var(--muted); }
.more-row { text-align: center; margin: 18px 0 0; }
.mem-pill { display: inline-block; font: 500 13px var(--mono); background: var(--fill); border-radius: 6px; padding: 1px 8px; white-space: nowrap; }
.budgetcol { min-width: 190px; }
.pick-meter .meter { margin: 6px 0 4px; }
.tbl-picks td { vertical-align: middle; }
.legend + .table-wrap { margin-top: 4px; }

/* ------------------------------------------------------------------ model page */
.phead-model { padding-bottom: 0; }
.phead-model .lede { font-size: 15px; }
.repo-line { font-size: 15px; text-decoration: none; color: var(--ink); }
.repo-line:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13px; line-height: 1.3; }
.chip-k { background: var(--th); color: var(--ink-3); padding: 6px 9px; border-right: 1px solid var(--line); }
.chip-v { padding: 6px 10px; color: var(--ink); }
.tabs { display: flex; gap: 4px; margin-top: 30px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 14px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs a:first-child { padding-left: 0; }
.tabs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .count { vertical-align: 0; }
.cols-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.main-col > .block:first-child { margin-top: 0; }
.main-col .block { scroll-margin-top: calc(var(--hdr) + 20px); }
.facts { position: sticky; top: calc(var(--hdr) + 24px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bigstats { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.bigstat { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bigstat + .bigstat { border-left: 1px solid var(--line); }
.bs-k { font-size: 12px; color: var(--muted); }
.bs-v { font: 600 26px/1.15 var(--sans); letter-spacing: -.02em; }
.bs-v .flag { font-size: 10px; vertical-align: .4em; letter-spacing: 0; }
.bs-s { font: 400 11.5px/1.4 var(--mono); color: var(--muted); }
.facts-t { font: 500 11.5px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 16px 18px 4px; }
.facts dl { margin: 0; padding: 0 18px 8px; }
.facts dl > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.facts dl > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts > p, .facts .notes { margin: 0; padding: 0 18px 14px; }
.notes li { margin: 0 0 6px; }
.filecell .minibar { width: 64px; }
.linklist li { padding: 9px 0; border-bottom: 1px solid var(--line); }

/* models page overview */
.overview { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.overview .brow { grid-template-columns: minmax(0, 240px) minmax(0, 1fr) 52px; }
.stats { list-style: none; margin: 0 0 14px; padding: 0; }
.stats li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stats li:first-child { padding-top: 0; }
.stats b { font: 600 22px/1 var(--sans); min-width: 2.6ch; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats span { color: var(--ink-2); font-size: 14px; }

/* ------------------------------------------------------------------ docs (methodology, estimates) */
.doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + 32px); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc .label { margin-bottom: 10px; }
.toc a { color: var(--muted); padding: 4px 0; text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.prose > :not(.table-wrap) { max-width: 74ch; }
.prose > :first-child { margin-top: 0; }
.prose .h2 { color: var(--ink); font-size: 32px; margin: 48px 0 14px; scroll-margin-top: calc(var(--hdr) + 20px); }
.prose .h3 { color: var(--ink); margin: 32px 0 10px; scroll-margin-top: calc(var(--hdr) + 20px); }
.prose > .h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--faint); }
.prose b { color: var(--ink); }
.prose .table-wrap { margin: 8px 0 12px; }
.formula { font: 400 14px/1.6 var(--mono); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 8px; padding: 12px 16px; margin: 0 0 12px; }
.formula-k { font-weight: 500; }
.deflist { margin: 0 0 16px; }
.deflist > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.deflist dt { font-weight: 600; color: var(--ink); }
.deflist dd { margin: 0; }
.label-list { list-style: none; padding: 0 !important; }
.label-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.label-list .ev { justify-self: start; }
.prose-panel > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; margin: 0; }
.prose-panel > summary::-webkit-details-marker { display: none; }
.prose-panel > summary .card-t { margin: 0; }
.prose-panel .prose { margin-top: 12px; font-size: 15px; }
.prose-panel .prose > * { max-width: none; }

/* ------------------------------------------------------------------ forms & small pages */
.submit-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.form input { width: 100%; height: 42px; }
.form .wide { grid-column: 1 / -1; }
.snippet-panel { position: sticky; top: calc(var(--hdr) + 20px); }
.snippet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.snippet-head .card-t { margin: 0; }
.snippet-panel .code { min-height: 200px; margin-bottom: 12px; }
.soon { max-width: 560px; margin: 0 auto; }
.soon .label, .nf .label { margin-bottom: 14px; }
.nf { max-width: 640px; margin: 0 auto; }
.nf-h { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 88px); line-height: 1; letter-spacing: -.03em; margin: 0 0 16px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1239px) {
  .rtable { --cols: 26px minmax(0, 1fr) 78px 58px 236px 86px 86px 104px 28px; --gap-x: 12px; }
}
@media (max-width: 1139px) {
  .tb-custom { margin-left: 0; }
  .below-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .below-grid > :last-child { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
}
/* results become stacked rows */
@media (max-width: 1023px) {
  .res-head { display: none; }
  .res { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "model model model" "aa arena ." "mem mem mem" "pp tg tt" "more more more"; gap: 12px; padding: 16px 16px 14px 44px; }
  .results > .res:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .res > .c-pos { position: absolute; left: 16px; top: 16px; }
  .c-model { grid-area: model; padding-right: 32px; }
  .c-aa { grid-area: aa; } .c-arena { grid-area: arena; } .c-mem { grid-area: mem; }
  .c-pp { grid-area: pp; } .c-tg { grid-area: tg; } .c-ttft { grid-area: tt; }
  .res-more { grid-area: more; }
  .c-aa::before, .c-mem::before, .c-pp::before { display: none; }
  .cl { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .c-mem .cl { margin-bottom: 4px; }
  .res-detail { padding-left: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-side { max-width: 560px; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .overview { grid-template-columns: minmax(0, 1fr); }
  .cols-side { grid-template-columns: minmax(0, 1fr); }
  .facts { position: static; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc .label { display: none; }
  .toc a { background: var(--fill); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
  .submit-grid { grid-template-columns: minmax(0, 1fr); }
  .snippet-panel { position: static; }
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav, .top-submit { display: none; }
  .menu { display: block; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 32px; }
  .hero-side { display: none; }
  .hero-h { font-size: clamp(44px, 13vw, 60px); }
  .picker { flex-direction: column; }
  .browse select { width: 100%; height: 46px; }
  .combo-input { height: 52px !important; font-size: 16px !important; }
  .kbd { display: none; }
  .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .quick::-webkit-scrollbar { display: none; }
  .hws-head .arrow-link { display: none; }
  .kv { font-size: 12.5px; }
  .toolbar { gap: 12px 16px; }
  .tb legend, .tb-l { float: none; display: block; line-height: 1.4; margin: 0 0 6px; }
  .tb-custom { display: block; }
  .tb-foot p { margin-left: 0; }
  .res { padding: 14px 12px 12px 38px; gap: 10px; }
  .res > .c-pos { left: 12px; top: 14px; }
  .res-detail { grid-template-columns: minmax(0, 1fr); }
  table.mini th { white-space: normal; padding-right: 10px; }
  table.mini td:last-child { overflow-wrap: anywhere; }
  .brow { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 50px; column-gap: 8px; }
  .overview .brow { grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 44px; }
  .chart { padding: 16px 14px 12px; }
  .chart-note { margin-left: 0; }
  .results-head .legend, .legend { gap: 6px 12px; }
  .cols2 { grid-template-columns: minmax(0, 1fr); }
  .below-grid { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .field-search, .field-search input { width: 100%; }
  .deflist > div, .label-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .foot-meta { flex-direction: column; gap: 4px; }
  .tw-sticky, .tw-tall { max-height: none; }
  .tbl-dev { table-layout: auto; }
  .tbl-dev th:nth-child(2), .tbl-dev th:nth-child(3), .fitcol { width: auto; }
  .fitcell .minibar { width: 48px; }
  .filecell .minibar { display: none; }
  .miss { grid-template-columns: minmax(0, 1fr); }
  .miss li { flex-direction: column; gap: 0; }
  .phead { padding: 32px 0 24px; }
  .phead-model { padding-bottom: 0; }
  .sec-t { font-size: 26px; }
}

@media (forced-colors: active) {
  .ms, .sw, .minibar i, .bfill { forced-color-adjust: none; }
  .meter, .minibar, .btrack { border: 1px solid CanvasText; }
}
@media print {
  .top, .foot, .toolbar, .tb-foot, .picker, .quick, .menu, .res-more > summary { display: none !important; }
  .table-wrap, .rtable, .chart, .card { break-inside: avoid; }
}
