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

body {
  font-family: 'Space Mono', monospace;
  background: #fff;
  color: #111;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
}

/* Phone frame — thin rounded border, always visible */
.phone-frame {
  width: 100%;
  max-width: 390px;
  border: 1.5px solid #ccc;
  border-radius: 20px;
  overflow: hidden;
  align-self: flex-start;
}

.page-content {
  padding: 36px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Header ── */
.site-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: #000;
}

.legal-ref {
  font-size: 0.72rem;
  color: #555;
  text-underline-offset: 2px;
  display: block;
}

a.legal-ref:hover { color: #000; }

/* ── Data rights ── */
.data-rights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rights-heading,
.section-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #000;
}

.rights-intro {
  font-size: 0.72rem;
  color: #444;
  line-height: 1.65;
}

.rights-intro a { color: #444; text-underline-offset: 2px; }
.rights-intro a:hover { color: #000; }

.rights-list {
  list-style: none;
  border-top: 1px solid #000;
}

.rights-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
}

.rights-item { font-size: 0.72rem; color: #111; }
.rights-code { font-size: 0.62rem; color: #888; white-space: nowrap; flex-shrink: 0; }

/* ── Cards ── */
.data-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 2px solid #000;
}

.card-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-description {
  font-size: 0.75rem;
  color: #333;
  line-height: 1.6;
}

.card-description--pending {
  border-left: 2px solid #ccc;
  padding-left: 10px;
  color: #555;
}

.card-disclaimer {
  font-size: 0.65rem;
  color: #888;
  line-height: 1.5;
}

.card-sources {
  font-size: 0.65rem;
  color: #666;
  line-height: 1.5;
}

.card-sources a { color: #444; text-underline-offset: 2px; }
.card-sources a:hover { color: #000; }

/* ── Charts ── */
.deaths-chart-wrap { width: 100%; margin: 4px 0; }
.deaths-chart-wrap svg { width: 100%; display: block; }

.grid-line { stroke: #e8e8e8; stroke-width: 1; }

.axis-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  fill: #888;
}

.year-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  fill: #666;
}

.death-bar          { fill: #111; }
.death-bar--partial { fill: #c8c8c8; }
.pct-bar            { fill: #555; }
.pct-bar--partial   { fill: #d8d8d8; }

/* ── Discipline stat ── */
.discipline-stat { line-height: 1; margin: 4px 0; }
.discipline-stat__num   { font-size: 2.8rem; font-weight: 700; color: #000; }
.discipline-stat__denom { font-size: 1.2rem; font-weight: 700; color: #555; }
.discipline-stat__label { font-size: 0.7rem; color: #888; margin-bottom: 8px; display: block; }

/* ── Orgs ── */
.orgs-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 4px solid #000;
  padding-top: 20px;
}

.orgs-group-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.orgs-list {
  list-style: none;
  border-top: 1px solid #000;
}

.orgs-list li { border-bottom: 1px solid #e0e0e0; }
.orgs-list li:last-child { border-bottom: none; }

.org-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
}

.org-link:hover .org-name { text-decoration: underline; }

.org-name { font-size: 0.75rem; font-weight: 700; color: #000; }
.org-desc { font-size: 0.65rem; color: #888; line-height: 1.4; }
.org-tag {
  font-size: 0.55rem;
  font-weight: 400;
  color: #888;
  border: 1px solid #ccc;
  padding: 1px 4px;
  border-radius: 3px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── All Sources ── */
.sources-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 4px solid #000;
  padding-top: 20px;
}

.sources-list {
  list-style: none;
  border-top: 1px solid #000;
}

.sources-list li {
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.65rem;
  line-height: 1.5;
  color: #444;
}

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

.sources-list a {
  color: #444;
  text-underline-offset: 2px;
}

.sources-list a:hover { color: #000; }

/* ── Full bleed on small screens ── */
@media (max-width: 440px) {
  body { padding: 0; }
  .phone-frame {
    max-width: 100%;
    border: none;
    border-radius: 0;
  }
}
