:root {
  --bg: #000000;
  --bg-elevated: #12100c;
  --border: #2e261c;
  --text: #f2ebd3;
  --muted: #9a9180;
  --accent: #c6934b;
  --accent-dim: #a67b3d;
  --accent-soft: rgba(198, 147, 75, 0.14);
  --danger: #c47a5a;
  --ok: #7a9e6a;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 68rem;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --radius: 2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.05rem);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 40% 0%, rgba(198, 147, 75, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 25%, rgba(46, 38, 28, 0.7), transparent 50%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(166, 123, 61, 0.08), transparent 55%),
    var(--bg);
  animation: ambient-drift 28s var(--ease-soft) infinite alternate;
  pointer-events: none;
}

@keyframes ambient-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2.5%, 1.5%, 0) scale(1.04);
  }
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease-soft);
}

a:hover {
  color: var(--text);
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 0 max(4.5rem, calc(env(safe-area-inset-bottom) + 3.25rem));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, var(--bg) 92%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(46, 38, 28, 0.35) 48px,
      rgba(46, 38, 28, 0.35) 49px
    );
  pointer-events: none;
  z-index: 0;
  animation: hatch-drift 40s linear infinite;
}

@keyframes hatch-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 0, 120px 40px;
  }
}

.hero::after {
  content: "";
  position: absolute;
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  right: -8%;
  bottom: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 147, 75, 0.18), transparent 68%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 9s var(--ease-soft) infinite alternate;
}

@keyframes glow-pulse {
  from {
    opacity: 0.45;
    transform: translate3d(0, 0, 0) scale(0.92);
  }
  to {
    opacity: 0.9;
    transform: translate3d(-6%, -4%, 0) scale(1.08);
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.brand {
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.hero-lede {
  max-width: 36rem;
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

/* Hero entrance */
.hero-in {
  opacity: 0;
  transform: translateY(1.35rem);
  animation: hero-rise 0.95s var(--ease-out) forwards;
}

.hero-in:nth-child(1) {
  animation-delay: 0.08s;
}
.hero-in:nth-child(2) {
  animation-delay: 0.22s;
}
.hero-in:nth-child(3) {
  animation-delay: 0.38s;
}
.hero-in:nth-child(4) {
  animation-delay: 0.52s;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #120e08;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.28s var(--ease-soft),
    color 0.28s var(--ease-soft),
    border-color 0.28s var(--ease-soft),
    transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-soft);
}

.btn:hover {
  background: var(--text);
  border-color: var(--text);
  color: #120e08;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(198, 147, 75, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: none;
}

/* —— Sections —— */
section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}

section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.section-lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.exec-summary {
  max-width: 42rem;
  margin: 0 0 2.75rem;
}

.exec-summary p {
  margin: 0 0 1.15rem;
  color: var(--text);
}

.exec-summary p:last-child {
  margin-bottom: 0;
}

.exec-summary strong {
  font-weight: 600;
  color: var(--text);
}

.toc {
  max-width: 40rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}

.toc h3 {
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  column-gap: 0.65rem;
  row-gap: 0.15rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
}

.toc li:first-child {
  border-top: 0;
  padding-top: 0;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  padding-top: 0.2rem;
}

.toc a {
  grid-column: 2;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

.toc a:hover {
  color: var(--accent);
}

.toc li span {
  grid-column: 2;
  font-size: 0.9rem;
  color: var(--muted);
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 2px solid var(--accent-dim);
  padding: 0.65rem 0 0.65rem 1rem;
  margin: 0 0 2.5rem;
  max-width: 44rem;
}

.legend-group {
  margin: 0 0 2rem;
}

.legend-group h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.legend-list {
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.legend-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) 1fr;
  gap: 0.85rem 1.15rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border);
  align-items: start;
}

.legend-row:first-child {
  border-top: 0;
}

.legend-list dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.1rem 0 0;
}

.legend-list dd {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
  gap: 0.85rem;
  margin: 0 0 2.25rem;
}

.kpi {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.15rem;
  transition: border-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}

.kpi-grid.is-inview .kpi,
#tnt-root.is-inview .kpi,
#funding-root.is-inview .kpi {
  border-color: rgba(198, 147, 75, 0.35);
}

.kpi-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.kpi-value {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1.2;
}

.kpi-value-sm {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.kpi-note {
  margin: 0.45rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.kpi .sources a {
  font-size: 0.8rem;
}

#tnt-root,
#funding-root {
  margin-top: 0.5rem;
}

#tnt-root .table-scroll,
#funding-root .table-scroll {
  margin-bottom: 2.25rem;
}

#tnt-root .table-wrap,
#funding-root .table-wrap {
  margin-bottom: 0;
}

#tnt-root.is-inview tbody tr.row-in,
#funding-root.is-inview tbody tr.row-in {
  animation: row-slide 0.55s var(--ease-out) forwards;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.85rem;
  margin: 0 0 2.25rem;
}

.note-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
}

.note-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.question-list {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 0.5rem;
}

.question {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
}

.question-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--danger);
  margin-bottom: 0.45rem;
}

.question h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.question p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.series-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.series-head h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent);
}

.series-head p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 0.98rem;
}

.chart-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 0.75rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}

.series.is-inview .chart-panel,
#funding-root.is-inview .chart-panel {
  border-color: rgba(198, 147, 75, 0.45);
  box-shadow: 0 0 0 1px rgba(198, 147, 75, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Explicit box so Chart.js can shrink and grow cleanly on viewport resize. */
.chart-frame {
  position: relative;
  width: 100%;
  height: clamp(220px, 42vw, 300px);
}

.chart-frame--funding {
  height: clamp(260px, 48vw, 340px);
}

.chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  cursor: crosshair;
}

.series tbody tr.is-hover td {
  background: rgba(198, 147, 75, 0.14);
}

.table-scroll {
  display: grid;
  gap: 0.5rem;
}

.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scrollbar-width: none;
  background: var(--bg);
}

.table-wrap::-webkit-scrollbar {
  display: none;
  height: 0;
}

.table-rail {
  display: none;
  height: 6px;
  margin: 0 1px;
  background: var(--border);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  touch-action: none;
}

.table-scroll.has-overflow .table-rail {
  display: block;
}

.table-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 2.75rem;
  background: var(--accent);
  border-radius: 99px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(198, 147, 75, 0.35);
}

.table-rail:hover .table-thumb,
.table-rail.is-dragging .table-thumb {
  background: var(--text);
}

table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-elevated);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.25s var(--ease-soft);
}

tbody tr:hover td {
  background: rgba(198, 147, 75, 0.06);
}

tbody tr.row-in {
  opacity: 0;
  transform: translateX(-0.5rem);
}

.series.is-inview tbody tr.row-in {
  animation: row-slide 0.55s var(--ease-out) forwards;
}

@keyframes row-slide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-note {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  white-space: normal;
  max-width: 22rem;
}

.up {
  color: var(--danger);
}

.down {
  color: var(--ok);
}

.flat {
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}

tbody tr:hover .badge {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.sources a {
  font-size: 0.85rem;
}

.method ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  max-width: 42rem;
}

.method li {
  margin-bottom: 0.5rem;
}

.method li strong {
  color: var(--text);
  font-weight: 500;
}

.source-index {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.source-index a {
  font-family: var(--mono);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(0.4rem);
  overflow-wrap: anywhere;
  word-break: break-word;
  transition:
    color 0.25s var(--ease-soft),
    transform 0.35s var(--ease-out),
    opacity 0.35s var(--ease-out);
}

.source-index.is-inview a {
  opacity: 1;
  transform: translateY(0);
}

.source-index a:hover {
  transform: translateX(0.35rem);
}

footer {
  padding: 2.5rem 0 max(3rem, calc(env(safe-area-inset-bottom) + 1.75rem));
  color: var(--muted);
  font-size: 0.9rem;
}

footer .brand-line {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.series {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.series.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.series:last-child {
  margin-bottom: 0;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: -0.625rem;
  border-right: 1.5px solid var(--accent-dim);
  border-bottom: 1.5px solid var(--accent-dim);
  transform: rotate(45deg);
  opacity: 0;
  animation:
    cue-fade 1s 1.1s var(--ease-out) forwards,
    cue-bob 2.2s 1.4s var(--ease-soft) infinite;
  pointer-events: none;
}

@keyframes cue-fade {
  to {
    opacity: 0.7;
  }
}

@keyframes cue-bob {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(0.35rem);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
    padding-top: 1.5rem;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .cta-row .btn:first-child {
    grid-column: 1 / -1;
  }

  .btn {
    justify-content: center;
    text-align: center;
  }

  section {
    padding: 2.75rem 0;
  }

  .kpi-value {
    overflow-wrap: anywhere;
  }

  .chart-panel {
    padding: 0.85rem 0.45rem 0.45rem;
  }

  .chart-frame {
    height: 240px;
  }

  .chart-frame--funding {
    height: 300px;
  }

  table {
    font-size: 0.82rem;
    min-width: 36rem;
  }

  th,
  td {
    padding: 0.55rem 0.65rem;
  }

  .question h3,
  .series-head h3 {
    font-size: 1.05rem;
  }

  .cell-note {
    max-width: 16rem;
  }

  .legend-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.75rem 0.9rem;
  }
}

@media (max-width: 420px) {
  .cta-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  .hero::before,
  .hero::after,
  .scroll-cue,
  .hero-in,
  .series.is-inview tbody tr.row-in,
  #tnt-root.is-inview tbody tr.row-in,
  #funding-root.is-inview tbody tr.row-in {
    animation: none !important;
  }

  .hero-in,
  .reveal,
  .series,
  .source-index a,
  tbody tr.row-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn:hover {
    transform: none;
    box-shadow: none;
  }
}

/* —— Print / Save as PDF —— */
.print-footer-cta {
  margin-top: 1.25rem;
}

.print-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #120e08;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition:
    background 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft),
    transform 0.25s var(--ease-out);
}

.print-fab:hover {
  background: var(--text);
  border-color: var(--text);
  transform: translateY(-2px);
}

.print-fab:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media print {
  @page {
    margin: 0.55in;
    /* Dark page chrome where the UA honors it */
    background: #000000;
  }

  /* Keep the on-screen Harvest Range dark palette (do not invert to paper white). */
  :root {
    --bg: #000000;
    --bg-elevated: #12100c;
    --border: #2e261c;
    --text: #f2ebd3;
    --muted: #9a9180;
    --accent: #c6934b;
    --accent-dim: #a67b3d;
    --accent-soft: rgba(198, 147, 75, 0.14);
    --danger: #c47a5a;
    --ok: #7a9e6a;
    color-scheme: dark;
  }

  html {
    scroll-behavior: auto;
    background: var(--bg) !important;
  }

  body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-size: 10.5pt;
    line-height: 1.4;
  }

  /* Freeze ambient layers; keep them so the PDF matches the site atmosphere. */
  body::before,
  .hero::before {
    animation: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .hero::after,
  .scroll-cue,
  .no-print,
  .table-rail,
  .print-fab {
    display: none !important;
  }

  .hero {
    min-height: 0;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--border);
    background: transparent !important;
  }

  .hero h1 {
    font-size: 22pt;
    max-width: none;
    color: var(--text) !important;
  }

  .brand,
  .hero-lede,
  .section-lede,
  .disclaimer,
  .kpi-label,
  .kpi-note,
  .muted {
    color: var(--muted) !important;
  }

  .hero-lede {
    font-size: 11pt;
    margin-bottom: 0.75rem;
  }

  .cta-row,
  .btn {
    display: none !important;
  }

  .wrap {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    break-inside: avoid-page;
  }

  section h2,
  .series-head h3,
  .legend-group h3,
  .brand-line {
    color: var(--text) !important;
  }

  .reveal,
  .series,
  .source-index a,
  tbody tr.row-in,
  .hero-in,
  .kpi,
  .question,
  .note-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .chart-panel,
  .note-card,
  .question,
  .kpi,
  .legend-list,
  .legend-group,
  .table-wrap,
  .table-scroll {
    background: var(--bg-elevated) !important;
    box-shadow: none !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .chart-frame,
  .chart-frame--funding {
    height: 220pt !important;
    background: var(--bg-elevated) !important;
  }

  .chart-frame canvas {
    max-width: 100% !important;
  }

  .table-scroll,
  .table-wrap {
    overflow: visible !important;
  }

  table {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 8.5pt;
    color: var(--text) !important;
  }

  th,
  td {
    padding: 0.35rem 0.4rem;
    border-color: var(--border) !important;
    color: var(--text) !important;
  }

  th {
    color: var(--muted) !important;
  }

  .badge {
    border-color: var(--border) !important;
    color: var(--muted) !important;
  }

  .legend-list dt {
    color: var(--accent) !important;
  }

  .legend-list dd {
    color: var(--text) !important;
  }

  a {
    color: var(--accent) !important;
    text-decoration: underline;
  }

  .sources a::after,
  .source-index a::after {
    content: " (" attr(href) ")";
    font-size: 7.5pt;
    color: var(--muted) !important;
    word-break: break-all;
  }

  footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted) !important;
  }

  /* Force ink for backgrounds/gradients — required for dark PDF output. */
  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
