:root {
  color-scheme: light;
  --bg: #f4f1eb;
  --paper: #faf8f3;
  --surface: #fffdf8;
  --surface-soft: #f3eee6;
  --surface-blue: #eef5fb;
  --ink: #11110f;
  --muted: #77736c;
  --subtle: #a8a097;
  --line: #e4ded4;
  --line-strong: #d4cabe;
  --teal: #24766f;
  --teal-dark: #14524d;
  --blue: #365f8f;
  --confirmed: #f4a261;
  --probable: #e9c46a;
  --suspected: #f3d58f;
  --monitoring: #4a4e69;
  --amber: #f1a65f;
  --red: #e05252;
  --shadow: 0 18px 55px rgba(44, 38, 28, 0.08);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: var(--teal-dark);
  text-decoration-color: rgba(36, 118, 111, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.app-shell:has(.home-app) {
  display: block;
  min-height: 100vh;
  background: #faf9f7;
}

.home-app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #faf9f7;
  color: #1a1a1a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.desktop-home {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

.desktop-home-header {
  display: flex;
  height: 80px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(12px);
}

.desktop-home-header h1 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  max-width: none;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.desktop-home-header h1 span {
  color: #8c8c8a;
  font-weight: 300;
}

.desktop-live-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 8px 16px;
}

.desktop-live-pill strong,
.desktop-live-pill span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.desktop-live-pill strong {
  color: #e63946;
}

.desktop-live-pill span {
  color: #1a1a1a;
}

.desktop-live-pill span:last-child {
  color: #8c8c8a;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e63946;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.55);
}

.desktop-home-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 32px 48px;
}

.desktop-source-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: #8c8c8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.desktop-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.desktop-hero-grid,
.desktop-lower-grid {
  display: grid;
  gap: 24px;
}

.desktop-hero-grid {
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

.desktop-lower-grid {
  grid-template-columns: 1fr;
}

.desktop-main-grid {
  display: grid;
  grid-template-columns: minmax(340px, 4fr) minmax(620px, 8fr);
  gap: 24px;
  align-items: start;
}

.desktop-card {
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
}

.desktop-metric-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.desktop-metric-card > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-metric-card p {
  margin: 0;
  color: #8c8c8a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.desktop-metric-card strong {
  display: block;
  color: #1a1a1a;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
}

.desktop-metric-card > span {
  color: #8c8c8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-metric-card.death strong {
  color: #e63946;
}

.desktop-metric-card.monitoring strong {
  color: #4a4e69;
}

.desktop-metric-card.external strong {
  color: #4a4e69;
}

.metric-glyph {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--confirmed);
}

.metric-glyph.death {
  border: 2px solid #e63946;
  background: transparent;
}

.metric-glyph.monitoring {
  background: #4a4e69;
}

.metric-glyph.external {
  border: 2px solid #4a4e69;
  background: transparent;
}

.cases-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 32px;
}

.desktop-summary-card {
  min-height: 410px;
  padding: 32px;
}

.desktop-composition-card,
.desktop-classification-card,
.desktop-monitoring-card {
  padding: 32px;
}

.desktop-classification-card {
  overflow: hidden;
  padding: 32px 0 0;
}

.desktop-classification-card .desktop-card-title {
  padding: 0 32px;
}

.desktop-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.desktop-card-title h2 {
  margin: 0;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.desktop-card-title span {
  color: #8c8c8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-case-visual {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.desktop-donut {
  position: relative;
  display: grid;
  width: 192px;
  height: 192px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 33%, transparent 34%),
    conic-gradient(
      var(--confirmed) 0 var(--confirmed-share),
      var(--probable) var(--confirmed-share) var(--probable-end),
      var(--pending) var(--probable-end) var(--inconclusive-end, var(--probable-end)),
      var(--suspected) var(--inconclusive-end, var(--probable-end)) 100%
    );
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.desktop-donut > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.desktop-donut strong {
  color: #1a1a1a;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.desktop-donut span {
  color: #8c8c8a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-category-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #f3f4f6;
  padding-top: 24px;
}

.case-category-legend > div {
  display: grid;
  justify-items: center;
  gap: 6px;
  border-left: 1px solid #f3f4f6;
  text-align: center;
}

.case-category-legend > div:first-child {
  border-left: 0;
}

.case-category-legend p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.case-category-legend span:not(.legend-dot) {
  color: #8c8c8a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.case-category-legend strong {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.case-category-legend .confirmed strong {
  color: var(--confirmed);
}

.case-category-legend .probable strong,
.case-category-legend .suspected strong {
  color: var(--probable);
}

.case-category-legend .suspected .legend-dot {
  background: var(--suspected);
}

.desktop-category-legend {
  margin-top: 28px;
}

.legend-dot {
  display: inline-flex;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--confirmed);
}

.legend-dot.probable {
  background: var(--probable);
}

.legend-dot.suspected {
  background: var(--suspected);
}

.legend-dot.death {
  border: 2px solid #e63946;
  background: transparent;
}

.legend-dot.monitoring {
  background: #4a4e69;
}

.legend-dot.disembarked,
.legend-dot.external {
  border: 2px solid #4a4e69;
  background: transparent;
}

.desktop-composition-total {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 28px;
}

.desktop-composition-total strong {
  color: #1a1a1a;
  font-size: 80px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
}

.desktop-composition-total span {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.desktop-bars {
  display: grid;
  gap: 18px;
}

.desktop-bar-row {
  display: grid;
  gap: 9px;
}

.desktop-bar-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.desktop-bar-label p {
  margin: 0;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
}

.desktop-bar-label strong {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.desktop-bar-row.muted .desktop-bar-label p,
.desktop-bar-row.muted .desktop-bar-label strong {
  color: #8c8c8a;
}

.desktop-bar-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.desktop-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.desktop-bar-track .confirmed {
  background: var(--confirmed);
}

.desktop-bar-track .probable {
  background: var(--probable);
}

.desktop-bar-track .suspected {
  background: var(--suspected);
}

.desktop-outcome-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  border-radius: 14px;
  background: rgba(230, 57, 70, 0.055);
  padding: 18px 20px;
}

.desktop-outcome-callout > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-outcome-callout p {
  margin: 0;
  color: #e63946;
  font-size: 14px;
  font-weight: 850;
}

.desktop-outcome-callout strong {
  color: #e63946;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.desktop-status-rows {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid #f3f4f6;
}

.desktop-status-row {
  border-bottom: 1px solid #f3f4f6;
}

.desktop-status-row:last-child {
  border-bottom: 0;
}

.desktop-status-row summary {
  display: grid;
  min-height: 68px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 32px;
  cursor: pointer;
  list-style: none;
}

.desktop-status-row summary::-webkit-details-marker {
  display: none;
}

.desktop-status-row summary::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid #d1d5db;
  border-bottom: 2px solid #d1d5db;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 160ms ease;
}

.desktop-status-row[open] summary::after {
  transform: rotate(225deg);
}

.desktop-status-row[open] summary {
  border-bottom: 1px solid #f3f4f6;
}

.desktop-status-rows p {
  margin: 0;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
}

.desktop-status-rows strong {
  color: #1a1a1a;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.desktop-status-row.outcome p,
.desktop-status-row.outcome strong {
  color: #e63946;
}

.desktop-status-row.monitoring strong {
  color: #4a4e69;
}

.desktop-status-row.disembarked strong,
.desktop-status-row.external strong {
  color: #4a4e69;
}

.status-detail {
  border-top: 0;
  background: rgba(250, 249, 247, 0.78);
  padding: 14px 32px 18px 72px;
}

.status-detail p {
  max-width: 660px;
  margin: 0;
  color: #777;
  font-size: 12px;
  line-height: 1.55;
}

.status-detail dl {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 14px 0 0;
}

.status-detail dl > div {
  display: grid;
  gap: 3px;
}

.status-detail dt {
  color: #a0a0a0;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-detail dd {
  margin: 0;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 800;
}

.status-detail a {
  color: #1a1a1a;
  text-decoration-color: rgba(26, 26, 26, 0.26);
}

.detail-mini-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  margin-top: 14px;
  background: #fff;
}

.detail-mini-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  padding: 10px 12px;
}

.detail-mini-list > div:last-child {
  border-bottom: 0;
}

.detail-mini-list span {
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 800;
}

.detail-mini-list strong {
  color: #4a4e69;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.detail-mini-list em {
  grid-column: 1 / -1;
  color: #8c8c8a;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.desktop-monitoring-body {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 6px;
}

.monitoring-icon {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 36%, #4a4e69 0 13%, transparent 14%),
    radial-gradient(circle at 62% 36%, #4a4e69 0 13%, transparent 14%),
    radial-gradient(ellipse at 50% 74%, #4a4e69 0 36%, transparent 37%),
    #faf9f7;
}

.desktop-monitoring-body strong {
  display: block;
  color: #4a4e69;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.desktop-monitoring-body span {
  display: block;
  max-width: 360px;
  margin-top: 8px;
  color: #8c8c8a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.desktop-monitoring-card p {
  margin: 30px 0 0;
  color: #8c8c8a;
  font-size: 14px;
  line-height: 1.6;
}

.desktop-monitoring-substats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.desktop-monitoring-substats div {
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 16px;
}

.desktop-monitoring-substats strong {
  display: block;
  color: #4a4e69;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.desktop-monitoring-substats span {
  display: block;
  margin-top: 6px;
  color: #8c8c8a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-disclaimer {
  max-width: 900px;
  margin: 28px 0 0;
  color: #8c8c8a;
  font-size: 12px;
  line-height: 1.5;
}

.mobile-home {
  display: none;
}

.mobile-reference-header {
  flex: 0 0 auto;
  padding: 56px 24px 16px;
  position: relative;
  z-index: 10;
}

.mobile-reference-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.mobile-reference-header h1 {
  max-width: none;
  margin: 0;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
}

.mobile-reference-header p:not(.live-label) {
  margin: -2px 0 0;
  color: #8c8c8a;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.05;
}

.home-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 32px;
  scrollbar-width: none;
}

.home-scroll::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(228, 222, 212, 0.86);
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 13px;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: #ede7dc;
  color: var(--ink);
}

.page {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.overview-hero {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.overview-topbar,
.overview-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.live-label,
.overview-divider,
.case-total p,
.dashboard-footnote {
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.live-label span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e63946;
}

.mobile-menu {
  position: relative;
  z-index: 30;
}

.mobile-menu summary {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  list-style: none;
}

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

.mobile-menu summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 168px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 35px rgba(26, 26, 26, 0.09);
  padding: 6px;
}

.mobile-menu nav a {
  border-radius: 11px;
  color: #1a1a1a;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-menu nav a[aria-current="page"],
.mobile-menu nav a:hover {
  background: #faf9f7;
}

.overview-title-row {
  margin-top: 12px;
}

.overview-hero h1 {
  max-width: none;
  font-family: inherit;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  word-spacing: normal;
}

.overview-subtitle {
  margin: -3px 0 0;
  color: #8c8c8a;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.02;
}

.overview-divider {
  border-top: 0;
  border-bottom: 1px solid #e5e7eb;
  margin-top: 0;
  padding: 0 0 12px;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.overview-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 32px 0 0;
}

.case-donut {
  position: relative;
  display: grid;
  width: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  place-items: center;
  background: conic-gradient(
    var(--confirmed) 0 var(--confirmed-share),
    var(--probable) var(--confirmed-share) var(--probable-end),
    var(--pending) var(--probable-end) var(--inconclusive-end, var(--probable-end)),
    var(--suspected) var(--inconclusive-end, var(--probable-end)) 100%
  );
  box-shadow: inset 0 2px 5px rgba(44, 38, 28, 0.06);
}

.case-donut-center {
  position: relative;
  display: grid;
  width: 68%;
  height: 68%;
  align-content: center;
  justify-items: center;
  border-radius: 50%;
  background: #faf9f7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.case-donut-center strong {
  color: #1a1a1a;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.case-donut-center span {
  margin-top: 6px;
  color: #8c8c8a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-total {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  margin-top: 16px;
}

.case-total strong {
  color: #1a1a1a;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.case-total span {
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 800;
}

.mobile-chart-column {
  display: grid;
  justify-items: center;
}

.mobile-category-legend {
  width: 100%;
}

.overview-side {
  display: flex;
  width: 148px;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  margin-top: 2px;
}

.side-metric {
  display: grid;
  gap: 7px;
}

.side-metric div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.side-metric strong {
  display: block;
  padding-left: 20px;
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.side-metric.confirmed strong {
  color: var(--confirmed);
}

.side-metric.confirmed .status-dot {
  background: var(--confirmed);
}

.side-metric.probable strong {
  color: var(--probable);
}

.side-metric.probable .status-dot {
  background: var(--probable);
}

.side-metric.death strong {
  color: #e63946;
}

.side-metric.death .status-dot {
  border: 2.5px solid #e63946;
  background: transparent;
}

.side-metric p {
  margin: -2px 0 0;
  padding-left: 20px;
  color: #8c8c8a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-rule {
  width: calc(100% - 20px);
  height: 1px;
  margin-left: 20px;
  background: rgba(229, 231, 235, 0.7);
}

.home-micro-note {
  margin: 20px 0 16px;
  color: #8c8c8a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-micro-note.secondary {
  margin-top: 10px;
}

.breakdown-list {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
  padding: 8px;
}

.breakdown-row {
  display: block;
  border-bottom: 1px solid #f3f4f6;
  border-radius: 0;
}

.breakdown-row:last-child {
  border-bottom: 0;
}

.breakdown-row:first-child {
  border-radius: 16px 16px 0 0;
}

.breakdown-row:last-child {
  border-radius: 0 0 16px 16px;
}

.monitoring-list .breakdown-row {
  border-radius: 16px;
}

.breakdown-row summary {
  display: grid;
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

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

.breakdown-row summary::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid #d1d5db;
  border-bottom: 2px solid #d1d5db;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 160ms ease;
}

.breakdown-row[open] summary::after {
  transform: rotate(225deg);
}

.breakdown-row[open] summary {
  border-bottom: 1px solid #f3f4f6;
}

.breakdown-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--confirmed);
}

.breakdown-row.probable .status-dot {
  background: var(--probable);
}

.breakdown-row.suspected .status-dot {
  background: var(--suspected);
}

.breakdown-row.death .status-dot {
  border: 2.5px solid #e63946;
  background: transparent;
}

.breakdown-row.monitoring .status-dot {
  background: var(--monitoring);
}

.breakdown-row.disembarked .status-dot {
  border: 2px solid var(--monitoring);
  background: transparent;
}

.breakdown-row.disembarked .row-value {
  color: #4a4e69;
}

.breakdown-row h3 {
  margin: 0;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 800;
}

.breakdown-row p {
  margin: 2px 0 0;
  color: #8c8c8a;
  font-size: 12px;
  font-weight: 500;
}

.breakdown-row .row-value {
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.breakdown-row.death .row-value {
  color: #e63946;
}

.breakdown-row.monitoring .row-value,
.breakdown-row.disembarked .row-value {
  color: #4a4e69;
  font-size: 24px;
}

.contact-breakdown-row {
  display: block;
  border-top: 1px solid #f3f4f6;
}

.contact-breakdown-row summary {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.contact-breakdown-row summary::-webkit-details-marker {
  display: none;
}

.contact-breakdown-row summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid #d1d5db;
  border-bottom: 2px solid #d1d5db;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 160ms ease;
}

.contact-breakdown-row[open] summary::after {
  transform: rotate(225deg);
}

.contact-breakdown-row[open] summary {
  border-bottom: 1px solid #f3f4f6;
}

.contact-breakdown-row h3 {
  margin: 0;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
}

.contact-breakdown-row p {
  margin: 2px 0 0;
  color: #8c8c8a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.contact-breakdown-row strong {
  color: #4a4e69;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.breakdown-row .status-detail,
.contact-breakdown-row .status-detail {
  padding: 14px 16px 18px 44px;
}

.breakdown-row .status-detail p,
.contact-breakdown-row .status-detail p {
  margin: 0;
  color: #777;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.home-app .section {
  padding-top: 0;
}

.home-app .section-header {
  display: none;
}

.home-app .dashboard-footnote {
  margin: 16px 0 0;
  color: #8c8c8a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px 0 16px;
}

.hero-copy {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--teal);
  padding: 24px 0 24px 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 13ch;
  font-family: Charter, Iowan Old Style, Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  font-weight: 650;
}

h2 {
  font-family: Charter, Iowan Old Style, Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3.05rem);
  font-weight: 650;
}

h3 {
  font-size: 1.05rem;
  font-weight: 750;
}

.hero-lede {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 750;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--teal);
  background: #eef7f5;
  color: var(--teal-dark);
}

.button.primary {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal);
  color: #fff;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 24px;
}

.status-strip {
  display: grid;
  gap: 14px;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.status-value {
  color: var(--ink);
  font-size: 1.56rem;
  font-weight: 800;
}

.source-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 64px 0 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.last-checked {
  min-width: max-content;
  color: var(--subtle);
  font-size: 0.9rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.confidence-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--teal-dark);
  padding: 2px 8px;
  font-size: 0.73rem;
  font-weight: 800;
}

.metric-value {
  margin: 18px 0 4px;
  font-family: Charter, Iowan Old Style, Georgia, serif;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 650;
  letter-spacing: 0;
}

.metric-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.metric-source {
  display: inline-flex;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

.dashboard-footnote {
  margin: 16px 0 0;
  color: var(--subtle);
  font-size: 0.9rem;
}

.home-page .section {
  padding-top: 30px;
}

.home-page .section-header {
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.home-page .section-kicker {
  color: var(--teal-dark);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.home-page h2 {
  font-family: inherit;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0;
}

.home-page .section-intro,
.home-page .last-checked {
  color: var(--muted);
  font-size: 0.95rem;
}

.home-page .last-checked {
  min-width: 0;
}

.home-page .dashboard-footnote {
  font-size: 0.74rem;
  line-height: 1.55;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
}

.map-canvas {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(238, 245, 251, 0.95), rgba(245, 249, 248, 0.95)),
    #eef5fb;
}

.map-watermark {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(54, 95, 143, 0.08);
  border-radius: var(--radius);
}

.land {
  position: absolute;
  border: 1px solid rgba(36, 118, 111, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.land.south-america {
  left: 13%;
  top: 49%;
  width: 22%;
  height: 37%;
  border-radius: 48% 42% 52% 34%;
  transform: rotate(-11deg);
}

.land.africa {
  left: 48%;
  top: 42%;
  width: 22%;
  height: 42%;
  border-radius: 44% 52% 36% 46%;
  transform: rotate(6deg);
}

.land.europe {
  left: 47%;
  top: 18%;
  width: 25%;
  height: 25%;
  border-radius: 46% 42% 38% 50%;
}

.land.islands {
  left: 39%;
  top: 36%;
  width: 8%;
  height: 16%;
  border-radius: 48%;
  transform: rotate(24deg);
}

.route-line {
  position: absolute;
  left: 22%;
  top: 35%;
  width: 43%;
  height: 30%;
  border-top: 2px dashed rgba(54, 95, 143, 0.26);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.map-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  width: var(--size);
  height: var(--size);
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--teal-dark);
  box-shadow: 0 8px 20px rgba(20, 82, 77, 0.22);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 850;
}

.map-point.probable-only {
  background: var(--amber);
}

.map-label {
  position: absolute;
  left: var(--x);
  top: calc(var(--y) + var(--label-offset, 26px));
  transform: translateX(-50%);
  width: max-content;
  max-width: 180px;
  border: 1px solid rgba(217, 226, 223, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.map-legend {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(310px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.map-legend strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.location-list {
  display: grid;
  gap: 10px;
}

.location-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.location-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.location-count {
  color: var(--teal-dark);
  font-family: Charter, Iowan Old Style, Georgia, serif;
  font-size: 1.8rem;
  font-weight: 650;
}

.location-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line);
  margin-left: 11px;
}

.timeline-item {
  position: relative;
  padding: 0 0 22px 28px;
}

.timeline-item::before {
  position: absolute;
  left: -8px;
  top: 3px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--teal-dark);
  box-shadow: 0 0 0 1px var(--line-strong);
  content: "";
}

.timeline-date {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 850;
}

.timeline-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.timeline-change {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}

.timeline-source {
  display: inline-flex;
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.source-title {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.source-org {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.confidence-high,
.confidence-medium {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 850;
}

.confidence-high {
  background: #e8f4ef;
  color: var(--teal-dark);
}

.confidence-medium {
  background: #fff4e5;
  color: #7a4a16;
}

.source-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.source-category-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 7px 13px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.source-category-links a:hover,
.source-category-links a[aria-current="page"] {
  border-color: var(--line-strong);
  background: #f6f2ea;
  color: var(--ink);
}

.source-category-page {
  display: grid;
  gap: 22px;
}

.source-category-header {
  margin-bottom: 0;
}

.source-rule {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
}

.source-rule strong,
.record-panel-head h2,
.source-stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-rule p {
  max-width: 880px;
  margin: 0;
  color: var(--ink);
}

.source-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.source-stat-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.source-stat-card strong {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.source-stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.source-category-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 14px;
}

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

.source-record-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.record-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.record-panel-head h2 {
  margin: 0;
}

.record-panel-head span {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.metric-source-list,
.source-record-grid,
.source-detail-list,
.compact-timeline {
  display: grid;
}

.metric-source-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.metric-source-row:last-child,
.source-detail-row:last-child,
.source-timeline-row:last-child {
  border-bottom: 0;
}

.metric-source-row .sw {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-top: 6px;
}

.metric-source-row h3,
.source-detail-row h3,
.source-timeline-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.metric-source-row p,
.source-detail-row p,
.source-timeline-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.metric-source-row small {
  display: block;
  margin-top: 8px;
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-source-row strong {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}

.source-record-card {
  display: grid;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.source-record-card:last-child {
  border-bottom: 0;
}

.source-record-card a {
  color: var(--ink);
  font-weight: 850;
}

.source-record-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.source-record-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.source-record-card dt {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-record-card dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
}

.source-record-card p {
  margin: 0;
  color: var(--muted);
}

.source-detail-row,
.source-timeline-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.source-detail-row > span,
.source-timeline-row time {
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty-source-state {
  display: grid;
  min-height: 128px;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.empty-source-state p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

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

.policy-card,
.about-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.policy-card p,
.about-panel p,
.about-panel li {
  color: var(--muted);
}

.policy-card p:last-child,
.about-panel p:last-child {
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 18px;
}

.about-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.disclaimer-band {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 248, 247, 0.78);
}

.disclaimer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 26px 0 42px;
  color: var(--subtle);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.loading-state,
.error-state,
.noscript-message {
  width: min(100% - 32px, 760px);
  margin: 12vh auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
}

.error-state h1 {
  max-width: none;
  font-size: 2rem;
}

@media (max-width: 980px) {
  .hero,
  .map-layout,
  .about-grid,
  .source-category-grid,
  .source-category-grid.secondary {
    grid-template-columns: 1fr;
  }

  .case-donut {
    justify-self: center;
    width: min(68vw, 220px);
  }

  .case-total {
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    min-height: 0;
  }

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

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .source-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    background:
      linear-gradient(rgba(17, 17, 15, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
      var(--bg);
    background-size: 56px 56px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .page {
    padding-top: 24px;
  }

  .source-stat-grid {
    grid-template-columns: 1fr;
  }

  .source-record-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-source-row,
  .source-detail-row,
  .source-timeline-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric-source-row .sw {
    margin-top: 0;
  }

  .overview-hero {
    border-radius: 24px;
    padding: 22px 18px;
  }

  .overview-hero h1 {
    font-size: 2.05rem;
  }

  .overview-subtitle {
    font-size: 2.05rem;
  }

  .overview-divider {
    margin-top: 26px;
  }

  .overview-visual {
    gap: 24px;
    padding: 32px 0 0;
  }

  .case-donut {
    width: min(68vw, 220px);
  }

  .case-total strong {
    font-size: 5.6rem;
  }

  .breakdown-row summary {
    padding: 17px 18px;
  }

  .breakdown-copy {
    gap: 13px;
  }

  .breakdown-row h3 {
    font-size: 0.98rem;
  }

  .breakdown-row p {
    font-size: 0.84rem;
  }

  .hero-copy {
    border-left: 0;
    padding: 10px 0;
  }

  .hero-panel {
    padding: 18px;
  }

  .section {
    padding-top: 46px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .last-checked {
    min-width: 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    min-height: 430px;
  }

  .map-label {
    display: none;
  }

  .map-legend {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }
}

.home-app .overview-hero {
  padding: 0;
}

.home-app .overview-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  padding: 32px 0 0;
}

.home-app .case-donut {
  width: 192px;
}

.home-app .case-donut-center strong {
  font-size: 52px;
}

.home-app .breakdown-row summary {
  padding: 16px;
}

.home-app .breakdown-copy {
  gap: 16px;
}

.home-app .breakdown-row h3 {
  font-size: 15px;
}

.home-app .breakdown-row p {
  font-size: 12px;
}

@media (max-width: 760px) {
  .app-shell:has(.home-app) {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #000;
  }

  .home-app {
    display: flex;
    max-width: 430px;
    height: 100vh;
    min-height: 0;
    max-height: 100vh;
    flex-direction: column;
    overflow: hidden;
  }

  .desktop-home {
    display: none;
  }

  .mobile-home {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    background: #faf9f7;
  }

}

@media (max-width: 1040px) and (min-width: 761px) {
  .desktop-metric-grid,
  .desktop-hero-grid,
  .desktop-lower-grid,
  .desktop-main-grid {
    grid-template-columns: 1fr;
  }

  .desktop-summary-card,
  .cases-card {
    min-height: 0;
  }

  .cases-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.68fr);
    column-gap: 36px;
    align-items: center;
  }

  .cases-card .desktop-card-title {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }

  .desktop-case-visual {
    min-height: 260px;
  }

  .desktop-category-legend {
    grid-template-columns: 1fr;
    align-content: center;
    align-self: stretch;
    gap: 18px;
    border-top: 0;
    border-left: 1px solid #f3f4f6;
    margin-top: 0;
    padding-top: 0;
    padding-left: 32px;
  }

  .desktop-category-legend > div {
    justify-items: start;
    border-left: 0;
    text-align: left;
  }

  .desktop-category-legend p {
    justify-content: flex-start;
  }
}

/* Reference-inspired outbreak dashboard refresh */
body {
  background:
    linear-gradient(rgba(18, 17, 14, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 17, 14, 0.035) 1px, transparent 1px),
    #faf8f4;
  background-size: 96px 96px;
}

.app-shell:has(.home-app),
.home-app {
  background: #faf8f4;
}

.desktop-home {
  background:
    radial-gradient(circle at 16% 8%, rgba(244, 162, 97, 0.12), transparent 24%),
    radial-gradient(circle at 86% 72%, rgba(36, 118, 111, 0.1), transparent 28%),
    transparent;
}

.desktop-home-header {
  position: sticky;
  top: 0;
  z-index: 12;
  height: 72px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.1);
  background: rgba(250, 248, 244, 0.86);
  padding: 0 28px;
}

.desktop-brand,
.desktop-tabs,
.desktop-live-pill {
  display: inline-flex;
  align-items: center;
}

.desktop-brand {
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.desktop-brand-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(224, 82, 82, 0.12);
}

.desktop-tabs {
  position: absolute;
  left: 50%;
  gap: 4px;
  transform: translateX(-50%);
  border: 1px solid rgba(17, 17, 15, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  padding: 4px;
}

.desktop-tabs a {
  min-width: 94px;
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.desktop-tabs a.on,
.desktop-tabs a:hover {
  background: var(--ink);
  color: #fff;
}

.desktop-live-pill {
  gap: 12px;
  border: 1px solid rgba(17, 17, 15, 0.1);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: none;
}

.desktop-home-scroll {
  padding: 28px clamp(24px, 4vw, 56px) 56px;
}

.desktop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: end;
  min-height: 330px;
  padding: 26px 0 34px;
}

.hero-copy-block {
  max-width: 850px;
}

.hero-copy-block .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.hero-copy-block h1 {
  max-width: 11ch;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4.2rem, 9vw, 8.7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
}

.hero-copy-block p:last-child {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.58;
}

.hero-source-panel,
.desktop-card,
.desktop-map-section,
.desktop-timeline-section {
  border: 1px solid rgba(17, 17, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 18px 50px rgba(44, 38, 28, 0.07);
}

.hero-source-panel {
  padding: 22px;
}

.hero-source-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-source-panel strong {
  display: block;
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero-source-panel span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.desktop-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.desktop-metric-panel {
  display: grid;
  gap: 18px;
  min-height: 142px;
  border: 1px solid rgba(17, 17, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  padding: 22px;
}

.metric-panel-head,
.metric-panel-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.metric-panel-head span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-panel-icon {
  position: relative;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #efece5;
}

.metric-panel-icon::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.metric-panel-icon.pulse {
  background: #fce6e2;
}

.metric-panel-icon.pulse::before {
  background: var(--red);
}

.metric-panel-icon.contacts {
  background: #e9f3ef;
}

.metric-panel-icon.contacts::before {
  background: var(--teal);
}

.metric-panel-value strong {
  color: var(--ink);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.desktop-metric-panel.deaths .metric-panel-value strong {
  color: var(--red);
}

.metric-panel-value em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
}

.desktop-main-grid {
  grid-template-columns: minmax(340px, 0.9fr) minmax(540px, 1.1fr);
  gap: 18px;
}

.cases-card,
.desktop-composition-card,
.desktop-classification-card,
.desktop-monitoring-card {
  padding: 28px;
}

.desktop-classification-card {
  padding: 28px 0 0;
}

.desktop-classification-card .desktop-card-title {
  padding: 0 28px;
}

.desktop-card-title {
  margin-bottom: 24px;
}

.desktop-card-title h2 {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.desktop-donut {
  width: 214px;
  height: 214px;
  background:
    radial-gradient(circle at center, rgba(255, 253, 248, 1) 0 38%, transparent 39%),
    conic-gradient(
      var(--confirmed) 0 var(--confirmed-share),
      var(--probable) var(--confirmed-share) var(--probable-end),
      var(--pending) var(--probable-end) var(--inconclusive-end, var(--probable-end)),
      var(--suspected) var(--inconclusive-end, var(--probable-end)) 100%
    );
}

.desktop-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.desktop-population-card,
.desktop-risk-card {
  padding: 28px;
}

.population-total {
  display: flex;
  align-items: end;
  gap: 14px;
}

.population-total strong {
  color: var(--ink);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.population-total span {
  max-width: 150px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.population-bar {
  display: flex;
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  margin: 28px 0 20px;
  background: #e9e4db;
}

.population-bar span {
  flex: var(--share) 1 0;
}

.population-legend,
.risk-list {
  display: grid;
  gap: 10px;
}

.population-legend div,
.risk-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(17, 17, 15, 0.08);
  padding-top: 12px;
}

.population-legend p,
.risk-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.population-legend strong,
.risk-list strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.risk-list div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.desktop-map-section,
.desktop-timeline-section {
  margin-top: 18px;
  padding: 28px;
}

.desktop-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.desktop-map-canvas {
  min-height: 560px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(238, 245, 251, 0.92), rgba(248, 245, 238, 0.95)),
    #eef5fb;
}

.desktop-location-list {
  max-height: 560px;
  overflow: auto;
  padding-right: 2px;
}

.location-card,
.policy-card,
.about-panel,
.table-wrap,
.map-canvas,
.map-legend,
.loading-state,
.error-state,
.noscript-message {
  border-radius: 8px;
}

.location-card {
  background: rgba(255, 253, 248, 0.92);
}

.home-disclaimer {
  margin: 22px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1040px) and (min-width: 761px) {
  .desktop-tabs {
    position: static;
    transform: none;
  }

  .desktop-home-header {
    gap: 14px;
  }

  .desktop-hero,
  .desktop-main-grid,
  .desktop-field-grid,
  .desktop-map-grid {
    grid-template-columns: 1fr;
  }

  .desktop-metrics-row {
    grid-template-columns: 1fr;
  }

  .desktop-location-list {
    max-height: none;
  }
}

/* Precision pass: match the provided Hondius reference structure. */
.home-app {
  --bg: #faf8f4;
  --panel: #ffffff;
  --ink: #111111;
  --sub: #6b6b6b;
  --muted: #a8a8a8;
  --rule: #e8e2d6;
  --soft: #f1ece0;
  --confirmed: #f5a05e;
  --probable: #e5762b;
  --pending: #fbb6b0;
  --deaths: #dc2626;
  --quarantine: #111111;
  --home: #4b8b6f;
  --hotel: #d8a24a;
  --hospital: #b85c44;
  --lost: #a8a8a8;
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
}

.app-shell:has(.home-app) {
  background: #fff;
}

html:has(.home-app),
body:has(.home-app) {
  background: #fff;
}

.home-app a {
  color: inherit;
}

.home-app .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  background: #fff;
  padding: 22px 32px 14px;
}

.home-app .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.home-app .brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--probable);
  animation: hondius-pulse 2.4s ease-in-out infinite;
}

@keyframes hondius-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(1.6);
  }
}

.home-app .tabs {
  display: flex;
  gap: 28px;
}

.home-app .tabs a {
  position: relative;
  border-radius: 0;
  color: var(--sub);
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-app .tabs a:hover,
.home-app .tabs a.on {
  color: var(--ink);
}

.home-app .tabs a.on {
  font-weight: 600;
}

.home-app .tabs a.on::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
}

.home-app .meta {
  color: var(--sub);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-app .page.reference-page {
  width: auto;
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  padding: 44px 32px 80px;
}

.home-app .hero {
  display: block;
  grid-template-columns: none;
  gap: 0;
  align-items: initial;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 28px;
}

.home-app .hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-app .hero .eyebrow .dot,
.home-app .map-card .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--probable);
}

.home-app .hero h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.home-app .hero p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--sub);
  font-size: 15.5px;
  line-height: 1.55;
}

.home-app .hero p a {
  color: var(--ink);
  font-weight: 650;
  text-decoration-color: rgba(17, 17, 17, 0.26);
}

.home-app .hero p a:hover {
  text-decoration-color: currentColor;
}

.home-app .metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding: 32px 0 8px;
}

.home-app .metric {
  border: 0;
  background: transparent;
  padding: 0;
}

.home-app .metric .head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-app .metric .ico {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft);
}

.home-app .metric .ico::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

.home-app .metric .ico.death {
  background: #fce6e2;
}

.home-app .metric .ico.death::before {
  background: var(--deaths);
}

.home-app .metric .ico.risk {
  background: #e6f0e8;
}

.home-app .metric .ico.risk::before {
  background: #2f7a52;
}

.home-app .metric .label {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-app .metric .row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 12px;
}

.home-app .metric .big {
  color: var(--ink);
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.home-app .metric .big.deaths {
  color: var(--deaths);
}

.home-app .metric .big.risk-text {
  font-size: 30px;
}

.home-app .metric .trend,
.home-app .metric .pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.home-app .metric .trend.up {
  background: #fce6e2;
  color: var(--deaths);
}

.home-app .metric .trend.down {
  background: #e6f0e8;
  color: #2f7a52;
}

.home-app .metric .pill {
  background: var(--soft);
  color: var(--sub);
}

.home-app .block {
  border-bottom: 1px solid var(--rule);
  padding: 40px 0;
}

.home-app .block:last-of-type {
  border-bottom: 0;
}

.home-app .block-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: end;
}

.home-app .eye {
  margin-bottom: 14px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-app .donut-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 8px 0 28px;
}

.home-app .reference-donut {
  width: 200px;
  height: 200px;
  background:
    radial-gradient(circle at center, #fff 0 34%, transparent 35%),
    conic-gradient(
      var(--confirmed) 0 var(--confirmed-share),
      var(--probable) var(--confirmed-share) var(--probable-end),
      var(--pending) var(--probable-end) var(--inconclusive-end, var(--probable-end)),
      var(--suspected) var(--inconclusive-end, var(--probable-end)) 100%
    );
  box-shadow: none;
}

.home-app .reference-donut strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0;
}

.home-app .reference-donut span {
  color: var(--sub);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.home-app .donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-app .donut-legend .li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.home-app .donut-legend .li .sw {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.home-app .donut-legend .li .n {
  margin-left: 6px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.home-app .donut-legend .meta-line {
  margin-top: 4px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-app .stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-app .stack .row {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 12px 16px;
  align-items: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 9px 0;
}

.home-app .stack .row .sw {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-top: 3px;
}

.home-app .stack .row .label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.home-app .stack .row .meta {
  margin-top: 2px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-app .stack .row .pct {
  min-width: 38px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.home-app .stack .row .n {
  min-width: 44px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
}

.home-app .bignum {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.home-app .bignum .n {
  color: var(--ink);
  font-family: var(--display);
  font-size: 96px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
}

.home-app .bignum .unit {
  margin-left: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.home-app .note {
  margin-top: 8px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-app .popbar {
  display: flex;
  height: 16px;
  overflow: hidden;
  border-radius: 4px;
  margin-top: 14px;
}

.home-app .poplegend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.home-app .poplegend .item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.home-app .poplegend .item .sw {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 2px;
  margin-top: 5px;
}

.home-app .poplegend .item .label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.home-app .poplegend .item .num {
  margin-top: 1px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 11px;
}

.home-app .foot {
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  padding-top: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.home-app .fullmap {
  position: relative;
  isolation: isolate;
  height: calc(100vh - 67px);
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.home-app .reference-full-map {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.home-app .map-card {
  position: absolute;
  z-index: 1200;
  max-width: 320px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  padding: 16px 18px;
}

.home-app .map-card.tl {
  top: 18px;
  left: 18px;
  max-width: 380px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.home-app .map-card.bl {
  bottom: 24px;
  left: 18px;
}

.home-app .map-card .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-app .map-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.home-app .map-card p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
}

.home-app .map-card .legend-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-app .map-card .legend-row .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-app .map-card .legend-row .sw {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .home-app .topbar {
    padding: 16px 18px 12px;
  }

  .home-app .meta {
    display: none;
  }

  .home-app .tabs {
    gap: 18px;
  }

  .home-app .page.reference-page {
    padding: 28px 18px 60px;
  }

  .home-app .hero h1 {
    font-size: 32px;
  }

  .home-app .metrics {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-app .block-row {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
  }

  .home-app .donut-wrap {
    flex-wrap: wrap;
    gap: 20px;
  }

  .home-app .bignum .n {
    font-size: 72px;
  }

  .home-app .poplegend {
    grid-template-columns: 1fr;
  }

  .home-app .stack .row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .home-app .stack .row .pct {
    display: none;
  }

  .home-app .map-card {
    max-width: calc(100% - 36px);
  }

  .home-app .map-card.tl {
    top: 12px;
    right: 12px;
    left: 12px;
    border: 1px solid var(--rule);
    background: rgba(255, 255, 255, 0.92);
    padding: 12px 14px;
  }

  .home-app .map-card.bl {
    bottom: 12px;
    left: 12px;
    padding: 12px 14px;
  }
}

/* Minimal Leaflet runtime styles for the extracted real map. */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-container {
  overflow: hidden;
  background: #fff;
  outline-offset: 1px;
  font-family: var(--body);
  -webkit-tap-highlight-color: transparent;
}

.leaflet-container a {
  color: inherit;
}

.leaflet-control-attribution {
  margin: 0;
  border-radius: 6px 0 0 0;
  background: rgba(255, 255, 255, 0.82);
  color: var(--sub);
  padding: 3px 7px;
  font-size: 10px;
  line-height: 1.4;
}

.leaflet-control-attribution a {
  color: var(--ink);
  text-decoration-color: rgba(17, 17, 17, 0.25);
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
  pointer-events: none;
}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive {
  pointer-events: auto;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-map-pane canvas {
  z-index: 100;
}

.leaflet-map-pane svg {
  z-index: 200;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1100;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control {
  float: left;
  clear: both;
}

.leaflet-right .leaflet-control {
  float: right;
  margin-top: 10px;
  margin-right: 10px;
}

.leaflet-bar {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.leaflet-bar a {
  display: block;
  width: 30px;
  height: 30px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font: 700 18px/30px var(--mono);
  text-align: center;
  text-decoration: none;
}

.leaflet-bar a:last-child {
  border-bottom: 0;
}

.leaflet-bar a:hover {
  background: var(--soft);
}

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
  transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
}

.leaflet-interactive {
  cursor: pointer;
}

.leaflet-grab {
  cursor: grab;
}

.leaflet-dragging .leaflet-grab {
  cursor: grabbing;
}

.leaflet-popup {
  position: absolute;
  margin-bottom: 20px;
  text-align: center;
}

.leaflet-popup-content-wrapper {
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.leaflet-popup-content {
  min-width: 210px;
  margin: 0;
  padding: 14px 16px;
  text-align: left;
}

.leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  width: 40px;
  height: 20px;
  overflow: hidden;
  margin-top: -1px;
  margin-left: -20px;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  margin: -10px auto 0;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: rotate(45deg);
}

.leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--sub);
  font: 16px/24px var(--body);
  text-align: center;
  text-decoration: none;
}

.h-marker {
  border: 0;
  background: transparent;
}

.real-marker {
  display: grid;
  width: var(--marker-size);
  height: var(--marker-size);
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--marker-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--marker-color) 22%, transparent), 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.real-marker.ship {
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-marker.ship span {
  width: 15px;
  height: 10px;
  background: #fff;
  clip-path: polygon(0 58%, 80% 58%, 100% 100%, 8% 100%);
}

.popup-eye {
  margin-bottom: 6px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.popup h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.popup .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding: 6px 0;
  color: var(--ink);
  font-size: 12px;
}

.popup .row span:last-child {
  font-family: var(--mono);
  font-weight: 500;
}

.popup-source {
  border-top: 1px solid var(--rule);
  padding-top: 8px;
  font-size: 12px;
  font-weight: 700;
}

.map-geo-failed::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sub);
  padding: 10px 12px;
  content: "Country polygons could not be loaded.";
  font: 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .app-shell:has(.home-app) {
    display: block;
    background: var(--bg);
  }

  .home-app {
    display: block;
    max-width: none;
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow: visible;
  }
}

html,
body,
.app-shell {
  background: #fff;
}
