/* Cybercab Tracker — phone-first dark UI; hero loud, disclosures quiet */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --accent: #c9a227;
  --accent-dim: rgba(201, 162, 39, 0.15);
  --banner-bg: #1a1608;
  --banner-border: #c9a227;
  --danger-muted: #8b7355;
  --radius: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100dvh;
  padding: calc(12px + var(--safe-top)) 14px calc(24px + var(--safe-bottom));
  max-width: 480px;
  margin: 0 auto;
}

a { color: var(--accent); text-decoration: none; }
a:active, a:hover { text-decoration: underline; }

/* Header */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.header h1 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
  max-width: 14rem;
}

.as-of {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 4px;
}

.as-of strong { color: var(--accent); font-weight: 600; }

/* ===== HERO (top only: unsupervised Cybercabs) ===== */
.hero {
  margin-bottom: 28px;
}

.hero-header {
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.hero-asof {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-list {
  list-style: none;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.hero-row:first-child {
  border-top: 1px solid var(--border);
}

.hero-city-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-city-asof {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.hero-count {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-count-nd {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  text-align: right;
  max-width: 55%;
  line-height: 1.2;
}

.hero-buyers {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 0.01em;
  max-width: 14rem;
  line-height: 1.25;
}

@media (max-width: 420px) {
  .hero-buyers {
    max-width: 11rem;
    font-size: 0.7rem;
  }
  .hero-count {
    font-size: 2.5rem;
  }
}


.hero-product {
  margin-bottom: 28px;
}

.hero-product .hero-title {
  font-size: 2.5rem;
}

.hero-rule {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-empty,
.hero-empty-row {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 20px 0;
  list-style: none;
}

/* ===== DISCLOSURES (bottom, quieter) ===== */
.disclosures {
  opacity: 0.92;
}

.disclosures .card-quiet {
  background: #121212;
  border-color: #222;
}

.disclosures .card-title {
  color: #b8952a;
  font-size: 0.65rem;
}

.disclosures .metric-value {
  font-size: 0.85rem;
}

.disclosures .note {
  font-size: 0.7rem;
}

.banner {
  background: var(--banner-bg);
  border: 1px solid var(--banner-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #d4c48a;
}

.banner-quiet {
  opacity: 0.95;
  border-color: rgba(201, 162, 39, 0.45);
}

.banner-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.6);
}

.metric-row:last-of-type { border-bottom: none; }

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
}

.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.metric-value.accent { color: var(--accent); }
.metric-value.muted { color: var(--text-muted); font-weight: 500; }

.note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* Confidence badge */
.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

.badge-medium {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(201, 162, 39, 0.4);
}

.badge-low {
  background: rgba(139, 115, 85, 0.2);
  color: var(--danger-muted);
  border: 1px solid rgba(139, 115, 85, 0.4);
}

.badge-high {
  background: rgba(80, 160, 80, 0.2);
  color: #6dcf6d;
  border: 1px solid rgba(80, 160, 80, 0.4);
}

/* Cities / preparing */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  margin: 10px 0 5px;
}

.city-list { list-style: none; }

.city-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
  font-size: 0.8rem;
}

.city-list li:last-child { border-bottom: none; }

.city-name { font-weight: 500; }

.city-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: right;
  max-width: 55%;
}

.city-tag.live { color: var(--accent); }

.prep-list { list-style: none; margin-top: 4px; }

.prep-list li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
  font-size: 0.75rem;
}

.prep-list li:last-child { border-bottom: none; }

.prep-city {
  font-weight: 600;
  color: var(--text);
  display: block;
}

.prep-note {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-top: 2px;
}

/* Count basis */
.basis-list { list-style: none; }

.basis-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.basis-item:last-child { border-bottom: none; }

.basis-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.basis-city { font-weight: 600; font-size: 0.8rem; }
.basis-count { font-weight: 700; color: var(--accent); font-size: 0.85rem; }

/* Conflicts */
.conflict-list { list-style: none; }

.conflict-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.conflict-item:last-child { border-bottom: none; }

.conflict-metric {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.conflict-vals {
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: 2px;
}

/* Citations */
.citations {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}

.citations summary {
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  user-select: none;
  padding: 4px 0;
}

.citations summary::-webkit-details-marker { display: none; }

.citations summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s;
}

.citations[open] summary::before { transform: rotate(90deg); }

.cite-list {
  list-style: none;
  margin-top: 6px;
}

.cite-item {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 5px;
}

.cite-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.cite-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cite-url {
  display: block;
  font-size: 0.65rem;
  margin-top: 3px;
  word-break: break-all;
  color: var(--accent);
}

.cite-finding {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.sources-checked li {
  padding: 4px 0;
  border-bottom: none;
  background: transparent;
}

/* Status / loading / error */
.status-bar {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 24px 12px;
}

.status-bar.error { color: #e07070; }

/* Footer */
.footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.footer .updated { color: var(--text-muted); }
.footer .updated span { color: var(--accent); }

/* Conflict callout */
.conflict {
  margin-top: 8px;
  padding: 7px 9px;
  background: rgba(201, 162, 39, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}



/* ===== PRODUCTS: Optimus & Semi (under Cities, before Stocks) ===== */
.products {
  margin-bottom: 28px;
}

.products-header {
  margin-bottom: 14px;
}

.products-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.1;
}

.products-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.products-asof {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
}

.product-card-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.product-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.product-block {
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(42, 42, 42, 0.55);
}

.product-block:last-of-type {
  border-bottom: none;
}

.product-block-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.nd-big {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  line-height: 1.15;
}

.nd-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
}

.product-status {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
  font-weight: 500;
}

.proj-list {
  list-style: none;
}

.proj-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.45);
}

.proj-item:last-child {
  border-bottom: none;
}

.proj-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.proj-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.proj-cite {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  word-break: break-word;
}

.proj-cite a { color: var(--accent); }

.order-list {
  list-style: none;
}

.order-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.45);
}

.order-row:last-child {
  border-bottom: none;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.order-company {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.order-qty {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
}

@media (min-width: 720px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* ===== STOCKS (below number heroes; quieter) ===== */
.stocks {
  margin-bottom: 28px;
  margin-top: 8px;
  opacity: 0.95;
}

.stocks-quiet .stocks-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.stocks-header {
  margin-bottom: 14px;
}

.stocks-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.1;
}

.stocks-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stocks-asof {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stock-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
}

.stock-card-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.stock-symbol {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stock-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stock-metric {
  padding: 7px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.55);
}

.stock-metric:last-of-type {
  border-bottom: none;
}

.stock-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.stock-subrow {
  margin-top: 6px;
}

.stock-metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex: 1;
}

.stock-metric-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stock-metric-value.accent { color: var(--accent); }
.stock-metric-value.muted { color: var(--text-muted); font-weight: 600; }

.stock-metric-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.stock-metric-highlight {
  margin-top: 6px;
  padding: 10px 10px 8px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 10px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.stock-source {
  margin-top: 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.stock-source a { color: var(--accent); }

@media (min-width: 720px) {
  body {
    max-width: 760px;
  }

  .stocks-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}


.product-card-quiet {
  background: #121212;
  border-color: #222;
  margin-bottom: 10px;
}

.product-card-quiet .product-name {
  font-size: 1rem;
  color: #b8952a;
}

.disclosures .products-grid {
  gap: 10px;
}
/* cache bust 2026-09-23T13:39:40-06:00 */

/* ===== SpaceX chart blocks ===== */
.hero-spacex {
  margin-bottom: 28px;
}

.chart-figure {
  margin: 16px 0 8px;
  width: 100%;
}

.chart-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d0d0d;
}

.chart-caption {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero-spacex .hero-title {
  font-size: 1.85rem;
  line-height: 1.15;
}

@media (max-width: 420px) {
  .hero-spacex .hero-title {
    font-size: 1.55rem;
  }
}

/* ===== Chris feedback v15: yellow section dividers + ALL-CAPS labels ===== */
:root {
  --section-yellow: #f5c518;
}

.section-block {
  margin-bottom: 28px;
  padding-top: 18px;
  border-top: 3px solid var(--section-yellow);
}

/* First tracker section still gets a yellow rule above the label */
#hero.section-block,
.hero.section-block,
.stocks.section-block,
.disclosures.section-block {
  border-top: 3px solid var(--section-yellow);
  padding-top: 18px;
}

.section-label-caps,
.hero-title.section-label-caps,
.stocks-title.section-label-caps,
.disclosures-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--section-yellow);
  margin-bottom: 6px;
  line-height: 1.2;
}

/* Keep tall hero numbers; row titles stay sentence/title case below */
.hero-city-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}

.hero .hero-subtitle,
.hero-product .hero-subtitle,
.hero-spacex .hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Override older oversized section titles so ALL-CAPS labels read as labels */
.hero .hero-title.section-label-caps,
.hero-product .hero-title.section-label-caps,
.hero-spacex .hero-title.section-label-caps {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--section-yellow);
  line-height: 1.25;
  margin-bottom: 6px;
}

.stocks-quiet .stocks-title.section-label-caps,
.stocks-title.section-label-caps {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--section-yellow);
  opacity: 1;
}

.disclosures-section-title {
  margin-bottom: 14px;
}

.metric-subnote {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
  max-width: 14rem;
}

@media (max-width: 420px) {
  .hero .hero-title.section-label-caps,
  .hero-product .hero-title.section-label-caps,
  .hero-spacex .hero-title.section-label-caps,
  .section-label-caps {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }
}
/* cache bust 2026-09-25T14:55:00-06:00 v15 */

/* ===== v19 (Chris): section headings +4 sizes; per-metric comparison strips ===== */
/* Heading: desktop 1.15rem (18.4px) → 1.75rem (28px); phone ≤420px 1.05rem (16.8px) → 1.625rem (26px) */
.section-label-caps,
.hero-title.section-label-caps,
.stocks-title.section-label-caps,
.disclosures-section-title,
.hero .hero-title.section-label-caps,
.hero-product .hero-title.section-label-caps,
.hero-spacex .hero-title.section-label-caps,
.stocks-quiet .stocks-title.section-label-caps {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  margin-bottom: 8px;
}

@media (max-width: 420px) {
  .section-label-caps,
  .hero-title.section-label-caps,
  .stocks-title.section-label-caps,
  .disclosures-section-title,
  .hero .hero-title.section-label-caps,
  .hero-product .hero-title.section-label-caps,
  .hero-spacex .hero-title.section-label-caps,
  .stocks-quiet .stocks-title.section-label-caps {
    font-size: 1.625rem;
    letter-spacing: 0.03em;
  }
}

.hero-row {
  flex-wrap: wrap;
  row-gap: 10px;
}

.hero-row > .hero-city { flex: 1 1 0; min-width: 0; }
.hero-row > .hero-count { flex: 0 1 auto; }

.cmp {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}

.cmp-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.cmp-k {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.cmp-v {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cmp-v.cmp-nd {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
}

.cmp-v.cmp-small { font-size: 0.68rem; }
.cmp-v.cmp-up { color: #6dcf6d; }
.cmp-v.cmp-down { color: #e07070; }

.cmp-d {
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0.8rem;
}

.cmp-flag {
  color: var(--section-yellow);
  margin-right: 2px;
}

.hero-row-sub { padding: 12px 0; }
.hero-row-sub .hero-city-name { font-size: 1.05rem; }
.hero-row-sub .hero-count { font-size: 2rem; }

.cmpd-list { list-style: none; margin-top: 6px; }
.cmpd-item {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 5px;
}
.cmpd-title { font-size: 0.75rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cmpd-line { font-size: 0.66rem; color: var(--text-muted); line-height: 1.4; word-break: break-word; }
.cmpd-line strong { color: var(--text); }
.cmpd-k { color: var(--accent); font-weight: 600; }
.cmpd-meta { color: var(--text-muted); font-weight: 400; }
.cmpd-src a { color: var(--accent); }
/* cache bust 2026-09-28 v19 */

/* ===== v21 (Chris): LAND & BUILDINGS section ===== */
.lb-sub-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--section-yellow);
  margin: 22px 0 8px;
  text-transform: uppercase;
}
.lb-unit {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
  letter-spacing: 0;
}
.lb-total .hero-city-name { color: var(--section-yellow); }
.lb-glance {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}
.lb-g-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--border);
}
.lb-g-row:first-child { border-top: 0; }
.lb-g-row > div { padding: 8px 6px; min-width: 0; text-align: right; }
.lb-g-row > div:first-child { text-align: left; }
.lb-g-head > div {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-top: 6px;
  padding-bottom: 6px;
}
.lb-g-k { font-size: 0.72rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.lb-g-cell { display: flex; flex-direction: column; align-items: flex-end; }
.lb-g-v { font-size: 1.2rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.lb-g-v.lb-g-nd { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.lb-g-u { font-size: 0.58rem; color: var(--text-muted); letter-spacing: 0.04em; }
.lb-site-list { list-style: none; margin: 6px 0 10px; }
.lb-site {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
}
.lb-site-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.lb-site-name { font-size: 0.78rem; font-weight: 700; color: var(--text); }
.lb-site-v { font-size: 0.8rem; font-weight: 800; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-site-meta { font-size: 0.64rem; color: var(--text-muted); margin-top: 2px; }
.lb-site-src { font-size: 0.64rem; margin-top: 3px; word-break: break-word; }
.lb-site-src a { color: var(--accent); }
.lb-nd-list { margin: 6px 0 6px 16px; font-size: 0.7rem; color: var(--text-muted); line-height: 1.45; }
.lb-nd-list li { margin-bottom: 4px; }
@media (max-width: 420px) {
  .lb-g-v { font-size: 1.02rem; }
  .lb-g-row > div { padding: 7px 4px; }
}
#land-buildings .hero-count.hero-count-nd { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 420px) {
  #land-buildings .hero-count.hero-count-nd { font-size: 1.2rem; }
}
/* cache bust 2026-09-28 v21 */

/* ===== v22 (Chris): chronological value row — 3 MO AGO · 1 MO AGO · NOW ===== */
.hero-row > .hv { flex: 0 0 100%; min-width: 0; }
.hv {
  --big: 3.25rem;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, max-content) minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 2px;
  align-items: baseline;
}
.hero-row-sub .hv { --big: 2rem; }
.hv.hv-long { --big: 2.75rem; }
.hv-cell, .hv-now { display: contents; }
.hv-cell:nth-child(1) > * { grid-column: 1; }
.hv-cell:nth-child(2) > * { grid-column: 2; }
.hv-now > * { grid-column: 3; justify-self: end; text-align: right; }
.hv-k {
  grid-row: 1; align-self: end;
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); white-space: nowrap;
}
.hv-v, .hv-now > .hero-count { grid-row: 2; }
.hv-d { grid-row: 3; font-size: 0.6rem; color: var(--text-muted); white-space: nowrap; min-height: 0.8rem; }
.hv-v {
  font-size: calc(var(--big) / 2);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  color: rgba(255, 255, 255, 0.86);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hv-v.hv-nd {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0; line-height: 1.15;
  color: var(--text-muted); white-space: normal; max-width: 4.4rem;
}
.hv .hero-count { font-size: var(--big); max-width: none; white-space: nowrap; }
.hv .hero-count.hero-count-nd { font-size: 1.35rem; white-space: normal; line-height: 1.1; max-width: 9rem; }
#land-buildings .hv .hero-count.hero-count-nd { font-size: 1.2rem; }
.cmp.cmp-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) {
  .hv { --big: 2.5rem; column-gap: 12px; }
  .hero-row-sub .hv { --big: 2rem; }
  .hv.hv-long { --big: 2rem; }
  .hv .hero-count.hero-count-nd { font-size: 1.15rem; max-width: 7.5rem; }
  #land-buildings .hv .hero-count.hero-count-nd { font-size: 1.1rem; }
}
/* FSD & CYBERCAB MILES */
.miles-tag {
  display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px;
  border: 1px solid rgba(245, 197, 24, 0.55); color: var(--section-yellow);
  font-size: 0.55rem; font-weight: 800; letter-spacing: 0.06em; vertical-align: middle; white-space: nowrap;
}
.miles-full { font-variant-numeric: tabular-nums; color: var(--text); opacity: 0.8; }
.miles-row-alt { background: rgba(255, 255, 255, 0.025); }
#fsd-cybercab-miles .hero-rule { margin-top: 8px; line-height: 1.35; }
/* cache bust 2026-09-29 v22 */
/* when NOW is a muted text value (Not disclosed / long text), keep small cells smaller than it */
.hv.hv-cur-nd .hv-v:not(.hv-nd) { font-size: 0.9rem; }

/* ===== v23 (Chris): 3 MO AGO / 1 MO AGO numbers — same yellow as NOW, two type-scale steps larger ===== */
/* was calc(var(--big) / 2) in white; now 0.75 × NOW (= 1.5× old ≈ two ~1.22× steps, e.g. 1rem → 1.5rem) */
.hv { --small: calc(var(--big) * 0.75); }
.hv-v { font-size: var(--small); color: var(--accent); }
/* NOW is a muted text/zero value (hv-cur-nd): cap so NOW stays the largest */
.hv.hv-cur-nd .hv-v:not(.hv-nd) { font-size: 1.2rem; }
@media (max-width: 420px) {
  .hv.hv-cur-nd .hv-v:not(.hv-nd) { font-size: 1.05rem; }
}
/* very narrow phones (<360px, e.g. 320px SE-class): one step instead of two so the 3 columns never collide */
@media (max-width: 359px) {
  .hv { --small: calc(var(--big) * 0.6); }
}
/* cache bust 2026-09-29 v23 */

/* ===== v24 (Chris): TODAY AT A GLANCE — quick-reference grid at top ===== */
.gl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.gl-box {
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  min-width: 0; min-height: 68px;
  padding: 9px 10px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.gl-box:hover, .gl-box:active, .gl-box:focus-visible { text-decoration: none; border-color: rgba(201, 162, 39, 0.6); }
.gl-k {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1.2;
  color: var(--text-muted); overflow-wrap: anywhere;
}
.gl-val { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; min-width: 0; }
.gl-v {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.gl-u { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.gl-nd {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 4px;
  padding: 9px 10px 10px;
  background: var(--bg-card); border: 1px dashed var(--border); border-radius: 10px;
}
.gl-nd-list { font-size: 0.72rem; line-height: 1.5; color: var(--text-muted); }
.gl-nd-list a { color: var(--text-muted); text-decoration: underline; text-decoration-color: rgba(160, 160, 160, 0.35); text-underline-offset: 2px; }
.gl-sep { color: #555; }
.section-block { scroll-margin-top: 8px; }
/* phone: an odd last box spans the full row instead of leaving a hole */
@media (max-width: 479px) {
  .gl-grid > a.gl-box:nth-of-type(odd):last-of-type { grid-column: 1 / -1; }
}
@media (min-width: 480px) {
  .gl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .gl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .gl-v { font-size: 1.4rem; }
}
@media (max-width: 359px) {
  .gl-v { font-size: 1.3rem; }
}
/* cache bust 2026-09-29 v24 */

/* ===== v26 (Chris): original decorative line art behind TESLA CYBERCABS + SPACEX SATELLITES =====
   Hand-authored SVGs (assets/art-*.svg). Painted on a ::before layer behind the content: no layout impact, clipped to the
   section box (no sideways scroll), pointer-events: none, low opacity so numbers keep full contrast. */
#hero, #spacex-satellites { position: relative; isolation: isolate; --art-op: 0.3; }  /* Chris approved the bolder variant (was 0.14 in mockup) */
#hero::before, #spacex-satellites::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  opacity: var(--art-op);
}
#hero::before {
  background-image: url('./assets/art-cybercab.svg');
  background-size: 100% auto;
  background-position: 50% 100%;
}
#spacex-satellites::before {
  background-image: url('./assets/art-satellite.svg');
  background-size: 100% auto;
  background-position: 50% 0;
}
@media (min-width: 720px) {
  #hero::before { background-size: min(72%, 540px) auto; background-position: 50% 100%; }
  #spacex-satellites::before { background-size: min(80%, 580px) auto; background-position: 100% 0; }
}
/* v26: value rows no longer show dates; only a ⚑ (when flagged) sits under a past value */
.hv-d { min-height: 0; }
/* cache bust 2026-09-29 v26 */

/* ===== v27 (Chris): v26 line-art treatment extended to every section =====
   Same layering as v26: ::before behind content, pointer-events none, clipped to the section, --art-op 0.3.
   Placement varies: corner marks (glance, Starlink, land & buildings, stocks, disclosures), road beside the first FSD row,
   band behind the first USD/kg rows, bottom-anchored (semi, data center, Optimus), tall right-edge rocket (Starship). */
#glance, #fsd-cybercab-miles, #hero-semi, #spacex-usdkg, #spacex-datacenter-gw, #spacex-starlink-revenue,
#spacex-starship, #land-buildings, #hero-optimus, #stocks, #disclosures { position: relative; isolation: isolate; --art-op: 0.3; }
#glance::before, #fsd-cybercab-miles::before, #hero-semi::before, #spacex-usdkg::before, #spacex-datacenter-gw::before,
#spacex-starlink-revenue::before, #spacex-starship::before, #land-buildings::before, #hero-optimus::before, #stocks::before,
#disclosures::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  opacity: var(--art-op);
}
#glance::before                  { background-image: url('./assets/art-glance.svg');      background-size: 96px auto;  background-position: right 0 top 4px; }
#fsd-cybercab-miles::before      { background-image: url('./assets/art-fsd.svg');         background-size: 66% auto;   background-position: right 0 top 44px; }
#hero-semi::before               { background-image: url('./assets/art-semi.svg');        background-size: 80% auto;   background-position: left -8px bottom 50px; }
#spacex-usdkg::before            { background-image: url('./assets/art-usdkg.svg');       background-size: 100% auto;  background-position: 50% 96px; }
#spacex-datacenter-gw::before    { background-image: url('./assets/art-datacenter.svg');  background-size: 74% auto;   background-position: right 0 bottom 0; }
#spacex-starlink-revenue::before { background-image: url('./assets/art-starlink.svg');    background-size: 56% auto;   background-position: right 0 top 0; }
#spacex-starship::before         { background-image: url('./assets/art-starship.svg');    background-size: auto 330px; background-position: right -24px top 6px; }
#land-buildings::before          { background-image: url('./assets/art-land.svg');        background-size: 64% auto;   background-position: right 0 top 0; }
#hero-optimus::before            { background-image: url('./assets/art-optimus.svg');     background-size: auto 300px; background-position: 54% 100%; }
#stocks::before                  { background-image: url('./assets/art-stocks.svg');      background-size: 44% auto;   background-position: right 0 top 0; }
#disclosures::before             { background-image: url('./assets/art-disclosures.svg'); background-size: 80px auto;  background-position: right 0 top 2px; }
@media (min-width: 720px) {
  #glance::before                  { background-size: 170px auto;         background-position: right 0 top 2px; }
  #fsd-cybercab-miles::before      { background-size: min(62%, 460px) auto; background-position: right 0 top 0; }
  #hero-semi::before               { background-size: 440px auto;        background-position: 64% 100%; }
  #spacex-usdkg::before            { background-size: 380px auto;        background-position: left 26% top 90px; }
  #spacex-datacenter-gw::before    { background-size: min(62%, 460px) auto; background-position: 50% 55%; }
  #spacex-starlink-revenue::before { background-size: 290px auto;        background-position: right 0 top 0; }
  #spacex-starship::before         { background-size: auto 440px;        background-position: 58% 0; }
  #land-buildings::before          { background-size: 420px auto;        background-position: 50% 290px; }
  #hero-optimus::before            { background-size: auto 440px;        background-position: 74% 100%; }
  #stocks::before                  { background-size: 380px auto;        background-position: right 0 top 0; }
  #disclosures::before             { background-size: 120px auto;        background-position: right 0 top 0; }
}
/* cache bust 2026-09-29 v27 */

/* ===== v28 (Chris): sources/notes/as-of dates move to DISCLOSURES (grouped by section); Starlink QoQ row ===== */
/* Starlink: QoQ sits where 3 MO AGO was — same size + yellow as the old past values (.hv-v rules above) */
.hv.hv-qoq .hv-v:not(.hv-nd) { color: var(--accent); }
/* "Sources ↓" jump under each section */
.src-jump-wrap { display: flex; justify-content: flex-end; margin-top: 10px; }
.src-jump {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted);
  text-decoration: none; padding: 4px 0 4px 12px;
}
.src-jump:hover, .src-jump:focus-visible { color: var(--accent); text-decoration: underline; }
/* DISCLOSURES groups */
.disc-intro { font-size: 0.78rem; line-height: 1.45; color: var(--text-muted); margin: 0 0 12px; }
.disc-group { scroll-margin-top: 8px; margin: 18px 0 8px; }
.disc-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}
.disc-group-title {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); line-height: 1.3; min-width: 0; overflow-wrap: anywhere;
}
.disc-back { flex: none; font-size: 0.66rem; font-weight: 700; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.disc-back:hover, .disc-back:focus-visible { color: var(--accent); text-decoration: underline; }
.dg-asof { font-size: 0.68rem; color: var(--text-muted); margin: 0 0 6px; }
.dg-figs { list-style: none; margin: 0; padding: 0; }
.dg-fig { padding: 6px 0; border-top: 1px solid #1d1d1d; font-size: 0.74rem; line-height: 1.4; overflow-wrap: anywhere; }
.dg-fig:first-child { border-top: 0; padding-top: 0; }
.dg-k { color: var(--text); font-weight: 600; }
.dg-v { color: var(--accent); font-weight: 800; }
.dg-meta, .dg-src { color: var(--text-muted); }
.dg-src a { color: var(--accent); }
.dg-note { margin-top: 2px; font-size: 0.68rem; color: var(--text-muted); line-height: 1.35; }
.dg-card .note { margin-top: 8px; }
.disc-group > .card > .product-card { border: 0; padding: 0; margin: 0; background: transparent; }
/* cache bust 2026-09-30 v28 */

/* ===== v29 (Chris): ELON MUSK NET WORTH · TESLA VEHICLE SALES · TESLA SALES BY CONTINENT ===== */
/* Net worth: label left, Bloomberg | Forbes pair right (both gold); "Now" row larger, pair on its own line */
.nw-row .hero-city-name { font-size: 1.15rem; }
.hero-row > .nw-pair { flex: 0 1 auto; min-width: 0; }
.nw-pair { display: grid; grid-template-columns: repeat(2, minmax(5.6rem, max-content)); column-gap: 16px; justify-content: end; }
.nw-cell { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.nw-k { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); white-space: nowrap; }
.nw-v { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw-v.nw-nd { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); white-space: normal; }
.nw-flag { font-size: 0.7rem; margin-left: 3px; vertical-align: super; }
.nw-row-now .hero-city-name { font-size: 1.5rem; }
.nw-row-now > .nw-pair { flex: 0 0 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nw-row-now .nw-cell { align-items: flex-start; }
.nw-row-now .nw-cell + .nw-cell { align-items: flex-end; }
.nw-row-now .nw-v { font-size: 2.6rem; }
@media (max-width: 420px) {
  .nw-row .hero-city-name { font-size: 1.05rem; }
  .nw-v { font-size: 1.3rem; }
  .nw-pair { column-gap: 12px; grid-template-columns: repeat(2, minmax(4.9rem, max-content)); }
  .nw-row-now .nw-v { font-size: 2.2rem; }
}
@media (max-width: 359px) {
  .nw-v { font-size: 1.12rem; }
  .nw-row-now .nw-v { font-size: 1.8rem; }
}
/* Sales tables: label + sublabel left, current-period value right (gold), year strip underneath (4 small gold values) */
.sl-row .hero-city-name { font-size: 1.15rem; }
.hero-row > .sl-now { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-end; min-width: 0; gap: 2px; }
.sl-now .hero-count { font-size: 2rem; white-space: nowrap; }
.sl-now .hero-count.hero-count-nd { font-size: 1.1rem; max-width: none; white-space: nowrap; }
.sl-cum .hero-city-name { font-size: 1.5rem; }
.sl-cum .sl-now .hero-count { font-size: 2.75rem; }
.hero-row > .yr-strip { flex: 0 0 100%; min-width: 0; }
.yr-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 7px; border-top: 1px dashed rgba(255, 255, 255, 0.09); }
.yr-cell { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.yr-k { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); white-space: nowrap; }
.yr-v { font-size: 0.9rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.yr-v.yr-nd { font-size: 0.66rem; font-weight: 600; color: var(--text-muted); white-space: normal; }
@media (max-width: 420px) {
  .sl-row .hero-city-name { font-size: 1.05rem; }
  .sl-now .hero-count { font-size: 1.6rem; }
  .sl-cum .sl-now .hero-count { font-size: 2.3rem; }
  .yr-v { font-size: 0.8rem; }
}
@media (max-width: 359px) {
  .sl-now .hero-count { font-size: 1.35rem; }
  .yr-v { font-size: 0.7rem; letter-spacing: -0.02em; }
}
/* v29 decorative line art (same layering as v26/v27: ::before behind content, pointer-events none, --art-op 0.3) */
#musk-net-worth, #tesla-sales-model, #tesla-sales-continent { position: relative; isolation: isolate; --art-op: 0.3; }
#musk-net-worth::before, #tesla-sales-model::before, #tesla-sales-continent::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-repeat: no-repeat; opacity: var(--art-op);
}
#musk-net-worth::before        { background-image: url('./assets/art-networth.svg');   background-size: 46% auto; background-position: right 0 top 0; }
#tesla-sales-model::before     { background-image: url('./assets/art-sales.svg');      background-size: 52% auto; background-position: right 0 top 2px; }
#tesla-sales-continent::before { background-image: url('./assets/art-continents.svg'); background-size: 36% auto; background-position: right 0 top 0; }
@media (min-width: 720px) {
  #musk-net-worth::before        { background-size: 210px auto; background-position: right 150px top 0; }
  #tesla-sales-model::before     { background-size: 250px auto; background-position: right 150px top 2px; }
  #tesla-sales-continent::before { background-size: 160px auto; background-position: right 170px top 0; }
}
/* cache bust 2026-10-02 v29 */

/* ===== v30 (Chris): TODAY AT A GLANCE trimmed to fewer boxes — keep the last row full at every column count ===== */
/* phone (2 cols): existing v24 rule (odd last box spans the row). 3 / 5 cols: the last box stretches over the empty cells. */
@media (min-width: 480px) and (max-width: 719px) {
  .gl-grid > a.gl-box:nth-of-type(3n+1):last-of-type { grid-column: 1 / -1; }
  .gl-grid > a.gl-box:nth-of-type(3n+2):last-of-type { grid-column: span 2; }
}
@media (min-width: 720px) {
  .gl-grid > a.gl-box:nth-of-type(5n+1):last-of-type { grid-column: 1 / -1; }
  .gl-grid > a.gl-box:nth-of-type(5n+2):last-of-type { grid-column: span 4; }
  .gl-grid > a.gl-box:nth-of-type(5n+3):last-of-type { grid-column: span 3; }
  .gl-grid > a.gl-box:nth-of-type(5n+4):last-of-type { grid-column: span 2; }
}
/* cache bust 2026-10-03 v30 */

/* ===== v31 (Chris): ELON MUSK NET WORTH — Forbes only: one large gold value per row (site .hero-count style) ===== */
.nw-row-one .hero-city-name { font-size: 1.15rem; }
.hero-row > .hero-count.nw-one { flex: 0 1 auto; min-width: 0; font-size: 2.1rem; white-space: nowrap; text-align: right; }
.nw-row-now.nw-row-one .hero-city-name { font-size: 1.5rem; }
.nw-row-now > .hero-count.nw-one { font-size: 3rem; }
.hero-row > .hero-count.nw-one.hero-count-nd { font-size: 1.1rem; }
@media (max-width: 420px) {
  .nw-row-one .hero-city-name { font-size: 1.05rem; }
  .hero-row > .hero-count.nw-one { font-size: 1.85rem; }
  .nw-row-now > .hero-count.nw-one { font-size: 2.5rem; }
}
@media (max-width: 359px) {
  .hero-row > .hero-count.nw-one { font-size: 1.5rem; }
  .nw-row-now > .hero-count.nw-one { font-size: 2rem; }
}
/* cache bust 2026-10-07 v31 */

/* ===== v31 (Chris): QoQ on the main value line; H-BASELINE date-gated onto the same line from 2027 =====
   Flex-wrap line: [H-BASELINE] · 3 MO AGO · 1 MO AGO · QoQ (yellow, same size as 3/1 MO) · NOW (largest, right).
   If the line is too wide (narrow phones / 2027 with 5 cells), NOW wraps to its own line, right-aligned — never overflows. */
.hv.hv-line { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 16px; row-gap: 6px; }
.hv.hv-line .hv-cell, .hv.hv-line .hv-now { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.hv.hv-line .hv-cell { align-items: flex-start; text-align: left; }
.hv.hv-line .hv-cell > *, .hv.hv-line .hv-now > * { grid-column: auto; grid-row: auto; align-self: auto; justify-self: auto; }
.hv.hv-line .hv-now { margin-left: auto; align-items: flex-end; text-align: right; }
.hv.hv-line .hv-v:not(.hv-nd) { color: var(--accent); }
.hv.hv-line .hv-flag { font-size: 0.5em; vertical-align: super; margin: 0 0 0 1px; }
@media (max-width: 420px) {
  .hv.hv-line { column-gap: 9px; --small: calc(var(--big) * 0.6); }
}
@media (max-width: 359px) {
  .hv.hv-line { column-gap: 7px; --small: calc(var(--big) * 0.5); }
}
/* v31: LAND & BUILDINGS is now just the summary table — move the desktop line art up into the header (was 50% 290px, now clipped) */
@media (min-width: 720px) {
  #land-buildings::before { background-size: 300px auto; background-position: right 0 top 0; }
}
/* cache bust 2026-10-07 v31b */

/* ===== v32: first-time-viewer polish — type scale, contrast, rhythm, header + intro, sticky jump nav, section one-liners,
   tap targets, loading/error states, NOW-fit, new 'Musk world' sections. Colour roles:
   gold  #c9a227 (--now)  = current values (NOW, glance boxes)
   yellow #f5c518 (--past) = earlier values, year strips and QoQ; also section titles/rules (site identity)
   greys: --text-soft #cfcfcf (intros), --text-muted #a6a6a6 (labels) — both ≥ 7:1 on the card and page backgrounds ===== */
:root {
  --text-muted: #a6a6a6;
  --text-soft: #cfcfcf;
  --now: #c9a227;
  --past: #f5c518;
  --radius: 12px;
  --nav-h: 48px;
  --stick: calc(var(--nav-h) + var(--safe-top) + 10px);
}
body { line-height: 1.5; padding-top: calc(10px + var(--safe-top)); }
::selection { background: rgba(201, 162, 39, 0.35); }
:focus-visible { outline: 2px solid var(--past); outline-offset: 2px; border-radius: 4px; }

/* Header: brand + tagline; updated time + one-paragraph intro */
.site-header { align-items: center; margin-bottom: 10px; padding-bottom: 10px; }
.brand-text { min-width: 0; }
.site-header h1 { font-size: 1.05rem; line-height: 1.2; max-width: none; letter-spacing: -0.015em; }
.tagline { margin-top: 2px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.3; }
.site-meta { margin: 0 0 6px; }
.site-meta .as-of { white-space: normal; padding: 0; font-size: 0.8rem; color: var(--text-muted); }
.as-of-k { font-weight: 600; }
.site-meta .as-of strong { color: var(--now); font-weight: 700; font-variant-numeric: tabular-nums; }
.site-meta .as-of strong.as-of-na { color: var(--text-muted); font-weight: 600; }
.jump-nav[hidden], .grp-kicker[hidden] { display: none; }
.site-intro { margin-top: 6px; font-size: 0.84rem; line-height: 1.5; color: var(--text-soft); max-width: 40rem; }
.key-now { color: var(--now); font-weight: 800; }
.key-past { color: var(--past); font-weight: 700; }

/* Sticky jump nav — chips scroll sideways inside the nav only (never the page) */
.jump-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 4px; align-items: center;
  height: calc(var(--nav-h) + var(--safe-top)); padding: var(--safe-top) 14px 0;
  margin: 0 -14px 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  background: rgba(10, 10, 10, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.jump-nav::-webkit-scrollbar { display: none; }
.jump-nav a {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 11px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
  color: var(--text-soft); text-decoration: none; border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}
.jump-nav a:hover { color: var(--text); text-decoration: none; background: #1a1a1a; }
.jump-nav a.is-active { color: #0a0a0a; background: var(--now); }
/* 44px effective tap height: chips are 36px tall inside a 48px bar, the bar itself is the hit row */
@media (max-width: 420px) { .jump-nav { gap: 1px; padding-left: 10px; padding-right: 10px; } .jump-nav a { padding: 0 7px; font-size: 0.76rem; } }
@media (max-width: 359px) { .jump-nav a { padding: 0 6px; font-size: 0.72rem; } }
/* narrower than the chip row: soft fade on the right edge hints that the nav scrolls sideways */
@media (max-width: 389px) { .jump-nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); } }

/* Anchor landing below the sticky nav (glance taps, nav chips, Sources ↓ / ↑ Back) */
.section-block, .disc-group, .grp-kicker { scroll-margin-top: var(--stick); }

/* Group kickers (TESLA · SPACEX & XAI · MUSK WORLD · STOCKS & WEALTH) */
.grp-kicker { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; margin: 40px 0 12px; }
.grp-kicker-t { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.grp-kicker-s { font-size: 0.74rem; color: var(--text-muted); }
.grp-kicker + .section-block { margin-top: 0; }

/* Section rhythm + headings */
.section-block { margin-bottom: 40px; padding-top: 18px; }
.hero, .hero-product { margin-bottom: 40px; }
.hero-header, .stocks-header { margin-bottom: 14px; }
.hero .hero-subtitle, .hero-product .hero-subtitle, .hero-spacex .hero-subtitle, .stocks-subtitle {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; color: var(--text-muted); line-height: 1.4;
}
.sec-intro { margin-top: 6px; font-size: 0.9rem; line-height: 1.5; color: var(--text-soft); max-width: 38rem; }
@media (max-width: 420px) { .sec-intro { font-size: 0.86rem; } }
.hero-row { padding: 16px 0; }
.hero-city-name { line-height: 1.25; }
.hero-city-asof, .hero-buyers { color: var(--text-muted); font-size: 0.76rem; line-height: 1.35; }

/* Colour roles: NOW gold; earlier values + QoQ yellow */
.hero-count { color: var(--now); }
.hero-count.hero-count-nd { color: var(--text-muted); }
.hv-v, .hv.hv-line .hv-v:not(.hv-nd), .hv.hv-qoq .hv-v:not(.hv-nd) { color: var(--past); }
.yr-v { color: var(--past); }
.gl-v, .nw-v, .lb-g-v { color: var(--now); }

/* Minimum label size ≈ 10.5px (was 9px) */
.hv-k, .yr-k, .nw-k { font-size: 0.66rem; letter-spacing: 0.05em; }
.gl-k { font-size: 0.66rem; letter-spacing: 0.05em; line-height: 1.25; }
.miles-tag { font-size: 0.62rem; }
.lb-g-u { font-size: 0.64rem; }
.hv-v.hv-nd, .yr-v.yr-nd { font-size: 0.74rem; }
.hero-rule, .note, .dg-note { color: var(--text-muted); }

/* Consistent cards (glance boxes, cards, stock cards, Not-disclosed box) */
.card, .gl-box, .gl-nd, .stock-card { border-radius: var(--radius); border-color: var(--border); }
.gl-grid { gap: 10px; }
.gl-box { min-height: 74px; padding: 10px 12px 12px; transition: border-color 0.15s ease; }
.gl-box:active { transform: translateY(1px); }
.gl-nd { padding: 10px 12px 12px; }
.gl-nd-list { font-size: 0.8rem; line-height: 1.5; }
.gl-nd-list a { display: inline-block; padding: 6px 0; }   /* taller tap rows */

/* Tap targets: Sources ↓, ↑ Back, citation toggles */
.src-jump-wrap { margin-top: 6px; }
.src-jump, .disc-back {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px 0 16px;
  font-size: 0.78rem; font-weight: 700; color: var(--text-soft);
}
.disc-back { min-height: 40px; }
.disc-group-head { align-items: center; }
.disc-intro { font-size: 0.86rem; color: var(--text-soft); }
.dg-fig { font-size: 0.8rem; }
.dg-asof, .dg-note { font-size: 0.74rem; }
.disclosures { opacity: 1; }
.disclosures .note { font-size: 0.76rem; }

/* Sales-style rows (sales, continent, v32 blocks): QoQ chip under NOW, year strip */
.sl-qoq { font-size: 0.82rem; font-weight: 800; color: var(--past); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sl-qoq-k { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text-muted); margin-right: 2px; }
.yr-strip { gap: 8px; padding-top: 8px; }
.yr-v { font-size: 0.92rem; }
@media (max-width: 420px) { .yr-v { font-size: 0.84rem; } }
@media (max-width: 359px) { .yr-v { font-size: 0.74rem; } }

/* NOW-fit pass (app.js fitLines): a wrapped line that fits after scaling down gets hv-fit; one that never fits keeps the wrap */
.hv.hv-line.hv-wrapped .hv-now { flex-basis: 100%; }
/* very narrow phones: an all-'Not disclosed' line fits on one row when NOW's 'Not disclosed' breaks over two short lines */
@media (max-width: 359px) { .hv.hv-line .hero-count.hero-count-nd { font-size: 1rem; max-width: 4.8rem; line-height: 1.1; } }

/* Loading skeletons (replaced by app.js render; no stale numbers before data arrives) */
.skel { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 6px; }
.sk { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #151515 0%, #232323 40%, #151515 80%); background-size: 300% 100%; animation: v32sk 1.4s ease-in-out infinite; }
.sk-t { width: 46%; height: 18px; }
.sk-s { width: 72%; }
.sk-row { height: 44px; border-radius: 10px; }
.sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.sk-box { height: 74px; border-radius: var(--radius); }
@media (min-width: 720px) { .sk-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@keyframes v32sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } html { scroll-behavior: auto; } }
.status-bar { font-size: 0.86rem; color: var(--text-soft); }
/* Error state */
.load-error { margin: 8px 0 28px; padding: 16px; border-color: rgba(224, 112, 112, 0.5); }
.load-error-title { font-size: 1rem; font-weight: 800; color: var(--text); }
.load-error-msg { margin-top: 4px; font-size: 0.84rem; color: var(--text-soft); overflow-wrap: anywhere; }
.btn-retry {
  margin-top: 12px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 0.9rem; font-weight: 800; color: #0a0a0a; background: var(--now);
}
/* Empty section (data block missing): hidden by app.js; belt and braces */
.section-block.is-empty { display: none; }

/* Footer */
.footer { margin-top: 28px; font-size: 0.74rem; line-height: 1.5; }
.footer-note { margin-top: 6px; color: var(--text-muted); }

/* Desktop (≥720px): slightly larger reading sizes */
@media (min-width: 720px) {
  .site-header h1 { font-size: 1.2rem; }
  .site-intro { font-size: 0.9rem; }
  .jump-nav { justify-content: flex-start; }
  .jump-nav a { font-size: 0.82rem; padding: 0 14px; }
}

/* v32 line art for the new sections (same layering as v26/v27/v29: ::before behind content, pointer-events none, --art-op 0.3) */
#fsd-subscriptions, #tesla-energy, #x-grok-users, #starlink-subscribers, #neuralink, #vegas-loop { position: relative; isolation: isolate; --art-op: 0.3; }
#fsd-subscriptions::before, #tesla-energy::before, #x-grok-users::before, #starlink-subscribers::before, #neuralink::before, #vegas-loop::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-repeat: no-repeat; opacity: var(--art-op);
}
#fsd-subscriptions::before    { background-image: url('./assets/art-fsdsubs.svg');       background-size: 48% auto; background-position: right 0 top 0; }
#tesla-energy::before         { background-image: url('./assets/art-energy.svg');        background-size: 52% auto; background-position: right 0 top 0; }
#x-grok-users::before         { background-image: url('./assets/art-xgrok.svg');         background-size: 46% auto; background-position: right 0 top 0; }
#starlink-subscribers::before { background-image: url('./assets/art-starlink-subs.svg'); background-size: 50% auto; background-position: right 0 top 0; }
#neuralink::before            { background-image: url('./assets/art-neuralink.svg');     background-size: 46% auto; background-position: right 0 top 0; }
#vegas-loop::before           { background-image: url('./assets/art-loop.svg');          background-size: 44% auto; background-position: right 0 top 0; }
@media (min-width: 720px) {
  #fsd-subscriptions::before    { background-size: 220px auto; background-position: right 0 top 0; }
  #tesla-energy::before         { background-size: 250px auto; background-position: right 0 top 0; }
  #x-grok-users::before         { background-size: 220px auto; background-position: right 0 top 0; }
  #starlink-subscribers::before { background-size: 240px auto; background-position: right 0 top 0; }
  #neuralink::before            { background-size: 220px auto; background-position: right 0 top 0; }
  #vegas-loop::before           { background-size: 210px auto; background-position: right 0 top 0; }
}
/* cache bust 2026-10-08 v32 */

/* ===== v33 (Chris): section headlines MUCH larger, fit-to-width edge to edge (app.js fitHeadings sets font-size + line spans) =====
   Same identity: yellow, bold, all caps, yellow divider above. One line where it stays big; long titles break into 2 balanced lines. */
#app .section-label-caps.fit-head {
  display: block; width: 100%;
  letter-spacing: 0.02em; line-height: 0.95; font-weight: 800;
  margin: 2px 0 12px; white-space: normal; text-wrap: wrap;
}
#app .fit-head .fit-line { display: block; white-space: nowrap; }
#app .fit-head .fit-line + .fit-line { margin-top: 0.04em; }
/* line art moves down so it sits below the headline (behind subtitle/intro/rows), never behind the headline text.
   --head-h = headline bottom, set per section by fitHeadings(). Bottom-anchored art (Cybercab, Semi, data center, Optimus) unchanged. */
#glance::before                  { background-position-y: calc(var(--head-h, 0px) + 4px); }
#fsd-cybercab-miles::before      { background-position-y: calc(var(--head-h, 0px) + 8px); }
#spacex-usdkg::before            { background-position-y: calc(var(--head-h, 0px) + 56px); }
#spacex-satellites::before       { background-position-y: calc(var(--head-h, 0px) + 4px); }
#spacex-starlink-revenue::before, #spacex-starship::before, #land-buildings::before, #stocks::before, #disclosures::before,
#musk-net-worth::before, #tesla-sales-model::before, #tesla-sales-continent::before,
#fsd-subscriptions::before, #tesla-energy::before, #x-grok-users::before, #starlink-subscribers::before, #neuralink::before, #vegas-loop::before {
  background-position-y: calc(var(--head-h, 0px) + 4px);
}
/* cache bust 2026-10-08 v33 */

/* ===== v34: public visit counter (header, right of "Updated …"; hidden until the count arrives, space reserved) ===== */
.site-meta .meta-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 12px; row-gap: 0; }
.site-meta .meta-row .as-of { margin: 0; min-width: 0; }
.site-meta .visits { margin: 0 0 0 auto; font-size: 0.8rem; color: var(--text-muted); white-space: nowrap;
  visibility: hidden; opacity: 0; transition: opacity .35s ease; }
.site-meta .visits.is-on { visibility: visible; opacity: 1; }
.visits-k { font-weight: 600; }
.site-meta .visits strong { color: var(--now); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 359px) { .site-meta .meta-row { column-gap: 8px; } .site-meta .meta-row .as-of, .site-meta .visits { font-size: 0.74rem; } }


/* ===== v36 (Chris): TODAY AT A GLANCE sub-groups TESLA · SPACEX · ELON MUSK (small gold kicker + thin yellow rule) ===== */
.gl-group + .gl-group { margin-top: 18px; }
.gl-sub { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em;
  line-height: 1.2; text-transform: uppercase; color: var(--now); }
.gl-sub::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(201, 162, 39, 0.4); }
/* v36: header intro moved to the footer ("How to read this page") */
.read-note { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.read-note-k { margin: 0 0 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--now); }
.read-note-t { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--text-soft); }
/* v36: empty past cells hidden (data-driven; hideEmptyCells() in app.js) */
#app .hv-cell.cell-empty, #app .yr-cell.cell-empty, #app .yr-strip.strip-empty { display: none !important; }
/* v36: ONE headline size sitewide = the v33 TESLA SEMI-TRUCKS size per width (0.0963 × content width on phones;
   43.5px at 480–719; 70.5px from 720). Same family/weight/letter-spacing for every title; long titles wrap at that size. */
:root { --head-size: calc((100vw - 28px) * 0.0963); }
@media (min-width: 480px) { :root { --head-size: 43.5px; } }
@media (min-width: 720px) { :root { --head-size: 70.5px; } }
#app .section-label-caps.fit-head { font-size: var(--head-size); letter-spacing: 0.02em; font-weight: 800; line-height: 0.95;
  white-space: normal; text-wrap: balance; overflow-wrap: normal; }
/* cache bust 2026-10-13 v36 */

/* ===== v37 (Chris): headlines 25% smaller than v36 at every width (still one uniform size) ===== */
:root { --head-size: calc((100vw - 28px) * 0.072225); }
@media (min-width: 480px) { :root { --head-size: 32.6px; } }
@media (min-width: 720px) { :root { --head-size: 52.9px; } }
/* v37: every glance box is the same size — no odd-last stretch; boxes stay in their grid cells, left-aligned */
#app .gl-grid > a.gl-box { grid-column: auto !important; }
/* cache bust 2026-10-13 v37 */
/* cache bust 2026-10-17 v38 */
/* cache bust 2026-10-21 v40 */


/* v39: no description line under section headlines (subtitle hidden; data/sources unaffected) */
#app > section .hero-header > .hero-subtitle, #app > section .stocks-header > .stocks-subtitle { display: none; }


/* v40: Musk Interviews page + links */
.tagline-link, .footer-links a { color: var(--now); font-weight: 700; text-decoration: none; }
.footer-links { margin: 10px 0 6px; font-size: 0.9rem; }
.jump-nav a.nav-ext { border: 1px solid #333; }
.iv-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--now); font-weight: 700; text-decoration: none; }
.iv-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.iv-item { background: #141414; border: 1px solid #262626; border-radius: 14px; padding: 14px 16px; min-width: 0; }
.iv-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin: 0 0 4px; overflow-wrap: anywhere; }
.iv-title a { color: var(--text); text-decoration: none; }
.iv-title a:hover { color: var(--now); }
.iv-meta { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 8px; }
.iv-meta strong { color: var(--past); font-weight: 700; }
.iv-sum { font-size: 0.9rem; line-height: 1.5; color: var(--text-soft); margin: 0 0 8px; }
.iv-link { font-size: 0.85rem; font-weight: 700; color: var(--now); text-decoration: none; overflow-wrap: anywhere; }
.iv-empty { margin: 14px 0 0; color: var(--text-soft); font-size: 0.95rem; }
.iv-src { margin-top: 18px; font-size: 0.78rem; color: var(--text-muted); }



/* ===== v42 (Chris): TODAY AT A GLANCE — group titles 3x; equal boxes filling the row (8 per group: 2 columns on phones, 4 from 480px) ===== */
#app .gl-sub { font-size: 2.4rem; letter-spacing: 0.08em; line-height: 1; margin-bottom: 10px; }
#app .gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 480px) { #app .gl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#app .gl-grid { grid-auto-rows: 1fr; }
/* cache bust 2026-10-24 v42 */

