/* Website navigation outside preserved publication interiors. Print is unchanged. */
@font-face { font-family:'Weave Navigation'; src:url('/fonts/switzer-latin-variable.woff2') format('woff2'); font-weight:300 700; font-display:swap; }
@media screen {
  .weave-reader-nav { box-sizing:border-box; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px 32px; width:100%; margin:0; padding:20px 24px; background:#153f38; color:#fff; font:500 15px/1.5 'Weave Navigation',Arial,sans-serif; border:0; }
  .weave-reader-nav a { display:inline-flex; align-items:center; min-height:44px; color:#fff; text-decoration:none; border:0; padding:4px 0; }
  .weave-reader-nav a:first-child { color:#ead08a; font-size:25px; letter-spacing:.12em; margin-right:24px; }
  .weave-reader-nav a:focus-visible { outline:2px solid #ead08a; outline-offset:5px; }
  .weave-reader-nav a:hover { text-decoration:underline; text-underline-offset:5px; }
  .publication-refresh > .site-header { background:#fff; color:#183f36; border-bottom:2px solid #d1b46b; padding:8px 24px; }
  .publication-refresh .site-header .nav-pill { background:#fff; color:#183f36; border:0; border-radius:0; box-shadow:none; }
  .publication-refresh .site-header :is(.brand,.nav-link,.theme-toggle) { color:#183f36; }
  .publication-refresh .site-header .button { border:2px solid #183f36; background:#183f36; color:#fff; border-radius:0; }
  .publication-refresh .site-header .nav-links { background:#fff; }
}
@media screen and (max-width:600px) {
  .weave-reader-nav { gap:4px 24px; justify-content:flex-start; padding:14px 22px; }
  .weave-reader-nav a:first-child { width:100%; margin:0; }
  .publication-refresh > .site-header { padding:8px 16px; }
}
@media print { .weave-reader-nav { display:none!important; } }
@media screen {
  .weave-reader-nav[data-urgent] { padding:8px 20px; justify-content:space-between; }
  .weave-reader-nav[data-urgent] a:first-child { width:auto; margin:0; font-size:22px; }
  .weave-reader-nav[data-urgent] a:nth-child(n+3) { display:none; }
}

/* Shared compact footer: duplicated in reader chrome to leave book interiors alone. */
@media screen {
  body .site-footer.footer-compact {display:block;background:#203f38;color:#fff;padding:40px clamp(22px,4.5vw,72px) 28px;border:0;font:15px/1.55 var(--font-ui,Arial,sans-serif);}
  body .site-footer.footer-compact .shell {width:100%;max-width:1500px;padding:0;margin-inline:auto;}
  body .site-footer.footer-compact .footer-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px 32px;}
  body .site-footer.footer-compact .footer__brand {grid-column:1/-1;display:grid;grid-template-columns:1.3fr 1fr auto;gap:24px;align-items:center;margin:0 0 12px;padding:0;}
  body .site-footer.footer-compact .footer__brand .brand {font:28px/1.2 var(--font-editorial,Georgia,serif);white-space:normal;max-width:25ch;}
  body .site-footer.footer-compact :is(p,h2,ul,li,section,nav) {margin:0;min-width:0;}
  body .site-footer.footer-compact :is(p,li,a) {font-size:15px;line-height:1.55;}
  body .site-footer.footer-compact a {color:inherit;}
  body .site-footer.footer-compact :is(ul,li) {padding:0;list-style:none;}
  body .site-footer.footer-compact .footer-grid nav ul {display:grid;gap:8px;margin-top:8px;}
  body .site-footer.footer-compact .footer-grid nav a {min-height:44px;display:flex;align-items:center;}
  body .site-footer.footer-compact .footer-disclosure {border:0;box-shadow:none;padding:0;background:none;color:inherit;}
  body .site-footer.footer-compact .footer-disclosure > summary {display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;list-style:none;cursor:pointer;font:600 15px/1.4 var(--font-ui,Arial,sans-serif);color:#ebd99e;}
  body .site-footer.footer-compact .footer-disclosure > summary::-webkit-details-marker {display:none;}
  body .site-footer.footer-compact .footer-disclosure > summary::after {content:'+';font-size:22px;font-weight:400;flex:none;}
  body .site-footer.footer-compact .footer-disclosure[open] > summary::after {content:'−';}
  body .site-footer.footer-compact .footer-disclosure > summary :is(h2,p) {font:inherit;letter-spacing:0;color:inherit;text-transform:none;}
  body .site-footer.footer-compact .footer-locations {display:grid;grid-template-columns:1fr auto;gap:18px 32px;border:0;margin-top:28px;padding-top:0;}
  body .site-footer.footer-compact .footer-locations > section {grid-column:1/-1;}
  body .site-footer.footer-compact .footer-locations ul {display:grid;grid-template-columns:1fr 1fr 1.7fr;gap:18px 28px;}
  body .site-footer.footer-compact .footer-locations li+li {margin:0;}
  body .site-footer.footer-compact .footer-areas {grid-column:1/-1;}
  body .site-footer.footer-compact .footer-area-disclosure > div {padding:8px 0;line-height:2;}
  body .site-footer.footer-compact .footer__legal {max-width:none;text-align:right;}
  body .site-footer.footer-compact .footer__brand a[href*='wa.me'] {display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px;}
}
@media screen and (max-width:1000px) {
  body .site-footer.footer-compact .footer-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
  body .site-footer.footer-compact .footer__brand {grid-template-columns:1fr 1fr;}
  body .site-footer.footer-compact .footer__brand .brand {grid-column:1/-1;}
}
@media screen and (max-width:760px) {
  body .site-footer.footer-compact {padding:32px 22px 76px;}
  body .site-footer.footer-compact .footer-grid {grid-template-columns:1fr;gap:4px;}
  body .site-footer.footer-compact .footer__brand {display:block;margin-bottom:20px;}
  body .site-footer.footer-compact .footer__brand .brand {font-size:25px;margin-bottom:12px;}
  body .site-footer.footer-compact .footer__brand p+p {margin-top:8px;}
  body .site-footer.footer-compact .footer-disclosure > summary {min-height:48px;}
  body .site-footer.footer-compact .footer-grid nav ul {padding:4px 0 16px;margin:0;}
  body .site-footer.footer-compact .footer-locations {grid-template-columns:1fr;margin-top:12px;gap:16px;}
  body .site-footer.footer-compact .footer-locations ul {grid-template-columns:1fr;padding:8px 0 16px;}
  body .site-footer.footer-compact .footer__legal {text-align:left;font-size:13px;}
}

/* Preserve table semantics and let narrow screens scroll inside a visible edge. */
@media screen {
  body .site-table-scroll {
    width:100%; max-width:100%; min-width:0; overflow-x:auto;
    border:1px solid var(--hairline,#d4dcd8); margin-block:1rem;
    scrollbar-gutter:stable; overscroll-behavior-inline:contain;
  }
  body .site-table-scroll:focus-visible { outline:2px solid var(--thread-teal,#0f766e); outline-offset:3px; }
  body .site-table-scroll > table,
  body.wp-volume .content .site-table-scroll > table,
  .study .tw .site-table-scroll > table.mx {
    display:table; table-layout:auto; width:100%; min-width:30rem;
    overflow:visible; margin:0;
  }
  body .site-table-scroll :is(th,td) { min-width:10rem; overflow-wrap:break-word; word-break:normal; hyphens:manual; }
  .study .tw:has(> .site-table-scroll) { overflow:visible; }
}

@media screen and (max-width:640px) {
  .study .tw:not(.tw-wide) .site-table-scroll table.mx thead { display:table-header-group; }
  .study .tw:not(.tw-wide) .site-table-scroll table.mx tbody { display:table-row-group; }
  .study .tw:not(.tw-wide) .site-table-scroll table.mx tr { display:table-row; }
  .study .tw:not(.tw-wide) .site-table-scroll table.mx td { display:table-cell; }
  .study .tw:not(.tw-wide) .site-table-scroll table.mx td::before { display:none; }
}

/* Crisis tiers share a left edge. */
body .crisis-block .crisis-tier-1 { padding-inline:0; }

/* Second audit: figures retain readable labels inside a keyboard scroll region. */
@media screen {
  body .site-figure-scroll {
    width:100%; max-width:100%; min-width:0; overflow-x:auto;
    border:1px solid var(--hairline,#d4dcd8); margin-block:1rem;
    overscroll-behavior-inline:contain; scrollbar-gutter:stable;
  }
  body .site-figure-scroll > svg { display:block; width:100%; min-width:640px; max-width:none; height:auto; }
  body .site-figure-scroll:focus-visible { outline:2px solid var(--thread-teal,#0f766e); outline-offset:3px; }
}

@media screen and (max-width:767px) {
  body[data-book] .sources a[href*="who.int"] { display:block; max-width:100%; white-space:nowrap; overflow-x:auto; }
}
