/* shared/tokens.css — base token layer, inherited by all network sites
   Per-site theme overrides ONLY the variables in the :root block of theme.css
   Never edit structure here per-site — edit only the token values in theme.css */

:root {
  /* colors — site theme.css overrides these */
  --bg:           #ffffff;
  --bg-subtle:    #f7f8fa;
  --ink:          #15161a;
  --muted:        #5b606b;
  --accent:       #1a56db;
  --accent-dark:  #1240a8;
  --accent-2:     #0a9f7b;
  --line:         #e4e7ed;
  --score-good:   #0a9f7b;
  --score-mid:    #b6791f;
  --score-low:    #c0392b;
  --badge-bg:     #f0faf7;
  --callout-bg:   #fff8e1;
  --callout-line: #e6c44a;

  /* typography */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-prose:   var(--font-body);   /* article body — sites may override to a serif */
  --font-mono:    ui-monospace, 'SFMono-Regular', 'Courier New', monospace;
  --size-xs:      0.75rem;
  --size-sm:      0.875rem;
  --size-base:    1rem;
  --size-lg:      1.125rem;
  --size-xl:      1.35rem;
  --size-2xl:     1.75rem;
  --size-3xl:     2.25rem;
  --size-4xl:     3rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold:  700;
  --leading-tight: 1.2;
  --leading-base: 1.6;

  /* layout */
  --maxw:         960px;
  --radius:       8px;
  --radius-sm:    4px;
  --radius-lg:    12px;
  --space:        1rem;
  --space-xs:     0.375rem;
  --space-sm:     0.625rem;
  --space-lg:     1.5rem;
  --space-xl:     2.5rem;
  --space-2xl:    4rem;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 4px 12px rgba(0,0,0,.08);
}

/* ── reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: var(--leading-base);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── layout ──────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-lg); }
.section    { padding: var(--space-2xl) 0; }
.section--sm { padding: var(--space-xl) 0; }

/* ── nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--space-sm) 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-lg);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: var(--weight-bold);
  color: var(--ink);
}
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; gap: var(--space-lg); list-style: none; }
.nav__links a { font-size: var(--size-sm); color: var(--muted); font-weight: var(--weight-medium); }
.nav__links a:hover { color: var(--ink); text-decoration: none; }

/* ── hero ────────────────────────────────────────────── */
.hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  padding: var(--space-2xl) 0 var(--space-xl);
}
.hero__eyebrow {
  font-size: var(--size-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--size-2xl), 4vw, var(--size-4xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--ink);
  max-width: 720px;
  margin-bottom: var(--space-lg);
}
.hero__answer {
  font-size: var(--size-lg);
  line-height: 1.7;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: var(--space-lg);
}
.hero__meta {
  display: flex; gap: var(--space-lg); flex-wrap: wrap;
  font-size: var(--size-sm); color: var(--muted);
}
.hero__meta strong { color: var(--ink); }

/* ── disclosure callout ──────────────────────────────── */
.disclosure-banner {
  background: var(--callout-bg);
  border-left: 3px solid var(--callout-line);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space);
  font-size: var(--size-sm);
  color: var(--muted);
  margin: var(--space-lg) 0;
}
.disclosure-banner a { color: var(--accent); }

/* ── ranking table ───────────────────────────────────── */
.ranking { margin: var(--space-xl) 0; }
.ranking__title {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-lg);
}
.ranking-table { width: 100%; border-collapse: collapse; font-size: var(--size-sm); }
.ranking-table th {
  text-align: left;
  padding: var(--space-sm) var(--space);
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: var(--size-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--line);
}
.ranking-table td {
  padding: var(--space) var(--space);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ranking-table tr:hover td { background: var(--bg-subtle); }
.ranking-table tr.row--top td { background: #f0fdf9; }
.ranking-table tr.row--top:hover td { background: #e6fbf4; }

.provider-name { font-weight: var(--weight-semibold); color: var(--ink); font-size: var(--size-base); }
.provider-name .badge--top {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-weight: var(--weight-bold);
  font-size: var(--size-sm);
  background: var(--badge-bg);
  color: var(--score-good);
  border: 2px solid var(--score-good);
}
.score-badge--mid { color: var(--score-mid); border-color: var(--score-mid); background: #fff8ed; }
.score-badge--low { color: var(--score-low); border-color: var(--score-low); background: #fff0ee; }

.price-cell { font-weight: var(--weight-semibold); white-space: nowrap; }
.price-cell .from { font-size: var(--size-xs); color: var(--muted); font-weight: 400; display: block; }

.cta-btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: var(--size-sm);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  transition: background .15s;
}
.cta-btn:hover { background: var(--accent-dark); text-decoration: none; }
.cta-btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cta-btn--ghost:hover { background: var(--accent); color: #fff; }

/* ── entity-facts box ────────────────────────────────── */
.entity-facts {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space);
  margin: var(--space-lg) 0;
  line-height: 1.9;
}
.entity-facts__title {
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--ink);
}
.entity-facts dt { color: var(--muted); display: inline; }
.entity-facts dd { display: inline; color: var(--ink); font-weight: var(--weight-medium); margin-left: 4px; }
.entity-facts dt::before { content: ''; display: block; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { margin: var(--space-xl) 0; }
.faq__title {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-lg);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--space-sm) 0;
}
.faq summary {
  font-weight: var(--weight-semibold);
  cursor: pointer;
  list-style: none;
  padding: var(--space-sm) 0;
  position: relative;
  padding-right: var(--space-xl);
  font-size: var(--size-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: var(--size-lg); color: var(--accent); font-weight: 300;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  padding: var(--space-sm) 0 var(--space);
  color: var(--muted);
  font-size: var(--size-sm);
  line-height: 1.7;
}

/* ── disclaimer ──────────────────────────────────────── */
.disclaimer {
  font-size: var(--size-xs);
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space);
  margin: var(--space-lg) 0;
  line-height: 1.7;
}

/* ── footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-subtle);
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-lg);
}
.footer__disclosure {
  font-size: var(--size-xs);
  color: var(--muted);
  line-height: 1.7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space);
  margin-bottom: var(--space-lg);
}
.footer__links {
  display: flex; gap: var(--space-lg); flex-wrap: wrap;
  font-size: var(--size-xs); color: var(--muted);
}
.footer__links a { color: var(--muted); }

/* ── article / prose (guides + blog) ─────────────────── */
.article-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.article-head .kicker {
  font-size: var(--size-xs);
  font-weight: var(--weight-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--size-2xl), 3.5vw, var(--size-3xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space);
}
.article-head .standfirst {
  font-size: var(--size-lg);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}
.byline {
  display: flex; flex-wrap: wrap; gap: var(--space);
  font-size: var(--size-sm);
  color: var(--muted);
  align-items: center;
}
.byline strong { color: var(--ink); font-weight: var(--weight-semibold); }
.byline .dot { color: var(--line); }

.prose {
  font-family: var(--font-prose);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-2, var(--ink));
}
.prose > * + * { margin-top: var(--space); }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xs);
  scroll-margin-top: 70px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: var(--weight-semibold); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; color: var(--muted); }
.prose li + li { margin-top: var(--space-xs); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
  color: var(--ink);
  font-style: italic;
}

/* data figure / comparison strip inside articles */
.figure {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}
.figure__cap {
  font-size: var(--size-xs);
  color: var(--muted);
  margin-top: var(--space-sm);
}
.stat-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space); }
.stat {
  text-align: center;
  padding: var(--space);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--size-3xl);
  font-weight: var(--weight-bold);
  color: var(--accent);
  line-height: 1;
}
.stat__label { font-size: var(--size-sm); color: var(--muted); margin-top: var(--space-xs); }

/* references list */
.references {
  font-size: var(--size-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
.references h2 { font-family: var(--font-body); font-size: var(--size-base); margin-bottom: var(--space-sm); }
.references ol { padding-left: 1.4em; color: var(--muted); }
.references li { margin-bottom: var(--space-xs); }

/* table of contents (sticky aside) */
.toc {
  font-size: var(--size-sm);
  position: sticky; top: 70px;
}
.toc__title {
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}
.toc ul { list-style: none; }
.toc li { margin-bottom: var(--space-xs); }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--space-2xl);
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .ranking-table { font-size: var(--size-xs); }
  .ranking-table th:nth-child(4),
  .ranking-table td:nth-child(4) { display: none; }
  .hero__h1 { font-size: var(--size-2xl); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
