/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --bg:        #0a0f1e;
  --surface:   #0f172a;
  --border:    #1e293b;
  --border2:   #334155;
  --muted:     #64748b;
  --dimmed:    #475569;
  --text:      #e2e8f0;
  --text-hi:   #f1f5f9;
  --text-body: #cbd5e1;
  --accent:    #60a5fa;
  --revenue:   #38bdf8;
  --capex:     #34d399;
  --opex:      #fb923c;
  --divs:      #c084fc;
  --debt:      #f87171;
  --gold:      #f59e0b;
  --teal:      #2dd4bf;
  --warn:      #ef4444;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}

/* ── Page layout ─────────────────────────────────────────────────────────── */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 40px 64px;
}

@media (max-width: 768px) {
  .page { padding: 28px 18px 48px; }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
}

h1 {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--text-hi);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 860px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Toggles ─────────────────────────────────────────────────────────────── */
.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: .02em;
  transition: all .2s;
  border: 1.5px solid;
}

.toggle-btn .swatch {
  display: inline-block;
  width: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.toggle-btn.line .swatch   { height: 3px; border-radius: 8px; }
.toggle-btn.bar  .swatch   { height: 11px; }
.toggle-btn.dashed .swatch {
  height: 3px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg, currentColor 0 6px, transparent 6px 10px
  ) !important;
}

.axis-note { font-size: 10px; opacity: .65; }

/* ── Chart container ─────────────────────────────────────────────────────── */
.chart-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px 16px;
}

.axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding: 0 4px;
}

/* ── Stats strip ─────────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 15px;
}

.stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.stat-value { font-size: 21px; font-weight: 700; color: var(--text-hi); letter-spacing: -.02em; margin: 4px 0 2px; }
.stat-note  { font-size: 11px; color: var(--dimmed); }

.footnote {
  font-size: 12px;
  color: var(--border2);
  line-height: 1.75;
  margin-top: 20px;
  max-width: 1000px;
}

.footnote strong { color: var(--dimmed); }

/* ── Analysis section ────────────────────────────────────────────────────── */
.analysis { margin-top: 8px; }

.analysis h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.analysis .verdict {
  display: inline-block;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.35);
  color: var(--debt);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14.5px;
  font-style: italic;
  margin-bottom: 32px;
}

/* Prose wrapper - constrains line length for readability */
.prose {
  max-width: 72ch;
}

.analysis h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-hi);
  margin: 32px 0 10px;
  letter-spacing: -.01em;
}

.analysis h3 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0f1e;
  font-size: 12px;
  font-weight: 700;
  margin-right: 9px;
  flex-shrink: 0;
  vertical-align: middle;
}

.analysis p {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.8;
  max-width: 72ch;
}

.analysis strong { color: var(--text-hi); }

/* Callout / highlight boxes - allow full width */
.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.75;
  max-width: 72ch;
}

.callout strong { color: var(--text-hi); }

.highlight-box {
  background: rgba(248,113,113,.07);
  border: 1px solid rgba(248,113,113,.25);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 22px 0;
  max-width: 72ch;
}

.highlight-box p { max-width: none; margin-bottom: 0; }

/* ── Counterarguments aligned grid ───────────────────────────────────────── */
.counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 20px 0;
  max-width: 860px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .counter-grid {
    grid-template-columns: 1fr;
  }
}

/* Header cells */
.counter-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 18px;
}

.counter-header--pro {
  background: rgba(52, 211, 153, 0.1);
  color: var(--capex);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.counter-header--con {
  background: rgba(248, 113, 113, 0.1);
  color: var(--debt);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  .counter-header--pro  { border-right: none; }
  .counter-header--con  { border-top: 1px solid var(--border); }
}

/* Content cells - each pair shares a row, so they align automatically */
.counter-cell {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.7;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.counter-cell--pro {
  background: rgba(52, 211, 153, 0.04);
  border-right: 1px solid var(--border);
  font-style: italic;
  color: #94a3b8;
}

.counter-cell--con {
  background: rgba(248, 113, 113, 0.04);
}

@media (max-width: 640px) {
  .counter-cell--pro  { border-right: none; }
  .counter-cell--con  { border-top: none; border-top: 1px solid rgba(248,113,113,0.2); }
}

.conclusion {
  background: linear-gradient(135deg, rgba(96,165,250,.08), rgba(192,132,252,.08));
  border: 1px solid rgba(96,165,250,.2);
  border-radius: 10px;
  padding: 24px 28px;
  margin-top: 28px;
  max-width: 860px;
}

.conclusion h3 { margin-top: 0 !important; }

.conclusion p {
  font-size: 15.5px;
  max-width: none;
}

.caveat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 72ch;
}


/* ── Last updated line ───────────────────────────────────────────────────── */
.last-updated {
  font-size: 12px;
  color: var(--dimmed);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.last-updated a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
  transition: border-color 0.15s;
}

.last-updated a:hover {
  border-bottom-color: var(--accent);
}

/* ── Sources & Methodology section ──────────────────────────────────────── */
.sources { margin-top: 8px; }

.sources-heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -.02em;
  margin-bottom: 28px;
}

.sources-h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dimmed);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Primary sources list */
.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
}

.sources-list li {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.sources-list li:first-child {
  border-top: 1px solid var(--border);
}

.sources-list strong {
  color: var(--text-hi);
  display: block;
  margin-bottom: 2px;
}

.sources-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12.5px;
  font-family: 'Courier New', monospace;
  border-bottom: 1px solid rgba(96, 165, 250, 0.25);
  transition: border-color 0.15s;
  display: inline-block;
  margin-top: 4px;
}

.sources-list a:hover {
  border-bottom-color: var(--accent);
}

/* Per-series definition list */
.sources-dl {
  max-width: 860px;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0;
}

@media (max-width: 600px) {
  .sources-dl { grid-template-columns: 1fr; }
}

.sources-dl dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-hi);
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
}

.sources-dl dd {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.7;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.sources-dl dt:first-of-type,
.sources-dl dd:first-of-type {
  border-top: 1px solid var(--border);
}

.sources-dl strong { color: var(--text-hi); }

/* Coverage text */
.sources-p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.8;
  max-width: 72ch;
  margin-bottom: 14px;
}

.sources-p strong { color: var(--text-hi); }