/* =========================================================
   Monthly Report — Editorial Broadsheet aesthetic
   Layered on top of Terminal Editorial base system.
   Magazine-style typographic hierarchy. Charts as feature.
   ========================================================= */

/* ---- Add Lora (serif body for long-form editorial prose) ---- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --font-editorial: 'Lora', 'Georgia', serif;
  --data-blue: #60A5FA;
  --data-blue-soft: rgba(96, 165, 250, 0.15);
  --data-amber: #FBBF24;
  --data-amber-soft: rgba(251, 191, 36, 0.15);
  --rule-color: #1E293B;
  --rule-color-soft: #0F172A;
  --paper-tint: rgba(248, 250, 252, 0.02);
}

/* =========================================================
   Summary landing — compact executive briefing layout
   Used on monthly.html only (the index of all chapters)
   Departs from editorial style: dense, tabular, mono-heavy
   ========================================================= */
.summary-main { max-width: 1280px; }

/* Slim top header */
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--text-primary);
  margin-bottom: var(--space-3);
}
.summary-header__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  display: block;
  margin-bottom: 2px;
}
.summary-header__title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}
.summary-header__period {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.summary-header__updated {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.summary-lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
  max-width: 80ch;
}
.summary-lead strong {
  color: var(--brand-gold);
  font-weight: 600;
}

/* Win strip — 6 compact tiles */
.win-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule-color);
  border: 1px solid var(--rule-color);
  margin-bottom: var(--space-6);
}
.win-tile {
  background: var(--bg-surface);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.win-tile.is-pos::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--pos);
}
.win-tile__num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pos);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.win-tile__unit {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 2px;
}
.win-tile__label {
  font-size: 12px;
  color: var(--text-primary);
  margin-top: var(--space-2);
  font-weight: 500;
  line-height: 1.3;
}
.win-tile__source {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Section heads */
.summary-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: var(--space-5) 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rule-color);
}
.summary-section-head__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.summary-section-head__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* Comprehensive summary table */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
}
.summary-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--text-primary);
}
.summary-table thead th.is-num { text-align: right; }
.summary-table tbody td {
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--rule-color);
  vertical-align: middle;
}
.summary-table tbody tr:last-child td { border-bottom: none; }
.summary-table tbody tr:hover { background: var(--paper-tint); }
.summary-table tbody tr.is-pos td { position: relative; }
.summary-table tbody tr.is-pos > td:first-child {
  box-shadow: inset 2px 0 0 var(--pos);
}
.summary-table tbody tr.is-flat > td:first-child {
  box-shadow: inset 2px 0 0 var(--text-faint);
}
.summary-table tbody tr.is-neg > td:first-child {
  box-shadow: inset 2px 0 0 var(--neg);
}
.summary-table .metric-name {
  color: var(--text-primary);
  font-weight: 500;
  padding-left: var(--space-3);
}
.summary-table .chapter-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.summary-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.summary-table .num.is-strong { color: var(--text-primary); font-weight: 600; }
.summary-table .num.is-pos { color: var(--pos); font-weight: 500; }
.summary-table .num.is-neg { color: var(--neg); font-weight: 500; }
.summary-table .num.is-flat { color: var(--text-muted); font-weight: 500; }

.state {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
}
.state-pos  { color: var(--pos); background: var(--pos-bg); }
.state-neg  { color: var(--neg); background: var(--neg-bg); }
.state-flat { color: var(--text-muted); background: var(--bg-elevated); }

.summary-table.is-compact thead th { font-size: 9.5px; padding: var(--space-2) var(--space-2) var(--space-2) 0; }
.summary-table.is-compact tbody td { font-size: 12.5px; padding: var(--space-2) var(--space-2) var(--space-2) 0; }
.summary-table.is-compact .metric-name { padding-left: var(--space-2); }

/* Two-column area */
.summary-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin: var(--space-5) 0;
}

/* Deploy list (compact timeline) */
.deploy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
}
.deploy-list__item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule-color);
  font-size: 13px;
  line-height: 1.5;
  align-items: center;
}
.deploy-list__item:last-child { border-bottom: none; }
.deploy-list__date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-gold);
  letter-spacing: 0.04em;
}
.deploy-list__what {
  color: var(--text-secondary);
}
.deploy-list__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pos);
  background: var(--pos-bg);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}

/* Chapter index (compact links) */
.chapter-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--rule-color);
}
.chapter-index__item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-right: 1px solid var(--rule-color);
  border-bottom: 1px solid var(--rule-color);
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: background var(--duration-fast);
}
.chapter-index__item:nth-child(2n) { border-right: none; }
.chapter-index__item:nth-last-child(-n+2) { border-bottom: none; }
.chapter-index__item:hover { background: var(--paper-tint); }
.chapter-index__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-gold);
  letter-spacing: 0.06em;
}
.chapter-index__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.chapter-index__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 2px;
}
.chapter-index__arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-muted);
  transition: transform var(--duration-fast), color var(--duration-fast);
}
.chapter-index__item:hover .chapter-index__arrow { color: var(--brand-gold); transform: translateX(2px); }

/* Footer note */
.summary-footer {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-color);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}
.summary-footer p { margin: 0 0 var(--space-3); max-width: 90ch; }
.summary-footer__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.summary-footer__nav a {
  color: var(--brand-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.summary-footer__nav a:hover { border-bottom-color: var(--brand-gold); }

/* =========================================================
   Info tooltips — small "i" icon next to metric labels
   Hover (or focus) to see a plain-English explanation
   ========================================================= */
.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  cursor: help;
  position: relative;
  margin-left: 5px;
  border: 1px solid var(--border-default);
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
  vertical-align: 1px;
  flex-shrink: 0;
  user-select: none;
}
.info-tip:hover, .info-tip:focus {
  background: var(--brand-gold);
  color: #020617;
  border-color: var(--brand-gold);
  outline: none;
}
.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  background: #020617;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  padding: 9px 12px;
  border-radius: 4px;
  width: 280px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s 0s, visibility 0s 0.15s;
  pointer-events: none;
  z-index: 100;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  font-style: normal;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.info-tip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #020617;
  border-bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s 0s, visibility 0s 0.15s;
  z-index: 101;
  pointer-events: none;
}
.info-tip:hover::after, .info-tip:focus::after,
.info-tip:hover::before, .info-tip:focus::before {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s, visibility 0s;
}
/* Right-edge variant: tooltip aligned to the right of icon (prevents overflow) */
.info-tip.is-right::after {
  left: auto;
  right: 0;
  transform: none;
}
.info-tip.is-right::before {
  left: auto;
  right: 6px;
  transform: none;
}
/* Below variant: tooltip below the icon (for icons at the top of the page) */
.info-tip.is-below::after {
  bottom: auto;
  top: calc(100% + 9px);
}
.info-tip.is-below::before {
  bottom: auto;
  top: calc(100% + 3px);
  border-top: 0;
  border-bottom: 6px solid #020617;
}

/* =========================================================
   Score-row — 3 (or N) big-number readings in a row
   For the Site Health page Site Health Score callout at top
   ========================================================= */
.score-block {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(34, 197, 94, 0.06), transparent 70%),
    linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--rule-color);
  border-top: 2px solid var(--brand-gold);
  padding: var(--space-5) var(--space-6) var(--space-5);
  margin-bottom: var(--space-6);
}
.score-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule-color);
}
.score-block__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  margin: 0;
}
.score-block__subtitle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}
.score-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--space-3);
  align-items: stretch;
}
.score-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-3) var(--space-3);
  background: rgba(248, 250, 252, 0.02);
  border: 1px solid var(--rule-color);
  position: relative;
  gap: 4px;
}
.score-cell--future {
  border-style: dashed;
  background: transparent;
}
.score-cell__date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.score-cell__num {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin: var(--space-1) 0;
}
.score-cell--good .score-cell__num    { color: var(--pos); }
.score-cell--fair .score-cell__num    { color: var(--brand-gold); }
.score-cell--poor .score-cell__num    { color: var(--neg); }
.score-cell--future .score-cell__num  { color: var(--text-muted); font-size: 38px; }
.score-cell--future .score-cell__num::before {
  content: "≈ ";
  font-size: 32px;
  color: var(--text-faint);
}
.score-cell__suffix {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 500;
  margin-top: -8px;
}
.score-cell__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: var(--space-1);
  letter-spacing: -0.005em;
}
.score-cell__context {
  font-family: var(--font-editorial);
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}
.score-block__caption {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule-color);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.score-block__caption strong {
  color: var(--text-primary);
  font-weight: 600;
}
.score-row--four { grid-template-columns: repeat(4, 1fr); }

.score-cell--current {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18), 0 6px 24px -10px rgba(34, 197, 94, 0.35);
}
.score-cell__current-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--pos);
  color: #06121E;
  padding: 2px 6px;
  border-radius: 1px;
}

@media (max-width: 900px) {
  .score-row, .score-row--four { grid-template-columns: 1fr 1fr; }
  .score-cell__num { font-size: 44px; }
}
@media (max-width: 500px) {
  .score-row, .score-row--four { grid-template-columns: 1fr; }
}

/* =========================================================
   Compact chart wrappers — fixed-height containers
   so Chart.js never escapes its bounds
   ========================================================= */
.compact-chart {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--rule-color);
  padding: var(--space-3) var(--space-4) var(--space-3);
  margin-top: var(--space-3);
}
.compact-chart__canvas-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.compact-chart__canvas-wrap.is-h160 { height: 160px; }
.compact-chart__canvas-wrap.is-h180 { height: 180px; }
.compact-chart__canvas-wrap.is-h200 { height: 200px; }
.compact-chart__canvas-wrap.is-h220 { height: 220px; }
.compact-chart__canvas-wrap.is-h260 { height: 260px; }
.compact-chart__canvas-wrap.is-h300 { height: 300px; }
.compact-chart__canvas-wrap canvas {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.compact-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
  gap: var(--space-3);
}
.compact-chart__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  margin: 0;
}
.compact-chart__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================================
   Bar list — compact horizontal bars with label + pct
   Used for SERP mix, intent split, authority dist, TLD, link types
   ========================================================= */
.bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bar-list__item {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule-color);
}
.bar-list__item:last-child { border-bottom: none; }
.bar-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  gap: var(--space-3);
}
.bar-list__label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.bar-list__pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
}
.bar-list__track {
  height: 4px;
  background: var(--border-faint);
  border-radius: 2px;
  overflow: hidden;
}
.bar-list__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 600ms var(--ease-out);
}
.bar-list__item.is-core .bar-list__fill { background: var(--pos); }
.bar-list__item.is-core .bar-list__pct { color: var(--pos); }
.bar-list__item.is-supporting .bar-list__fill { background: var(--data-blue); }
.bar-list__item.is-supporting .bar-list__pct { color: var(--data-blue); }
.bar-list__item.is-miss .bar-list__fill { background: var(--text-faint); }
.bar-list__item.is-miss .bar-list__pct { color: var(--text-muted); }
.bar-list__item.is-miss .bar-list__label { color: var(--text-muted); }

/* =========================================================
   Split bar — two-segment horizontal bar
   Used for brand vs non-brand, follow vs nofollow
   ========================================================= */
.split-bar {
  display: flex;
  height: 56px;
  width: 100%;
  border: 1px solid var(--rule-color);
}
.split-bar__seg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-4);
  position: relative;
  gap: 2px;
}
.split-bar__seg.is-brand {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.06));
  border-right: 1px solid var(--rule-color);
}
.split-bar__seg.is-non-brand { background: var(--paper-tint); }
.split-bar__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.split-bar__value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.split-bar__seg.is-brand .split-bar__value { color: var(--brand-gold); }

/* =========================================================
   Callout card — for cannibalization, position changes empty state
   ========================================================= */
.callout-card {
  background: var(--bg-surface);
  border: 1px solid var(--rule-color);
  border-left: 3px solid var(--brand-gold);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.callout-card__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.callout-card__big {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.callout-card__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.callout-card__stats {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.callout-card__stats strong {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
.callout-card__body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.callout-card__bots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-faint);
}
.callout-card__bot {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border: 1px solid var(--rule-color);
  color: var(--text-secondary);
  background: rgba(248, 250, 252, 0.02);
}
.callout-card__bot.is-pos {
  color: var(--pos);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.05);
}
.callout-card__bot.is-flat {
  color: var(--brand-gold);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.05);
}

/* =========================================================
   Upload widget — discrete floating button + modal
   ========================================================= */
.upload-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 4px 16px -4px rgba(2, 6, 23, 0.5);
}
.upload-fab:hover {
  background: var(--bg-surface);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(2, 6, 23, 0.7);
}
.upload-fab:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}
.upload-fab.has-override {
  color: var(--brand-gold);
}
.upload-fab__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 2px var(--bg-elevated);
}

.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.upload-modal[hidden] { display: none; }
.upload-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 200ms ease;
}
.upload-modal.is-open .upload-modal__backdrop { opacity: 1; }
.upload-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-color);
  border-top: 2px solid var(--brand-gold);
  box-shadow: 0 20px 60px -10px rgba(2, 6, 23, 0.8);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}
.upload-modal.is-open .upload-modal__panel {
  transform: translateY(0);
  opacity: 1;
}
.upload-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--rule-color);
}
.upload-modal__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 4px;
}
.upload-modal__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}
.upload-modal__close {
  background: none;
  border: 1px solid var(--rule-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
  flex-shrink: 0;
}
.upload-modal__close:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.upload-modal__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
body.has-upload-modal-open { overflow: hidden; }

.upload-widget__help {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.upload-widget__help strong {
  color: var(--text-primary);
  font-weight: 600;
}
.upload-widget__drop {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(248, 250, 252, 0.02);
  border: 1px dashed var(--rule-color);
}
.upload-widget__pick {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--brand-gold);
  color: #06121E;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 150ms ease;
}
.upload-widget__pick:hover { background: #ECC85C; }
.upload-widget__filename {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-widget__preview {
  background: rgba(248, 250, 252, 0.02);
  border: 1px solid var(--rule-color);
  padding: var(--space-3) var(--space-4);
}
.upload-widget__preview-head {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-2);
}
.upload-widget__preview-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--space-4);
  row-gap: 4px;
  margin: 0 0 var(--space-3) 0;
  font-size: 12.5px;
}
.upload-widget__preview-list dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.upload-widget__preview-list dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.upload-widget__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--rule-color);
}
.upload-widget__btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--rule-color);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 150ms ease;
}
.upload-widget__btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}
.upload-widget__btn--primary {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #06121E;
}
.upload-widget__btn--primary:hover {
  background: #ECC85C;
  border-color: #ECC85C;
  color: #06121E;
}
.upload-widget__btn--ghost {
  border-color: transparent;
  color: var(--text-muted);
}
.upload-widget__btn--ghost:hover { color: var(--text-primary); }
.upload-widget__current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(34, 197, 94, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 12px;
  color: var(--text-secondary);
}
.upload-widget__status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-height: 14px;
}
.upload-widget__status.is-ok { color: var(--pos); }
.upload-widget__status.is-err { color: var(--neg); }

/* Responsive */
@media (max-width: 1100px) {
  .win-strip { grid-template-columns: repeat(3, 1fr); }
  .win-tile:nth-child(3n) { border-right: none; }
  .summary-twocol { grid-template-columns: 1fr; gap: var(--space-4); }
  .chapter-index { grid-template-columns: 1fr; }
  .chapter-index__item { border-right: none !important; }
  .chapter-index__item:last-child { border-bottom: none; }
}
@media (max-width: 700px) {
  .win-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-header { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .summary-table { font-size: 12px; }
  .summary-table thead th, .summary-table tbody td { padding: var(--space-2) var(--space-2) var(--space-2) 0; }
  .deploy-list__item { grid-template-columns: 50px 1fr; }
  .deploy-list__count { grid-column: 2; justify-self: start; margin-top: 4px; }
}

/* =========================================================
   Sidebar nested links (Monthly Report children)
   ========================================================= */
.nav__sublist {
  display: flex;
  flex-direction: column;
  margin: var(--space-1) 0 var(--space-3) 0;
  padding-left: 28px;
  border-left: 1px solid var(--border-subtle);
  margin-left: 28px;
}
.nav__sub-link {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0 6px var(--space-3);
  letter-spacing: -0.005em;
  position: relative;
  transition: color var(--duration-fast);
  border-left: 2px solid transparent;
  margin-left: -1px;
}
.nav__sub-link:hover { color: var(--text-primary); }
.nav__sub-link.is-active {
  color: var(--brand-gold);
  font-weight: 500;
  border-left-color: var(--brand-gold);
}
.nav__sub-link__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-right: var(--space-2);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav__sub-link.is-active .nav__sub-link__num { color: var(--brand-gold); opacity: 0.7; }

/* =========================================================
   Sub-section tabs (in-page tabs for Monthly Report children)
   Sits below the main header like a newspaper section bar
   ========================================================= */
.report-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--rule-color);
  border-bottom: 1px solid var(--rule-color);
  margin: var(--space-3) 0 var(--space-7);
  padding: 0;
  overflow-x: auto;
}
.report-tabs__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-right: 1px solid var(--rule-color);
  margin-right: var(--space-3);
  flex-shrink: 0;
}
.report-tabs__link {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  letter-spacing: -0.005em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--duration-fast), border-color var(--duration-fast);
  white-space: nowrap;
  position: relative;
}
.report-tabs__link:hover { color: var(--text-primary); }
.report-tabs__link.is-active {
  color: var(--brand-gold);
  border-bottom-color: var(--brand-gold);
  font-weight: 600;
}
.report-tabs__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-right: var(--space-2);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* =========================================================
   Issue masthead (newspaper-style top-of-page identifier)
   ========================================================= */
.issue-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--text-primary);
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 600;
}
.issue-bar__left { display: flex; align-items: baseline; gap: var(--space-4); }
.issue-bar__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-gold);
}
.issue-bar__right { color: var(--text-muted); font-weight: 500; }

/* =========================================================
   Editorial title block — big serif, asymmetric
   ========================================================= */
.editorial-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: end;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--rule-color);
  margin-bottom: var(--space-7);
}
.editorial-head__main { min-width: 0; }
.editorial-head__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.editorial-head__kicker::after {
  content: "";
  display: inline-block;
  height: 1px;
  width: 60px;
  background: var(--brand-gold);
  opacity: 0.4;
}
.editorial-head__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.96;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
}
.editorial-head__title em {
  font-style: italic;
  color: var(--brand-gold);
  font-weight: 400;
}
.editorial-head__standfirst {
  font-family: var(--font-editorial);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 60ch;
  margin: 0;
  font-weight: 400;
}
.editorial-head__byline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: right;
  line-height: 1.8;
}
.editorial-head__byline strong { color: var(--text-secondary); font-weight: 600; }

/* =========================================================
   Section rule with kicker label
   ========================================================= */
.section-rule {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-7) 0 var(--space-5);
}
.section-rule__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold);
  white-space: nowrap;
}
.section-rule__line {
  flex: 1;
  height: 1px;
  background: var(--rule-color);
}
.section-rule__counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* =========================================================
   Compare Hero — Two-month before/after big number callout
   Replaces the feature line chart for 2-point comparisons
   ========================================================= */
.compare-hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(34, 197, 94, 0.06), transparent 70%),
    linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--rule-color);
  border-top: 2px solid var(--brand-gold);
  padding: var(--space-6) var(--space-7);
  margin-bottom: var(--space-7);
  position: relative;
  overflow: hidden;
}
.compare-hero__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--rule-color);
  gap: var(--space-4);
}
.compare-hero__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.compare-hero__subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-1);
  font-weight: 500;
}
.compare-hero__body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-4) 0;
}
.compare-hero__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}
.compare-hero__side--left .compare-hero__value {
  color: var(--text-faint);
}
.compare-hero__side--right .compare-hero__value {
  color: var(--brand-gold);
}
.compare-hero__period {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.compare-hero__value {
  font-family: var(--font-mono);
  font-size: 88px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.compare-hero__sub {
  font-family: var(--font-editorial);
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-1);
}
.compare-hero__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  min-width: 160px;
}
.compare-hero__arrow svg {
  width: 100%;
  height: 24px;
  color: var(--brand-gold);
}
.compare-hero__delta {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.compare-hero__delta.is-pos { color: var(--pos); }
.compare-hero__delta.is-neg { color: var(--neg); }
.compare-hero__delta.is-flat { color: var(--text-muted); }
.compare-hero__delta-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.compare-hero__delta-pct.is-pos { color: var(--pos); background: var(--pos-bg); }
.compare-hero__delta-pct.is-neg { color: var(--neg); background: var(--neg-bg); }
.compare-hero__delta-pct.is-flat { color: var(--text-muted); background: var(--bg-elevated); }
.compare-hero__caption {
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-color);
  margin-top: var(--space-4);
  font-family: var(--font-editorial);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-style: italic;
}

/* =========================================================
   Deliverables grid — what shipped from 0 to N
   ========================================================= */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
.deliverable-card {
  background: var(--bg-surface);
  border: 1px solid var(--rule-color);
  border-left: 3px solid var(--pos);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-left-color var(--duration-fast), transform var(--duration-fast);
}
.deliverable-card:hover { transform: translateY(-1px); }
.deliverable-card.is-held { border-left-color: var(--brand-gold); }
.deliverable-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
}
.deliverable-card__metric {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.deliverable-card__category {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid;
}
.deliverable-card__category.is-Technical    { color: var(--info);       border-color: rgba(56, 189, 248, 0.3);  background: var(--info-bg); }
.deliverable-card__category.is-Content      { color: #A78BFA;           border-color: rgba(167, 139, 250, 0.3); background: rgba(167, 139, 250, 0.08); }
.deliverable-card__category.is-LinkBuilding { color: #F472B6;           border-color: rgba(244, 114, 182, 0.3); background: rgba(244, 114, 182, 0.08); }
.deliverable-card__category.is-Strategy     { color: var(--pos);        border-color: rgba(34, 197, 94, 0.3);   background: var(--pos-bg); }
.deliverable-card__values {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}
.deliverable-card__before {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-faint);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.deliverable-card__arrow {
  color: var(--pos);
  font-family: var(--font-mono);
  font-size: 16px;
}
.deliverable-card.is-held .deliverable-card__arrow { color: var(--brand-gold); }
.deliverable-card__after {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--pos);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.deliverable-card.is-held .deliverable-card__after { color: var(--brand-gold); }
.deliverable-card__unit {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 500;
}
.deliverable-card__why {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.deliverable-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
  font-weight: 600;
  margin-left: var(--space-2);
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(251, 191, 36, 0.12);
}

/* =========================================================
   Comparison table — May vs Jun side-by-side
   ========================================================= */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-bottom: 2px solid var(--text-primary);
  text-align: left;
}
.compare-table thead th.is-num { text-align: right; }
.compare-table tbody td {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-bottom: 1px solid var(--rule-color);
  vertical-align: middle;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .col-metric {
  color: var(--text-primary);
  font-weight: 500;
}
.compare-table .col-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.compare-table .col-may { color: var(--text-faint); }
.compare-table .col-jun { color: var(--text-primary); font-weight: 600; }
.compare-table .col-delta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
}
.compare-table .col-delta.is-pos { color: var(--pos); }
.compare-table .col-delta.is-neg { color: var(--neg); }
.compare-table .col-delta.is-flat { color: var(--text-muted); }
.compare-table .col-note {
  font-family: var(--font-editorial);
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* =========================================================
   Feature chart — large, full-bleed within content
   The hero of the page. NOT a card.
   ========================================================= */
.feature-chart {
  position: relative;
  margin-bottom: var(--space-7);
}
.feature-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule-color);
}
.feature-chart__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}
.feature-chart__subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: var(--space-1);
  font-weight: 500;
}
.feature-chart__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: right;
  color: var(--text-faint);
  line-height: 1.6;
}
.feature-chart__meta strong { color: var(--text-secondary); font-weight: 600; }
.feature-chart__canvas {
  position: relative;
  height: 300px;
  background:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, transparent 100%),
    var(--paper-tint);
  padding: var(--space-4) var(--space-3) var(--space-3);
}
.feature-chart__canvas canvas {
  display: block;
  max-width: 100%;
  max-height: 100% !important;
}
.feature-chart__caption {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-color);
  font-family: var(--font-editorial);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.feature-chart__caption p { margin: 0; }
.feature-chart__caption-aside {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: right;
}
.feature-chart__caption-aside dt {
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-top: var(--space-2);
}
.feature-chart__caption-aside dd {
  color: var(--text-primary);
  margin: 0;
  font-weight: 500;
  font-size: 13px;
}

/* =========================================================
   Marquee numbers — gigantic stat callout
   Used between the lead chart and key-shifts table
   ========================================================= */
.marquee-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: var(--space-6) 0;
  border-top: 1px solid var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
}
.marquee-cell {
  padding: var(--space-5) var(--space-4);
  border-right: 1px solid var(--rule-color);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  position: relative;
}
.marquee-cell:last-child { border-right: none; }
.marquee-cell__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.marquee-cell__value {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.marquee-cell__sub {
  font-family: var(--font-editorial);
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-2);
  font-weight: 400;
}
.marquee-cell__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: var(--space-2);
}
.marquee-cell__delta.is-pos { color: var(--pos); }
.marquee-cell__delta.is-neg { color: var(--neg); }
.marquee-cell__delta.is-flat { color: var(--text-muted); }
.marquee-cell__delta::before {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}
.marquee-cell__delta.is-pos::before { content: "▲"; }
.marquee-cell__delta.is-neg::before { content: "▼"; }
.marquee-cell__delta.is-flat::before { content: "—"; }

/* =========================================================
   Two-column editorial layout (prose + sidekick)
   Like a magazine spread
   ========================================================= */
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-7);
  margin: var(--space-6) 0;
}
.editorial-grid--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}
.editorial-prose {
  font-family: var(--font-editorial);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.editorial-prose h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}
.editorial-prose p { margin: 0 0 var(--space-4); }
.editorial-prose strong {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95em;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.editorial-prose .drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.9;
  float: left;
  padding: 4px 12px 0 0;
  color: var(--brand-gold);
  font-weight: 400;
}

/* =========================================================
   QA status bar — overview page's regression-check live indicator
   ========================================================= */
.qa-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--rule-color);
  background: var(--bg-surface);
  font-size: 12.5px;
  flex-wrap: wrap;
}
.qa-bar--pass { border-left: 2px solid var(--pos); }
.qa-bar--warn { border-left: 2px solid var(--brand-gold); }
.qa-bar--fail { border-left: 2px solid var(--neg); background: rgba(239, 68, 68, 0.06); }
.qa-bar--unknown { border-left: 2px solid var(--text-faint); }

.qa-bar__badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--rule-color);
  white-space: nowrap;
}
.qa-bar--pass .qa-bar__badge { color: var(--pos); border-color: rgba(34, 197, 94, 0.4); }
.qa-bar--warn .qa-bar__badge { color: var(--brand-gold); border-color: rgba(212, 175, 55, 0.4); }
.qa-bar--fail .qa-bar__badge { color: var(--neg); border-color: rgba(239, 68, 68, 0.4); }

.qa-bar__main {
  flex: 1;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
  min-width: 0;
}
.qa-bar__main strong {
  color: var(--text-primary);
  font-weight: 600;
}
.qa-bar__meta {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 8px;
}
.qa-bar__known {
  color: var(--brand-gold);
  font-weight: 500;
}
.qa-bar__failnote {
  color: var(--neg);
  font-weight: 600;
}
.qa-bar__expand {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid var(--rule-color);
  background: transparent;
  transition: all 150ms ease;
  white-space: nowrap;
}
.qa-bar__expand:hover { color: var(--text-primary); border-color: var(--text-muted); }

.qa-bar__details {
  border: 1px solid var(--rule-color);
  border-top: none;
  background: var(--bg-surface);
  padding: var(--space-3) var(--space-4);
  max-height: 360px;
  overflow-y: auto;
}
.qa-bar__details-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.qa-bar__detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qa-bar__detail-item {
  display: grid;
  grid-template-columns: 56px max-content 1fr;
  gap: var(--space-3);
  font-size: 11.5px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-faint);
}
.qa-bar__detail-item.is-fail { color: var(--text-primary); }
.qa-bar__detail-item.is-warn { color: var(--text-primary); }
.qa-bar__detail-item.is-pass { color: var(--text-muted); }
.qa-bar__detail-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.qa-bar__detail-item.is-pass .qa-bar__detail-status { color: var(--pos); }
.qa-bar__detail-item.is-warn .qa-bar__detail-status { color: var(--brand-gold); }
.qa-bar__detail-item.is-fail .qa-bar__detail-status { color: var(--neg); }
.qa-bar__detail-check {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}
.qa-bar__detail-text {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =========================================================
   Targets framing banner — sits above the win-strip on the
   Link Building page to make "these are stretch targets" explicit
   ========================================================= */
.targets-banner {
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04), rgba(212, 175, 55, 0.01));
  border: 1px solid var(--rule-color);
  border-left: 2px solid var(--brand-gold);
  margin-bottom: var(--space-3);
}
.targets-banner__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 6px;
}
.targets-banner__note {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.targets-banner__note strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* =========================================================
   Link-building action bar — "Open live tracker" buttons
   ========================================================= */
.lb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--rule-color);
  border-left: 2px solid var(--brand-gold);
  margin-bottom: var(--space-4);
}
.lb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--rule-color);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 150ms ease;
  white-space: nowrap;
}
.lb-action-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}
.lb-action-btn--primary {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #06121E;
}
.lb-action-btn--primary:hover {
  background: #ECC85C;
  border-color: #ECC85C;
  color: #06121E;
}
.lb-action-note {
  flex: 1 1 100%;
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
  line-height: 1.5;
}
@media (min-width: 800px) {
  .lb-action-note { flex: 1 1 auto; margin-top: 0; }
}

/* =========================================================
   Anti-pattern list (do-not list) — used on the Link-Building page
   ========================================================= */
.anti-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.anti-list__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  align-items: start;
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--rule-color);
}
.anti-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.anti-list__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--neg);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.anti-list__label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.anti-list__reason {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =========================================================
   Prose block — narrative paragraphs (Link-Building, Site Health)
   ========================================================= */
.prose-block {
  margin-top: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--rule-color);
}
.prose-block__title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 var(--space-4) 0;
  max-width: 720px;
}
.prose-block__body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 720px;
}
.prose-block__body p {
  margin: 0 0 var(--space-3) 0;
}
.prose-block__body p:last-child {
  margin-bottom: 0;
}
.prose-block__body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Pull quote */
.pull-quote {
  border-left: 2px solid var(--brand-gold);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  margin: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.pull-quote::before {
  content: "“";
  font-size: 1em;
  color: var(--brand-gold);
  margin-right: 4px;
}
.pull-quote__source {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-3);
  font-weight: 600;
}

/* =========================================================
   Data table — editorial style, no card chrome
   ========================================================= */
.data-rows {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}
.data-rows thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-bottom: 2px solid var(--text-primary);
}
.data-rows thead th.is-num { text-align: right; }
.data-rows tbody td {
  padding: var(--space-4) var(--space-3) var(--space-4) 0;
  border-bottom: 1px solid var(--rule-color);
  color: var(--text-secondary);
  vertical-align: baseline;
}
.data-rows tbody tr:last-child td { border-bottom: none; }
.data-rows tbody tr:hover td { background: var(--paper-tint); }
.data-rows .row-metric {
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: -0.005em;
}
.data-rows .row-sub {
  display: block;
  font-family: var(--font-editorial);
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
}
.data-rows .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  text-align: right;
  color: var(--text-primary);
  font-weight: 500;
}
.data-rows .num.is-before { color: var(--text-faint); font-weight: 400; }
.data-rows .num.is-after { color: var(--text-primary); font-weight: 600; }
.data-rows .delta-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-align: right;
}
.data-rows .delta-num.is-pos { color: var(--pos); }
.data-rows .delta-num.is-neg { color: var(--neg); }
.data-rows .delta-num.is-flat { color: var(--text-muted); }
.data-rows .sparkline-cell {
  width: 110px;
}
.data-rows .sparkline-cell canvas { width: 100%; height: 28px; display: block; }

/* =========================================================
   Small-chart grid (for trend thumbnails)
   ========================================================= */
.trend-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule-color);
  background: var(--paper-tint);
  margin: var(--space-6) 0;
}
.trend-cell {
  padding: var(--space-4);
  border-right: 1px solid var(--rule-color);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.trend-cell:last-child { border-right: none; }
.trend-cell__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.trend-cell__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}
.trend-cell__current {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trend-cell__delta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.trend-cell__delta.is-pos { color: var(--pos); }
.trend-cell__delta.is-neg { color: var(--neg); }
.trend-cell__delta.is-flat { color: var(--text-muted); }
/* Wrapper that constrains Chart.js — it falls back to 150px without a fixed parent */
.trend-cell__spark-wrap {
  position: relative;
  width: 100%;
  height: 36px;
  margin-top: var(--space-1);
  overflow: hidden;
}
.trend-cell__spark-wrap canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* =========================================================
   Geography table (country split)
   ========================================================= */
.geo-rows {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.geo-rows tr {
  border-bottom: 1px solid var(--rule-color);
}
.geo-rows tr:last-child { border-bottom: none; }
.geo-rows td {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  vertical-align: middle;
}
.geo-flag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  width: 32px;
  font-weight: 600;
}
.geo-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.geo-name.is-target { color: var(--brand-gold); }
.geo-target-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--brand-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: var(--space-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.geo-bar { width: 35%; min-width: 80px; }
.geo-bar__track {
  height: 6px;
  background: var(--border-faint);
  border-radius: 3px;
  overflow: hidden;
}
.geo-bar__fill {
  height: 100%;
  background: var(--data-blue);
  border-radius: 3px;
  transition: width 700ms var(--ease-out);
}
.geo-bar__fill.is-target { background: var(--brand-gold); }
.geo-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  text-align: right;
  padding-right: var(--space-3) !important;
}
.geo-num.is-target { color: var(--brand-gold); }
.geo-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}
.geo-rows tr.is-total td { border-bottom: 2px solid var(--text-primary); }
.geo-rows tr.is-total .geo-name { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 600; }
.geo-rows tr.is-total .geo-num { font-size: 16px; color: var(--text-primary); }

/* =========================================================
   Brand split — large numeric callout with bar
   ========================================================= */
.brand-split { padding: 0; }
.brand-split__bar {
  display: flex;
  height: 72px;
  width: 100%;
  border: 1px solid var(--rule-color);
}
.brand-split__seg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-4);
  position: relative;
}
.brand-split__seg.is-brand {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.06));
  border-right: 1px solid var(--rule-color);
}
.brand-split__seg.is-non-brand { background: var(--paper-tint); }
.brand-split__seg-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.brand-split__seg-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.brand-split__seg.is-brand .brand-split__seg-value { color: var(--brand-gold); }
.brand-split__caption {
  font-family: var(--font-editorial);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
  margin: var(--space-3) 0 0;
}

/* =========================================================
   SERP mix — labels + bars
   ========================================================= */
.serp-mix__row {
  display: grid;
  grid-template-columns: 1fr 60px;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.serp-mix__label {
  font-size: 13.5px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.serp-mix__bar {
  height: 5px;
  background: var(--border-faint);
  border-radius: 3px;
  overflow: hidden;
  grid-column: 1 / -1;
  margin-bottom: var(--space-3);
}
.serp-mix__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 700ms var(--ease-out);
}
.serp-mix__row.is-core .serp-mix__bar-fill { background: var(--pos); }
.serp-mix__row.is-supporting .serp-mix__bar-fill { background: var(--data-blue); }
.serp-mix__row.is-miss .serp-mix__bar-fill { background: var(--text-faint); }
.serp-mix__row.is-miss .serp-mix__label { color: var(--text-muted); }
.serp-mix__pct {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.serp-mix__row.is-core .serp-mix__pct { color: var(--pos); }
.serp-mix__row.is-supporting .serp-mix__pct { color: var(--data-blue); }
.serp-mix__row.is-miss .serp-mix__pct { color: var(--text-muted); }

/* Sub-section heading (for the where/how section blocks) */
.sub-section {
  margin: var(--space-5) 0;
}
.sub-section__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* Cannibalization card — Position Tracking */
.cannibal-card {
  background: var(--bg-surface);
  border: 1px solid var(--rule-color);
  border-left: 3px solid var(--brand-gold);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: center;
}
.cannibal-card__score {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: center;
  border-right: 1px solid var(--rule-color);
  padding-right: var(--space-5);
  min-width: 120px;
}
.cannibal-card__value {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cannibal-card__delta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pos);
  font-weight: 600;
}
.cannibal-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: var(--space-1);
}
.cannibal-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.cannibal-card__stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cannibal-card__stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.cannibal-card__stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cannibal-card__note {
  font-family: var(--font-editorial);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
  margin: 0;
  grid-column: 1 / -1;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-faint);
}
@media (max-width: 700px) {
  .cannibal-card {
    grid-template-columns: 1fr;
  }
  .cannibal-card__score {
    border-right: none;
    border-bottom: 1px solid var(--rule-color);
    padding-right: 0;
    padding-bottom: var(--space-4);
  }
}

/* Empty state — used for "Position changes: nothing moved" */
.empty-state {
  padding: var(--space-5);
  background: var(--paper-tint);
  border: 1px dashed var(--rule-color);
  text-align: center;
}
.empty-state__head {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.empty-state__detail {
  font-family: var(--font-editorial);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Rank movers list (Organic Rankings page)
   ========================================================= */
.movers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: var(--space-5) 0;
  border-top: 1px solid var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
}
.movers-col {
  padding: var(--space-5);
  border-right: 1px solid var(--rule-color);
}
.movers-col:last-child { border-right: none; }
.movers-col__head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.movers-col:nth-child(1) .movers-col__head { color: var(--pos); }
.movers-col:nth-child(2) .movers-col__head { color: var(--neg); }
.movers-list { list-style: none; padding: 0; margin: 0; }
.mover-item {
  display: grid;
  grid-template-columns: 1fr 70px 60px;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--rule-color);
  align-items: baseline;
}
.mover-item:last-child { border-bottom: none; }
.mover-item__keyword {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.mover-item__from-to {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mover-item__delta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mover-item__delta.is-pos { color: var(--pos); }
.mover-item__delta.is-neg { color: var(--neg); }

/* =========================================================
   Page footer (sources / methodology note)
   ========================================================= */
.page-footer-note {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-color);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: baseline;
}
.page-footer-note__text {
  font-family: var(--font-editorial);
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.page-footer-note__nav {
  display: flex;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.page-footer-note__nav a {
  color: var(--brand-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.page-footer-note__nav a:hover { border-bottom-color: var(--brand-gold); }

/* =========================================================
   Landing page (monthly.html) — chapter index style
   ========================================================= */
.chapter-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: var(--space-6) 0;
}
.chapter-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--rule-color);
  text-decoration: none;
  color: inherit;
  transition: padding-left var(--duration-base), background var(--duration-base);
  align-items: start;
}
.chapter-item:first-of-type { border-top: 1px solid var(--rule-color); }
.chapter-item:hover {
  padding-left: var(--space-3);
  background: var(--paper-tint);
}
.chapter-item:hover .chapter-item__arrow { color: var(--brand-gold); transform: translateX(4px); }
.chapter-item__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand-gold);
  padding-top: 6px;
}
.chapter-item__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.chapter-item__desc {
  font-family: var(--font-editorial);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}
.chapter-item__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: right;
  line-height: 1.8;
}
.chapter-item__meta strong { display: block; color: var(--text-secondary); font-weight: 600; font-size: 12px; }
.chapter-item__arrow {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--text-muted);
  margin-left: var(--space-3);
  transition: transform var(--duration-fast), color var(--duration-fast);
  display: inline-block;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .editorial-head { grid-template-columns: 1fr; gap: var(--space-4); }
  .editorial-head__byline { text-align: left; }
  .editorial-grid, .editorial-grid--reverse { grid-template-columns: 1fr; gap: var(--space-4); }
  .marquee-row { grid-template-columns: repeat(2, 1fr); }
  .marquee-cell:nth-child(2) { border-right: none; }
  .marquee-cell:nth-child(1), .marquee-cell:nth-child(2) { border-bottom: 1px solid var(--rule-color); }
  .trend-strip { grid-template-columns: repeat(2, 1fr); }
  .trend-cell:nth-child(2) { border-right: none; }
  .trend-cell:nth-child(1), .trend-cell:nth-child(2) { border-bottom: 1px solid var(--rule-color); }
  .movers-grid { grid-template-columns: 1fr; }
  .movers-col { border-right: none; border-bottom: 1px solid var(--rule-color); }
  .movers-col:last-child { border-bottom: none; }
  .feature-chart__caption { grid-template-columns: 1fr; }
  .feature-chart__caption-aside { text-align: left; }
}
@media (max-width: 700px) {
  .feature-chart__canvas { height: 240px; }
  .marquee-row { grid-template-columns: 1fr; }
  .marquee-cell { border-right: none; border-bottom: 1px solid var(--rule-color); }
  .marquee-cell:last-child { border-bottom: none; }
  .marquee-cell__value { font-size: 36px; }
  .trend-strip { grid-template-columns: 1fr; }
  .trend-cell { border-right: none; border-bottom: 1px solid var(--rule-color); }
  .trend-cell:last-child { border-bottom: none; }
  .editorial-head__title { font-size: 42px; }
  .feature-chart__canvas { height: 280px; }
  .page-footer-note { grid-template-columns: 1fr; }
  .chapter-item { grid-template-columns: 50px 1fr; }
  .chapter-item__meta { display: none; }
  .chapter-item__title { font-size: 28px; }
  .chapter-item__arrow { display: none; }
  .issue-bar { font-size: 9.5px; flex-direction: column; align-items: flex-start; gap: 4px; }
}
