/* ============================================================
   Pre-Literate Kids' EdTech — Builder's Landscape
   Single-page editorial-grade styling
   ============================================================ */

:root {
  --bg: #fdfcf9;
  --bg-elev: #ffffff;
  --bg-soft: #f5f1e8;
  --fg: #1a1612;
  --fg-soft: #4a4540;
  --muted: #807870;
  --rule: #e5dfd2;
  --rule-soft: #f0ebde;
  --accent: #c44518;
  --accent-soft: #fce8de;
  --link: #1a4fa3;
  --link-hover: #c44518;

  --c-app: #c44518;
  --c-hardware: #2e7d68;
  --c-streaming: #6b3fa0;
  --c-live: #1a4fa3;
  --c-ai: #b8860b;
  --c-hybrid: #555;
  --c-defunct: #999;

  --strong-positive: #2e7d4f;
  --strong-positive-soft: #d6ebe0;
  --strong-moderate: #b88a2c;
  --strong-moderate-soft: #f5e9d0;
  --strong-weak: #c44518;
  --strong-weak-soft: #fce8de;
  --strong-neutral: #888;
  --strong-neutral-soft: #e8e5de;

  --shadow-sm: 0 1px 2px rgba(20, 15, 10, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 15, 10, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 15, 10, 0.14);

  --serif: 'Lora', 'Iowan Old Style', 'Charter', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --col-w: 720px;
  --col-w-wide: 920px;
}

[data-theme="dark"] {
  --bg: #14110d;
  --bg-elev: #1d1915;
  --bg-soft: #221d18;
  --fg: #ece5d8;
  --fg-soft: #c8c0b0;
  --muted: #8a8275;
  --rule: #2e2820;
  --rule-soft: #221d18;
  --accent: #ff8b5a;
  --accent-soft: #3d1f12;
  --link: #6ab0f3;
  --link-hover: #ff8b5a;

  --c-app: #ff8b5a;
  --c-hardware: #4eb094;
  --c-streaming: #b794dc;
  --c-live: #6ab0f3;
  --c-ai: #e8c97a;
  --c-hybrid: #aaa;
  --c-defunct: #666;

  --strong-positive: #5fb888;
  --strong-positive-soft: #1e3528;
  --strong-moderate: #e0b766;
  --strong-moderate-soft: #3a2f1a;
  --strong-weak: #ff8b5a;
  --strong-weak-soft: #3d1f12;
  --strong-neutral: #777;
  --strong-neutral-soft: #2a2620;

  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 249, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
[data-theme="dark"] .topbar { background: rgba(20, 17, 13, 0.85); }

.topbar-inner {
  max-width: var(--col-w-wide);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex: 1;
  border: 0;
}
.brand:hover { color: var(--accent); }
.brand .brand-mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
  transform: rotate(45deg);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg-soft);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.15s, border-color 0.15s;
}
.theme-toggle:hover { background: var(--bg-soft); border-color: var(--accent); }

/* Reading progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 60;
  transition: width 0.05s linear;
}

/* ============================================================
   Layout
   ============================================================ */
main {
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 32px 24px 80px;
}
article > * { max-width: var(--col-w); margin-left: auto; margin-right: auto; }

/* Wide elements (hero, stats grid, tldr grid, charts, competitors) can break out */
.hero, .stat-section, .tldr-section, .chart-section, .competitors-section,
.evidence-heatmap-section, .mermaid-section, .body-content table,
.body-content .table-wrap, .pull-quote, .sources-section {
  max-width: var(--col-w-wide);
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--fg);
}
h1 {
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.05;
  margin: 0 0 18px;
}
.body-content h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.2;
  margin: 72px 0 18px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.body-content h2:first-child { margin-top: 24px; padding-top: 0; border-top: 0; }
.body-content h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 44px 0 14px;
}
.body-content h4 {
  font-size: 18px;
  line-height: 1.35;
  margin: 32px 0 10px;
  font-weight: 700;
}
p { margin: 0 0 20px; }
a { color: var(--link); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s, color 0.15s; }
a:hover { color: var(--link-hover); border-bottom-color: currentColor; }

strong { color: var(--fg); font-weight: 700; }
em { color: var(--fg-soft); }

ul, ol { padding-left: 26px; margin: 0 0 22px; }
li { margin: 8px 0; }
li > ul, li > ol { margin: 6px 0; }

blockquote {
  margin: 28px 0;
  padding: 10px 26px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  color: var(--fg-soft);
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
}
pre {
  font-family: var(--mono);
  background: var(--bg-soft);
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--rule);
}
pre code { background: none; padding: 0; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { overflow-x: auto; margin: 28px 0; border-radius: 8px; border: 1px solid var(--rule); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--bg-elev);
}
thead { background: var(--bg-soft); }
th {
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  margin: 24px auto 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; margin-bottom: 22px; }
.hero .deck {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 680px;
  margin-bottom: 28px;
  font-family: var(--serif);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.hero-meta .dot { opacity: 0.5; }

/* ============================================================
   Section eyebrows
   ============================================================ */
.section-eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.section-deck {
  color: var(--fg-soft);
  font-size: 15.5px;
  line-height: 1.5;
  margin-top: -8px;
  margin-bottom: 28px;
  max-width: 640px;
}

/* ============================================================
   Stat cards
   ============================================================ */
.stat-section { margin: 0 auto 64px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .stat-value {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.stat .stat-label {
  font-size: 13.5px;
  color: var(--fg-soft);
  line-height: 1.4;
}

/* ============================================================
   Executive summary cards
   ============================================================ */
.tldr-section { margin: 0 auto 80px; }
.tldr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.tldr {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 24px;
  font-size: 14.5px;
  line-height: 1.6;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.tldr .tldr-num {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}
.tldr .tldr-body { flex: 1; }
.tldr strong { display: block; margin-bottom: 4px; }

/* ============================================================
   Citations
   ============================================================ */
sup.cite-wrap { line-height: 0; }
a.cite {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  margin: 0 1px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  text-decoration: none;
  border: none;
  vertical-align: super;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  letter-spacing: 0;
}
a.cite:hover { background: var(--accent); color: white; border-bottom: 0; }

.cite-popover {
  position: absolute;
  z-index: 100;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.45;
  max-width: 360px;
  pointer-events: auto;
  color: var(--fg);
}
.cite-popover .pop-n {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
}
.cite-popover .pop-title { font-weight: 600; display: block; margin-bottom: 6px; }
.cite-popover .pop-url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  display: block;
  margin-bottom: 8px;
  border: 0;
}
.cite-popover .pop-snippet {
  color: var(--fg-soft);
  font-size: 12.5px;
  padding-top: 8px;
  border-top: 1px solid var(--rule-soft);
}

/* ============================================================
   Pull quotes
   ============================================================ */
.pull-quote {
  margin: 56px auto;
  padding: 0 0 0 32px;
  border-left: 4px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  color: var(--fg);
  font-style: italic;
  letter-spacing: -0.01em;
}
.pull-quote .pq-attr {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  margin-top: 14px;
  letter-spacing: 0.01em;
}

/* ============================================================
   Charts
   ============================================================ */
.chart-section { margin: 56px auto; }
.chart-container {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 24px 26px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.chart-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.chart-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.chart-mount { width: 100%; min-height: 320px; }

/* ============================================================
   Vertical event timeline (CSS-only)
   ============================================================ */
.tl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--fg-soft);
  margin: 8px 0 24px;
  align-items: center;
}
.tl-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.tl-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tl-regulatory { background: var(--c-live); }
.tl-shock { background: var(--c-app); }
.tl-ma { background: var(--c-streaming); }
.tl-funding { background: var(--c-hardware); }
.tl-product { background: var(--c-ai); }

.tl-regulatory-bg { background: var(--c-live); color: white; }
.tl-shock-bg { background: var(--c-app); color: white; }
.tl-ma-bg { background: var(--c-streaming); color: white; }
.tl-funding-bg { background: var(--c-hardware); color: white; }
.tl-product-bg { background: var(--c-ai); color: white; }

.tl {
  position: relative;
  margin-top: 8px;
}
.tl-year {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin: 22px 0 8px;
  padding-left: 96px;
  position: relative;
}
.tl-year:first-child { margin-top: 4px; }
.tl-row {
  display: grid;
  grid-template-columns: 80px 24px 1fr;
  gap: 0 14px;
  align-items: baseline;
  padding: 8px 0;
  position: relative;
}
.tl-date {
  text-align: right;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.tl-marker {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 6px;
}
.tl-marker::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -16px;
  left: 50%;
  width: 2px;
  background: var(--rule);
  transform: translateX(-50%);
  z-index: 0;
}
.tl-row:last-child .tl-marker::before { bottom: 0; }
.tl-marker .tl-dot {
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg-elev);
  box-sizing: content-box;
}
.tl-event {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}
.tl-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tl-text {
  font-size: 14.5px;
  color: var(--fg);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .tl-year { padding-left: 0; }
  .tl-row { grid-template-columns: 60px 18px 1fr; }
  .tl-date { font-size: 11px; }
}

/* ============================================================
   Competitor cards
   ============================================================ */
.competitors-section { margin: 64px auto; }
.competitor-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 20px;
}
.filter-chip {
  font-size: 12.5px;
  padding: 6px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--fg-soft);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); color: white; border-color: var(--accent); }

.competitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.comp-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.12s, box-shadow 0.12s;
  position: relative;
}
.comp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.comp-card[data-status="defunct"] { opacity: 0.7; }
.comp-card[data-status="defunct"] .comp-name { text-decoration: line-through; text-decoration-color: var(--c-defunct); text-decoration-thickness: 2px; }

.comp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.comp-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.comp-cat {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  color: white;
  flex-shrink: 0;
}
.comp-cat.app { background: var(--c-app); }
.comp-cat.hardware { background: var(--c-hardware); }
.comp-cat.streaming { background: var(--c-streaming); }
.comp-cat.live { background: var(--c-live); }
.comp-cat.ai { background: var(--c-ai); }
.comp-cat.hybrid { background: var(--c-hybrid); }

.comp-pitch {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-soft);
}
.comp-stat {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
  margin-top: auto;
}
.comp-status {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.comp-status[data-s="thriving"] { background: var(--strong-positive); }
.comp-status[data-s="struggling"] { background: var(--strong-moderate); }
.comp-status[data-s="defunct"] { background: var(--c-defunct); }

/* ============================================================
   Pedagogy evidence heatmap
   ============================================================ */
.evidence-heatmap-section { margin: 56px auto; }
.evidence-table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elev);
}
.evidence-row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--rule-soft);
  align-items: stretch;
}
.evidence-row:last-child { border-bottom: 0; }
.evidence-row.header {
  background: var(--bg-soft);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-soft);
  font-weight: 700;
}
.evidence-method {
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.4;
}
.evidence-strength {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  min-width: 180px;
  justify-content: flex-end;
}
.evidence-row.header .evidence-strength { justify-content: flex-end; font-weight: 700; }
.strength-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.strength-strong { background: var(--strong-positive-soft); color: var(--strong-positive); }
.strength-moderate { background: var(--strong-moderate-soft); color: var(--strong-moderate); }
.strength-weak { background: var(--strong-weak-soft); color: var(--strong-weak); }
.strength-emerging { background: var(--strong-moderate-soft); color: var(--strong-moderate); }
.strength-refuted { background: var(--strong-weak-soft); color: var(--strong-weak); }
.strength-contested { background: var(--strong-neutral-soft); color: var(--strong-neutral); }
.evidence-note {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 6px;
  line-height: 1.4;
}

/* ============================================================
   Mermaid diagrams
   ============================================================ */
.mermaid-section { margin: 56px auto; }
.mermaid-container {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px;
  overflow-x: auto;
  text-align: center;
}
.mermaid svg { max-width: 100%; height: auto; }

/* ============================================================
   Fact-check badges
   ============================================================ */
.fact-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 4px;
  vertical-align: super;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: help;
}
.fact-check.confirmed { background: var(--strong-positive-soft); color: var(--strong-positive); }
.fact-check.partial { background: var(--strong-moderate-soft); color: var(--strong-moderate); }
.fact-check.unclear { background: var(--strong-neutral-soft); color: var(--strong-neutral); }
.fact-check.disputed { background: var(--strong-weak-soft); color: var(--strong-weak); }

/* ============================================================
   Sources section (inlined at the bottom)
   ============================================================ */
.sources-section {
  margin: 96px auto 0;
  padding-top: 48px;
  border-top: 2px solid var(--rule);
}
.sources-section h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.source-list { list-style: none; padding: 0; margin: 0; }
.source-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.source-item:target { background: var(--accent-soft); border-radius: 6px; padding-left: 10px; padding-right: 10px; }
.source-n {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  text-align: right;
  padding-top: 1px;
}
.source-body { min-width: 0; }
.source-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.35;
}
.source-title a { color: var(--fg); border: 0; }
.source-title a:hover { color: var(--accent); }
.source-url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  margin-bottom: 6px;
  border: 0;
}
.source-snippet {
  color: var(--fg-soft);
  font-size: 13px;
  line-height: 1.5;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  margin-top: 80px;
  padding: 32px 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 720px) {
  body { font-size: 16px; }
  main { padding: 24px 16px 60px; }
  .topbar-inner { padding: 12px 16px; }
  .hero { margin-bottom: 36px; padding-bottom: 32px; }
  .stat, .tldr, .comp-card { padding: 18px 18px; }
  .pull-quote { margin: 36px auto; padding-left: 22px; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .topbar, .theme-toggle, .progress-bar, .competitor-controls, .footer { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .stat, .tldr, .comp-card, .chart-container { box-shadow: none; }
  .body-content h2 { page-break-after: avoid; }
}
