:root{--accent:#c2410c;--accent-strong:#9a3412;--accent-soft:#fff1e7}
@media (prefers-color-scheme: dark){:root{--accent:#fb923c;--accent-strong:#fdba74;--accent-soft:#3a1d0b}}
/* Shared theme for the comparison sites. build.py prepends the per-site --accent colors. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --ink: #0f172a;
  --muted: #4b5563;
  --line: #e2e8f0;
  --warn-bg: #fff8e6;
  --warn-line: #d97706;
  --good: #15803d;
  --bad: #b42318;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .06);
  --text-w: 46rem;
  --wide-w: 68rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111827;
    --surface-2: #172033;
    --ink: #e5e7eb;
    --muted: #9ca3af;
    --line: #253044;
    --warn-bg: #2a2111;
    --warn-line: #f59e0b;
    --good: #4ade80;
    --bad: #f87171;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; }
[id] { scroll-margin-top: 84px; }

.container { width: min(var(--wide-w), 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; min-height: 64px; padding: .5rem 0; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.06rem; letter-spacing: -.01em; }
.logo .mark { width: 32px; height: 32px; flex: none; }
.logo .mark-bg { fill: var(--accent); }
.logo .light { font-weight: 500; color: var(--muted); }
.logo:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 550; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* Page column: text stays readable, .wide blocks use the full width */
main { padding: 2.2rem 0 4rem; }
.page > * { max-width: var(--text-w); margin-inline: auto; }
.page > .wide { max-width: var(--wide-w); }

h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.75rem); line-height: 1.12; letter-spacing: -.028em; margin-top: .35rem; margin-bottom: .8rem; }
h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.016em; margin-top: 3.2rem; margin-bottom: .9rem; }
h3 { font-size: 1.16rem; line-height: 1.3; margin-top: 2rem; margin-bottom: .5rem; }
p, ul, ol { margin-top: 0; margin-bottom: 1rem; }
li { margin: .3rem 0; }
strong { font-weight: 700; }

/* Hero */
.hero { padding: .6rem 0 .4rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-strong); }
.lede { font-size: 1.16rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.check { color: var(--good); font-weight: 800; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1rem; margin-top: 1rem; margin-bottom: 1.6rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.15rem 1rem; display: flex; flex-direction: column; gap: .55rem; }
.card h3 { margin: 0; font-size: 1.25rem; }
.card p { margin: 0; font-size: .95rem; }
.card dl { margin: .2rem 0 0; font-size: .92rem; }
.card dt { color: var(--muted); font-size: .74rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; margin-top: .55rem; }
.card dt:first-child { margin-top: 0; }
.card dd { margin: .05rem 0 0; font-weight: 650; }
.card .card-foot { margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--line); font-size: .92rem; font-weight: 600; }
.card .card-foot a { text-decoration: none; }
.card .card-foot a::after { content: " \2192"; }
.badge { align-self: flex-start; display: inline-block; background: var(--accent-soft); color: var(--accent-strong); font-size: .76rem; font-weight: 750; letter-spacing: .01em; padding: .22rem .55rem; border-radius: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 48rem; font-size: .92rem; }
.table-wrap.compact table { min-width: 34rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
tbody th { position: sticky; left: 0; background: var(--surface); font-weight: 750; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: .88rem; margin-top: .7rem; }
.table-wrap + :not(.note) { margin-top: 1.1rem; }

/* Callouts */
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: .9rem 1.05rem; margin-top: 1.1rem; margin-bottom: 1.1rem; }
.callout.warn { background: var(--warn-bg); border-left-color: var(--warn-line); }
.callout > strong:first-child { display: block; margin-bottom: .25rem; }
.callout p:last-child { margin-bottom: 0; }

/* Provider sections */
.provider { border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: .2rem; }
.provider h3 { font-size: 1.35rem; }
.stats { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: .5rem 0 1.1rem; }
.stats li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .22rem .75rem; font-size: .86rem; }
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; margin: 1rem 0 1.2rem; }
.fit > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .95rem; }
.fit h4 { margin: 0 0 .3rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.fit .good h4 { color: var(--good); }
.fit .bad h4 { color: var(--bad); }
.fit p { margin: 0; font-size: .95rem; }

/* Diagrams */
figure { margin: 1.4rem auto; }
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .8rem; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .d-src { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.diagram .d-bank { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.diagram .d-line { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.diagram .d-t { fill: var(--ink); font: 500 14px var(--font); }
.diagram .d-b { font-size: 19px; font-weight: 750; }
.diagram .d-m { fill: var(--muted); font-size: 13px; }
figcaption { color: var(--muted); font-size: .86rem; margin-top: .6rem; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-top: .6rem; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 650; }
details[open] summary { margin-bottom: .5rem; }
details p:last-child { margin-bottom: 0; }

/* Link cards */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .8rem; list-style: none; padding: 0; }
.link-cards li { margin: 0; }
.link-cards a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; color: var(--ink); text-decoration: none; }
.link-cards a:hover { border-color: var(--accent); }
.link-cards span { display: block; color: var(--muted); font-size: .9rem; margin-top: .2rem; }

/* Sources, footnotes, fine print */
sup a { text-decoration: none; font-weight: 700; font-size: .78em; padding: 0 .1em; }
.sources { color: var(--muted); font-size: .9rem; padding-left: 1.4rem; }
.sources li { margin: .3rem 0; }
.fineprint { color: var(--muted); font-size: .9rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: .75rem .95rem; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 2rem 0 2.6rem; }
.site-footer .container { display: grid; gap: .6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  h2 { font-size: 1.32rem; margin-top: 2.6rem; }
}
