:root {
  --ink: #17272f;
  --ink-soft: #516a66;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --surface-alt: #edf3ef;
  --line: #d8ddd1;
  --teal: #1c9aa3;
  --green: #2b8a57;
  --blue: #1f78b4;
  --violet: #7765a8;
  --gold: #d9a73f;
  --red: #d94b3d;
  --rust: #a53d2d;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 221, 209, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 12px;
  height: 12px;
  background: var(--teal);
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.overview-band {
  background: var(--ink);
  color: var(--white);
}

.overview-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 42px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 24px 46px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-band .eyebrow {
  color: #d7e7df;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: clamp(38px, 5vw, 60px);
}

h2 {
  max-width: 860px;
  font-size: clamp(26px, 3.4vw, 42px);
}

h3 {
  font-size: 19px;
}

.lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: #d8e6dc;
  font-size: 19px;
}

.boundary-panel {
  align-self: stretch;
  border-left: 8px solid var(--gold);
  background: #203842;
  padding: 24px;
}

.boundary-panel h2 {
  font-size: 24px;
}

.boundary-panel p {
  margin: 14px 0 20px;
  color: #d8e6dc;
}

.boundary-panel dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.boundary-panel div {
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
}

.boundary-panel dt {
  color: #bfd1ca;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.boundary-panel dd {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1220px;
  margin: -26px auto 0;
  padding: 0 24px;
}

.metric-card {
  min-height: 142px;
  border: 1px solid var(--line);
  border-top: 8px solid var(--teal);
  background: var(--surface);
  padding: 18px;
}

.metric-card.google {
  border-top-color: var(--green);
}

.metric-card.guardian {
  border-top-color: var(--violet);
}

.metric-card.twitter {
  border-top-color: var(--blue);
}

.metric-card.multisource {
  border-top-color: var(--gold);
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.metric-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 66px 24px;
}

.section-head {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--ink-soft);
}

.finding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.finding {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
}

.finding h3 {
  margin-top: 18px;
  font-size: 23px;
}

.finding p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.finding-tag {
  display: inline-flex;
  min-width: 78px;
  justify-content: center;
  padding: 6px 10px;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.finding-tag.google {
  background: var(--green);
}

.finding-tag.twitter {
  background: var(--blue);
}

.finding-tag.guardian {
  background: var(--violet);
}

.explorer {
  padding-top: 40px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: var(--surface-alt);
  color: var(--ink-soft);
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.tab-panel {
  display: grid;
  gap: 24px;
}

.panel-grid,
.figure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.chart-panel,
.table-panel,
.figure-panel,
.note-box {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px;
}

.chart-panel p,
.note-box p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.chart {
  margin-top: 14px;
  overflow: hidden;
}

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

.chart-axis {
  fill: var(--ink-soft);
  font-size: 13px;
}

.chart-title,
.chart-value {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 14px;
}

.full-table {
  margin-top: 0;
}

.data-table th {
  background: var(--ink);
  color: var(--white);
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.data-table td:first-child {
  font-weight: 800;
}

.figure-panel {
  margin: 0;
}

.figure-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-panel figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.note-band {
  border-left: 7px solid var(--gold);
  background: #fff7df;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 700;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.note-box {
  border-top: 7px solid var(--green);
}

.note-box:nth-child(2) {
  border-top-color: var(--blue);
}

.note-box:nth-child(3) {
  border-top-color: var(--gold);
}

.downloads {
  padding-top: 36px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.download-link {
  display: block;
  min-height: 116px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--teal);
  background: var(--surface);
  padding: 18px;
  text-decoration: none;
}

.download-link:nth-child(2) {
  border-left-color: var(--blue);
}

.download-link:nth-child(3) {
  border-left-color: var(--green);
}

.download-link:nth-child(4) {
  border-left-color: var(--gold);
}

.download-link:nth-child(5) {
  border-left-color: var(--violet);
}

.download-link:nth-child(6) {
  border-left-color: var(--red);
}

.download-link:nth-child(7) {
  border-left-color: var(--teal);
}

.download-link span {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-link strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
}

.site-footer {
  background: var(--ink);
  color: #d8e6dc;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 24px;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .overview-inner,
  .panel-grid,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .finding-grid,
  .note-grid,
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .overview-inner {
    padding-top: 44px;
  }

  .section {
    padding: 48px 18px;
  }

  .nav {
    padding-inline: 18px;
  }

  .metric-strip,
  .finding-grid,
  .note-grid,
  .download-grid,
  .boundary-panel dl {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .tab-button {
    white-space: nowrap;
  }
}
