:root {
  --bg: #f6f4ef; --card: #ffffff; --ink: #1b1f1d; --muted: #5d6763; --line: #e2ded4;
  --accent: #0b6b4f; --accent-soft: #e3f1eb; --warn: #8a5a00; --warn-soft: #fbf1d9; --extra: #a23b2a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #121514; --card: #1b201e; --ink: #ecefec; --muted: #9aa5a0; --line: #2c3431; --accent: #5fd0a6; --accent-soft: #17322a; --warn: #f0c261; --warn-soft: #33290f; --extra: #ff9a85; }
}
:root[data-theme="dark"] { --bg: #121514; --card: #1b201e; --ink: #ecefec; --muted: #9aa5a0; --line: #2c3431; --accent: #5fd0a6; --accent-soft: #17322a; --warn: #f0c261; --warn-soft: #33290f; --extra: #ff9a85; }
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 64px; }
header { padding: 28px 0 8px; }
.brand { font-weight: 700; letter-spacing: .02em; color: var(--accent); font-size: 14px; text-transform: uppercase; }
h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.15; margin: 10px 0 10px; letter-spacing: -.01em; }
.lede { color: var(--muted); max-width: 700px; margin: 0 0 6px; font-size: 17px; }
.stamp { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; background: var(--card); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 18px; }
h2 { font-size: 20px; margin: 0 0 12px; }
.label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 8px; }
.label:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); }
.chip small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.chip[aria-pressed="true"] small { color: inherit; opacity: .85; }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.headline { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; margin-bottom: 4px; }
.big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.sub { color: var(--muted); }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-top: 12px; }
.scroll { overflow-x: auto; margin: 14px -18px -6px; padding: 0 18px; }
table { border-collapse: collapse; width: 100%; min-width: 660px; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th:first-child, td:first-child { text-align: left; padding-left: 0; min-width: 210px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.ref td { background: var(--accent-soft); }
tr.ref td:first-child { padding-left: 10px; border-radius: 8px 0 0 8px; }
tr.ref td:last-child { border-radius: 0 8px 8px 0; }
.where { font-weight: 600; }
.plan { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.flag { display: block; font-size: 12px; color: var(--warn); font-weight: 400; }
.total { font-weight: 700; font-size: 17px; }
.extra { display: block; font-size: 13px; color: var(--extra); font-weight: 400; }
.extra.zero { color: var(--accent); }
details.more { margin-top: 16px; font-size: 14.5px; }
details.more summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details.more table { min-width: 520px; margin-top: 8px; }
details.more td, details.more th { padding: 7px 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mini h3 { margin: 0 0 4px; font-size: 16px; }
.mini p { margin: 0; color: var(--muted); font-size: 14.5px; }
.mini .price { font-size: 24px; font-weight: 700; color: var(--ink); }
ul.plain { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
ul.plain li { margin: 5px 0; }
a { color: var(--accent); }
footer { color: var(--muted); font-size: 13px; margin-top: 26px; }

form.alert { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
form.alert label { display: block; margin-bottom: 8px; }
.alertrow { display: flex; flex-wrap: wrap; gap: 8px; }
.alertrow input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.alertrow input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#alertMsg { margin-top: 8px; font-size: 14.5px; min-height: 1px; }
.fine { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* Ad banners. One shape everywhere: 728 x 90 on desktop, scales down on phones. */
.ad { margin: 18px auto 0; max-width: 728px; }
.ad .adlabel { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 4px; }
.ad a.slot { display: flex; align-items: center; justify-content: center; text-decoration: none; width: 100%; aspect-ratio: 728 / 90; min-height: 60px;
  border-radius: 10px; overflow: hidden; background: var(--card); }
.ad a.slot.empty { border: 1.5px dashed var(--line); color: var(--muted); flex-direction: column; gap: 2px; text-align: center; padding: 6px 10px; }
.ad a.slot.empty b { color: var(--ink); font-size: 15px; }
.ad a.slot.empty span { font-size: 12.5px; }
.ad a.slot img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Guide pages */
a.brand { text-decoration: none; display: inline-block; }
.crumb { font-size: 13px; color: var(--muted); margin-top: 6px; }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.card h3 { font-size: 16px; margin: 16px 0 6px; }
.card .scroll { margin-top: 8px; margin-bottom: 4px; }
td.best { color: var(--accent); font-weight: 700; }
table.tight { min-width: 520px; }
table.tight th, table.tight td { padding: 8px 10px; }
table.tight th:first-child, table.tight td:first-child { min-width: 150px; padding-left: 0; }
.answer { font-size: 17px; }
ul.links { margin: 0; padding-left: 18px; }
ul.links li { margin: 6px 0; }


.adform { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 14px; }
.adform label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.adform input, .adform select, .adform textarea { display: block; width: 100%; margin-top: 4px; font: inherit; font-weight: 400; padding: 9px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.adform .wide { grid-column: 1 / -1; }
.adform :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Light / dark switch (added to the header by theme.js) */
header { position: relative; }
.themebtn { position: absolute; top: 22px; right: 0; font: inherit; font-size: 13px; cursor: pointer; padding: 5px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.themebtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Hidden field that only bots fill in */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
