:root {
  color-scheme: light;
  --ink: #181714;
  --muted: #69655e;
  --paper: #fffdf8;
  --line: #e8e0d5;
  --red: #ef3e36;
  --blue: #1268f3;
  --cyan: #00a9a5;
  --gold: #f2b705;
  --green: #0f9d58;
  --pink: #ef5da8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(1540px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 32px;
}

.hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 30px;
  align-items: end;
  padding: 34px 0 26px;
  border-bottom: 2px solid var(--ink);
}

.kicker,
.panel-title p {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(58px, 9vw, 136px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-stats {
  display: grid;
  gap: 14px;
}

.hero-stats div {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.hero-stats span {
  display: block;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  font-weight: 950;
}

.hero-stats label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.panel {
  min-height: 480px;
  padding: 22px;
  border: 2px solid var(--ink);
  background: #fffaf0;
  overflow: hidden;
}

.panel:nth-child(2n) {
  background: #f5fbff;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.chart {
  width: 100%;
  min-height: 390px;
}

.map {
  min-height: 520px;
}

.broadcast-chart {
  min-height: 860px;
}

.notes {
  min-height: 390px;
}

.note-stack {
  display: grid;
  gap: 13px;
}

.note-stack div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: baseline;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.note-stack strong {
  font-size: 40px;
  line-height: 0.9;
  font-weight: 950;
}

.note-stack span,
.note-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
  font-weight: 750;
}

.note-copy {
  margin: 18px 0 0;
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

.axis text,
.annotation,
.tick-label,
.legend,
.source-note {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.axis line,
.axis path {
  stroke: var(--line);
}

.label-strong {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.value-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 10;
  max-width: 260px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 5px 5px 0 var(--ink);
  opacity: 0;
  transform: translate(12px, 12px);
}

footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  padding: 20px 0 0;
}

@media (max-width: 920px) {
  main {
    width: min(100% - 24px, 760px);
  }

  .hero,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .panel {
    min-height: 420px;
    padding: 16px;
  }

  .panel-title {
    display: block;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 0.35in;
  }

  body {
    background: #fff;
    color: #000;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .hero,
  footer {
    display: none;
  }

  .grid,
  .grid.two {
    display: block;
    margin: 0;
    break-inside: auto;
    page-break-inside: auto;
  }

  .panel {
    width: 100%;
    height: 7.05in;
    min-height: 0;
    padding: 0.18in;
    margin: 0;
    border: 2px solid #000;
    background: #fff !important;
    break-inside: avoid;
    page-break-inside: avoid;
    overflow: hidden;
  }

  .panel {
    break-before: page;
    page-break-before: always;
  }

  main > .grid:first-of-type > .panel:first-child {
    break-before: auto;
    page-break-before: auto;
  }

  .panel-title {
    margin-bottom: 0.12in;
  }

  .panel-title p {
    color: #000;
    font-size: 9pt;
  }

  h2 {
    font-size: 18pt;
  }

  .chart,
  .map,
  .broadcast-chart {
    min-height: 0;
    height: calc(100% - 0.65in);
  }

  svg {
    width: 100%;
    height: 100%;
  }

  .tooltip {
    display: none;
  }
}
