/* ============================================================
   ATLAS GUIDE | VACCINE PAGES v6 | /css/vaccine-v6.css
   ------------------------------------------------------------
   One stylesheet for the vaccine hub, region pages and country
   pages. Load after global.css and header-footer.css.
   Prefix: vx-   Behaviour: /js/vaccine.js
   Same design language as the compare pages (parchment, deep
   green, gold, Playfair + DM Sans). Status colours encode
   medical requirement levels and stay consistent everywhere:
   required = red, recommended = amber, routine = green,
   not a vaccine (e.g. malaria tablets) = slate.
   ============================================================ */

:root {
  --vx-ink: var(--ag-ink, #2a2420);
  --vx-ink-2: #3a332d;
  --vx-muted: var(--ag-ink-mid, #5c5248);
  --vx-forest: var(--ag-green-600, #2e6b4a);
  --vx-deep: var(--ag-green-800, #1a3a2b);
  --vx-darkest: var(--ag-green-900, #0d2118);
  --vx-gold: var(--ag-gold-500, #c9a85c);
  --vx-gold-soft: var(--ag-gold-400, #d9bc80);
  --vx-gold-ink: var(--ag-gold-700, #8a6020);
  --vx-parchment: var(--ag-parchment, #f5f0e8);
  --vx-paper: #fffdf8;
  --vx-cream: #fbf6ea;
  --vx-line: rgba(26, 58, 43, 0.11);
  --vx-line-2: rgba(26, 58, 43, 0.2);

  /* requirement levels */
  --vx-req: #a8352a;      --vx-req-bg: #fbe7e3;
  --vx-rec: #8a5a12;      --vx-rec-bg: #fbf0d8;
  --vx-rout: #23603f;     --vx-rout-bg: #e2efe6;
  --vx-info: #3f5263;     --vx-info-bg: #e6ebef;

  --vx-shadow: 0 1px 2px rgba(26, 36, 32, 0.04), 0 10px 28px -16px rgba(26, 36, 32, 0.22);
  --vx-shadow-lift: 0 2px 4px rgba(26, 36, 32, 0.05), 0 22px 44px -24px rgba(13, 33, 24, 0.42);
  --vx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --vx-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --vx-header: 68px;
  --vx-display: var(--font-display, 'Playfair Display', Georgia, 'Times New Roman', serif);
  --vx-body: var(--font-body, 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ============================================================
   1 | BASE
   ============================================================ */
.vx-page {
  margin: 0;
  font-family: var(--vx-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--vx-ink);
  background: var(--vx-parchment);
  -webkit-font-smoothing: antialiased;
}
.vx-page *, .vx-page *::before, .vx-page *::after { box-sizing: border-box; }
.vx-page img { max-width: 100%; height: auto; }
.vx-page main { overflow-x: hidden; overflow-x: clip; }
.vx-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.vx-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.vx-section { padding-block: clamp(56px, 8vw, 88px); scroll-margin-top: calc(var(--vx-header) + 16px); }
.vx-section--paper { background: var(--vx-cream); border-block: 1px solid var(--vx-line); }
.vx-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 8px;
  font-family: var(--vx-display); font-style: italic; font-size: 1rem; color: var(--vx-gold-ink);
}
.vx-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--vx-gold); }
.vx-h2 {
  margin: 0; max-width: 24ch;
  font-family: var(--vx-display); font-size: clamp(1.8rem, 1.15rem + 2.3vw, 2.55rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; color: var(--vx-deep); text-wrap: balance;
}
.vx-lead { margin: 14px 0 0; max-width: 64ch; font-size: 1.08rem; line-height: 1.72; color: var(--vx-ink-2); }
.vx-head { margin-bottom: 30px; }
.vx-head--center { text-align: center; }
.vx-head--center .vx-h2, .vx-head--center .vx-lead { margin-inline: auto; }

.vx-prose a, .vx-lead a, .vx-faq-body a, .vx-note a {
  color: var(--vx-forest); font-weight: 600; text-decoration: underline;
  text-decoration-color: rgba(46, 107, 74, 0.35); text-underline-offset: 3px;
}
.vx-prose a:hover, .vx-lead a:hover, .vx-faq-body a:hover, .vx-note a:hover { text-decoration-color: var(--vx-gold); }

/* buttons */
.vx-btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 11px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--vx-body); font-size: 0.92rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--vx-ease), box-shadow 0.25s, background-color 0.25s, color 0.25s, border-color 0.25s;
}
.vx-btn:active { transform: scale(0.97); }
.vx-btn:focus-visible { outline: 2px solid var(--vx-gold); outline-offset: 3px; }
.vx-btn--gold { color: var(--vx-darkest); background: linear-gradient(135deg, #f3d596, #c9a24b); }
.vx-btn--gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.vx-btn--ghost { color: var(--vx-parchment); background: rgba(245, 240, 232, 0.06); border-color: rgba(245, 240, 232, 0.24); }
.vx-btn--ghost:hover { border-color: var(--vx-gold); color: #fff; transform: translateY(-2px); }
.vx-btn--line { color: var(--vx-deep); background: var(--vx-paper); border-color: var(--vx-line-2); }
.vx-btn--line:hover { border-color: var(--vx-gold); transform: translateY(-2px); box-shadow: var(--vx-shadow); }

/* status chips: the shared requirement legend */
.vx-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 8px;
  border-radius: 999px; font-size: 0.76rem; font-weight: 700; line-height: 1.7; white-space: nowrap;
}
.vx-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.vx-chip--req  { color: var(--vx-req);  background: var(--vx-req-bg); }
.vx-chip--rec  { color: var(--vx-rec);  background: var(--vx-rec-bg); }
.vx-chip--rout { color: var(--vx-rout); background: var(--vx-rout-bg); }
.vx-chip--info { color: var(--vx-info); background: var(--vx-info-bg); }
.vx-chip--req::before { border-radius: 2px; transform: rotate(45deg) scale(0.85); }

/* ============================================================
   2 | HERO | dark plate + search + the yellow card
   ============================================================ */
.vx-hero {
  position: relative; z-index: 3; overflow: hidden; overflow: clip; overflow-y: visible; isolation: isolate;
  padding: calc(var(--vx-header) + clamp(40px, 7vh, 72px)) 0 clamp(48px, 7vh, 80px);
  color: var(--vx-parchment);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(201, 168, 92, 0.14), transparent 60%),
    linear-gradient(160deg, var(--vx-deep), var(--vx-darkest));
}
.vx-hero::before {
  content: ""; position: absolute; z-index: -1;
  inset: calc(var(--vx-header) + 16px) 18px 18px;
  border: 1px solid rgba(201, 168, 92, 0.3); border-radius: 14px; pointer-events: none;
  background:
    linear-gradient(var(--vx-gold), var(--vx-gold)) 0 0 / 20px 2px no-repeat,
    linear-gradient(var(--vx-gold), var(--vx-gold)) 0 0 / 2px 20px no-repeat,
    linear-gradient(var(--vx-gold), var(--vx-gold)) 100% 0 / 20px 2px no-repeat,
    linear-gradient(var(--vx-gold), var(--vx-gold)) 100% 0 / 2px 20px no-repeat,
    linear-gradient(var(--vx-gold), var(--vx-gold)) 0 100% / 20px 2px no-repeat,
    linear-gradient(var(--vx-gold), var(--vx-gold)) 0 100% / 2px 20px no-repeat,
    linear-gradient(var(--vx-gold), var(--vx-gold)) 100% 100% / 20px 2px no-repeat,
    linear-gradient(var(--vx-gold), var(--vx-gold)) 100% 100% / 2px 20px no-repeat,
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(245, 240, 232, 0.025) 47px 48px);
  animation: vx-fade 1s ease 0.2s both;
}
.vx-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px; align-items: center;
}
.vx-crumbs { margin-bottom: 16px; font-size: 0.8rem; color: rgba(245, 240, 232, 0.66); animation: vx-rise 0.7s var(--vx-ease) 0.05s both; }
.vx-crumbs a { color: var(--vx-gold-soft); text-decoration: none; }
.vx-crumbs a:hover { text-decoration: underline; }
.vx-crumbs span[aria-hidden] { margin: 0 6px; opacity: 0.6; }
.vx-hero .vx-eyebrow { color: var(--vx-gold-soft); animation: vx-rise 0.7s var(--vx-ease) 0.12s both; }
.vx-title {
  margin: 4px 0 16px; max-width: 15ch;
  font-family: var(--vx-display); font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.035em; color: #fff; text-wrap: balance;
  animation: vx-rise 0.8s var(--vx-ease) 0.2s both;
}
.vx-title em { font-style: italic; font-weight: 400; color: var(--vx-gold-soft); }
.vx-hero-lede {
  margin: 0 0 24px; max-width: 54ch; padding-left: 18px; border-left: 2px solid var(--vx-gold);
  font-size: 1.05rem; line-height: 1.72; color: rgba(245, 240, 232, 0.86);
  animation: vx-rise 0.7s var(--vx-ease) 0.3s both;
}
.vx-hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none;
  font-size: 0.84rem; font-weight: 600; color: rgba(245, 240, 232, 0.72);
  animation: vx-rise 0.7s var(--vx-ease) 0.5s both;
}
.vx-hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.vx-hero-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vx-gold); }
.vx-hero-meta strong { color: var(--vx-gold-soft); }

/* search combobox */
.vx-search { position: relative; z-index: 5; max-width: 560px; animation: vx-rise 0.7s var(--vx-ease) 0.4s both; }
.vx-search-field {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 8px 0 18px;
  border: 1px solid rgba(201, 168, 92, 0.45); border-radius: 999px; background: var(--vx-paper);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.vx-search-field:focus-within { border-color: var(--vx-gold); box-shadow: 0 0 0 4px rgba(201, 168, 92, 0.25), 0 18px 40px -22px rgba(0, 0, 0, 0.7); }
.vx-search-field svg { flex: none; color: var(--vx-muted); }
.vx-search input {
  flex: 1; min-width: 0; height: 54px; padding: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--vx-body); font-size: 1rem; font-weight: 500; color: var(--vx-ink);
}
.vx-search input::placeholder { color: var(--vx-muted); }
.vx-page .vx-search input:focus-visible { outline: none; }
.vx-search-go { flex: none; min-height: 42px; padding: 0 18px; }
.vx-results {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0;
  max-height: min(380px, 60vh); overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--vx-paper); border: 1px solid var(--vx-line-2); border-radius: 18px;
  box-shadow: 0 24px 50px -24px rgba(13, 33, 24, 0.55); color: var(--vx-ink);
  transform-origin: top center; animation: vx-pop 0.22s var(--vx-ease);
}
.vx-results[hidden] { display: none; }
.vx-results li { margin: 0; }
.vx-results a, .vx-results .vx-empty-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--vx-ink);
}
.vx-results a b { font-weight: 700; }
.vx-results a span { font-size: 0.78rem; color: var(--vx-muted); }
.vx-results a[aria-selected="true"], .vx-results a:hover { background: var(--vx-cream); box-shadow: inset 3px 0 0 var(--vx-gold); }
.vx-results mark { background: rgba(201, 168, 92, 0.3); color: inherit; border-radius: 3px; padding: 0 1px; }
.vx-empty-row { color: var(--vx-muted); font-size: 0.9rem; }

.vx-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; animation: vx-rise 0.7s var(--vx-ease) 0.45s both; }
.vx-popular span { margin-right: 4px; font-size: 0.82rem; color: rgba(245, 240, 232, 0.62); }
.vx-popular a {
  padding: 4px 12px; border: 1px solid rgba(245, 240, 232, 0.2); border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; text-decoration: none; color: rgba(245, 240, 232, 0.88);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.vx-popular a:hover { color: var(--vx-darkest); background: var(--vx-gold-soft); border-color: var(--vx-gold-soft); }

/* the yellow card (an illustration of the ICVP booklet) */
.vx-card-art { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 4 / 3.4; }
.vx-passport, .vx-yellow {
  position: absolute; border-radius: 14px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.8);
}
.vx-passport {
  inset: 10% 2% 0 20%;
  background: linear-gradient(150deg, #24503b, #12301f);
  border: 1px solid rgba(201, 168, 92, 0.35);
  transform: rotate(7deg);
  animation: vx-pass-in 1s var(--vx-ease) 0.35s both;
}
.vx-passport::after {
  content: "PASSPORT"; position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%);
  font-family: var(--vx-display); font-size: 0.8rem; letter-spacing: 0.3em; color: rgba(217, 188, 128, 0.7);
}
.vx-passport::before {
  content: ""; position: absolute; left: 50%; top: 22%; width: 34%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; border: 1.5px solid rgba(217, 188, 128, 0.6);
  background: radial-gradient(circle, transparent 54%, rgba(217, 188, 128, 0.18) 55% 60%, transparent 61%);
}
.vx-yellow {
  inset: 0 18% 10% 0; padding: 18px 20px; color: #3b3220;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(80, 60, 20, 0.12) 27px 28px) 0 64px / 100% calc(100% - 92px) no-repeat,
    linear-gradient(160deg, #f6dc6e, #e9c548);
  transform: rotate(-5deg);
  animation: vx-card-in 1.1s var(--vx-ease) 0.5s both;
}
.vx-yellow-title { margin: 0; font-family: var(--vx-display); font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.vx-yellow-sub { margin: 2px 0 14px; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.vx-yellow dl { display: grid; gap: 6px; margin: 0; font-size: 0.74rem; }
.vx-yellow dl div { display: grid; grid-template-columns: 7.8em 1fr; gap: 8px; align-items: end; }
.vx-yellow dt { opacity: 0.68; }
.vx-yellow dd { margin: 0; font-family: 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive; font-size: 0.86rem; color: #1f3a6b; }
.vx-yellow-stamp {
  position: absolute; right: 8%; bottom: 10%;
  display: grid; place-items: center; width: 92px; aspect-ratio: 1; border-radius: 50%;
  font-family: var(--vx-display); font-size: 0.72rem; font-weight: 700; font-style: italic; line-height: 1.1;
  text-align: center; color: var(--vx-req);
  box-shadow: inset 0 0 0 2px currentColor, inset 0 0 0 5px transparent, inset 0 0 0 6px currentColor;
  transform: rotate(-14deg); opacity: 0.85;
  animation: vx-stamp 0.7s var(--vx-spring) 1.4s both;
}

/* ============================================================
   3 | NOTICE + LEGEND
   ============================================================ */
.vx-notice {
  position: relative; z-index: 2; margin-top: 24px;
}
.vx-notice-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px 20px; border: 1px solid rgba(168, 108, 26, 0.35); border-left: 4px solid #c88a1e;
  border-radius: 14px; background: #fff8e6; box-shadow: var(--vx-shadow);
  font-size: 0.92rem; line-height: 1.6; color: #5a3d0c;
}
.vx-notice-inner svg { margin-top: 2px; color: #b4770f; }
.vx-notice strong { color: #4a3008; }
.vx-notice p { margin: 0; }

.vx-legend {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px;
}
.vx-legend-item {
  padding: 18px 18px 16px; background: var(--vx-paper); border: 1px solid var(--vx-line);
  border-radius: 16px; box-shadow: var(--vx-shadow);
}
.vx-legend-item h3 { margin: 10px 0 4px; font-family: var(--vx-display); font-size: 1.1rem; color: var(--vx-deep); }
.vx-legend-item p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--vx-ink-2); }

/* ============================================================
   4 | REGION CARDS
   ============================================================ */
.vx-regions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.vx-region { grid-column: span 2; }
.vx-region:nth-child(4), .vx-region:nth-child(5) { grid-column: span 3; }
.vx-region {
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--vx-ink);
  background: var(--vx-paper); border: 1px solid var(--vx-line); border-radius: 18px; box-shadow: var(--vx-shadow);
  transition: opacity 0.7s ease calc(min(var(--i, 0), 4) * 60ms), translate 0.8s var(--vx-ease) calc(min(var(--i, 0), 4) * 60ms), transform 0.35s var(--vx-ease), border-color 0.3s, box-shadow 0.35s;
}
.vx-region:hover { transform: translateY(-4px); border-color: rgba(201, 168, 92, 0.6); box-shadow: var(--vx-shadow-lift); }
.vx-region:focus-visible { outline: 2px solid var(--vx-gold); outline-offset: 3px; }
.vx-region-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--vx-deep); }
.vx-region-media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: transform 0.9s var(--vx-ease); }
.vx-region:hover .vx-region-media img { transform: scale(1.05); }
.vx-region-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(13, 33, 24, 0.82)); }
.vx-region-name {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 14px; margin: 0;
  font-family: var(--vx-display); font-size: 1.7rem; font-weight: 700; line-height: 1; color: #fff;
}
.vx-region-count {
  position: absolute; z-index: 2; right: 14px; top: 14px; padding: 2px 10px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; color: var(--vx-darkest); background: var(--vx-gold-soft);
}
.vx-region-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.vx-region-body ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.vx-region-body li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.9rem; line-height: 1.55; color: var(--vx-ink-2); }
.vx-region-body li .vx-chip { margin-top: 1px; }
.vx-region-go {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--vx-line-2);
  font-size: 0.86rem; font-weight: 700; color: var(--vx-forest);
}
.vx-region-go span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--vx-ease); }
.vx-region:hover .vx-region-go span { background-size: 100% 1px; }

/* ============================================================
   5 | VACCINE FIELD GUIDE
   ============================================================ */
.vx-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vx-vaccine {
  position: relative; padding: 20px 22px 18px; background: var(--vx-paper);
  border: 1px solid var(--vx-line); border-radius: 16px; box-shadow: var(--vx-shadow);
  transition: opacity 0.7s ease calc(min(var(--i, 0), 6) * 50ms), translate 0.8s var(--vx-ease) calc(min(var(--i, 0), 6) * 50ms), border-color 0.3s, box-shadow 0.35s;
}
.vx-vaccine::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lvl, var(--vx-gold)); }
.vx-vaccine[data-level="req"]  { --lvl: var(--vx-req); }
.vx-vaccine[data-level="rec"]  { --lvl: var(--vx-rec); }
.vx-vaccine[data-level="rout"] { --lvl: var(--vx-rout); }
.vx-vaccine[data-level="info"] { --lvl: var(--vx-info); }
.vx-vaccine:hover { border-color: rgba(201, 168, 92, 0.55); box-shadow: var(--vx-shadow-lift); }
.vx-vaccine-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.vx-vaccine h3 { margin: 0; font-family: var(--vx-display); font-size: 1.25rem; font-weight: 700; color: var(--vx-deep); }
.vx-vaccine p { margin: 10px 0 0; font-size: 0.94rem; line-height: 1.65; color: var(--vx-ink-2); }
.vx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--vx-line-2); font-size: 0.84rem; }
.vx-facts div { display: grid; gap: 1px; }
.vx-facts dt { color: var(--vx-muted); }
.vx-facts dd { margin: 0; font-weight: 600; color: var(--vx-deep); }

/* ============================================================
   6 | COUNTDOWN TIMELINE
   ============================================================ */
.vx-countdown { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 10px 0 0; padding: 0; list-style: none; }
.vx-countdown::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(201, 168, 92, 0.75) 0 6px, transparent 6px 12px);
  transform-origin: left; transition: transform 1.4s var(--vx-ease) 0.1s;
}
.vx-countdown li { position: relative; padding-top: 58px; transition: opacity 0.6s ease calc(var(--i, 0) * 120ms + 200ms), translate 0.7s var(--vx-ease) calc(var(--i, 0) * 120ms + 200ms); }
.vx-countdown li::before {
  content: attr(data-when); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px;
  font-family: var(--vx-display); font-size: 0.92rem; font-weight: 700; font-style: italic; white-space: nowrap;
  color: var(--vx-gold-soft); background: var(--vx-deep); box-shadow: 0 0 0 5px var(--vx-cream);
}
.vx-countdown li:last-child::before { color: var(--vx-darkest); background: var(--vx-gold-soft); }
.vx-countdown h3 { margin: 0 0 6px; font-family: var(--vx-display); font-size: 1.08rem; color: var(--vx-deep); line-height: 1.3; }
.vx-countdown p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--vx-ink-2); }

/* ============================================================
   7 | INFO PANELS (documents, missed a vaccine)
   ============================================================ */
.vx-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vx-panel { padding: 24px 24px 22px; background: var(--vx-paper); border: 1px solid var(--vx-line); border-radius: 18px; box-shadow: var(--vx-shadow); }
.vx-panel h3 { margin: 0 0 14px; font-family: var(--vx-display); font-size: 1.3rem; color: var(--vx-deep); }
.vx-checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vx-checks li { position: relative; padding-left: 28px; font-size: 0.94rem; line-height: 1.6; color: var(--vx-ink-2); }
.vx-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--vx-rout-bg); }
.vx-checks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px; border: solid var(--vx-rout); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.vx-checks li.is-warn::before { background: var(--vx-rec-bg); }
.vx-checks li.is-warn::after { content: "!"; left: 0; top: 3px; width: 18px; height: 18px; border: 0; transform: none; font-size: 0.72rem; font-weight: 800; line-height: 18px; text-align: center; color: var(--vx-rec); }

/* ============================================================
   8 | A TO Z INDEX
   ============================================================ */
.vx-az-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.vx-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; margin: 0;
  border: 1px solid var(--vx-line-2); border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--vx-body); font-size: 0.86rem; font-weight: 600; color: var(--vx-deep);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--vx-ease);
}
.vx-pill b { font-family: var(--vx-display); font-size: 0.82rem; color: var(--vx-gold-ink); }
.vx-pill:hover { border-color: var(--vx-gold); background: var(--vx-paper); }
.vx-pill:active { transform: scale(0.97); }
.vx-pill[aria-pressed="true"] { color: var(--vx-parchment); background: var(--vx-deep); border-color: var(--vx-deep); }
.vx-pill[aria-pressed="true"] b { color: var(--vx-gold-soft); }
.vx-pill:focus-visible { outline: 2px solid var(--vx-gold); outline-offset: 2px; }
.vx-az { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vx-az-group { padding: 18px 20px 16px; background: var(--vx-paper); border: 1px solid var(--vx-line); border-radius: 16px; }
.vx-az-group[hidden] { display: none; }
.vx-az-group h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-family: var(--vx-display); font-size: 1.15rem; color: var(--vx-deep); }
.vx-az-group h3 a { color: inherit; text-decoration: none; }
.vx-az-group h3 a:hover { text-decoration: underline; text-decoration-color: var(--vx-gold); }
.vx-az-group h3 small { font-family: var(--vx-body); font-size: 0.78rem; font-weight: 600; color: var(--vx-muted); }
.vx-az-group ul { columns: 2; column-gap: 16px; margin: 0; padding: 0; list-style: none; }
.vx-az-group li { break-inside: avoid; margin: 0 0 4px; }
.vx-az-group li a { font-size: 0.9rem; color: var(--vx-ink-2); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.vx-az-group li a:hover { color: var(--vx-forest); border-bottom-color: var(--vx-gold); }

/* ============================================================
   9 | FAQ, SOURCES, CLOSING
   ============================================================ */
.vx-faq { display: grid; gap: 10px; max-width: 860px; }
.vx-acc { overflow: hidden; background: var(--vx-paper); border: 1px solid var(--vx-line); border-radius: 14px; transition: border-color 0.2s, box-shadow 0.25s; }
.vx-acc[open] { border-color: var(--vx-line-2); box-shadow: var(--vx-shadow); }
.vx-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px 15px 20px; list-style: none; cursor: pointer; transition: background-color 0.2s; }
.vx-acc summary::-webkit-details-marker { display: none; }
.vx-acc summary:hover { background: var(--vx-cream); }
.vx-acc summary:focus-visible { outline: 2px solid var(--vx-gold); outline-offset: -2px; }
.vx-acc h3 { margin: 0; font-family: var(--vx-body); font-size: 0.99rem; font-weight: 700; line-height: 1.4; color: var(--vx-deep); }
.vx-acc summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--vx-line-2); font-size: 1.1rem; line-height: 1; color: var(--vx-deep);
  transition: transform 0.35s var(--vx-ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.vx-acc[open] summary::after { transform: rotate(45deg); background: var(--vx-deep); border-color: var(--vx-deep); color: var(--vx-gold-soft); }
.vx-acc[open] > summary { border-bottom: 1px dashed var(--vx-line-2); }
.vx-faq-body { padding: 16px 20px 20px; }
.vx-faq-body p { margin: 0; font-size: 0.96rem; line-height: 1.7; }

.vx-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vx-source {
  display: grid; gap: 4px; padding: 18px 20px; text-decoration: none; color: var(--vx-ink);
  background: var(--vx-paper); border: 1px solid var(--vx-line); border-radius: 16px;
  transition: border-color 0.25s, transform 0.3s var(--vx-ease), box-shadow 0.3s;
}
.vx-source:hover { border-color: var(--vx-gold); transform: translateY(-2px); box-shadow: var(--vx-shadow); }
.vx-source b { font-family: var(--vx-display); font-size: 1.08rem; color: var(--vx-deep); }
.vx-source span { font-size: 0.88rem; line-height: 1.55; color: var(--vx-muted); }
.vx-updated { margin: 18px 0 0; font-size: 0.86rem; font-style: italic; color: var(--vx-muted); }

.vx-closing {
  position: relative; overflow: hidden; padding: 44px 44px 40px; border-radius: 24px; color: rgba(245, 240, 232, 0.9);
  background: radial-gradient(90% 90% at 100% 0%, rgba(201, 168, 92, 0.16), transparent 60%), linear-gradient(160deg, var(--vx-deep), var(--vx-darkest));
}
.vx-closing::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(201, 168, 92, 0.28); border-radius: 14px; pointer-events: none; }
.vx-closing .vx-h2 { color: #fff; }
.vx-closing p { position: relative; margin: 14px 0 0; max-width: 60ch; font-size: 1.05rem; line-height: 1.7; }
.vx-closing .vx-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* third-party widgets that land inside a grid take the full row */
.vx-regions > :not([class^="vx-"]), .vx-guide > :not([class^="vx-"]), .vx-panels > :not([class^="vx-"]),
.vx-legend > :not([class^="vx-"]), .vx-az > :not([class^="vx-"]), .vx-sources > :not([class^="vx-"]) { grid-column: 1 / -1; }

/* ============================================================
   10 | MOTION
   ============================================================ */
@keyframes vx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vx-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes vx-pass-in { from { opacity: 0; transform: translate(40px, 20px) rotate(16deg); } to { opacity: 1; transform: rotate(7deg); } }
@keyframes vx-card-in { from { opacity: 0; transform: translate(-30px, 40px) rotate(-14deg); } to { opacity: 1; transform: rotate(-5deg); } }
@keyframes vx-stamp { from { opacity: 0; transform: scale(1.8) rotate(-34deg); } to { opacity: 0.85; transform: rotate(-14deg); } }

/* scroll states, only with .vx-motion on <html> (set by vaccine.js) */
.vx-motion [data-reveal].vx-region:not(.is-in),
.vx-motion [data-reveal].vx-vaccine:not(.is-in) { opacity: 0; translate: 0 18px; }
.vx-motion .vx-countdown[data-reveal]:not(.is-in)::before { transform: scaleX(0); }
.vx-motion .vx-countdown[data-reveal]:not(.is-in) li { opacity: 0; translate: 0 12px; }

/* ============================================================
   11 | RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .vx-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .vx-card-art { display: none; }
  .vx-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx-region, .vx-region:nth-child(4), .vx-region:nth-child(5) { grid-column: auto; }
  .vx-countdown { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-left: 8px; }
  .vx-countdown::before { left: 30px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(201, 168, 92, 0.75) 0 6px, transparent 6px 12px); transform-origin: top; }
  .vx-motion .vx-countdown[data-reveal]:not(.is-in)::before { transform: scaleY(0); }
  .vx-countdown li { padding: 0 0 0 82px; min-height: 46px; }
  .vx-az { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx-sources { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .vx-hero::before { display: none; }
  .vx-legend, .vx-regions, .vx-guide, .vx-panels, .vx-az { grid-template-columns: minmax(0, 1fr); }
  .vx-facts { grid-template-columns: minmax(0, 1fr); }
  .vx-search-go { display: none; }
  .vx-search-field { padding-right: 18px; }
  .vx-closing { padding: 32px 22px 28px; }
  .vx-countdown li { padding-left: 74px; }
  .vx-countdown li::before { min-width: 0; font-size: 0.82rem; padding: 0 10px; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  .vx-page *, .vx-page *::before, .vx-page *::after {
    animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
  }
}
.vx-page :focus-visible { outline: 2px solid var(--vx-gold); outline-offset: 2px; }

/* ============================================================
   12 | REGION PAGES
   ============================================================ */
.vx-hero--region { padding-bottom: clamp(40px, 6vh, 64px); }
.vx-hero--region .vx-hero-grid { grid-template-columns: minmax(0, 1fr); }
.vx-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0;
  animation: vx-rise 0.7s var(--vx-ease) 0.45s both;
}
.vx-stats div {
  display: grid; gap: 4px; padding: 16px 18px; border: 1px solid rgba(201, 168, 92, 0.28); border-radius: 14px;
  background: rgba(245, 240, 232, 0.05);
}
.vx-stats dd { order: -1; margin: 0; font-family: var(--vx-display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--vx-gold-soft); }
.vx-stats dt { font-size: 0.86rem; line-height: 1.45; color: rgba(245, 240, 232, 0.78); }

.vx-chip--muted { color: #4d5560; background: #e9ebee; }

/* yellow fever quick answer: two lists of countries */
.vx-yf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; }
.vx-yf-box { padding: 22px 24px; background: var(--vx-paper); border: 1px solid var(--vx-line); border-radius: 18px; box-shadow: var(--vx-shadow); }
.vx-yf-box--all { border-top: 4px solid var(--vx-req); }
.vx-yf-box--risk { border-top: 4px solid #8c939b; }
.vx-yf-box h3 { margin: 10px 0 8px; font-family: var(--vx-display); font-size: 1.3rem; color: var(--vx-deep); }
.vx-yf-box p { margin: 0 0 12px; font-size: 0.94rem; line-height: 1.65; color: var(--vx-ink-2); }
.vx-yf-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vx-yf-list a {
  display: inline-block; padding: 3px 11px; border: 1px solid var(--vx-line-2); border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; text-decoration: none; color: var(--vx-deep); background: var(--vx-cream);
  transition: border-color 0.2s, background-color 0.2s;
}
.vx-yf-list a:hover { border-color: var(--vx-req); background: var(--vx-req-bg); }

/* key-vaccines row for a region (compact field guide) */
.vx-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vx-keys .vx-vaccine { padding: 18px 18px 16px; }
.vx-keys .vx-vaccine h3 { font-size: 1.12rem; }
.vx-keys .vx-vaccine p { font-size: 0.9rem; }

/* toolbar: filter by name, by rule, jump by letter */
.vx-tools {
  position: sticky; top: var(--vx-header); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 0 calc(clamp(16px, 4vw, 32px) * -1) 18px; padding: 12px clamp(16px, 4vw, 32px);
  background: rgba(251, 246, 234, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vx-line-2);
}
.vx-filter-field {
  display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px; flex: 0 1 260px;
  background: var(--vx-paper); border: 1px solid var(--vx-line-2); border-radius: 999px; color: var(--vx-muted);
}
.vx-filter-field:focus-within { border-color: var(--vx-gold); box-shadow: 0 0 0 3px rgba(201, 168, 92, 0.2); }
.vx-filter-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--vx-body); font-size: 0.92rem; color: var(--vx-ink); }
.vx-page .vx-filter-field input:focus-visible { outline: none; }
.vx-tools .vx-pill { min-height: 38px; padding: 0 13px; font-size: 0.84rem; }
.vx-count { margin: 0 0 0 auto; font-size: 0.84rem; font-weight: 600; color: var(--vx-muted); }
.vx-letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 22px; padding: 0; list-style: none; }
.vx-letters a {
  display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--vx-line-2); border-radius: 10px;
  font-family: var(--vx-display); font-weight: 700; text-decoration: none; color: var(--vx-deep); background: var(--vx-paper);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.vx-letters a:hover { color: var(--vx-gold-soft); background: var(--vx-deep); border-color: var(--vx-deep); }

.vx-letter { margin: 26px 0 0; scroll-margin-top: calc(var(--vx-header) + 90px); }
.vx-letter[hidden] { display: none; }
.vx-letter > h3 {
  margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--vx-line-2);
  font-family: var(--vx-display); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--vx-gold-ink);
}
.vx-country {
  margin: 0 0 10px; overflow: hidden; background: var(--vx-paper); border: 1px solid var(--vx-line); border-radius: 14px;
  scroll-margin-top: calc(var(--vx-header) + 96px);
  transition: border-color 0.25s, box-shadow 0.3s;
}
.vx-country[hidden] { display: none; }
.vx-country[open], .vx-country.is-target { border-color: rgba(201, 168, 92, 0.7); box-shadow: var(--vx-shadow); }
.vx-country.is-target { animation: vx-flash 1.6s ease; }
@keyframes vx-flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(201, 168, 92, 0.45); } 100% { box-shadow: var(--vx-shadow); } }
.vx-country summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 16px;
  padding: 14px 16px 14px 20px; list-style: none; cursor: pointer; transition: background-color 0.2s;
}
.vx-country summary::-webkit-details-marker { display: none; }
.vx-country summary:hover { background: var(--vx-cream); }
.vx-country summary:focus-visible { outline: 2px solid var(--vx-gold); outline-offset: -2px; }
.vx-country h4 { margin: 0; font-family: var(--vx-display); font-size: 1.16rem; font-weight: 700; line-height: 1.25; color: var(--vx-deep); }
.vx-country h4 small { display: block; font-family: var(--vx-body); font-size: 0.78rem; font-weight: 500; color: var(--vx-muted); }
.vx-country-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.vx-country summary::after {
  content: "+"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--vx-line-2); font-size: 1.1rem; line-height: 1; color: var(--vx-deep);
  transition: transform 0.35s var(--vx-ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.vx-country[open] summary::after { transform: rotate(45deg); background: var(--vx-deep); border-color: var(--vx-deep); color: var(--vx-gold-soft); }
.vx-country[open] > summary { border-bottom: 1px dashed var(--vx-line-2); }
.vx-country-body { padding: 18px 20px 20px; }
.vx-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vx-col h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; color: var(--vx-muted); }
.vx-col h5::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lvl, var(--vx-gold)); }
.vx-col--req { --lvl: var(--vx-req); }
.vx-col--rec { --lvl: var(--vx-rec); }
.vx-col--con { --lvl: var(--vx-rout); }
.vx-col ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vx-col li { font-size: 0.92rem; line-height: 1.5; color: var(--vx-ink-2); }
.vx-col li small { display: block; font-size: 0.8rem; color: var(--vx-muted); }
.vx-col .vx-none { color: var(--vx-muted); font-style: italic; }
.vx-mal {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 16px;
  padding: 12px 14px; border-radius: 12px; background: var(--vx-info-bg); font-size: 0.92rem; line-height: 1.55; color: #33414d;
}
.vx-mal b { color: #26323c; }
.vx-mal--none { background: var(--vx-rout-bg); color: #1f4d33; }
.vx-mal--none b { color: #17402a; }
.vx-note { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; font-size: 0.92rem; line-height: 1.55; }
.vx-note--info { background: var(--vx-cream); border: 1px solid rgba(201, 168, 92, 0.35); color: var(--vx-ink-2); }
.vx-note--warn { background: #fff4e0; border: 1px solid rgba(200, 138, 30, 0.4); color: #5a3d0c; }
.vx-note svg, .vx-mal svg { margin-top: 2px; flex: none; }
.vx-country-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--vx-line);
  font-size: 0.84rem; color: var(--vx-muted);
}
.vx-country-foot a { font-weight: 700; color: var(--vx-forest); text-decoration: none; }
.vx-country-foot a:hover { text-decoration: underline; text-decoration-color: var(--vx-gold); }
.vx-no-results { margin: 24px 0 0; padding: 26px; text-align: center; border: 1px dashed rgba(201, 168, 92, 0.5); border-radius: 16px; color: var(--vx-muted); background: var(--vx-paper); }
.vx-no-results[hidden] { display: none; }

@media (max-width: 1000px) {
  .vx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx-yf, .vx-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx-yf { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .vx-keys { grid-template-columns: minmax(0, 1fr); }
  .vx-country summary { grid-template-columns: minmax(0, 1fr) auto; }
  .vx-country-chips { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .vx-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .vx-count { width: 100%; margin: 0; }
  .vx-filter-field { flex: 1 1 100%; }
  .vx-tools { position: static; }
}