/* ============================================================
   Child Vaccine Tracker  -  shared stylesheet
   Design language matched to childsleepcalculator.com /
   kidsscreentimecalculator.com (Nunito, rounded cards, amber
   accent, dark hero band). Primary hue: warm teal.
   ============================================================ */

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

:root {
  --primary: #0D9488;
  --primary-dark: #0F766E;
  --primary-light: #CCFBF1;
  --primary-tint: #F0FDFA;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #D97706;
  --warning-light: #FEF9C3;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --bg: #F0FDFA;
  --card: #FFFFFF;
  --text: #10322E;
  --muted: #5B7772;
  --border: #CFEDE7;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(13,148,136,0.12);
  --shadow-sm: 0 2px 10px rgba(13,148,136,0.08);

  /* age-band colours (used by the timeline) */
  --band-newborn: #6366F1;
  --band-newborn-bg: #EEF2FF;
  --band-infant: #0D9488;
  --band-infant-bg: #CCFBF1;
  --band-toddler: #D97706;
  --band-toddler-bg: #FEF3C7;
  --band-child: #DB2777;
  --band-child-bg: #FCE7F3;
  --band-teen: #2563EB;
  --band-teen-bg: #DBEAFE;
}

html, body {
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
a { color: var(--primary-dark); text-decoration: none; }
img { max-width: 100%; }

/* ── HEADER ─────────────────────────────────────────────── */
header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(13,148,136,0.08);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-dark);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.1;
}
.logo img {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(13,148,136,0.3);
  animation: logo-bob 3.2s ease-in-out infinite;
}
@keyframes logo-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.05); }
}
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(13,148,136,0)); }
  50% { transform: scale(1.07); filter: drop-shadow(0 0 6px rgba(13,148,136,0.4)); }
}
.logo span.accent { color: var(--accent); }
nav { display: flex; gap: 16px; align-items: center; }
nav a {
  font-weight: 700; font-size: 0.85rem; color: var(--muted);
  text-decoration: none; transition: color .2s; white-space: nowrap;
}
nav a:hover, nav a.is-current { color: var(--primary-dark); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; background: none; border: none;
  cursor: pointer; padding: 0; flex-shrink: 0; color: var(--primary-dark);
}
.nav-toggle span { display: block; height: 2.5px; background: currentColor; border-radius: 2px; transition: all .25s; }
header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
@media (max-width: 860px) {
  header { position: sticky; padding: 0 14px; }
  .nav-toggle { display: flex; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 18px 16px;
    border-top: 2px solid var(--primary-light); background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12); z-index: 99;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  nav a { padding: 14px 2px; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 1rem; display: block; }
  nav a:last-child { border-bottom: none; }
  header.nav-open nav { display: flex; }
}
@media (max-width: 560px) {
  .header-inner { height: 74px; }
  .logo { font-size: 1.1rem; gap: 10px; }
  .logo img { width: 54px; height: 54px; }
}
@media (max-width: 360px) {
  .logo span { font-size: 1rem; }
  .logo img { width: 48px; height: 48px; }
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #08302C 0%, #0F766E 55%, #0D9488 100%);
  color: #fff;
  padding: 40px 20px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(94,234,212,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 82% 15%, rgba(245,158,11,0.12) 0%, transparent 55%);
}
.hero-badge-icon {
  width: clamp(110px, 22vw, 150px); height: clamp(110px, 22vw, 150px);
  margin: 0 auto 16px; display: block;
  border-radius: 50%; position: relative; z-index: 1;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 34px rgba(0,0,0,0.32);
  animation: hero-float 5s ease-in-out infinite;
}
@keyframes hero-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero h1 {
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  font-weight: 900; line-height: 1.2; margin-bottom: 10px; position: relative; z-index: 1;
}
.hero h1 span { color: #FDE68A; }
.hero p.sub {
  font-size: 1rem; color: rgba(255,255,255,0.94); max-width: 560px;
  margin: 0 auto 18px; position: relative; z-index: 1;
}
.hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.badge {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700;
}

/* ── TRUST STRIP ────────────────────────────────────────── */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 20px; }
.trust-inner {
  max-width: 1140px; margin: 0 auto; display: flex; gap: 20px;
  align-items: center; justify-content: center; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.trust-item svg { width: 15px; height: 15px; stroke: var(--primary); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.page-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.content-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 22px;
  padding: 22px 0 40px; align-items: start;
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-ad { display: block; }
}
.mobile-ad { display: none; }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 18px;
}
.card-title {
  font-size: 1.15rem; font-weight: 800; color: var(--primary-dark);
  margin-bottom: 16px; display: flex; align-items: center; gap: 9px;
}
.card-title svg { width: 22px; height: 22px; stroke: var(--primary); flex-shrink: 0; }
.section-sub { font-size: 0.9rem; color: var(--muted); font-weight: 600; margin-bottom: 16px; margin-top: -8px; }

/* ── COUNTRY SWITCHER ───────────────────────────────────── */
.country-switch { margin-bottom: 18px; }
.country-switch-label {
  font-size: 0.8rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: block;
}
.country-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.country-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; border: 2px solid var(--border);
  background: #fff; font-family: inherit; font-size: 0.85rem; font-weight: 800;
  color: var(--muted); cursor: pointer; text-decoration: none; transition: all .18s;
}
.country-tab .flag { font-size: 1.1rem; line-height: 1; }
.country-tab:hover { border-color: var(--primary); color: var(--primary-dark); }
.country-tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.country-select {
  display: none; width: 100%; padding: 13px 14px; border: 2px solid var(--border);
  border-radius: 12px; font-family: inherit; font-size: 1rem; font-weight: 800;
  color: var(--primary-dark); background: var(--primary-tint);
}
@media (max-width: 560px) {
  .country-tabs { display: none; }
  .country-select { display: block; }
}
.geo-note {
  font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-top: 8px;
  display: flex; align-items: center; gap: 6px;
}
.geo-note svg { width: 13px; height: 13px; stroke: var(--primary); flex-shrink: 0; }

/* ── DOB CALCULATOR ─────────────────────────────────────── */
.dob-card { border: 2px solid var(--primary-light); }
.form-label { font-size: 0.9rem; font-weight: 800; color: var(--text); margin-bottom: 8px; display: block; margin-top: 16px; }
.form-label:first-of-type { margin-top: 0; }
input[type="date"] {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 1.15rem; font-weight: 800; color: var(--primary-dark);
  background: var(--primary-tint); outline: none; transition: border-color .2s;
}
input[type="date"]:focus { border-color: var(--primary); }
.calc-btn {
  display: block; width: 100%; margin-top: 20px; padding: 16px;
  background: linear-gradient(135deg, #0D9488, #0F766E); color: #fff; border: none;
  border-radius: 14px; font-family: inherit; font-size: 1.1rem; font-weight: 900;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(13,148,136,0.35); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.calc-btn svg { width: 20px; height: 20px; stroke: #fff; }
.calc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,0.4); }
.calc-btn:active { transform: translateY(0); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; margin-top: 12px;
  background: #fff; border: 2px solid var(--primary); border-radius: 12px;
  font-family: inherit; font-size: 0.9rem; font-weight: 800; color: var(--primary-dark);
  cursor: pointer; text-decoration: none; transition: background .15s;
}
.btn-secondary svg { width: 16px; height: 16px; stroke: var(--primary-dark); }
.btn-secondary:hover { background: var(--primary-tint); }

/* ── PERSONALISED RESULT ────────────────────────────────── */
.dob-result { display: none; margin-top: 18px; }
.dob-result.visible { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(14px);} to { opacity:1; transform:translateY(0);} }
.age-pill {
  display: inline-block; background: var(--primary-dark); color: #fff;
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; margin-bottom: 14px;
}
.next-due {
  background: linear-gradient(135deg, #0F766E, #0D9488); color: #fff;
  border-radius: 14px; padding: 18px 16px; margin-bottom: 16px;
}
.next-due .lbl { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.next-due .vac { font-size: 1.35rem; font-weight: 900; margin: 4px 0 2px; }
.next-due .when { font-size: 0.9rem; opacity: 0.92; font-weight: 700; }
.next-due.overdue { background: linear-gradient(135deg, #B45309, #D97706); }
.next-due.complete { background: linear-gradient(135deg, #15803D, #16A34A); }

.mini-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.mini-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 0.86rem;
}
.mini-row .status-ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.mini-row.done { background: var(--success-light); border-color: #A7F3D0; }
.mini-row.done .status-ic { stroke: var(--success); }
.mini-row.upcoming .status-ic { stroke: var(--primary); }
.mini-row.future { opacity: 0.75; }
.mini-row.future .status-ic { stroke: var(--muted); }
.mini-row .m-when { margin-left: auto; font-weight: 800; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

/* ── AGE TIMELINE ───────────────────────────────────────── */
.timeline { position: relative; margin-top: 6px; }
.milestone {
  position: relative; border-left: 3px solid var(--border); padding: 0 0 22px 22px; margin-left: 8px;
}
.milestone:last-child { padding-bottom: 4px; }
.milestone::before {
  content: ''; position: absolute; left: -10px; top: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; border: 3px solid var(--band-color, var(--primary));
}
.milestone.is-band-newborn { --band-color: var(--band-newborn); }
.milestone.is-band-infant  { --band-color: var(--band-infant); }
.milestone.is-band-toddler { --band-color: var(--band-toddler); }
.milestone.is-band-child   { --band-color: var(--band-child); }
.milestone.is-band-teen    { --band-color: var(--band-teen); }

.ms-head {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  width: 100%; background: none; border: none; font-family: inherit; text-align: left; padding: 2px 0;
}
.ms-age { font-size: 1.02rem; font-weight: 900; color: var(--text); }
.ms-band {
  font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 999px; color: var(--band-color, var(--primary));
  background: var(--band-bg, var(--primary-light));
}
.milestone.is-band-newborn .ms-band { background: var(--band-newborn-bg); }
.milestone.is-band-infant  .ms-band { background: var(--band-infant-bg); }
.milestone.is-band-toddler .ms-band { background: var(--band-toddler-bg); }
.milestone.is-band-child   .ms-band { background: var(--band-child-bg); }
.milestone.is-band-teen    .ms-band { background: var(--band-teen-bg); }
.ms-count { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.ms-chev { margin-left: auto; width: 18px; height: 18px; stroke: var(--muted); transition: transform .25s; flex-shrink: 0; }
.ms-head[aria-expanded="true"] .ms-chev { transform: rotate(180deg); }

.ms-body { display: none; padding-top: 10px; }
.ms-body.open { display: block; animation: fadeUp .25s ease; }
.vaccine {
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; background: #fff;
}
.vaccine:last-child { margin-bottom: 0; }
.vac-name { font-size: 0.98rem; font-weight: 900; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dose-tag {
  font-size: 0.68rem; font-weight: 800; background: var(--primary-light); color: var(--primary-dark);
  padding: 2px 8px; border-radius: 999px;
}
.route-tag {
  font-size: 0.68rem; font-weight: 800; background: var(--accent-light); color: var(--warning);
  padding: 2px 8px; border-radius: 999px;
}
.vac-protects { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.protect-chip {
  font-size: 0.72rem; font-weight: 700; background: var(--primary-tint); border: 1px solid var(--border);
  color: var(--primary-dark); padding: 3px 9px; border-radius: 999px;
}
.vac-plain { font-size: 0.88rem; color: var(--text); font-weight: 600; line-height: 1.6; }
.vac-notes { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-top: 6px; font-style: italic; }

.band-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 16px; }
.band-legend span { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 800; color: var(--muted); }
.band-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ── SOURCE / DISCLAIMER ────────────────────────────────── */
.source-line {
  display: flex; align-items: flex-start; gap: 9px; background: var(--primary-tint);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px;
  font-size: 0.82rem; color: var(--primary-dark); font-weight: 700; line-height: 1.5; margin-bottom: 16px;
}
.source-line svg { width: 16px; height: 16px; stroke: var(--primary); flex-shrink: 0; margin-top: 1px; }
.disclaimer-box {
  background: var(--warning-light); border: 1px solid #FDE68A; border-radius: 12px;
  padding: 13px 16px; font-size: 0.83rem; color: #78500B; font-weight: 600; line-height: 1.6; margin-bottom: 18px;
}
.disclaimer-box strong { color: #663C00; }

/* ── AD SLOTS ───────────────────────────────────────────── */
.ad-wrap { text-align: center; margin: 18px 0; }
.ad-label { font-size: 0.6rem; color: #9fd8cf; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.ad-unit {
  background: var(--primary-tint); border: 1px dashed #9fd8cf; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #7fc9bd;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  overflow: hidden; text-align: center; margin: 0 auto; max-width: 100%;
}
.ad-leaderboard { min-height: 90px; max-width: 728px; }
.ad-rect { min-height: 280px; max-width: 336px; }
.ad-halfpage { min-height: 600px; width: 300px; margin-bottom: 18px; }
.ad-sidebar-rect { min-height: 250px; width: 300px; }
.ad-top-wrap { background: #fff; border-bottom: 1px solid var(--border); padding: 8px 20px; text-align: center; }
/* Hidden until AdSense approval - remove this line + uncomment <ins> tags to go live */
.ad-wrap, .ad-top-wrap, .mobile-ad .ad-unit { display: none !important; }

/* ── SIDEBAR WIDGETS ────────────────────────────────────── */
.sidebar { position: sticky; top: 90px; }
.side-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.side-box h3 { font-size: 0.92rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.side-box h3 svg { width: 17px; height: 17px; stroke: var(--primary); }
.side-fact { display: flex; gap: 8px; margin-bottom: 9px; align-items: flex-start; font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.45; }
.side-fact svg { width: 15px; height: 15px; stroke: var(--primary); flex-shrink: 0; margin-top: 2px; }
.side-box.dark { background: linear-gradient(160deg, #08302C, #0F766E); color: #fff; border: none; }
.side-box.dark h3 { color: #fff; }
.side-box.dark h3 svg, .side-box.dark .side-fact svg { stroke: #5EEAD4; }
.side-box.dark .side-fact { color: rgba(255,255,255,0.94); }

.cheat-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.8rem; font-weight: 700; }
.cheat-row:last-child { border-bottom: none; }
.cheat-row .a { color: var(--muted); }
.cheat-row .b { color: var(--primary-dark); font-weight: 800; text-align: right; }

/* ── CROSS-LINK BANNER / CARDS ──────────────────────────── */
.crosslink {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5); border: 1px solid #A7F3D0;
  border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 13px;
  margin-bottom: 18px; text-decoration: none;
}
.crosslink:hover { opacity: 0.92; }
.crosslink svg { width: 26px; height: 26px; stroke: #047857; flex-shrink: 0; }
.crosslink .t h4 { font-size: 0.88rem; font-weight: 800; color: #065F46; margin-bottom: 2px; }
.crosslink .t p { font-size: 0.79rem; color: #059669; font-weight: 600; }
.crosslink .arw { margin-left: auto; color: #059669; font-weight: 800; flex-shrink: 0; }

/* ── PROSE (about / faq / country intro) ────────────────── */
.prose h2 { font-size: 1.3rem; font-weight: 900; color: var(--text); margin: 22px 0 10px; }
.prose h3 { font-size: 1.02rem; font-weight: 800; color: var(--text); margin: 18px 0 8px; }
.prose p { font-size: 0.95rem; color: var(--text); font-weight: 500; line-height: 1.8; margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 12px; }
.prose li { font-size: 0.95rem; color: var(--text); font-weight: 500; margin-bottom: 6px; line-height: 1.7; }
.prose a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none; padding: 15px 0; text-align: left;
  font-family: inherit; font-size: 0.94rem; font-weight: 800; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q:hover { color: var(--primary-dark); }
.faq-q svg { width: 18px; height: 18px; stroke: var(--primary); flex-shrink: 0; transition: transform .25s; }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 16px; font-size: 0.9rem; color: var(--muted); font-weight: 500; line-height: 1.75; }
.faq-a.open { display: block; }
.faq-a a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; }

/* ── COUNTRY GRID (home + schedule picker) ──────────────── */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.country-card {
  display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; text-decoration: none; transition: border-color .18s, transform .15s;
}
.country-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.country-card .flag { font-size: 1.6rem; line-height: 1; }
.country-card .cc-name { font-size: 0.9rem; font-weight: 800; color: var(--text); }
.country-card .cc-src { font-size: 0.72rem; font-weight: 700; color: var(--muted); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: #08302C; color: #9ec9c2; padding: 28px 20px 18px; margin-top: 40px; }
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-disclaimer {
  background: #05231F; border-radius: 10px; padding: 12px 16px; font-size: 0.78rem;
  line-height: 1.65; margin-bottom: 18px; color: #cfe9e4;
}
.footer-disclaimer strong { color: #fff; }
.footer-tools {
  background: #0B3B36; border: 1px solid #17564F; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px;
}
.footer-tools h4 { color: #fff; font-size: 0.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.footer-tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 10px; }
.footer-tool { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; padding: 8px; border-radius: 8px; transition: background .15s; }
.footer-tool:hover { background: #0F4640; }
.footer-tool svg { width: 20px; height: 20px; stroke: #5EEAD4; flex-shrink: 0; margin-top: 2px; }
.footer-tool .ft-name { color: #fff; font-size: 0.84rem; font-weight: 800; }
.footer-tool .ft-name .here { color: var(--accent); font-weight: 800; }
.footer-tool .ft-desc { color: #9ec9c2; font-size: 0.76rem; font-weight: 600; line-height: 1.4; }
.footer-top { display: flex; gap: 28px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #17564F; }
.footer-brand .logo { color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 0.8rem; max-width: 280px; line-height: 1.6; }
.footer-links h4 { color: #d5efeb; font-size: 0.82rem; font-weight: 800; margin-bottom: 8px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.footer-links a { color: #9ec9c2; font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; font-size: 0.74rem; }

/* ── FLOATING PILLS (share + translate) ─────────────────── */
.goog-te-banner-frame, .goog-te-gadget { display: none !important; }
body { top: 0 !important; position: static !important; }
#floatStack { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.pill-wrap { position: relative; }
.pill-btn {
  height: 42px; background: var(--primary); color: #fff; border: none; border-radius: 999px;
  padding: 0 16px; font-family: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  box-shadow: 0 4px 18px rgba(13,148,136,0.35); transition: background .2s, transform .2s;
}
.pill-btn svg { width: 16px; height: 16px; stroke: #fff; }
.pill-btn:hover { background: var(--primary-dark); transform: scale(1.04); }
.pill-panel {
  display: none; position: absolute; bottom: calc(100% + 10px); right: 0; background: #fff;
  border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 16px; width: 230px;
  max-width: calc(100vw - 48px); border: 1px solid var(--border); z-index: 10000;
}
.pill-panel.open { display: block; animation: fadeUp .2s ease; }
.pill-panel-title { font-size: 0.8rem; font-weight: 900; color: var(--text); margin-bottom: 10px; text-align: center; }
.pill-share-btns { display: flex; flex-direction: column; gap: 7px; }
.stb { border: none; border-radius: 8px; padding: 9px 12px; font-family: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer; text-align: left; transition: opacity .15s; width: 100%; }
.stb:hover { opacity: 0.85; }
.stb-copy { background: #f1f5f9; color: #10322E; }
.stb-wa { background: #25d366; color: #fff; }
.stb-fb { background: #1877f2; color: #fff; }
.stb-x { background: #000; color: #fff; }
.stb-em { background: #6b7280; color: #fff; }
#langGrid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; }
#langGrid::-webkit-scrollbar { width: 4px; }
#langGrid::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
.lang-btn {
  padding: 5px 9px; font-size: 0.7rem; font-weight: 600; color: var(--muted); background: #f1f5f9;
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s; line-height: 1.4;
}
.lang-btn:hover, .lang-btn.is-active { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.lang-btn img.emoji, .pill-panel-title img.emoji, #langPanel img.emoji {
  height: 1.05em; width: 1.05em; vertical-align: -0.15em; margin: 0 3px 0 0; display: inline-block;
}
img.emoji { height: 1.1em; width: 1.1em; vertical-align: -0.1em; }
@media (max-width: 640px) {
  #floatStack { bottom: 16px; right: 12px; gap: 8px; }
  .pill-btn { height: 38px; font-size: 0.72rem; padding: 0 12px; }
  .pill-panel { width: 210px; }
}

/* ── COOKIE BANNER ──────────────────────────────────────── */
#cookieBanner {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
  background: #08302C; color: #e6f5f2; padding: 14px 20px; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
#cookieBanner a { color: #7dd3c8; text-decoration: underline; }
#cookieBanner button {
  background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 9px 22px;
  font-size: 0.85rem; font-weight: 800; cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: inherit;
}

/* ── MISC ───────────────────────────────────────────────── */
.pill-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.pill-links a { font-weight: 800; font-size: 0.88rem; color: var(--primary-dark); display: inline-flex; align-items: center; gap: 6px; }
.pill-links a svg { width: 15px; height: 15px; stroke: currentColor; }
.notice-provisional {
  background: var(--danger-light); border: 1px solid #FCA5A5; color: #991B1B;
  border-radius: 10px; padding: 10px 14px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px;
}

@media (max-width: 640px) {
  .card { padding: 18px 14px; }
  .hero { padding: 26px 14px 20px; }
  .hero h1 { font-size: 1.4rem; }
  .page-wrap { padding: 0 12px; }
}

/* ── ADD TO CALENDAR WIDGET ─────────────────────────────── */
.cal-widget { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--primary-tint); margin-top: 12px; }
.cal-remind { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.cal-remind-lbl { font-size: 0.82rem; font-weight: 800; color: var(--text); }
.cal-remind-opt { font-size: 0.82rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.cal-remind-opt input { accent-color: var(--primary); width: 15px; height: 15px; }
.cal-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px;
  border: 2px solid var(--border); background: #fff; font-family: inherit; font-size: 0.82rem;
  font-weight: 800; color: var(--primary-dark); cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s;
}
.cal-btn svg { width: 15px; height: 15px; stroke: var(--primary); }
.cal-btn:hover { border-color: var(--primary); background: var(--primary-tint); }
.cal-hint { font-size: 0.74rem; color: var(--muted); font-weight: 600; margin-top: 10px; line-height: 1.5; }

/* ── BOOKING / CLINIC BOX ───────────────────────────────── */
.booking-box { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; margin-bottom: 18px; }
.booking-box h3 { font-size: 0.98rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.booking-box h3 svg { width: 18px; height: 18px; stroke: var(--primary); }
.booking-box p { font-size: 0.88rem; color: var(--text); font-weight: 500; line-height: 1.65; margin-bottom: 10px; }
.booking-box .clinic-link {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 0.86rem;
  color: var(--primary-dark); border: 2px solid var(--primary); border-radius: 10px; padding: 8px 13px; text-decoration: none;
}
.booking-box .clinic-link svg { width: 15px; height: 15px; stroke: currentColor; }
.booking-box .clinic-link:hover { background: var(--primary-tint); }

/* ── SOURCES LIST ───────────────────────────────────────── */
.sources-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sources-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.5; }
.sources-list li svg { width: 15px; height: 15px; stroke: var(--primary); flex-shrink: 0; margin-top: 3px; }
.sources-list a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; word-break: break-word; }
.verify-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 800;
  background: var(--success-light); color: #166534; border-radius: 999px; padding: 4px 11px; margin-top: 10px;
}
.verify-badge svg { width: 13px; height: 13px; stroke: #166534; }

/* ── FEEDBACK FORM ──────────────────────────────────────── */
.fb-form { display: flex; flex-direction: column; gap: 12px; }
.fb-form label { font-size: 0.85rem; font-weight: 800; color: var(--text); }
.fb-form select, .fb-form textarea, .fb-form input[type="email"] {
  width: 100%; padding: 11px 13px; border: 2px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.92rem; color: var(--text); background: #fff; outline: none;
}
.fb-form select:focus, .fb-form textarea:focus, .fb-form input:focus { border-color: var(--primary); }
.fb-form textarea { min-height: 110px; resize: vertical; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-status { font-size: 0.85rem; font-weight: 700; }
.fb-status.ok { color: var(--success); }
.fb-status.err { color: var(--danger); }
.fb-form button[type="submit"] {
  align-self: flex-start; padding: 12px 22px; background: linear-gradient(135deg, #0D9488, #0F766E);
  color: #fff; border: none; border-radius: 12px; font-family: inherit; font-size: 0.95rem; font-weight: 900; cursor: pointer;
}
.fb-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

/* feedback pill panel */
#fbPanel .fb-form { gap: 9px; }
#fbPanel .fb-form textarea { min-height: 80px; font-size: 0.85rem; }
#fbPanel .fb-form select, #fbPanel .fb-form input[type="email"] { font-size: 0.85rem; padding: 8px 10px; }
#fbPanel .fb-form button[type="submit"] { width: 100%; align-self: stretch; padding: 10px; font-size: 0.85rem; }

/* ── AGE-BAND FILTER ────────────────────────────────────── */
.age-filter { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.age-filter button {
  padding: 6px 12px; border-radius: 999px; border: 2px solid var(--border); background: #fff;
  font-family: inherit; font-size: 0.78rem; font-weight: 800; color: var(--muted); cursor: pointer; transition: all .15s;
}
.age-filter button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.milestone.filtered-out { display: none; }

/* ── SAVED CHILDREN ─────────────────────────────────────── */
.kids-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.kid-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  border: 2px solid var(--border); background: #fff; font-size: 0.8rem; font-weight: 800; color: var(--primary-dark); cursor: pointer;
}
.kid-chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.kid-chip .x { opacity: 0.6; font-weight: 900; }
.kid-chip .x:hover { opacity: 1; }

/* ── VACCINE A-Z ────────────────────────────────────────── */
.vax-az { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vax-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; }
.vax-card h3 { font-size: 1rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 4px; }
.vax-card .vax-also { font-size: 0.76rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.vax-card p { font-size: 0.85rem; font-weight: 500; color: var(--text); line-height: 1.6; margin-bottom: 8px; }
.vax-card .vax-why { background: var(--primary-tint); border-radius: 8px; padding: 8px 10px; font-size: 0.82rem; font-weight: 600; color: var(--primary-dark); }

/* ── BLOG ───────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.blog-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
.blog-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.blog-card h3 { font-size: 0.96rem; font-weight: 900; color: var(--text); margin-bottom: 5px; }
.blog-card p { font-size: 0.83rem; font-weight: 500; color: var(--muted); line-height: 1.55; }
.blog-card .blog-date { font-size: 0.72rem; font-weight: 800; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; display: block; }
.article-meta { font-size: 0.8rem; color: var(--muted); font-weight: 700; margin-bottom: 18px; }

/* ── COMPARISON TABLE ───────────────────────────────────── */
.compare-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 520px; }
table.compare th, table.compare td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
table.compare thead th { background: var(--primary); color: #fff; font-weight: 800; position: sticky; top: 0; }
table.compare tbody td:first-child { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
table.compare tbody tr:nth-child(even) { background: var(--primary-tint); }

/* ── DATA TABLE (about page sources) ────────────────────── */
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.data-table th, table.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; }
table.data-table thead th { background: var(--primary); color: #fff; font-weight: 800; }
table.data-table a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; }

/* ── PRINT ──────────────────────────────────────────────── */
@media print {
  header, footer, #floatStack, #cookieBanner, .ad-wrap, .ad-top-wrap, .sidebar,
  .country-switch, .crosslink, #dobForm .btn-secondary, .pill-links, nav, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { background: none !important; color: #000; padding: 0 0 10px; text-align: left; }
  .hero-badge-icon, .hero-badges { display: none !important; }
  .card { box-shadow: none; border: 1px solid #999; page-break-inside: avoid; }
  .ms-body { display: block !important; }
  .milestone { page-break-inside: avoid; }
  a[href]::after { content: ""; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
