/* Ebola Tracker · African Script */

/* Jost (SIL Open Font License, see fonts/OFL-Jost.txt): a free geometric sans in the spirit of Futura */
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/jost-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/jost-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/jost-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/jost-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens (African Script brand) ---------- */
:root {
  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --as-green: #17e817;      /* brand green: actions, accents */
  --as-pink: #d2549a;       /* brand pink: data highlight */
  --as-navy: #0b1c2b;       /* brand ink */

  --bg: #f5f5f2;
  --paper: #ffffff;
  --line: #dfe0db;
  --line-strong: #c9cbc4;
  --ink: var(--as-navy);
  --ink-2: #33414e;
  --muted: #5d6873;
  --link: #a8326f;          /* brand pink, darkened for text contrast on white */
  --accent-ink: #087a08;    /* brand green, darkened for text on white */
  --radius: 6px;

  /* Status colours carry meaning only */
  --st-active: #c8102e;
  --st-imported: #d9620b;
  --st-suspected: #c98a00;
  --st-monitoring: #a39200;
  --st-clear: #3b8f3b;

  --bs-body-font-family: var(--font);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-link-color: var(--link);
  --bs-link-color-rgb: 168, 50, 111;
  --bs-link-hover-color: var(--ink);
  --bs-link-hover-color-rgb: 11, 28, 43;
}
[data-bs-theme="dark"] {
  --bg: #0a0d10;
  --paper: #11161b;
  --line: #222a31;
  --line-strong: #323c45;
  --ink: #edf0f2;
  --ink-2: #c7cdd2;
  --muted: #98a3ac;
  --link: #e58cbf;
  --accent-ink: #17e817;
  --st-active: #ff4d5e;
  --st-imported: #ff8a3d;
  --st-suspected: #f2b600;
  --st-monitoring: #d6c200;
  --st-clear: #4fc94f;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-secondary-bg: var(--paper);
  --bs-tertiary-bg: var(--paper);
  --bs-link-color-rgb: 229, 140, 191;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; letter-spacing: 0; color: var(--ink); }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--as-pink); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic-sm { width: 13px; height: 13px; vertical-align: -1px; }
.text-muted-x { color: var(--muted) !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--as-navy); color: #fff; padding: 8px 14px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* Status: a coloured dot + plain text. No pills, no pulsing (only active outbreaks pulse, on maps). */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .95rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--st-clear); }
.status-active::before { background: var(--st-active); }
.status-imported::before { background: var(--st-imported); }
.status-suspected::before { background: var(--st-suspected); }
.status-monitoring::before { background: var(--st-monitoring); }
.status-over::before { background: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st-clear); flex: none; }
.dot.status-active { background: var(--st-active); }
.dot.status-imported { background: var(--st-imported); }
.dot.status-suspected { background: var(--st-suspected); }
.dot.status-monitoring { background: var(--st-monitoring); }

/* Buttons */
.btn-brand { display: inline-flex; align-items: center; gap: 8px; background: var(--as-green); color: var(--as-navy); border: 0; border-radius: 4px; font-weight: 600; font-size: 1rem; padding: 11px 20px; text-decoration: none; }
.btn-brand:hover, .btn-brand:focus { background: #12cf12; color: var(--as-navy); }
.home .btn-brand, .home .btn-brand:hover { color: var(--as-navy); }
.home .btn-brand.disabled { color: #8f9aa3; }
.btn-brand.disabled { background: #2a333c; color: #8f9aa3; pointer-events: none; }
.btn-line { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; font-weight: 500; padding: 8px 14px; text-decoration: none; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 1040; background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 20px; overflow-y: auto; transition: transform .25s ease; }
.brand { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); margin-bottom: 22px; }
.brand img { height: 44px; width: auto; align-self: flex-start; }
.brand-product { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.side-nav { display: flex; flex-direction: column; }
.side-label { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 18px 0 4px; }
.side-link { display: flex; align-items: center; gap: 9px; padding: 5px 0 5px 17px; margin-left: -20px; color: var(--ink); text-decoration: none; font-size: 1.02rem; border-left: 3px solid transparent; }
.side-link:hover { color: var(--link); }
.side-link.active { border-left-color: var(--as-green); font-weight: 600; }
.side-soon { font-size: .9rem; color: var(--muted); margin: 8px 0 0; line-height: 1.4; }
.side-foot { margin-top: auto; padding-top: 24px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.side-foot a { color: var(--muted); }

.main-col { flex: 1; min-width: 0; margin-left: 250px; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1030; height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-title { flex: 1; min-width: 0; }
.breadcrumb { font-size: .95rem; margin: 0; --bs-breadcrumb-divider-color: var(--muted); --bs-breadcrumb-item-active-color: var(--ink); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.updated-note { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.lang-switch { display: inline-flex; gap: 2px; font-size: .95rem; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 2px 6px; }
.lang-switch a.active { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--as-green); }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.theme-icon-light { display: none; }
[data-bs-theme="dark"] .theme-icon-light { display: inline; }
[data-bs-theme="dark"] .theme-icon-dark { display: none; }

.content { padding: 32px; flex: 1; width: 100%; max-width: 1400px; }
.content:focus { outline: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 600; margin: 0 0 6px; line-height: 1.1; }
.page-meta { color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.page-meta strong { color: var(--ink); font-weight: 500; }
.page-lead { color: var(--ink-2); max-width: 720px; margin: 0; font-size: 1.1rem; }

/* Notices */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--st-clear); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin-bottom: 18px; }
.notice p { margin: 4px 0 0; color: var(--ink-2); }
.notice strong { font-weight: 600; }
.notice-active { border-left-color: var(--st-active); }
.notice-imported { border-left-color: var(--st-imported); }
.notice-suspected { border-left-color: var(--st-suspected); }
.notice-monitoring { border-left-color: var(--st-monitoring); }
.notice-alert { display: flex; gap: 14px; align-items: flex-start; }
.notice-alert .grow { flex: 1; }
.notice-alert.level-critical, .notice-alert.level-warning { border-left-color: var(--st-active); }
.notice-alert.level-watch { border-left-color: var(--st-suspected); }

/* Provisional (auto-published, not yet reviewed) */
.badge-provisional { display: inline-block; font-size: .8rem; font-weight: 600; color: #8a4b00; border: 1px dashed #c98a00; padding: 0 7px; border-radius: 3px; vertical-align: 1px; }
[data-bs-theme="dark"] .badge-provisional { color: #f2b600; border-color: #f2b600; }
.provisional-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border: 1px dashed var(--st-suspected); border-radius: var(--radius); font-size: .97rem; }
.provisional-strip p { flex: 1; min-width: 220px; margin: 0; }
.badge-pending { display: inline-block; font-size: .8rem; font-weight: 600; color: #3d5a73; border: 1px dashed #6f8ba3; padding: 0 7px; border-radius: 3px; vertical-align: 1px; }
[data-bs-theme="dark"] .badge-pending, .country-band .badge-pending, .land-card .badge-pending { color: #b9cad8; border-color: #8aa3b8; }
.pending-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border: 1px dashed #6f8ba3; border-radius: var(--radius); font-size: .97rem; }
.pending-strip p { flex: 1; min-width: 220px; margin: 0; }
.land-pending { font-size: .85rem; color: #c3cad0; margin: 0 0 8px; line-height: 1.45; }

/* ---------- Key figures: one strip, numbers first ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.figures.is-provisional { border-style: dashed; }
.fig { padding: 16px 20px; border-right: 1px solid var(--line); }
.fig:last-child { border-right: 0; }
.fig-value { display: block; font-size: 2.4rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.fig-value small { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.fig-label { display: block; font-size: .95rem; color: var(--muted); margin-top: 2px; }
.fig-confirmed .fig-value { color: var(--link); }
.fig-notes { font-size: .92rem; color: var(--muted); margin: 0 0 24px; }
.fig-notes summary { cursor: pointer; }
.fig-notes dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 10px 0 0; max-width: 820px; }
.fig-notes dt { font-weight: 600; color: var(--ink-2); }
.fig-notes dd { margin: 0; }

/* No-cases summary */
.clear-panel { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 20px 24px; margin-bottom: 26px; border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--st-clear); }
.clear-main h2 { font-size: 1.5rem; margin: 0 0 4px; }
.clear-main p { margin: 0; color: var(--ink-2); }
.clear-stats { display: flex; gap: 28px; margin: 0; }
.clear-stats dt { font-size: .88rem; color: var(--muted); font-weight: 400; }
.clear-stats dd { font-size: 1.8rem; font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; }
.clear-stats dd small { font-size: 1rem; color: var(--muted); }

/* ---------- Panels ---------- */
.card-x { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.card-x-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.card-x-title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.card-x-sub { font-size: .92rem; color: var(--muted); margin: 2px 0 0; }
.card-x-body { padding: 14px 20px 20px; flex: 1; position: relative; }
.chart-box { min-height: 320px; }
.empty-state { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 200px; color: var(--muted); padding: 20px; }
.row.g-3 { margin-bottom: 20px; }
.table-x { --bs-table-bg: transparent; font-size: 1rem; }
.table-x th { font-size: .88rem; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-strong); padding: 10px 20px; }
.table-x td { padding: 10px 20px; border-color: var(--line); font-variant-numeric: tabular-nums; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { padding: 0 0 14px 16px; border-left: 2px solid var(--line-strong); }
.timeline-item.status-active { border-left-color: var(--st-active); }
.timeline-item.status-imported { border-left-color: var(--st-imported); }
.timeline-item.status-suspected { border-left-color: var(--st-suspected); }
.timeline-item p { margin: 0; }

/* Map */
.map-box { position: relative; width: 100%; aspect-ratio: 1 / 1.05; max-height: 560px; }
.map-box svg { width: 100%; height: 100%; display: block; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.county { fill: color-mix(in srgb, var(--muted) 13%, var(--paper)); stroke: var(--paper); stroke-width: .8; cursor: pointer; }
.county:hover, .county:focus { fill: color-mix(in srgb, var(--as-pink) 22%, var(--paper)); outline: none; }
.county.has-cases { fill: var(--fill); }
.poe { fill: var(--as-navy); stroke: var(--as-green); stroke-width: 1.6; }
[data-bs-theme="dark"] .poe { fill: var(--as-green); stroke: var(--paper); }
.case-ring { fill: none; stroke: var(--as-pink); stroke-width: 1.5; animation: ring 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map-legend { display: flex; gap: 14px; font-size: .9rem; color: var(--muted); }
.lg-swatch { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.lg-cases { background: var(--as-pink); }
.lg-poe { background: var(--as-navy); border: 2px solid var(--as-green); border-radius: 50%; }
.map-tip { position: absolute; pointer-events: none; background: var(--as-navy); color: #fff; font-size: .9rem; padding: 6px 10px; border-radius: 4px; white-space: nowrap; z-index: 5; transform: translate(-50%, calc(-100% - 12px)); }

/* Regional watch: one bordered table-like grid */
.section-block { margin: 8px 0 28px; }
.section-head { margin-bottom: 12px; }
.section-title { font-size: 1.5rem; font-weight: 600; margin: 0; }
.section-sub { color: var(--muted); margin: 2px 0 0; max-width: 700px; }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.watch-card { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.watch-card h3 { font-size: 1.15rem; margin: 0 0 2px; }
.watch-card h3 a { color: inherit; text-decoration: none; }
.watch-card h3 a:hover { color: var(--link); text-decoration: underline; }
.watch-tag { font-size: .88rem; color: var(--muted); margin: 2px 0 0; }
.watch-card dl, .land-figs { display: flex; gap: 20px; margin: 10px 0 6px; }
.watch-card dt, .land-figs dt { font-size: .85rem; color: var(--muted); font-weight: 400; }
.watch-card dd, .land-figs dd { font-size: 1.3rem; font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; }
.watch-foot { font-size: .9rem; color: var(--muted); margin: 0; }

/* Documents */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.doc-list a:hover { color: var(--link); text-decoration: underline; }
.doc-meta { font-size: .88rem; color: var(--muted); margin: 2px 0 0; }
.label-unverified { font-size: .85rem; color: var(--muted); border: 1px solid var(--line-strong); padding: 0 7px; border-radius: 3px; }

/* Guidance: a plain two-column list */
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px; margin: 0; }
.guide div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.guide div:nth-last-child(-n+2) { border-bottom: 0; }
.guide dt { font-size: 1.12rem; font-weight: 600; margin-bottom: 4px; }
.guide dd { margin: 0; color: var(--ink-2); }

/* Sources / about */
.prose { max-width: 760px; }
.prose p { color: var(--ink-2); }
.tier-list { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); max-width: 960px; }
.tier-list li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tier-list strong { font-weight: 600; display: block; }
.tier-list p { margin: 0; color: var(--ink-2); }
.tier-tag { font-size: .88rem; color: var(--muted); }
.team-block { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.team-block img { height: 56px; width: auto; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 400; }
.facts dd { margin: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 22px 32px; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.site-footer img { height: 30px; width: auto; }
.site-footer p { margin: 0; }
.footer-note { max-width: 780px; }

/* ---------- Home: the globe ---------- */
.home { background: #07090c; color: #e9ecee; }
.home .site-footer { border-color: #1d242b; color: #8f9aa3; }
.home a { color: #e58cbf; }
.stage { position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1080px; overflow: hidden; background: #07090c; isolation: isolate; }
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.globe-mount { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity 1.2s ease; cursor: grab; }
.globe-mount.ready { opacity: 1; }
.globe-mount:active { cursor: grabbing; }
.globe-placeholder { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; transition: opacity .8s; }
.globe-placeholder .orb { width: min(60vh, 70vw); aspect-ratio: 1; border-radius: 50%; background: #0d1318; border: 1px solid #1f2830; }
.globe-ready .globe-placeholder { opacity: 0; pointer-events: none; }
.stage-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(7, 9, 12, .92) 0%, rgba(7, 9, 12, .6) 34%, rgba(7, 9, 12, 0) 58%); }

.stage-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(16px, 4vw, 48px); }
.stage-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.stage-brand img { height: 40px; width: auto; }
.stage-brand span { font-size: 1.1rem; font-weight: 600; padding-left: 14px; border-left: 1px solid #39434c; color: #fff; }
.stage-nav { display: flex; align-items: center; gap: 22px; }
.stage-nav > a { color: #c8cfd5; text-decoration: none; font-size: 1.02rem; }
.stage-nav > a:hover { color: #fff; }
.stage-nav .lang-switch a { color: #8f9aa3; }
.stage-nav .lang-switch a.active { color: #fff; }

.stage-hero { position: absolute; z-index: 10; left: clamp(16px, 5vw, 72px); bottom: clamp(80px, 14vh, 150px); max-width: 520px; outline: none; }
.hero-kicker { font-size: 1.05rem; color: var(--as-green); font-weight: 500; margin: 0 0 8px; }
.hero-title { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1.05; margin: 0 0 16px; color: #fff; }
.hero-lead { color: #c3cad0; font-size: 1.15rem; margin: 0 0 18px; }
.hero-numbers { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 24px; padding: 12px 0; border-top: 1px solid #262f37; border-bottom: 1px solid #262f37; }
.hero-numbers div { display: flex; flex-direction: column; }
.hero-numbers strong { font-size: 1.7rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hero-numbers span { font-size: .92rem; color: #8f9aa3; }
.hero-hint { font-size: .92rem; color: #8f9aa3; margin: 12px 0 0; }

.intro-caption { position: absolute; z-index: 10; left: 50%; bottom: 28px; transform: translateX(-50%); color: #c3cad0; font-size: 1.05rem; text-align: center; max-width: 90vw; transition: opacity .5s; }
.intro-done .intro-caption { opacity: 0; }

.land-card { position: absolute; z-index: 12; right: clamp(16px, 4vw, 48px); bottom: clamp(24px, 8vh, 80px); width: 300px; background: #11161b; border: 1px solid #2a333c; border-radius: var(--radius); padding: 18px 20px; }
.land-kicker { font-size: .9rem; color: #8f9aa3; margin: 0; }
.land-title { color: #fff; font-size: 1.8rem; font-weight: 600; margin: 0; }
.land-status { margin: 2px 0 0; }
.land-status.status { color: #c3cad0; }
.land-figs dd { color: #fff; }
.land-card .btn-brand { width: 100%; justify-content: center; margin-top: 6px; }
.land-hint { font-size: .88rem; color: #8f9aa3; margin: 10px 0 0; }
.globe-tip { position: absolute; z-index: 15; pointer-events: none; background: #11161b; border: 1px solid #2a333c; color: #fff; padding: 8px 12px; border-radius: 4px; font-size: .95rem; transform: translate(14px, 14px); max-width: 260px; }
.globe-tip strong { display: block; font-weight: 600; }
.globe-tip span { display: block; color: #c3cad0; }
.globe-label { display: flex; align-items: center; gap: 8px; transform: translate(-6px, -50%); pointer-events: none; }
.globe-label-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--as-green); box-shadow: 0 0 0 3px rgba(23, 232, 23, .25); }
.globe-label-name { font-weight: 600; font-size: 1.1rem; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); white-space: nowrap; }
.skip-intro { position: absolute; z-index: 11; right: clamp(16px, 4vw, 48px); bottom: 26px; background: transparent; color: #8f9aa3; border: 0; font-size: .97rem; text-decoration: underline; text-underline-offset: 3px; }
.skip-intro:hover { color: #fff; }
.intro-done .skip-intro { display: none; }
.leaving .stage > :not(.starfield):not(.globe-mount) { opacity: 0; transition: opacity .4s; }

.home-section { padding: clamp(48px, 7vw, 88px) 0; background: #0a0d10; border-top: 1px solid #1d242b; }
.home .section-title { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.home .section-sub { color: #9aa4ad; }
.home h3 { color: #fff; }
.outbreak-list { list-style: none; padding: 0; margin: 24px 0 44px; border-top: 1px solid #1d242b; }
.outbreak-list li { display: grid; grid-template-columns: 1.5fr 1fr repeat(3, minmax(90px, .6fr)); gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #1d242b; }
.outbreak-list h3 { font-size: 1.25rem; margin: 0; }
.outbreak-list .meta { color: #9aa4ad; font-size: .95rem; }
.outbreak-list .n { font-size: 1.3rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.outbreak-list .n small { display: block; font-size: .82rem; font-weight: 400; color: #8f9aa3; }
.home .status { color: #c3cad0; }
.country-index { columns: 3 220px; column-gap: 32px; margin: 16px 0 40px; padding: 0; list-style: none; }
.country-index li { padding: 8px 0; border-bottom: 1px solid #1d242b; break-inside: avoid; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.country-index a { color: #fff; text-decoration: none; font-weight: 500; }
.country-index a:hover { color: var(--as-green); }
.country-index .soon { color: #6f7a83; }
.home-credit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid #1d242b; color: #9aa4ad; }
.home-credit img { height: 40px; width: auto; }
.home-credit p { margin: 0; max-width: 680px; }

/* Motion: only active outbreaks pulse */
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(7, 9, 12, .45); }
  .main-col { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .updated-note { display: none; }
  .content { padding: 20px 16px; }
  .fig { border-bottom: 1px solid var(--line); }
  .guide { grid-template-columns: 1fr; }
  .guide div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .clear-panel { grid-template-columns: 1fr; }
  .clear-stats { flex-wrap: wrap; gap: 18px; }
  .tier-list li { grid-template-columns: 1fr; gap: 4px; }
  .stage-nav > a { display: none; }
  .stage-brand span { display: none; }
  .stage-hero { left: 16px; right: 16px; bottom: auto; top: 86px; }
  .stage-shade { background: linear-gradient(180deg, rgba(7, 9, 12, .94) 0%, rgba(7, 9, 12, .6) 50%, rgba(7, 9, 12, 0) 70%, rgba(7, 9, 12, .85) 100%); }
  .land-card { left: 16px; right: 16px; width: auto; bottom: 20px; }
  .stage-hero, .intro-caption { transition: opacity .4s; }
  .landed .stage-hero { opacity: 0; pointer-events: none; }
  .skip-intro { top: 72px; bottom: auto; right: 16px; }
  .outbreak-list li { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 18px 16px; }
}
@media (max-width: 575.98px) {
  body { font-size: 16px; }
  .fig-value { font-size: 1.9rem; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-lead { font-size: 1.02rem; }
  .hero-numbers strong { font-size: 1.4rem; }
}

/* =====================================================================
   Brand energy: navy chrome, pixel motifs, colour blocks, gentle motion
   ===================================================================== */

/* Navy sidebar, like the africanscript.com header */
.sidebar { background: var(--as-navy); border-right: 0; color: #dfe6ec; }
.sidebar .brand-product { color: #fff; }
.sidebar .side-label { color: #7f93a5; }
.sidebar .side-link { color: #dfe6ec; }
.sidebar .side-link:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.sidebar .side-link.active { color: #fff; background: rgba(23, 232, 23, .08); }
.sidebar .side-soon, .sidebar .side-foot, .sidebar .side-foot a { color: #8ea2b4; }
.brand-product::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--as-green); margin-right: 8px; vertical-align: 1px; }
[data-bs-theme="dark"] .sidebar { background: #071420; }

/* Section and card titles get a small brand "pixel" */
.section-title::before, .card-x-title::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--as-pink); margin-right: 10px; vertical-align: 2px; }
.card-x-title::before { width: 8px; height: 8px; background: var(--as-green); }

/* Country header band */
.country-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 38%); gap: 24px; align-items: center; background: var(--as-navy); color: #fff; border-radius: 10px; padding: 30px 32px; margin-bottom: 20px; overflow: hidden; }
.country-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--as-green) 0 34%, var(--as-pink) 34% 100%); }
[data-bs-theme="dark"] .country-band { background: #0f2335; }
.band-title { font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 700; color: #fff; margin: 0 0 6px; line-height: 1; }
.band-kicker { display: block; font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 500; color: #17E817; margin-bottom: 6px; line-height: 1.2; }
.band-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; color: #a9b8c6; margin: 0 0 22px; }
.band-meta strong { color: #fff; font-weight: 500; }
.band-meta .status { color: #fff; }
.band-summary { color: #d5dee6; font-size: 1.1rem; margin: -6px 0 18px; max-width: 560px; }
.band-summary strong { color: #fff; }
.band-figures { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 0; }
.band-figures div { display: flex; flex-direction: column-reverse; }
.band-figures dd { font-size: clamp(2.2rem, 3.4vw, 3.1rem); font-weight: 600; color: #fff; margin: 0; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; }
.band-figures dd small { font-size: 1.1rem; color: #a9b8c6; font-weight: 500; }
.band-figures dt { font-size: .95rem; color: #a9b8c6; font-weight: 400; }
.band-figures .bf-confirmed dd { color: #f28fc6; }
.band-figures.is-provisional dd { text-decoration: underline dashed rgba(242, 182, 0, .7); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.band-reviewed { color: #8ea2b4; font-size: .9rem; margin: 18px 0 0; }
.band-art { position: relative; align-self: stretch; min-height: 230px; }
.band-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.country-band .badge-provisional { color: #f2b600; border-color: #f2b600; }

/* Watch cards: the top edge carries the status colour */
.watch-card { position: relative; transition: background-color .2s; }
.watch-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--st-clear); opacity: .55; }
.watch-card.ws-active::before { background: var(--st-active); opacity: 1; }
.watch-card.ws-imported::before { background: var(--st-imported); opacity: 1; }
.watch-card.ws-suspected::before { background: var(--st-suspected); opacity: 1; }
.watch-card.ws-monitoring::before { background: var(--st-monitoring); opacity: 1; }
.watch-card:hover { background: color-mix(in srgb, var(--as-pink) 4%, var(--paper)); }

/* Panels respond to the pointer */
.card-x { transition: border-color .2s; }
.card-x:hover { border-color: var(--line-strong); }
.doc-list li { transition: padding-left .15s; }
.doc-list li:hover { padding-left: 6px; box-shadow: inset 3px 0 0 var(--as-pink); }

/* Guidance in soft brand colour blocks */
.guide { background: transparent; border: 0; padding: 0; gap: 14px; }
.guide div { border: 0 !important; border-radius: 8px; padding: 18px 20px; }
.guide div:nth-child(1) { background: color-mix(in srgb, var(--as-pink) 9%, var(--paper)); }
.guide div:nth-child(2) { background: color-mix(in srgb, var(--as-navy) 7%, var(--paper)); }
.guide div:nth-child(3) { background: color-mix(in srgb, var(--as-green) 10%, var(--paper)); }
.guide div:nth-child(4) { background: color-mix(in srgb, var(--st-imported) 9%, var(--paper)); }
.guide dt::before { content: ""; display: inline-block; width: 9px; height: 9px; background: currentColor; margin-right: 9px; vertical-align: 2px; opacity: .8; }
[data-bs-theme="dark"] .guide div:nth-child(2) { background: color-mix(in srgb, #4b7aa3 12%, var(--paper)); }

/* Sources: the three tiers as colour-coded columns */
.tier-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border: 0; max-width: none; }
.tier-list li { display: block; border: 0; border-radius: 8px; padding: 20px; background: var(--paper); border-top: 5px solid var(--as-green); }
.tier-list li:nth-child(2) { border-top-color: var(--as-pink); }
.tier-list li:nth-child(3) { border-top-color: var(--as-navy); }
[data-bs-theme="dark"] .tier-list li:nth-child(3) { border-top-color: #8ea2b4; }
.tier-list strong { font-size: 1.2rem; margin-bottom: 6px; }
.tier-letter { float: right; font-size: 2.6rem; font-weight: 700; line-height: .9; color: color-mix(in srgb, var(--ink) 14%, transparent); }

/* Footer: navy band, like the main site */
.app .site-footer { background: var(--as-navy); color: #a9b8c6; border-top: 0; }
.app .site-footer a { color: #f28fc6; }
[data-bs-theme="dark"] .app .site-footer { background: #071420; }

/* Scroll reveal (only when JS + motion are available) */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .country-band { grid-template-columns: 1fr; padding: 24px 20px; }
  .band-art { min-height: 200px; order: -1; margin: -8px 0 -4px; }
  .tier-list { grid-template-columns: 1fr; }
}

/* Home: country tiles */
.country-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 18px 0 44px; }
.country-tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; background: #0f151b; border: 1px solid #1f2830; border-radius: 10px; text-decoration: none; color: #fff; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.country-tile:hover { transform: translateY(-3px); border-color: #3a4652; background: #121a21; color: #fff; }
.country-tile::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--as-pink); opacity: .5; }
.country-tile.ts-active::after { background: #ff4d5e; opacity: 1; }
.country-tile.ts-imported::after { background: #ff8a3d; opacity: 1; }
.country-tile.ts-monitoring::after { background: #d6c200; opacity: 1; }
.tile-mosaic { width: 100%; height: 130px; margin-bottom: 8px; }
.tile-name { font-size: 1.2rem; font-weight: 600; }
.tile-n { font-size: .92rem; color: #f28fc6; }
.home .section-title::before { background: var(--as-green); }
@media (prefers-reduced-motion: reduce) { .country-tile:hover { transform: none; } }
.home .country-tile, .home .country-tile:hover { color: #fff; }
.home .outbreak-list h3 a { color: #fff; text-decoration: none; }
.home .outbreak-list h3 a:hover { color: var(--as-green); }

/* Bottom footer: centred */
.site-footer { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; }
.site-footer p { max-width: 820px; margin: 0 auto; }

/* Footer links + cookie consent */
.footer-links { display: flex; gap: 18px; justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.app .site-footer .link-btn { color: #f28fc6; }
.consent { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2000; width: min(680px, calc(100% - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; background: var(--as-navy); color: #e6ecf1; border-radius: 10px; border-top: 4px solid var(--as-green); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.consent p { margin: 0; flex: 1; min-width: 240px; font-size: .97rem; }
.consent a { color: #f28fc6; }
.consent-actions { display: flex; gap: 10px; }
.consent .btn-line { color: #fff; border-color: #4a5a68; }
.consent .btn-line:hover { border-color: #fff; color: #fff; }
.privacy section { margin-bottom: 26px; }
.privacy-summary { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--as-green); border-radius: 0 8px 8px 0; padding: 16px 22px 8px; }
.privacy-summary ul { padding-left: 20px; }
.privacy-summary li { margin-bottom: 6px; color: var(--ink-2); }
