/* Layout: one 1080px editorial column, tables scroll inside their own box, page never scrolls sideways. */
:root {
  --bg: #fbfaf7; --surface: #ffffff; --fg: #1b1f24; --muted: #5b6470; --rule: #e3e0d8;
  --accent: #0f6e56; --accent-soft: #e6f2ee; --note: #faf3dc; --warn: #b7471b;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #15181c; --surface: #1d2127; --fg: #e8e6e1; --muted: #a2a9b4; --rule: #2d333b;
  --accent: #5fc3a2; --accent-soft: #1b2f29; --note: #2b2616; --warn: #f08a5d; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #15181c; --surface: #1d2127; --fg: #e8e6e1; --muted: #a2a9b4; --rule: #2d333b;
  --accent: #5fc3a2; --accent-soft: #1b2f29; --note: #2b2616; --warn: #f08a5d; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.banner { background: var(--warn); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 6px 16px; letter-spacing: .02em; }
header.site { border-bottom: 1px solid var(--rule); background: var(--surface); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 14px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--fg); text-decoration: none; margin-right: auto; }
nav.primary { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
nav.primary a { color: var(--fg); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.primary a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }
main { padding-block: 32px 56px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; }
h2 { font-size: 24px; margin: 44px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, li { max-width: 72ch; }
.lede { font-size: 18px; color: var(--muted); margin-top: 0; }
.meta { font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.meta time { font-variant-numeric: tabular-nums; }
.take { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 14px 18px; margin: 20px 0; border-radius: 0 6px 6px 0; }
.take p { margin: 0; }
.note { border: 1px dashed var(--rule); background: var(--note); padding: 12px 16px; margin: 20px 0; border-radius: 6px; font-size: 15px; }
.note p { margin: 0; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 8px; padding: 0; list-style: none; }
.picks li { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; }
.picks .label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.picks a { font-weight: 700; color: var(--fg); text-decoration: none; }
.picks a:hover { color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 0; margin: 16px 0; list-style: none; }
.tiles li a { display: block; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 16px; color: var(--fg); text-decoration: none; font-weight: 600; min-height: 72px; }
.tiles li a:hover { border-color: var(--accent); color: var(--accent); }
.tablewrap { overflow-x: auto; margin: 16px 0 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 640px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
th { background: var(--accent-soft); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.rank { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; width: 2.5em; }
td.num { font-variant-numeric: tabular-nums; }
.src { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.faq h3 { margin-top: 22px; }
.faq p { margin-top: 4px; }
.changelog { font-size: 14.5px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.badge.pending { background: var(--note); color: var(--warn); }
footer.site { border-top: 1px solid var(--rule); padding-block: 24px 40px; font-size: 14px; color: var(--muted); background: var(--surface); }
footer.site p { margin: 6px 0; max-width: none; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.disclosure { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 10px 14px; font-size: 14px; color: var(--muted); margin: 0 0 24px; }
form.corr { display: grid; gap: 14px; max-width: 560px; }
form.corr label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
form.corr input, form.corr textarea, form.corr select { font: inherit; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); color: var(--fg); }
form.corr .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
form.corr button { font: inherit; font-weight: 600; background: var(--accent); color: #fff; border: 0; padding: 10px 18px; border-radius: 4px; cursor: pointer; justify-self: start; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 480px) { h2 { font-size: 21px; } .meta { font-size: 13px; } }
/* Hero and chooser */
.hero { padding-block: 8px 4px; }
.hero h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.hero .lede { font-size: 19px; max-width: 60ch; margin-bottom: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 22px; }
.btn { display: inline-block; font-weight: 700; padding: 11px 18px; border-radius: 6px; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: #fff; }
.btn.secondary { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.08); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; max-width: 760px; }
.stats li { border-top: 2px solid var(--accent); padding-top: 8px; }
.stats .n { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats .l { display: block; font-size: 14px; color: var(--muted); }
.chooser fieldset { border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); padding: 14px 16px 6px; margin: 0 0 16px; }
.chooser legend { font-weight: 700; padding: 0 6px; }
.chooser .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.chooser label.opt { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; cursor: pointer; background: var(--bg); }
.chooser label.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chooser label.opt input { margin-top: 4px; }
.chooser label.opt b { display: block; }
.chooser label.opt span { font-size: 14px; color: var(--muted); }
.results { display: grid; gap: 12px; margin: 16px 0; }
.result { border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 6px; background: var(--surface); padding: 14px 16px; }
.result h3 { margin: 0 0 4px; }
.result .fits { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.result p { margin: 6px 0; }
.result.best { box-shadow: 0 0 0 2px var(--accent-soft); }
.chooser-status { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
