/* Safe in Pregnancy | Safe in Children — static site styles */
:root {
  --c-primary: #0e5a6b;
  --c-primary-dark: #093f4c;
  --c-primary-soft: #e6f1f3;
  --c-accent: #ba4f39; /* 4.9:1 on white, 4.6:1 on --c-bg-alt (WCAG 1.4.3) */
  --c-accent-soft: #fbece8;
  --c-text: #1d2a30;
  --c-muted: #5b6b72;
  --c-border: #dbe3e6;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f8f9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 40, 48, .06), 0 4px 16px rgba(16, 40, 48, .06);
  --max: 1180px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* so display rules on .btn, .embed-frame, etc. never override the hidden attribute */
html { scroll-behavior: smooth; scroll-padding-top: 16px; } /* the menu no longer follows the scroll */
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--c-text); background: var(--c-bg);
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--c-primary-dark); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--c-muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
/* Two-tone focus ring (white + navy): visible on light, dark and orange backgrounds (WCAG 2.4.7 / 1.4.11).
   The transparent outline keeps a ring in Windows high-contrast mode, where box-shadow is not drawn. */
:focus-visible { outline: 3px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 0 0 5px #0C3144 !important; } /* !important: components with their own box-shadow (tabs, cards) must not hide it */

/* ---------- Header: floating white card (as on the original site) ---------- */
:root { --header-h: 108px; } /* total height of the sticky header area (card + top/bottom gap) */
/* Menu stays at the top of the page (it does not follow the scroll) */
.site-header { position: relative; z-index: 50; padding: 12px 20px; pointer-events: none; }
/* "Back to top" round button (home), bottom right */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid #fff; background: #0C3144; color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: grid; place-items: center;
}
.to-top:hover { background: #006BA7; }
.to-top:focus-visible { outline: 3px solid #EE7F00; outline-offset: 2px; }
.to-top span { width: 12px; height: 12px; border: solid currentColor; border-width: 3px 3px 0 0; transform: translateY(3px) rotate(-45deg); }
.to-top[hidden] { display: none; }
body:has(.cookie-banner) .to-top { bottom: 110px; } /* stay above the cookie banner while it is open */
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; position: relative;
  background: #fff; border-radius: 8px; box-shadow: 0 4px 18px rgba(12,49,68,.16); pointer-events: auto;
}
/* Pages whose first block is a hero image/gradient: the header floats over it */
.hero-page .site-header + main > :first-child,
.hero-page .site-header + .lsr-head { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 8px); } /* disease pages: name right under the menu */
/* Logo: "Safe in Pregnancy / Safe in Children" image + purple "Emerging vaccines" block, as one rounded pill */
.brand { display: inline-flex; align-items: stretch; border: 1px solid #dcdaf9; border-radius: 10px; overflow: hidden; background: #fff; text-decoration: none; }
.brand img { height: 52px; width: auto; padding: 0 10px; }
.brand-tag {
  display: flex; align-items: center; padding: 0 14px; background: #5B55F7; color: #fff;
  font-family: Arial, Helvetica, sans-serif; /* closer to the logo lettering than the site font */
  font-weight: 700; font-size: 1.05rem; line-height: 1.05; letter-spacing: -.01em;
}
.brand-tag { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 600px) { .brand img { height: 36px; padding: 0 4px; } .brand-tag { font-size: .8rem; padding: 0 8px; } }
@media (max-width: 360px) { .brand img { height: 30px; } .brand-tag { font-size: .72rem; padding: 0 6px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button {
  font: inherit; font-size: .97rem; font-weight: 600; color: var(--c-text); text-decoration: none;
  padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.nav .dropdown { position: relative; }
/* Invisible bridge over the gap between the button and the menu, so moving the mouse down doesn't close it */
.nav .dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav .dropdown-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 300px; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
}
.nav .dropdown-menu a { display: block; font-weight: 500; }
.nav .dropdown:hover .dropdown-menu, .nav .dropdown.open .dropdown-menu { display: block; }
/* Escape closes it even while hovered (WCAG 1.4.13); cleared when the pointer leaves */
.nav .dropdown.dismissed:not(.open) .dropdown-menu { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--c-border); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-text); margin: 4px 0; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-radius: 8px; padding: 8px 16px 16px; box-shadow: 0 4px 18px rgba(12,49,68,.16);
  }
  .nav.open { display: flex; }
  .nav .dropdown-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav .dropdown::after { display: none; }
}

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--c-primary); background: var(--c-primary);
  color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--c-primary-dark); color: #fff; }
.btn.outline { background: #fff; color: var(--c-primary); }
.btn.outline:hover { background: var(--c-primary-soft); }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--c-primary-soft); color: var(--c-primary-dark);
}
.chip.accent { background: var(--c-accent-soft); color: #8f3423; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 72px; background: #0C3144; isolation: isolate; }
/* Crossfading photo slideshow behind the same blue overlay as the page headers (.lsr-head) */
.hero-slides { --n: 4; --t: 6s; position: absolute; inset: 0; z-index: -2; }
.hero-slides div {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
  animation: hero-fade calc(var(--n) * var(--t)) infinite;
}
.hero-slides div:nth-child(1) { opacity: 1; animation-delay: 0s; }
.hero-slides div:nth-child(2) { animation-delay: calc(1 * var(--t)); }
.hero-slides div:nth-child(3) { animation-delay: calc(2 * var(--t)); }
.hero-slides div:nth-child(4) { animation-delay: calc(3 * var(--t)); }
@keyframes hero-fade { 0% { opacity: 0; } 5% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-slides div { animation: none; } }
/* Pause/play for the slideshow (WCAG 2.2.2) */
.hero.paused .hero-slides div { animation-play-state: paused; }
.hero-pause {
  position: absolute; right: 16px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .85rem; font-weight: 600; color: #fff; background: rgba(12,49,68,.75);
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 6px 14px; min-height: 32px; cursor: pointer;
}
.hero-pause:hover { background: rgba(12,49,68,.95); }
@media (prefers-reduced-motion: reduce) { .hero-pause { display: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(12,49,68,.92) 0%, rgba(12,49,68,.78) 45%, rgba(14,90,107,.55) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #dff3ec; color: #0f6b52; font-weight: 600;
  font-size: 1.05rem; padding: 10px 18px; border-radius: 6px; margin-bottom: 22px;
}
.hero-eyebrow { margin: 0 0 16px !important; font-size: .9rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8FD3CF; opacity: 1 !important; max-width: none !important; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-hero {
  display: inline-block; background: #fff; color: #0C3144; text-decoration: none; font-weight: 600;
  padding: 14px 22px; border: 1px solid #fff; border-radius: 8px; transition: background .15s, color .15s;
}
.btn-hero:hover { background: #dff3ec; border-color: #dff3ec; color: #0C3144; }
.btn-hero-outline { background: transparent; color: #fff; border-color: #8FD3CF; }
.btn-hero-outline:hover { background: rgba(143,211,207,.15); color: #fff; border-color: #8FD3CF; }
.btn-hero:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
@media (max-width: 480px) { .btn-hero { flex: 1 1 100%; text-align: center; } }
.hero-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; box-shadow: inset 0 0 0 2px #dff3ec, inset 0 0 0 6px currentColor; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.15; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.hero p { max-width: 640px; font-size: 1.15rem; opacity: .92; margin-top: 18px; }
.hero-diseases { display: flex; flex-direction: column; gap: 12px; }
/* Navy text on the original colours (contrast 4.6:1 to 7.2:1); Ebola keeps white text on its dark red */
.hero-diseases a {
  display: block; text-align: center; color: #0C3144; text-decoration: none; font-weight: 700; font-size: 1.1rem;
  padding: 11px 20px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.18); transition: transform .15s, filter .15s;
}
.hero-diseases a:hover { transform: translateX(-4px); filter: brightness(1.08); color: #0C3144; }
.hero-diseases .d-covid { background: #6a9fe6; }
.hero-diseases .d-chik  { background: #2ecc71; }
.hero-diseases .d-lassa { background: #9f89e2; }
.hero-diseases .d-mpox  { background: #12b8a6; }
.hero-diseases .d-rsv   { background: #f39c12; }
.hero-diseases .d-ebola { background: #8b0000; color: #fff; }
.hero-diseases .d-ebola:hover { color: #fff; }
.hero-diseases .d-x     { background: #e8b27a; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-diseases { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .hero-diseases { gap: 8px; } .hero-diseases a { font-size: .9rem; padding: 10px 8px; } }

/* ---------- Disease sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--c-bg-alt); }
.disease { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
/* Two photos per disease: a tall main one and a smaller one overlapping its lower corner (as on the original home) */
.disease-media { position: relative; padding-bottom: 70px; }
.disease-media img { object-fit: cover; box-shadow: var(--shadow); background: var(--c-primary-soft); }
.disease-media .main { width: 82%; aspect-ratio: 3 / 4; border-radius: 120px 24px 120px 24px; }
.disease-media .small { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 3 / 4; border-radius: 24px 80px 24px 80px; border: 6px solid #fff; }
.section.alt .disease-media .small { border-color: var(--c-bg-alt); }
/* Green title box */
.disease-title {
  display: flex; align-items: flex-start; gap: 14px; flex-direction: row; flex-wrap: wrap;
  background: #dff3ec; color: #0f6b52; font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.3;
  padding: 16px 22px; border-radius: 6px; margin-bottom: 20px;
}
.disease-title::before {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-top: .45em; border-radius: 50%;
  border: 2px solid currentColor; box-shadow: inset 0 0 0 2px #dff3ec, inset 0 0 0 7px currentColor;
}
.disease-title small { flex-basis: 100%; padding-left: 26px; font-size: .75em; font-weight: 500; }
/* Checklist of the review's contents */
.lsr-links { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 10px; }
.lsr-links > li { position: relative; padding-left: 38px; font-weight: 700; color: var(--c-primary-dark); min-height: 26px; }
.lsr-links > li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--c-primary)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.lsr-links a { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.lsr-links a:hover { color: var(--c-primary); }
.lsr-links ul { list-style: none; padding: 4px 0 0; margin: 0; font-weight: 500; }
.lsr-links ul li::before { content: "– "; }
.lsr-links .chip { margin-left: 6px; vertical-align: middle; }
.disease .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--c-accent); }
.disease h3 { margin-top: 1.4em; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.tool-card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--c-border);
  border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--c-text); transition: border-color .15s, box-shadow .15s;
}
.tool-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow); color: var(--c-text); }
.tool-card strong { color: var(--c-primary-dark); }
.tool-card.primary { background: var(--c-primary); border-color: var(--c-primary); }
.tool-card.primary strong, .tool-card.primary span { color: #fff; }
.tool-card.pending { opacity: .55; pointer-events: none; border-style: dashed; }
.protocols { display: flex; flex-wrap: wrap; gap: 10px; }
.funder { margin-top: 18px; font-size: .9rem; color: var(--c-muted); border-left: 3px solid var(--c-border); padding-left: 12px; }
@media (max-width: 860px) { .disease { grid-template-columns: 1fr; gap: 28px; } .disease-media { max-width: 260px; padding-bottom: 50px; } }

/* ---------- Cards (spotlights, team, resources) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px; }
.video-card .video { aspect-ratio: 16/9; background: var(--c-primary-soft); border-radius: 8px; margin-bottom: 12px; overflow: hidden; display: grid; place-items: center; color: var(--c-muted); font-size: .9rem; }
.video-card iframe { width: 100%; height: 100%; border: 0; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.member { text-align: center; }
.member img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; background: var(--c-primary-soft); }
.member h3 { font-size: 1.05rem; margin-bottom: 2px; }
.member p { font-size: .9rem; color: var(--c-muted); margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--c-border); margin-bottom: 28px; }
.tabs a, .tabs button {
  font: inherit; font-weight: 600; padding: 10px 16px; border: 0; background: none; cursor: pointer; color: var(--c-muted);
  text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs [aria-selected="true"], .tabs a.active { color: var(--c-primary-dark); border-bottom-color: var(--c-primary); }

/* ---------- Spotlights video viewer ---------- */
.sp-viewer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 28px; }
.sp-player { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sp-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.sp-main h2 { margin: 18px 0 8px; font-size: 1.5rem; }
.sp-desc { color: var(--c-muted); }
.sp-desc .chip { margin-bottom: 10px; }
/* height:0 + min-height:100% = the list is as tall as the player column and scrolls inside */
.sp-list { display: flex; flex-direction: column; gap: 8px; height: 0; min-height: 100%; overflow-y: auto; padding-right: 4px; }
.sp-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: start; text-align: left; font: inherit;
  padding: 8px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.sp-item img { grid-row: span 2; width: 140px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--c-primary-soft); }
.sp-item .sp-title { font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--c-primary-dark); }
.sp-item .chip { justify-self: start; font-size: .72rem; }
.sp-item:hover { border-color: var(--c-primary); }
.sp-item[aria-current="true"] { background: #0C3144; border-color: #0C3144; }
.sp-item[aria-current="true"] .sp-title { color: #fff; }
@media (max-width: 900px) { .sp-viewer { grid-template-columns: 1fr; } .sp-list { height: auto; min-height: 0; } }

/* ---------- Resources ---------- */
.search-panel { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.search-panel input, .search-panel select {
  font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 8px; background: #fff; width: 100%;
}
.search-panel input:focus, .search-panel select:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px var(--c-primary-soft); }
@media (max-width: 900px) { .search-panel { grid-template-columns: 1fr 1fr; } .search-panel .q { grid-column: 1 / -1; } }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.resource-list { display: grid; gap: 12px; }
.resource { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.resource h3 { font-size: 1.08rem; margin: 6px 0 4px; color: var(--c-text); }
.resource .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.resource .authors { font-size: .9rem; color: var(--c-muted); margin: 0; }
.resource mark { background: #fff0b3; padding: 0 1px; }
@media (max-width: 640px) { .resource { grid-template-columns: 1fr; } }
.empty { text-align: center; padding: 40px; color: var(--c-muted); }
.load-more { display: flex; justify-content: center; margin-top: 20px; }

/* ---------- Disease page header: photo + name + partner logos ---------- */
.lsr-head {
  padding: 36px 0 22px; color: #fff;
  background:
    linear-gradient(100deg, rgba(12,49,68,.92) 0%, rgba(12,49,68,.78) 45%, rgba(14,90,107,.55) 100%),
    url("../../assets/img/hero/pregnant-lady-visiting-doctor.jpg") center 30% / cover no-repeat;
}
.lsr-head .eyebrow { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 700; color: #EE7F00; }
/* Disease titles: same size on every page, one line on desktop (sized so the longest title fits),
   and the subtitle space is always reserved so every header has the same height */
.lsr-head h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25; margin: 4px 0 0; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.lsr-head h1 small { display: block; font-size: .5em; line-height: 1.25; font-weight: 600; margin-top: 6px; color: rgba(255,255,255,.9); }
@media (min-width: 768px) {
  .lsr-head h1 { white-space: nowrap; font-size: min(2.4rem, calc((100vw - 40px) / 28)); min-height: calc(1.25em + .625em + 6px); }
}
/* Partner logos at the bottom of disease pages, right before the footer */
/* Compact single strip: label on the left, logos on the right, to leave vertical room for the embedded dashboards */
.page-partners { background: #e9f1f7; padding: 10px 0; }
.page-partners .container { display: flex; align-items: center; gap: 24px; }
.page-partners h2 { flex: none; font-size: 1rem; font-weight: 400; color: #33475a; margin: 0; white-space: nowrap; }
.page-partners .sponsor-logos { flex: 1 1 auto; min-width: 0; box-shadow: none; padding: 8px 24px; }
/* All partner logos in one row on desktop (they shrink to fit); 4 per row on tablets, 2 on phones */
.page-partners .sponsor-logos { flex-wrap: nowrap; justify-content: space-between; gap: 24px; }
.page-partners .sponsor-logos img { flex: 1 1 0; min-width: 0; height: 44px; max-width: 150px; }
@media (max-width: 900px) {
  .page-partners .container { flex-direction: column; align-items: stretch; gap: 8px; }
  .page-partners h2 { text-align: center; }
  .page-partners .sponsor-logos { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
  .page-partners .sponsor-logos img { flex: 0 1 calc(25% - 24px); }
}
@media (max-width: 520px) { .page-partners .sponsor-logos img { flex-basis: calc(50% - 24px); height: 40px; } }
.lsr-head .lead { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 720px; margin: 10px 0 0; }
.sponsor-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 14px 36px;
  background: #fff; border-radius: 8px; padding: 16px 28px; box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.sponsor-logos img { height: 68px; width: auto; max-width: 190px; object-fit: contain; }
@media (max-width: 600px) { .sponsor-logos { gap: 12px 20px; padding: 12px 16px; } .sponsor-logos img { height: 48px; max-width: 130px; } }

/* ---------- Review section tabs (same look as the Ebola page) ---------- */
.lsr-nav {
  background: linear-gradient(90deg, #0C3144, #08202C); padding: 16px 20px; display: flex; align-items: center;
  justify-content: center; gap: 12px; flex-wrap: wrap; border-bottom: 4px solid #EE7F00; box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.lsr-tab {
  font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: .02em; padding: 12px 24px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #C5EDFF; cursor: pointer; transition: all .15s;
}
a.lsr-tab { text-decoration: none; }
.lsr-tab:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #fff; }
/* Navy text on orange: 5:1 (white was 2.7:1) */
.lsr-tab[aria-selected="true"], .lsr-tab[aria-current="true"] { background: #EE7F00; border-color: #EE7F00; color: #0C3144; box-shadow: 0 2px 10px rgba(238,127,0,.45); }
.lsr-subnav { background: #EBF4FB; border-bottom: 1px solid #C5D8E8; padding: 12px 20px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.lsr-subnav[hidden] { display: none; }
.lsr-subnav button {
  font: inherit; font-weight: 600; font-size: .9rem; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid #006BA7; background: #fff; color: #0C3144;
}
.lsr-subnav button:hover { background: #D6EAF5; }
.lsr-subnav button[aria-pressed="true"] { background: #006BA7; color: #fff; }
/* Third level (e.g. one GRADE table per PICO question): stacked, wrapping buttons */
.lsr-subnav.questions { background: #fff; flex-direction: column; align-items: center; gap: 6px; padding: 12px 20px; }
.lsr-subnav.questions button { width: 100%; max-width: 920px; border-radius: 8px; font-weight: 500; font-size: .88rem; line-height: 1.35; text-align: center; padding: 8px 16px; border-color: #A8C4D8; }
.lsr-subnav.questions button[aria-pressed="true"] { background: #0C3144; border-color: #0C3144; color: #fff; }
/* Accordion arrow under the questions (added by lsr-page.js): hides them to leave more room for the table */
.lsr-subnav.questions button.q-toggle {
  width: auto; max-width: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  border: 0; border-radius: 999px; background: none; color: #006BA7; font-size: .8rem; font-weight: 600; padding: 3px 12px;
}
.lsr-subnav.questions button.q-toggle:hover { background: #EBF4FB; }
.q-toggle::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(2px) rotate(-45deg); }
.lsr-subnav.questions.collapsed { padding-top: 4px; padding-bottom: 4px; }
.lsr-subnav.questions.collapsed > button[data-sub] { display: none; }
.lsr-subnav.questions.collapsed .q-toggle::after { transform: translateY(-2px) rotate(135deg); }
.lsr-subpanel[hidden] { display: none; }
/* Section tabs: one row on notebooks/monitors, even 3-per-row grid on tablets, wrapping buttons on phones */
@media (min-width: 1340px) {
  .lsr-nav { flex-wrap: nowrap; }
  .lsr-tab { flex: 0 1 auto; padding: 10px 12px; font-size: .85rem; line-height: 1.25; text-align: center; white-space: nowrap; }
}
@media (min-width: 1600px) { .lsr-tab { padding: 12px 22px; font-size: .95rem; } }
@media (min-width: 701px) and (max-width: 1339px) {
  .lsr-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .lsr-tab { padding: 10px 12px; line-height: 1.25; text-align: center; }
}
@media (max-width: 700px) {
  .lsr-nav { padding: 12px; gap: 8px; }
  .lsr-tab { padding: 10px 14px; font-size: .85rem; flex: 1 1 auto; }
}

/* ---------- Embed viewer ---------- */
.viewer-head { padding: 28px 0 0; background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); }
.viewer-head .tabs { margin-bottom: 0; border-bottom: 0; }
.crumbs { font-size: .9rem; margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.embed-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 0; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtabs button { font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c-border); background: #fff; cursor: pointer; }
.subtabs button[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.embed-toolbar { padding: 10px 0; }
/* Full-bleed embed: fills the window below the sticky site header */
/* Spinner shown as the frame's background until the embedded page paints over it */
:root { --frame-loading: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23c5d8e8' stroke-width='5'/%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23EE7F00' stroke-width='5' stroke-linecap='round' stroke-dasharray='31 126'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E"); }
.embed-frame { display: block; width: 100%; height: calc(100vh - var(--header-h)); min-height: 600px; border: 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: #fff var(--frame-loading) center 120px / 56px no-repeat; }
.embed-frame.is-loaded, .ebt .sipr-panel iframe.is-loaded { background-image: none; }
/* GRADE summary-of-findings tables are long: a taller frame */
.embed-frame[data-src*="gradepro.org"], .embed-frame[src*="gradepro.org"] { height: max(calc(100vh - 20px), 2500px); }
/* Tab / sub-tab whose content is still loading: small spinner next to its label */
.lsr-tab.is-loading::after, .lsr-subnav button.is-loading::after, .sipr-tab.is-loading::after {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-left: 8px; vertical-align: -.15em;
  background: var(--frame-loading) center / contain no-repeat;
}
@media (prefers-reduced-motion: reduce) { .lsr-tab.is-loading::after, .lsr-subnav button.is-loading::after, .sipr-tab.is-loading::after { opacity: .7; } }

/* ---------- PROSPERO protocol (HTML version of the registration record, protocols/*.html) ---------- */
.protocol { max-width: 920px; margin: 0 auto; padding: 36px 20px 56px; }
.protocol-head { border-bottom: 2px solid var(--c-border); padding-bottom: 20px; margin-bottom: 8px; }
.protocol-reg { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a8550a; }
.protocol h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 12px; }
.protocol-authors { font-style: italic; color: var(--c-muted); }
.protocol-note { background: var(--c-accent-soft); color: #8f3423; padding: 10px 14px; border-radius: 8px; font-size: .92rem; }
.protocol-links { display: flex; flex-wrap: wrap; gap: 10px; }
.protocol-links a { display: inline-block; font-weight: 700; text-decoration: none; border: 2px solid var(--c-primary); border-radius: 8px; padding: 7px 14px; }
.protocol-links a:hover { background: var(--c-primary-soft); }
.protocol-citation { font-size: .9rem; color: var(--c-muted); overflow-wrap: anywhere; }
.protocol section h3 { margin: 32px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--c-border); color: var(--c-primary); font-size: 1.25rem; }
.protocol h4 { margin: 20px 0 4px; font-size: 1.02rem; color: var(--c-text); }
.protocol h5 { margin: 14px 0 2px; font-size: .95rem; font-style: italic; color: var(--c-text); }
.protocol p, .protocol li { overflow-wrap: anywhere; }
.protocol p { margin: 0 0 .5em; }
.protocol-loading { min-height: 300px; background: var(--frame-loading) center 60px / 48px no-repeat; }
.embed-frame[hidden], .lsr-panel[hidden] { display: none; }
/* Hidden tabs are kept rendered off-screen (not display:none) so preloaded dashboards draw in the background
   and are ready when opened. visibility:hidden keeps them out of the keyboard order and screen readers. */
/* overflow: clip keeps those off-screen panels from adding blank space below the footer (unlike hidden,
   it creates no scroll container, so the sticky header keeps working) */
main { position: relative; overflow: clip; }
.lsr-panel[hidden] { display: block !important; position: absolute; top: 0; left: -300vw; width: 100%; visibility: hidden; pointer-events: none; }
/* Power BI (as on the original Ebola page): full width with a 10px gutter, and a height that follows the report's
   proportions (16:9 + ~36px footer bar), so the report always fills the width. The page scrolls to see the bottom. */
.embed-frame[src*="app.powerbi.com"], .embed-frame[data-src*="app.powerbi.com"], .embed-frame[data-dashboard] {
  --pbi-gutter: 10px;
  width: calc(100% - 2 * var(--pbi-gutter)); margin: 0 var(--pbi-gutter); min-height: 0; border: 0;
  height: calc((100vw - 2 * var(--pbi-gutter)) * 9 / 16 + 36px);
}
/* Reports whose design has no side padding of its own (COVID, Chikungunya, Ebola dashboards): add a wider margin */
.embed-frame.pbi-inset { --pbi-gutter: clamp(16px, 4vw, 64px); }
.coming-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 420px; padding: 80px 20px; background: #EBF4FB; border-bottom: 1px solid #C5D8E8; }
.coming-soon .eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #1d7ab4; background: #fff; border: 1px solid #C5D8E8; padding: 5px 16px; border-radius: 999px; margin-bottom: 22px; }
.coming-soon strong { font-size: 2.1rem; color: #0C3144; margin-bottom: 8px; }
.coming-soon p { color: #547188; max-width: 440px; margin: 0; }
.embed-pending { padding: 60px 20px; text-align: center; border-top: 1px dashed var(--c-border); border-bottom: 1px dashed var(--c-border); color: var(--c-muted); }

/* ---------- Cookie banner (common.js) ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #0C3144; color: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,.25); }
.cookie-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; }
.cookie-banner p { margin: 0; font-size: .95rem; }
.cookie-banner .btn { padding: 7px 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { background: #EE7F00; border-color: #EE7F00; color: #0C3144; }
.cookie-banner .btn:hover { filter: brightness(1.08); background: #EE7F00; color: #0C3144; }
.cookie-banner .btn.outline { background: transparent; border-color: #fff; color: #fff; }
.cookie-banner .btn.outline:hover { background: rgba(255,255,255,.12); }
.link-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; min-height: 24px; text-decoration: underline; cursor: pointer; } /* WCAG 2.5.8 target size */

/* ---------- Contact / footer ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .9rem; margin: 10px 0 4px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 8px; }
.form textarea { min-height: 130px; resize: vertical; }
.form button:disabled { opacity: .6; cursor: wait; }
.form-status { padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.form-status.ok { background: #dff3ec; color: #0f6b52; }
.form-status.error { background: var(--c-accent-soft); color: #7a2c1d; }
.site-footer { background: #000; color: #c9c9c9; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(290px, 1.3fr) 1fr 1fr 1fr; gap: 28px; } /* first column wide enough for the full logo */
.footer-grid h2 { color: #fff; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
/* Footer logo = same as the header logo (logo + purple "Emerging vaccines" block) */
.footer-logo { border-color: #fff; }
.footer-logo img { height: 48px; padding: 4px 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.footer-bottom a, .footer-grid li a { display: inline-block; padding: 2px 0; min-height: 24px; } /* WCAG 2.5.8 target size */
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.page-head { padding: 48px 0 24px; background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.alert { padding: 12px 16px; border-radius: 8px; background: var(--c-accent-soft); color: #7a2c1d; margin: 16px 0; }
