/* VirusWatch — clean medical/clinical aesthetic
   IBM Plex Sans + IBM Plex Mono, restrained blue accent. */

:root {
  /* Surfaces */
  --bg:        #f6f8fb;
  --bg-alt:    #ffffff;
  --bg-dark:   #0b1220;
  --bg-card:   #ffffff;
  --bg-soft:   #eef2f7;

  /* Text */
  --ink:       #0b1220;
  --ink-2:     #334155;
  --ink-3:     #64748b;
  --ink-4:     #94a3b8;

  /* Lines */
  --line:      #e5e9f0;
  --line-2:    #d6dde6;

  /* Brand + status */
  --brand:     #2563eb;
  --brand-2:   #1d4ed8;
  --brand-soft:#e8efff;
  --red:       #dc2626;
  --red-soft:  #fee2e2;
  --amber:     #d97706;
  --amber-soft:#fef3c7;
  --green:     #059669;
  --green-soft:#d1fae5;
  --violet:    #7c3aed;
  --violet-soft:#ede9fe;

  /* Type */
  --sans: 'Inter', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: 'Instrument Serif', 'Times New Roman', serif;

  /* Layout */
  --max:      1320px;
  --pad:      24px;
  --radius:   14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 0 rgba(15,23,42,.04), 0 1px 2px rgba(15,23,42,.05);
  --shadow-2: 0 10px 30px rgba(15,23,42,.08), 0 2px 8px rgba(15,23,42,.04);
}

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

html, body { height: 100%; }
body {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv02', 'cv03', 'cv04', 'cv11';
  letter-spacing: -0.005em;
}
h1, h2, h3, h4 { letter-spacing: -0.015em; }
.section-head h1, .hero h1 { letter-spacing: -0.028em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Top notice strip ── */
.notice {
  background: #0b1220;
  color: #cbd5e1;
  font-size: 12px;
  letter-spacing: .02em;
  text-align: center;
  padding: 8px 16px;
}
.notice b { color: #fff; }
.notice .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--red); margin-right: 8px; vertical-align: 1px;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .4; transform: scale(.6); }
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
  position: relative;
}
.brand-mark::before {
  content: ''; position: absolute; inset: 7px; border-radius: 999px;
  border: 1.5px solid #fff;
}
.brand-mark::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; border-radius: 999px; background: var(--red);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(220,38,38,.25);
}
.brand-name {
  font-weight: 600; letter-spacing: -.01em; font-size: 16px;
}
.brand-name .light { color: var(--ink-3); font-weight: 400; }

.nav-tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.nav-tab {
  padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-tab:hover { background: var(--bg-soft); color: var(--ink); }
.nav-tab.on { color: var(--brand); background: var(--brand-soft); font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-soft);
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line);
}
.live-pill .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--green);
  animation: pulse 1.6s infinite;
}
.nav-cta {
  font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  background: var(--ink); color: #fff;
  transition: background .15s ease;
}
.nav-cta:hover { background: #1e293b; }

.nav-burger { display: none; }

/* ── Page container ── */
.page { display: none; }
.page.on { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ── Section heading ── */
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px;
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.section-head .eyebrow {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand); margin-bottom: 10px;
}
.section-head h1 {
  font-size: 38px; font-weight: 600; letter-spacing: -.025em;
  line-height: 1.05;
}
.section-head h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--ink-2);
}
.section-head p { color: var(--ink-3); max-width: 540px; line-height: 1.5; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.card-pad { padding: 22px; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 8px; border-radius: 6px;
}
.badge.high   { background: var(--red-soft);   color: var(--red); }
.badge.medium { background: var(--amber-soft); color: var(--amber); }
.badge.low    { background: var(--green-soft); color: var(--green); }
.badge.info   { background: var(--brand-soft); color: var(--brand); }

/* ── Home: Hero ── */
.hero {
  position: relative;
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line);
  margin-bottom: 22px;
}
.hero-eyebrow .swatch { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.hero h1 {
  font-size: clamp(40px, 5vw, 68px); font-weight: 600;
  letter-spacing: -.03em; line-height: 1.02;
  margin-bottom: 22px;
}
.hero h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--brand);
}
.hero p.lede {
  font-size: 18px; color: var(--ink-2); line-height: 1.55;
  max-width: 520px; margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1e293b; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-card); border-color: var(--ink-4); }

.hero-meta {
  display: flex; gap: 28px; margin-top: 36px;
  padding-top: 24px; border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-meta .meta {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-meta .meta .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.hero-meta .meta .v {
  font-family: var(--mono); font-size: 18px; color: var(--ink); font-weight: 500;
}

/* Globe column */
.hero-globe {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}
.globe-stage {
  position: absolute; inset: 0;
  border-radius: 999px;
}
.globe-stage canvas { width: 100% !important; height: 100% !important; border-radius: 999px; }
.globe-glow {
  position: absolute; inset: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(37,99,235,.16), rgba(37,99,235,0) 60%);
  pointer-events: none; z-index: 0;
}
.globe-rings {
  position: absolute; inset: 0; pointer-events: none;
}
.globe-ring {
  position: absolute; inset: 0; border-radius: 999px;
  border: 1px dashed rgba(37,99,235,.18);
  animation: spin 60s linear infinite;
}
.globe-ring.r2 { inset: -6%; border-style: dotted; animation-duration: 90s; animation-direction: reverse; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.globe-readout {
  position: absolute; right: 0; bottom: -12px;
  display: flex; gap: 6px; align-items: center;
  font-family: var(--mono); font-size: 11px;
  background: var(--bg-card); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.globe-readout .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--red);
  animation: pulse 1.6s infinite;
}

/* Watermark grid lines in hero */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 50%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, #000 0%, transparent 65%);
  pointer-events: none;
}

/* ── Live counters row ── */
.counters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 0; position: relative; z-index: 4;
}
.counter {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-1);
}
.counter .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.counter .v {
  font-family: var(--mono); font-size: 28px; font-weight: 500;
  letter-spacing: -.02em; color: var(--ink);
}
.counter .d { font-size: 12px; color: var(--ink-3); }
.counter .d.up { color: var(--red); }
.counter .d.dn { color: var(--green); }

/* Tiny tag dot */
.tag-dot { width: 6px; height: 6px; border-radius: 999px; display: inline-block; }
.tag-dot.b { background: var(--brand); }
.tag-dot.r { background: var(--red); }
.tag-dot.g { background: var(--green); }
.tag-dot.a { background: var(--amber); }
.tag-dot.v { background: var(--violet); }

/* ── Disease grid ── */
.dz-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.dz-card {
  padding: 22px; cursor: pointer;
}
.dz-card .row1 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.dz-glyph {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.dz-glyph svg { width: 22px; height: 22px; }
.dz-card h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -.015em;
  margin-bottom: 4px;
}
.dz-card .pathogen { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.dz-card .stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.dz-card .stats .s .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--ink-3); text-transform: uppercase;
}
.dz-card .stats .s .v {
  font-family: var(--mono); font-size: 16px; color: var(--ink);
}

/* ── Country list (home preview) ── */
.country-preview {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.list {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.list h4 {
  font-size: 13px; padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
  display: flex; justify-content: space-between; align-items: center;
}
.list h4 .meta {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 400;
}
.list-row {
  display: grid; grid-template-columns: 32px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.list-row:last-child { border-bottom: 0; }
.list-row .rank {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.list-row .name { display: flex; align-items: center; gap: 10px; }
.list-row .flag { font-size: 18px; }
.list-row .v { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }

/* ── Atlas (map) ── */
.atlas {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
}
.atlas-side {
  border-right: 1px solid var(--line);
  padding: 22px 20px;
  background: #fafbfd;
}
.atlas-side h4 {
  font-size: 13px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.atlas-side h4 .meta { font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-list button {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
  text-align: left;
}
.filter-list button:hover { background: var(--bg-soft); }
.filter-list button.on { background: var(--brand-soft); color: var(--brand); }
.filter-list button .count {
  margin-left: auto; font-family: var(--mono); font-size: 11px; color: inherit; opacity: .7;
}

.atlas-main { position: relative; min-height: 580px; }
.atlas-svg { display: block; width: 100%; height: auto; background: #f1f5fb; }
.atlas-svg path.land { fill: #ffffff; stroke: #d6dde6; stroke-width: .5; }
.atlas-svg path.land:hover { fill: #f5f7fb; }
.atlas-svg .grat { stroke: #e2e8f0; stroke-width: .4; fill: none; }

.atlas-marker {
  cursor: pointer;
}
.atlas-marker .inner {
  transition: transform .15s ease;
  transform-origin: center;
  transform-box: fill-box;
}
.atlas-marker:hover .inner { transform: scale(1.18); }
.atlas-marker:hover circle.outline { stroke: var(--ink); stroke-width: 1.5; }
.atlas-marker .pulse {
  transform-origin: center; transform-box: fill-box;
  animation: ringPulse 2.4s ease-out infinite;
}
@keyframes ringPulse {
  0%   { opacity: .55; transform: scale(.8); }
  100% { opacity: 0;   transform: scale(2.6); }
}

.atlas-tooltip {
  position: absolute; pointer-events: none;
  left: 0; top: 0;
  background: #0b1220; color: #fff;
  font-size: 12px; padding: 10px 12px; border-radius: 8px;
  min-width: 180px;
  box-shadow: var(--shadow-2);
  opacity: 0; transition: opacity .15s ease;
  z-index: 10;
}
.atlas-tooltip.on { opacity: 1; }
.atlas-tooltip .t {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.6); margin-bottom: 4px;
}
.atlas-tooltip .h { font-weight: 500; margin-bottom: 6px; }
.atlas-tooltip .row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.85); }

.atlas-legend {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 11px; font-family: var(--mono);
  display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow-1);
}
.atlas-legend .item { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }

/* ── Disease modal ── */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 60px 24px;
  overflow-y: auto;
}
.modal.on { display: flex; }
.modal-card {
  background: var(--bg-card); border-radius: 16px;
  width: 100%; max-width: 860px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(11,18,32,.35);
  overflow: hidden;
}
.modal-head {
  padding: 28px 32px; border-bottom: 1px solid var(--line);
  display: flex; gap: 20px; align-items: flex-start;
}
.modal-head .dz-glyph { width: 52px; height: 52px; }
.modal-head .dz-glyph svg { width: 28px; height: 28px; }
.modal-head h2 {
  font-size: 28px; font-weight: 600; letter-spacing: -.02em;
  margin-bottom: 4px;
}
.modal-head .sub { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.modal-close {
  margin-left: auto; width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-3);
  border: 1px solid var(--line);
}
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal-body { padding: 28px 32px; display: grid; gap: 26px; }
.modal-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.modal-stats .s {
  background: #fafbfd; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px;
}
.modal-stats .s .k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.modal-stats .s .v { font-family: var(--mono); font-size: 18px; color: var(--ink); margin-top: 4px; }
.modal-section h3 {
  font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3); margin-bottom: 10px;
}
.modal-section p { color: var(--ink-2); line-height: 1.55; }
.modal-section ul { list-style: none; display: grid; gap: 8px; }
.modal-section ul li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-2); line-height: 1.5;
}
.modal-section ul li::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand); margin-top: 9px; flex-shrink: 0;
}
.modal-disclaimer {
  background: var(--red-soft); border: 1px solid #fecaca;
  border-radius: 10px; padding: 14px 16px;
  color: #7f1d1d; font-size: 13px; line-height: 1.5;
}

/* ── Countries page ── */
.table-shell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-tools {
  display: flex; gap: 12px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  background: #fafbfd;
}
.input {
  flex: 1; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.input input {
  flex: 1; border: 0; outline: 0; background: transparent;
}
.input svg { color: var(--ink-3); }
.select {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; font-size: 13px;
}
table.data {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
table.data th, table.data td {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  text-align: left;
}
table.data th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  background: #fafbfd;
  cursor: pointer; user-select: none;
}
table.data th:hover { color: var(--ink); }
table.data th .arr { font-size: 10px; margin-left: 4px; opacity: .5; }
table.data th.sorted .arr { opacity: 1; color: var(--brand); }
table.data .num { font-family: var(--mono); text-align: right; }
table.data tbody tr:hover { background: #fafbfd; }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr.clickable:hover { background: var(--brand-soft); }
table.data .flag { font-size: 18px; margin-right: 8px; vertical-align: -2px; }

.table-wrap { overflow-x: auto; }
.table-empty { padding: 40px 24px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* ── Timeline page ── */
.timeline {
  position: relative;
  padding: 12px 0;
}
.timeline::before {
  content: ''; position: absolute; left: 0; right: 0; top: 64px;
  height: 1px; background: var(--line);
}
.tl-rail {
  display: grid;
  grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 0;
  overflow-x: auto;
  padding-bottom: 12px;
  position: relative;
}
.tl-node {
  position: relative; padding: 0 18px;
  padding-top: 86px;
}
.tl-node::before {
  content: ''; position: absolute; left: 18px; top: 58px;
  width: 13px; height: 13px; border-radius: 999px;
  background: var(--bg-card); border: 2px solid var(--brand);
}
.tl-node.major::before { background: var(--red); border-color: var(--red); }
.tl-year {
  position: absolute; left: 18px; top: 14px;
  font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--ink);
  letter-spacing: -.01em;
}
.tl-name { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.tl-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-bottom: 12px; }
.tl-summary { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.tl-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 7px; border-radius: 5px;
  background: var(--brand-soft); color: var(--brand);
  margin-bottom: 8px;
}

.tl-chart-wrap {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  margin-top: 24px;
}
.tl-chart-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px; gap: 24px; flex-wrap: wrap;
}
.tl-chart-head h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tl-chart-head p { font-size: 13px; color: var(--ink-3); margin-top: 4px; max-width: 540px; }
.tl-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.tl-legend .it { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.tl-legend .it .sw { width: 12px; height: 12px; border-radius: 3px; }
.tl-chart-canvas {
  position: relative;
  height: 380px;
}

/* ── Emergency page ── */
.continent-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin-bottom: 32px;
}
.continent-card {
  padding: 20px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.continent-card .icon {
  font-size: 28px; margin-bottom: 10px;
}
.continent-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.continent-card p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.emergency-banner {
  background: var(--red); color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 28px;
}
.emergency-banner .big {
  font-family: var(--mono); font-size: 38px; font-weight: 600; line-height: 1;
}
.emergency-banner .copy { line-height: 1.5; }
.emergency-banner .copy b { display: block; margin-bottom: 4px; }

/* ── FAQ page ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease;
}
.faq-item.open { border-color: var(--ink-4); }
.faq-q {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px;
  font-size: 15px; font-weight: 500; line-height: 1.4;
  cursor: pointer;
  width: 100%; text-align: left;
}
.faq-q .n {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  margin-top: 4px; flex-shrink: 0;
}
.faq-q .ch {
  margin-left: auto; color: var(--ink-3); transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q .ch { transform: rotate(45deg); color: var(--brand); }
.faq-a {
  padding: 0 20px 20px 50px;
  color: var(--ink-2); font-size: 14px; line-height: 1.6;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ── Support page ── */
.support-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
}
.support-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.support-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 12px; }
.support-card p { color: var(--ink-2); line-height: 1.6; margin-bottom: 14px; }
.bmc {
  background: #ffdd00; color: #0b1220;
  border-radius: 10px;
  padding: 14px 20px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .12s ease, box-shadow .15s ease;
}
.bmc:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255,221,0,.32); }
.bmc .cup { font-size: 18px; }
.sources-list {
  display: grid; gap: 10px;
}
.source {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: #fafbfd; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px;
}
.source .label { color: var(--ink-3); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.source .name { font-weight: 500; }

/* ── Footer ── */
.foot {
  margin-top: 96px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 13px; color: var(--ink-3);
}
.foot .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h5 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot a:hover { color: var(--ink); }
.foot .legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── AI chat widget ── */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(11,18,32,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.chat-fab:hover { transform: scale(1.05); box-shadow: 0 14px 36px rgba(11,18,32,.32); }
.chat-fab .pulse-ring {
  position: absolute; inset: -4px; border-radius: 999px;
  border: 2px solid rgba(37,99,235,.45);
  animation: ringPulse 2.4s ease-out infinite;
}

.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 64px);
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(11,18,32,.32);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.on { display: flex; }
.chat-head {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  background: #fafbfd;
}
.chat-head .av {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 14px;
}
.chat-head .t .name { font-weight: 600; font-size: 14px; }
.chat-head .t .role { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.chat-head .x { margin-left: auto; color: var(--ink-3); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.chat-head .x:hover { background: var(--bg-soft); color: var(--ink); }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #fafbfd; }
.bubble {
  max-width: 84%; padding: 10px 14px;
  border-radius: 14px; font-size: 14px; line-height: 1.5;
}
.bubble.bot {
  background: var(--bg-card); border: 1px solid var(--line);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.bubble.me {
  background: var(--brand); color: #fff;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.bubble.warn {
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12;
  align-self: stretch; max-width: 100%;
}
.bubble.danger {
  background: var(--red); color: #fff;
  align-self: stretch; max-width: 100%;
  font-weight: 500;
}
.bubble .small { display: block; font-size: 11px; opacity: .8; margin-top: 6px; }
.chat-suggest { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-suggest button {
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--ink-2);
}
.chat-suggest button:hover { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

.chat-input {
  border-top: 1px solid var(--line);
  padding: 10px;
  display: flex; gap: 8px; background: var(--bg-card);
}
.chat-input textarea {
  flex: 1; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; resize: none; height: 40px; max-height: 100px;
  outline: none;
}
.chat-input textarea:focus { border-color: var(--brand); }
.chat-input button.send {
  background: var(--ink); color: #fff;
  width: 40px; border-radius: 10px;
  display: grid; place-items: center;
}
.chat-input button.send:disabled { opacity: .45; cursor: not-allowed; }

.typing { display: inline-flex; gap: 3px; align-items: center; }
.typing span {
  width: 6px; height: 6px; border-radius: 999px; background: var(--ink-4);
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
  0%,80%,100% { opacity: .25; transform: scale(.8); }
  40%         { opacity: 1;   transform: scale(1); }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-globe { max-width: 460px; margin: 0 auto; }
  .counters { grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
  .dz-grid { grid-template-columns: repeat(2, 1fr); }
  .continent-grid { grid-template-columns: repeat(2, 1fr); }
  .country-preview { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .foot .grid { grid-template-columns: 1fr 1fr; }
  .atlas { grid-template-columns: 1fr; }
  .atlas-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .filter-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
}
@media (max-width: 760px) {
  .nav-tabs { display: none; }
  .nav-burger { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
  .nav-burger:hover { background: var(--bg-soft); }
  .nav-tabs.mobile-open {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--bg-card);
    padding: 8px 14px 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
  .nav-tabs.mobile-open .nav-tab { padding: 12px; border-radius: 8px; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 42px; }
  .counters { grid-template-columns: 1fr 1fr; }
  .dz-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-card { border-radius: 0; min-height: 100vh; }
  .modal-stats { grid-template-columns: 1fr 1fr; }
  .continent-grid { grid-template-columns: 1fr; }
  .foot .grid { grid-template-columns: 1fr; }
  .chat-panel { right: 12px; bottom: 12px; left: 12px; width: auto; height: calc(100vh - 80px); }
}

/* ── Atlas: info button, sidebar actions, near-you panel, alerts ── */
.atlas-side-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.atlas-info-btn {
  width: 26px; height: 26px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--ink-3);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: color .12s ease, border-color .12s ease;
}
.atlas-info-btn:hover { color: var(--brand); border-color: var(--brand); }
.atlas-side-actions {
  display: grid; gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.atlas-side-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.atlas-side-btn:hover { transform: translateY(-1px); }
.atlas-side-btn.near:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.atlas-side-btn.alerts {
  background: var(--red); color: #fff; border-color: var(--red);
}
.atlas-side-btn.alerts:hover { background: #b91c1c; border-color: #b91c1c; }

/* Outbreaks-near-you slide-up panel — uses max-height + transform together
   for a reliable click handler (we had a pointer-events issue before). */
.atlas-near {
  position: absolute; left: 16px; right: 16px; bottom: 0;
  z-index: 12;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 30px rgba(11,18,32,.12);
  max-height: 60px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: max-height .35s cubic-bezier(.22,.61,.36,1);
}
.atlas-near.open { max-height: calc(100% - 32px); }
.atlas-near-handle {
  position: relative;
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 12px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.atlas-near-handle:hover { background: var(--bg-soft); }
.atlas-near-handle .grip {
  width: 36px; height: 4px; border-radius: 999px;
  background: var(--line-2);
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.atlas-near-handle-text { flex: 1; pointer-events: none; }
.atlas-near-handle-text b { display: block; font-size: 14px; color: var(--ink); }
.atlas-near-handle-text span { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.atlas-near-handle .chev { color: var(--ink-3); transition: transform .25s ease; pointer-events: none; }
.atlas-near.open .atlas-near-handle .chev { transform: rotate(180deg); }
.atlas-near-body {
  padding: 4px 20px 20px;
  overflow-y: auto;
  flex: 1;
}
.atlas-near-empty p { color: var(--ink-2); line-height: 1.55; font-size: 14px; margin-bottom: 12px; }
.near-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.near-actions input {
  flex: 1; min-width: 180px;
  padding: 10px 12px;
  background: #fafbfd;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; color: var(--ink);
}
.near-actions input:focus { border-color: var(--brand); outline: 0; }
.near-or { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.near-results { display: grid; gap: 8px; margin-top: 8px; }
.near-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fafbfd;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.near-row:hover { border-color: var(--brand); background: var(--brand-soft); }
.near-row .swatch { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.near-row .name { font-weight: 600; }
.near-row .dist {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.near-meta {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  margin-bottom: 10px; letter-spacing: .04em;
}

/* Disease categories grid in info modal */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cat-glyph {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: #fff;
}
.cat-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cat-card p { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.cat-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.cat-tags span {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 6px; border-radius: 5px;
  background: var(--brand-soft); color: var(--brand);
}
@media (max-width: 760px) {
  .cat-grid { grid-template-columns: 1fr; }
}
.atlas-zoom {
  position: absolute; right: 16px; top: 16px;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  z-index: 4;
}
.atlas-zoom button {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.atlas-zoom button:last-child { border-bottom: 0; }
.atlas-zoom button:hover { background: var(--bg-soft); color: var(--ink); }
.atlas-zoom .zoom-level {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-3);
  height: 24px; display: grid; place-items: center;
  background: #fafbfd; border-top: 1px solid var(--line);
}
.atlas-svg-wrap {
  width: 100%; height: 100%;
  cursor: grab;
}
.atlas-svg-wrap:active { cursor: grabbing; }

/* ── Hero hotspot legend ── */
.globe-explainer {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
  box-shadow: var(--shadow-1);
}
.globe-explainer .what {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(220,38,38,.12);
  display: grid; place-items: center;
  position: relative;
}
.globe-explainer .what::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(220,38,38,.35);
  animation: ringPulse 2.4s ease-out infinite;
}
.globe-explainer .what .core { width: 10px; height: 10px; border-radius: 999px; background: var(--red); }
.globe-explainer .copy { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.globe-explainer .copy b { color: var(--ink); }

.hotspot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.hotspot-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
  font-size: 13px;
}
.hotspot-item .pin {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--red); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(220,38,38,.18);
}
.hotspot-item .name { font-weight: 500; }
.hotspot-item .what { font-size: 11px; color: var(--ink-3); font-family: var(--mono); margin-left: auto; }

/* ── Page-level medical disclaimer (every section) ── */
.page-disclaimer {
  margin: 32px 0 0;
  padding: 14px 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; color: #7c2d12;
  line-height: 1.55;
}
.page-disclaimer svg { color: #c2410c; flex-shrink: 0; margin-top: 1px; }
.page-disclaimer b { color: #7c2d12; }

/* ── Disease History timeline (in modal) ── */
.history-row {
  display: grid; grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.history-row:last-child { border-bottom: 0; }
.history-row .when {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink); font-weight: 500;
  min-width: 120px;
}
.history-row .what { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.history-fact {
  display: grid; gap: 4px;
  padding: 14px 16px;
  background: #fafbfd; border: 1px solid var(--line);
  border-radius: 10px;
}
.history-fact .k { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.history-fact .v { font-size: 14px; color: var(--ink); line-height: 1.5; }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.modal-sources {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  line-height: 1.55;
  padding-top: 14px; border-top: 1px solid var(--line);
  margin-top: 6px;
}

/* ── Country detail modal extras ── */
.country-modal-head {
  padding: 26px 32px;
  background: linear-gradient(180deg, #fafbfd 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--line);
  display: flex; gap: 18px; align-items: center;
}
.country-modal-head .flag-big { font-size: 56px; line-height: 1; }
.country-modal-head h2 { font-size: 32px; font-weight: 600; letter-spacing: -.025em; }
.country-modal-head .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.country-disease-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.country-disease-row:hover { border-color: var(--brand); background: var(--brand-soft); }
.country-disease-row .nm { font-weight: 500; }
.country-disease-row .meta { font-size: 12px; color: var(--ink-3); margin-left: auto; font-family: var(--mono); }
.country-disease-row .swatch { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.country-diseases { display: grid; gap: 8px; }

/* ── Vaccine status card (in disease modal) ── */
.vax-card {
  border-radius: 12px;
  padding: 18px 20px;
  display: grid; gap: 14px;
}
.vax-status { display: flex; align-items: flex-start; gap: 12px; }
.vax-dot {
  width: 10px; height: 10px; border-radius: 999px;
  margin-top: 6px; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0,0,0,.03);
}
.vax-label { font-weight: 600; font-size: 16px; letter-spacing: -.005em; }
.vax-detail { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.vax-note {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
  padding: 12px 14px;
  background: rgba(255,255,255,.55);
  border: 1px dashed rgba(15,23,42,.12);
  border-radius: 10px;
}
.vax-note b { color: var(--ink); }
.vax-cta { align-self: flex-start; font-size: 13px; }

/* ── Disease cases chart (in disease modal) ── */
.dz-chart-wrap {
  position: relative;
  height: 240px;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px 8px;
}
.dz-chart-caption {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); line-height: 1.55;
  margin-top: 10px; letter-spacing: .02em;
}

/* ── Abbreviations ── */
abbr.vw-abbr, .vw-abbr {
  border-bottom: 1px dotted var(--ink-4);
  cursor: help;
  text-decoration: none;
}
abbr.vw-abbr:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ── Glossary block (in disease modal + on FAQ page) ── */
.glossary-block { display: grid; gap: 18px; }
.glossary-cat-name {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3); margin-bottom: 10px;
}
.glossary-list { display: grid; gap: 8px; }
.glossary-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 10px 14px;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
}
.glossary-row dt {
  font-family: var(--mono); font-weight: 500;
  color: var(--ink); align-self: start;
}
.glossary-row dd { color: var(--ink-2); line-height: 1.5; }

.glossary-page {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.glossary-page h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -.015em;
  margin-bottom: 14px;
}
.glossary-page > p { color: var(--ink-3); margin-bottom: 20px; }

@media (max-width: 760px) {
  .glossary-row { grid-template-columns: 1fr; gap: 4px; padding: 12px; }
}

/* ── WHO news panel ── */
.who-news {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr;
}
.who-news-side {
  background: var(--ink); color: #fff;
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
  align-self: start;
  min-height: 100%;
}
.who-news-side::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 0% 100%, rgba(37,99,235,.22), transparent 60%);
  pointer-events: none;
}
.who-news-side .eyebrow {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.55);
}
.who-news-side h2 {
  font-size: 26px; font-weight: 600; letter-spacing: -.02em;
  line-height: 1.2;
}
.who-news-side h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: #94c3ff;
}
.who-news-side p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.6; }
.who-news-side .meta {
  margin-top: auto; font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
}
.who-news-list { padding: 8px; overflow: hidden; }
.news-item {
  display: block; padding: 14px 16px; border-radius: 10px;
  border-bottom: 1px solid var(--line);
  transition: background .12s ease;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: var(--bg-soft); }
.news-date { font-family: var(--mono); font-size: 11px; color: var(--brand); letter-spacing: .06em; }
.news-title { font-weight: 500; font-size: 14.5px; line-height: 1.4; margin-top: 4px; }
.news-summary { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-top: 6px; }
.news-skeleton { padding: 8px; display: grid; gap: 14px; }
.news-skel-row {
  height: 64px; border-radius: 10px;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.news-empty { padding: 24px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

@media (max-width: 1100px) {
  .who-news { grid-template-columns: 1fr; }
}

/* ── Language picker ── */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: border-color .12s ease, color .12s ease;
}
.lang-btn:hover { color: var(--ink); border-color: var(--ink-4); }
.lang-btn svg { color: var(--ink-3); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 220px;
  max-height: 60vh; overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  padding: 6px;
  display: none;
  z-index: 60;
}
.lang-menu.on { display: block; }
.lang-menu button {
  display: flex; align-items: baseline; gap: 10px;
  width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
}
.lang-menu button:hover { background: var(--bg-soft); }
.lang-menu button.on { background: var(--brand-soft); color: var(--brand); }
.lang-menu button .lang-meta {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em;
}

/* RTL support */
body.rtl { direction: rtl; }
body.rtl .nav-tabs { flex-direction: row-reverse; }
body.rtl .chat-fab, body.rtl .chat-panel { right: auto; left: 22px; }
body.rtl .atlas-zoom { right: auto; left: 16px; }
body.rtl .lang-menu { right: auto; left: 0; }

/* ── Defensive overflow guards (prevent horizontal scroll on tighter viewports) ── */
html, body { overflow-x: hidden; }
.nav-inner { min-width: 0; }
.brand-name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.nav-tabs { min-width: 0; }
@media (max-width: 1180px) {
  .brand-name .light { display: none; }
  .nav-inner { gap: 16px; }
  .nav-tab { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 980px) {
  .live-pill { display: none; }
  .lang-btn { padding: 7px 9px; }
}

/* ── Chat footer disclaimer (always visible) ── */
.chat-foot {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #fff7ed;
  color: #7c2d12;
  font-size: 11.5px; line-height: 1.45;
}
.chat-foot svg { color: #c2410c; flex-shrink: 0; margin-top: 1px; }

/* ── Clinic results in chat ── */
.bubble.clinic-results {
  max-width: 100%; align-self: stretch;
  background: transparent; border: 0; padding: 0;
}
.clinic-list { display: grid; gap: 10px; }
.clinic-list-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .04em;
  padding: 4px 4px 0;
}
.clinic-list-meta b { color: var(--ink-2); }
.clinic-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid; gap: 4px;
  font-size: 13px;
}
.clinic-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.clinic-type {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 7px; border-radius: 5px;
}
.clinic-tag.em {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--red); background: var(--red-soft);
  padding: 3px 7px; border-radius: 5px;
}
.clinic-dist {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.clinic-name {
  font-weight: 600; font-size: 14.5px;
  margin-bottom: 4px; color: var(--ink);
}
.clinic-line {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12.5px; color: var(--ink-2);
  line-height: 1.45;
}
.clinic-line svg { color: var(--ink-3); margin-top: 3px; flex-shrink: 0; }
.clinic-line a { color: var(--brand); }
.clinic-line a:hover { text-decoration: underline; }
.clinic-map {
  font-family: var(--mono); font-size: 11px; color: var(--brand);
  margin-top: 2px;
}
.clinic-empty {
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 10px; padding: 12px 14px;
  font-size: 13px; color: #7c2d12; line-height: 1.5;
}

/* ── Globe tooltip (hover reveals what's tracked at each glow) ── */
.globe-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  background: #0b1220;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  min-width: 180px;
  max-width: 260px;
  box-shadow: 0 16px 40px rgba(11,18,32,.45);
  opacity: 0;
  transform: translate(12px, 12px);
  transition: opacity .12s ease;
  font-size: 12.5px;
  line-height: 1.45;
}
.globe-tooltip.on { opacity: 1; }
.g-tip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.g-tip-pin { width: 8px; height: 8px; border-radius: 999px; background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.25); }
.g-tip-name { font-weight: 600; font-size: 13.5px; }
.g-tip-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.g-tip-tag { font-family: var(--mono); font-size: 10px; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; }
.g-tip-row { color: rgba(255,255,255,.85); font-family: var(--mono); font-size: 11.5px; }
.g-tip-row b { color: #fff; }
.g-tip-cta {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--mono); font-size: 10.5px;
  color: #94c3ff; letter-spacing: .06em;
}
.globe-stage { cursor: grab; }
.globe-stage:active { cursor: grabbing; }

/* Make list rows clickable (home countries preview) */
.list-row.clickable {
  width: 100%; text-align: left;
  background: transparent; border: 0;
  cursor: pointer;
  transition: background .12s ease;
}
.list-row.clickable:hover { background: var(--brand-soft); }
.list-row.clickable:hover .name { color: var(--brand); }

/* ── Community discussion ── */
.community-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.community-thread {
  display: grid; gap: 12px;
  padding: 24px;
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  max-height: 420px; overflow-y: auto;
}
.comm-empty {
  text-align: center;
  padding: 32px 24px;
  color: var(--ink-3);
  font-size: 14px; line-height: 1.55;
}
.comm-empty b { color: var(--ink); display: block; margin-bottom: 6px; }
.comm-post {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.comm-post-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 6px;
}
.comm-name {
  font-weight: 600; color: var(--ink);
  font-size: 13.5px;
}
.comm-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .04em;
}
.comm-body {
  font-size: 14px; color: var(--ink-2);
  line-height: 1.55;
}
.community-form { padding: 20px 24px 22px; display: grid; gap: 12px; }
.community-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.community-form input,
.community-form textarea {
  width: 100%;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  resize: vertical;
}
.community-form input:focus,
.community-form textarea:focus { border-color: var(--brand); outline: 0; background: var(--bg-card); }
.community-form textarea { min-height: 110px; }
.community-form-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.community-counter {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .04em;
}
.community-clear {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.community-clear:hover { color: var(--red); border-color: var(--red); }
.community-note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  font-size: 12.5px; line-height: 1.55;
  color: #7c2d12;
}
.community-note b { color: #7c2d12; }
.community-note svg { color: #c2410c; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 760px) {
  .community-form-row { grid-template-columns: 1fr; }
  .community-form-foot { flex-direction: column; align-items: stretch; }
  .community-clear { margin-left: 0; }
}

/* ── Flag badge (OS-agnostic — works on Windows where emoji flags don't render) ── */
.flag-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 20px;
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: .04em;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(15,23,42,.08);
  vertical-align: -3px;
}
table.data .flag-badge { vertical-align: -5px; }
.country-modal-head .flag-big .flag-badge {
  width: 64px; height: 44px;
  font-size: 18px; font-weight: 600;
  border-radius: 8px;
  margin-right: 0;
}
.lookup-field select { font-variant-numeric: tabular-nums; }

/* ── Highlighted-search block (country modal when you searched for a specific disease) ── */
.highlighted-search {
  border: 2px solid;
  border-radius: 12px;
  overflow: hidden;
}
.highlighted-search-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.highlighted-search-head .swatch {
  width: 12px; height: 12px; border-radius: 4px;
}
.highlighted-search .country-disease-row {
  border-radius: 0;
  border-left: 0; border-right: 0; border-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}
.highlighted-search .country-disease-row:last-child { border-bottom: 0; }
.country-disease-row.is-highlighted {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.highlighted-empty {
  padding: 14px 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  font-size: 13.5px; color: #7c2d12; line-height: 1.55;
}
.highlighted-empty b { color: #7c2d12; display: block; margin-bottom: 4px; }
.bubble.outbreak-results {
  max-width: 100%; align-self: stretch;
  background: transparent; border: 0; padding: 0;
}
.outbreak-report {
  display: grid; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.outbreak-head { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.outbreak-section { display: grid; gap: 6px; }
.outbreak-h {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3);
}
.outbreak-row {
  padding: 8px 10px;
  background: #fafbfd; border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px; color: var(--ink-2); line-height: 1.45;
}
.outbreak-row b { color: var(--ink); }
.outbreak-link { display: block; color: inherit; }
.outbreak-link:hover { border-color: var(--brand); background: var(--brand-soft); }
.outbreak-empty {
  padding: 10px 12px;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12; font-size: 13px; line-height: 1.5;
}
.outbreak-empty b { color: #7c2d12; }

/* ── News: filter chips, grid, source badges, hotspot click ── */
.news-controls {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.news-filters button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.news-filters button:hover { border-color: var(--ink-4); color: var(--ink); }
.news-filters button.on { border-color: var(--ink); color: var(--ink); background: #fafbfd; font-weight: 500; }
.news-filters button[disabled] { opacity: .4; cursor: not-allowed; }
.news-filters button .dot { width: 8px; height: 8px; border-radius: 999px; }
.news-filters button .num { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.news-meta {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .04em;
}

.news-source {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--src-color, var(--ink));
  padding: 3px 7px; border-radius: 5px;
  background: color-mix(in srgb, var(--src-color, #000) 10%, white);
  border: 1px solid color-mix(in srgb, var(--src-color, #000) 25%, white);
}
.news-meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; }
.news-date { color: var(--ink-3); letter-spacing: .04em; }

/* Compact text-only item — used inside chat outbreak reports & similar */
.news-item.news-compact {
  display: block; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: background .12s ease, border-color .12s ease;
}
.news-item.news-compact:hover { border-color: var(--ink-4); background: var(--bg-soft); }
.news-item.news-compact .news-title { font-weight: 500; font-size: 14px; line-height: 1.4; margin-top: 4px; color: var(--ink); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 18px;
}

/* ── News cards with images ── */
.news-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: inherit;
}
.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-4);
  box-shadow: var(--shadow-2);
}
.news-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  overflow: hidden;
}
.news-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .5s ease;
}
.news-card:hover .news-image img { transform: scale(1.04); }
.news-card.is-fallback .news-image,
.news-image.failed { background: #0b1220; }
.news-image-overlay {
  position: absolute; left: 12px; top: 12px; right: 12px;
  display: flex; align-items: center; gap: 8px;
}
.news-image-overlay .news-source {
  background: rgba(255,255,255,.94);
  color: var(--src-color, var(--ink)) !important;
  border-color: transparent !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 600;
}
.news-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.news-card .news-meta { margin-bottom: 0 !important; }
.news-card .news-title { font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.news-card .news-summary { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

/* Featured card on home: full-width, larger title */
.news-card.is-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.news-card.is-featured .news-image {
  flex: 0 0 56%;
  aspect-ratio: auto;
  min-height: 280px;
}
.news-card.is-featured .news-body {
  flex: 1;
  padding: 28px 28px 28px 28px;
  justify-content: center;
}
.news-card.is-featured .news-title { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.news-card.is-featured .news-summary { font-size: 14.5px; color: var(--ink-2); }

/* Home news layout — featured on top, grid below */
.home-news-layout { display: grid; gap: 14px; padding: 12px; }
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  .news-card.is-featured { flex-direction: column; }
  .news-card.is-featured .news-image { flex: 0 0 auto; aspect-ratio: 16/9; min-height: 0; }
  .news-card.is-featured .news-body { padding: 16px 18px 18px; }
  .news-card.is-featured .news-title { font-size: 18px; }
  .home-news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ── News pager (1, 2, 3 …) ── */
.news-pager {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin: 28px 0 12px;
}
.pager-btn {
  min-width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.pager-btn:hover:not(.is-disabled) { border-color: var(--ink-4); color: var(--ink); }
.pager-btn.on {
  background: var(--ink); border-color: var(--ink);
  color: #fff; font-weight: 600;
}
.pager-btn.is-disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.pager-ellipsis {
  font-family: var(--mono); font-size: 13px; color: var(--ink-3);
  padding: 0 6px;
}

/* Keep the old text-only news-item style for the chat outbreak report (it still uses .news-item) */

/* ── Country+disease lookup widget ── */
.lookup-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  display: grid; gap: 14px;
}
.lookup-head .eyebrow {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand); margin-bottom: 6px;
}
.lookup-title {
  font-size: 19px; font-weight: 600; letter-spacing: -.015em;
}
.lookup-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.lookup-field {
  display: grid; gap: 4px;
}
.lookup-field span {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3);
}
.lookup-field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
}
.lookup-field select:focus { border-color: var(--brand); outline: 0; }
.lookup-hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 760px) {
  .lookup-controls { grid-template-columns: 1fr; }
}

/* ── Sources mini list (in the home news side panel) ── */
.sources-mini {
  list-style: none; display: grid; gap: 8px;
  margin-top: 8px;
}
.sources-mini li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.4;
}
.sources-mini li .dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.sources-mini li b { font-weight: 500; color: #fff; }

/* News side panel — fill the empty space below the sources list */
.side-divider {
  height: 1px; background: rgba(255,255,255,.12);
  margin: 20px 0 4px;
}
.side-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.side-pillars .pillar {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 12px;
}
.side-pillars .pillar-k {
  font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.55);
}
.side-pillars .pillar-v {
  font-size: 13.5px; color: #fff;
  margin-top: 4px; font-weight: 500;
}
.side-footer {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 18px; padding: 12px 14px;
  background: rgba(255,255,255,.05);
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 10px;
  font-size: 12.5px; line-height: 1.5;
  color: rgba(255,255,255,.75);
}
.side-footer svg { color: rgba(255,255,255,.55); flex-shrink: 0; margin-top: 1px; }
.who-news-side .side-pulse-wrap {
  margin-top: 8px; flex: 1;
  display: flex; flex-direction: column;
  position: relative;
  min-height: 320px;
  justify-content: flex-end;
}
.who-news-side .side-pulse-bars { min-height: 160px; }

/* Animated virus + medical cross watermark inside the activity card */
.side-virus {
  position: absolute;
  right: 14px; top: 18px;
  width: 88px; height: 88px;
  opacity: 0.85;
  pointer-events: none;
}
.side-virus .virus-spin {
  transform-origin: 100px 100px;
  animation: virusSpin 22s linear infinite;
}
.side-virus .virus-cross {
  transform-origin: center;
  animation: crossPulse 2s ease-in-out infinite;
}
@keyframes virusSpin { to { transform: rotate(360deg); } }
@keyframes crossPulse {
  0%, 100% { transform: translate(100px, 100px) scale(1); opacity: .85; }
  50%      { transform: translate(100px, 100px) scale(1.18); opacity: 1; }
}

/* Animated pulse strip inside the dark news panel — visual life for the
   empty space the user flagged. */
.side-pulse-wrap {
  margin-top: 18px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.side-pulse-explain {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}
.side-pulse-explain b { color: #fff; }
.side-pulse-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.side-pulse-label .live-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.2);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .35; transform: scale(.6); }
}
.side-pulse-bars {
  display: flex; align-items: flex-end; gap: 5px;
  height: 200px;
  min-height: 180px;
}
.side-pulse-bars span {
  flex: 1 1 auto;
  background-color: rgba(255,255,255,.42);
  background-image: linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.18) 100%);
  border-radius: 3px;
  animation: barRise 2.4s ease-in-out infinite;
  transform-origin: bottom;
  display: block;
  width: 14px;
}
.side-pulse-bars span:nth-child(1)  { animation-delay: 0s;    height: 60px; }
.side-pulse-bars span:nth-child(2)  { animation-delay: .15s;  height: 80px; }
.side-pulse-bars span:nth-child(3)  { animation-delay: .3s;   height: 120px; }
.side-pulse-bars span:nth-child(4)  { animation-delay: .45s;  height: 100px; }
.side-pulse-bars span:nth-child(5)  { animation-delay: .6s;   height: 150px; }
.side-pulse-bars span:nth-child(6)  { animation-delay: .75s;  height: 70px; }
.side-pulse-bars span:nth-child(7)  { animation-delay: .9s;   height: 130px; }
.side-pulse-bars span:nth-child(8)  { animation-delay: 1.05s; height: 90px; }
.side-pulse-bars span:nth-child(9)  { animation-delay: 1.2s;  height: 170px; }
.side-pulse-bars span:nth-child(10) { animation-delay: 1.35s; height: 110px; }
.side-pulse-bars span:nth-child(11) { animation-delay: 1.5s;  height: 65px; }
.side-pulse-bars span:nth-child(12) { animation-delay: 1.65s; height: 130px; }
.side-pulse-bars span {
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.08));
  border-radius: 2px;
  animation: barRise 2.4s ease-in-out infinite;
  transform-origin: bottom;
}
.side-pulse-bars span:nth-child(1)  { animation-delay: 0s;    height: 35%; }
.side-pulse-bars span:nth-child(2)  { animation-delay: .15s;  height: 50%; }
.side-pulse-bars span:nth-child(3)  { animation-delay: .3s;   height: 70%; }
.side-pulse-bars span:nth-child(4)  { animation-delay: .45s;  height: 60%; }
.side-pulse-bars span:nth-child(5)  { animation-delay: .6s;   height: 85%; }
.side-pulse-bars span:nth-child(6)  { animation-delay: .75s;  height: 45%; }
.side-pulse-bars span:nth-child(7)  { animation-delay: .9s;   height: 75%; }
.side-pulse-bars span:nth-child(8)  { animation-delay: 1.05s; height: 55%; }
.side-pulse-bars span:nth-child(9)  { animation-delay: 1.2s;  height: 90%; }
.side-pulse-bars span:nth-child(10) { animation-delay: 1.35s; height: 65%; }
.side-pulse-bars span:nth-child(11) { animation-delay: 1.5s;  height: 40%; }
.side-pulse-bars span:nth-child(12) { animation-delay: 1.65s; height: 70%; }
@keyframes barRise {
  0%, 100% { transform: scaleY(.85); opacity: .7; }
  50%      { transform: scaleY(1.15); opacity: 1; }
}
.side-pulse-meta {
  margin-top: 10px;
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between;
}
.side-pulse-meta b { color: #fff; }

/* Feedback kind tag */
.comm-kind {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 7px; border-radius: 5px;
}

/* Hotspot item is now a button (clickable) */
.hotspot-item {
  cursor: pointer;
  text-align: left; width: 100%;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.hotspot-item:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}
