:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --ink: #17181a;
  --muted: #5d6066;
  --line: #e4e4e1;
  --accent: #1f6f5c;
  --accent-soft: #e5f2ee;
  --tag: #f0efec;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121314;
    --surface: #1a1c1e;
    --ink: #ecedee;
    --muted: #a0a4aa;
    --line: #2c2f33;
    --accent: #5cc2a6;
    --accent-soft: #17302a;
    --tag: #26292c;
  }
}
:root[data-theme="dark"] {
  --bg: #121314; --surface: #1a1c1e; --ink: #ecedee; --muted: #a0a4aa;
  --line: #2c2f33; --accent: #5cc2a6; --accent-soft: #17302a; --tag: #26292c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
nav a { color: var(--muted); }
main.wrap { padding-top: 32px; padding-bottom: 16px; }
h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 21px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.hero { padding: 8px 0 4px; }
.lede { color: var(--muted); max-width: 720px; margin: 0 0 16px; }
.lede strong { color: var(--ink); }
.crumb { font-size: 14px; margin: 0 0 8px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.best td { background: var(--accent-soft); }
tr.best td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tag { display: inline-block; background: var(--tag); border-radius: 999px; padding: 1px 9px; font-size: 12.5px; white-space: nowrap; }
.note { color: var(--muted); font-size: 13.5px; }
td.note { min-width: 160px; }
.src { font-size: 12.5px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px 16px; margin-top: 40px; }
.card h2 { margin-top: 20px; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 8px 0 16px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.calc input { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; }
.calc input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.result { font-size: 17px; padding: 12px 14px; background: var(--accent-soft); border-radius: 8px; }
.result strong { font-size: 22px; }
.foot { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 48px; }
.foot p { color: var(--muted); font-size: 13px; max-width: 760px; }
tr.live td.num { color: var(--muted); font-size: 13.5px; }
.btn { display: inline-block; background: var(--accent); color: var(--bg); font-weight: 600; padding: 10px 18px; border-radius: 8px; }
.btn:hover { text-decoration: none; opacity: 0.9; }
code { font-size: 13px; background: var(--tag); padding: 1px 5px; border-radius: 4px; }
.cta { margin-top: 32px; }
.cta h2 { margin-top: 18px; }
.card ul { padding-left: 20px; margin: 8px 0 12px; }
.card li { margin: 4px 0; }
