:root {
  --bg: #f7f7f4; --surface: #ffffff; --ink: #16181d; --muted: #5d6470; --line: #e3e3dc;
  --accent: #1f5eff; --accent-ink: #ffffff; --good: #0f7a3d; --good-bg: #e8f6ee; --bad: #b42318;
  --warn-bg: #fff6e0; --warn-line: #f0d48a; --pub-bg: #efe7ff; --pub-ink: #5b2dbf;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --surface: #161a20; --ink: #e8eaee; --muted: #9aa3b0; --line: #262c35;
    --accent: #6c9bff; --accent-ink: #0b0d10; --good: #4cc98a; --good-bg: #12281d; --bad: #ff7b6e;
    --warn-bg: #2a2412; --warn-line: #5c4b1a; --pub-bg: #2a2144; --pub-ink: #c6b2ff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 28px 0 8px; letter-spacing: -0.01em; }
h1 small { font-size: .9rem; color: var(--muted); font-weight: 400; }
h2 { font-size: 1.2rem; margin: 28px 0 10px; }
h2 small { font-weight: 400; color: var(--muted); font-size: .85rem; }
small { color: var(--muted); }
.mono, code { font-family: var(--mono); font-size: .85em; }
.lede { color: var(--muted); max-width: 820px; font-size: 1.02rem; }

.disclosure { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); font-size: .82rem; padding: 6px 0; }
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); font-size: 1.1rem; white-space: nowrap; }
.brand .mark { color: var(--accent); }
header nav { display: flex; gap: 4px; flex-wrap: wrap; }
header nav a { color: var(--muted); padding: 6px 10px; border-radius: 6px; font-size: .92rem; }
header nav a[aria-current="page"], header nav a:hover { color: var(--ink); background: var(--bg); text-decoration: none; }

.hero { padding: 16px 0 8px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 900px; }
.search, .filters, .calc { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.search input { flex: 1 1 320px; }
input, select, button { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button, .button { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); cursor: pointer; font-weight: 600; }
.button { display: inline-block; padding: 9px 14px; border-radius: 8px; }
.button:hover { text-decoration: none; filter: brightness(1.05); }
.calc { flex-direction: column; max-width: 520px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); }
.calc button { align-self: flex-start; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 24px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.panel h2 { margin-top: 0; }
.cats { list-style: none; padding: 0; margin: 0; }
.cats li { padding: 7px 0; border-top: 1px solid var(--line); }
.cats li:first-child { border-top: 0; }
.n { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 99px; background: var(--bg); color: var(--muted); font-size: .78rem; text-align: center; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 4px 10px; border-radius: 99px; font-size: .88rem; color: var(--ink); }
.chip.on { border-color: var(--accent); color: var(--accent); }

.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface); position: sticky; top: 0; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.strong { font-weight: 700; }
tr.best td { background: var(--good-bg); }
.spread { color: var(--bad); font-weight: 600; }
td.down { color: var(--good); } td.up { color: var(--bad); }
.count, .hint { color: var(--muted); font-size: .85rem; }
.empty { color: var(--muted); padding: 20px 0; }

.conf { display: inline-block; min-width: 1.5em; text-align: center; border-radius: 4px; font-size: .75rem; font-weight: 700; padding: 0 3px; cursor: help; }
.conf-primary { color: var(--good); background: var(--good-bg); }
.conf-primary_partial { color: #9a6700; background: var(--warn-bg); }
.conf-secondary { color: var(--bad); background: var(--warn-bg); }
.conf-todo { color: var(--muted); background: var(--bg); }
.note { cursor: help; color: var(--muted); }
.pub { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--pub-bg); color: var(--pub-ink); vertical-align: middle; }
.ow { font-size: .7rem; padding: 0 5px; border-radius: 4px; background: var(--good-bg); color: var(--good); }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 10px 14px; border-radius: 8px; }

.sponsored { margin: 16px 0 0; padding: 10px 14px; border: 1px dashed var(--warn-line); border-radius: 10px; background: var(--surface); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .9rem; }
.sponsored .tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #9a6700; }
.sponsored .why { margin-left: auto; font-size: .78rem; color: var(--muted); }

.crumbs { margin-top: 20px; font-size: .88rem; color: var(--muted); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
dl.facts dt { color: var(--muted); font-size: .85rem; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.src { font-size: .82rem; }
.pager { display: flex; gap: 16px; justify-content: center; margin: 16px 0; color: var(--muted); }
.prose { max-width: 760px; }
.prose li { margin: 6px 0; }

footer.site { margin-top: 48px; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) {
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { margin-top: 6px; }
  .bar { gap: 8px; padding: 8px 0; }
  th, td { padding: 8px; }
}
td:last-child { white-space: nowrap; }
