/* Shared header and footer matched to worldpolicesummit.com, 14 November 2026.
   Scope the shell so the React platform keeps its own branding. */
.wps-site-shell {
  --shell-bg: #f7fafd;
  --shell-footer-bg: #edf2f8;
  --shell-ink: #16213a;
  --shell-muted: #5a6b85;
  --shell-border: #e0e9f4;
  --shell-hover: #eaf3fb;
  --shell-accent: #023689;
  --shell-ease: cubic-bezier(.22,.7,.2,1);
  font-family: museo_sans, Tahoma, system-ui, sans-serif;
  line-height: 1.5;
}
html[data-theme="dark"] .wps-site-shell {
  --shell-bg: #07061a;
  --shell-footer-bg: #040312;
  --shell-ink: #fff;
  --shell-muted: #b7c0d6;
  --shell-border: rgba(255,255,255,.14);
  --shell-hover: rgba(255,255,255,.08);
  --shell-accent: #7fd3f2;
}
.wps-site-header { position: fixed; top: 16px; left: 0; right: 0; padding: 0 20px; z-index: 6; pointer-events: none; transition: top .4s var(--shell-ease), padding .4s var(--shell-ease); }
.wps-site-header.is-stuck { top: 0; padding: 0; }
@scope (.wps-site-shell) {
  a, button, summary { -webkit-tap-highlight-color: transparent; }
  a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #009dd9; outline-offset: 4px; border-radius: 6px; }
  .nav { pointer-events: auto; line-height: 1.55; }
  .nav__pill { max-width: min(1560px,calc(100vw - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(7,6,26,.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: background .4s var(--shell-ease), box-shadow .4s var(--shell-ease), border-color .4s var(--shell-ease), max-width .4s var(--shell-ease), border-radius .4s var(--shell-ease), padding .4s var(--shell-ease); }
  .nav.is-stuck .nav__pill { max-width: 100%; border-radius: 0; padding: 10px 24px; background: rgba(255,255,255,.94); border-color: #d7e2f0; box-shadow: 0 18px 42px rgba(20,71,156,.1); }
  .nav__brand, .brand { display: flex; align-items: center; flex-shrink: 0; }
  .brand img { display: block; height: 28px; width: auto; }
  .brand .logo-on-light { display: none; }
  .nav.is-stuck .brand .logo-on-dark { display: none; }
  .nav.is-stuck .brand .logo-on-light { display: block; }
  .nav__links { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: clamp(7px,.72vw,14px) 24px; font-size: clamp(11.5px,.82vw,13px); font-weight: 600; color: rgba(255,255,255,.85); transition: color .4s var(--shell-ease); }
  .nav__links a { position: relative; padding: 4px 0; white-space: nowrap; transition: color .25s var(--shell-ease); }
  .nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: #009dd9; transform: scaleX(0); transform-origin: left; transition: transform .28s var(--shell-ease); }
  .nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
  .nav__links a:hover { color: #fff; }
  .nav.is-stuck .nav__links { color: #3a4a66; }
  .nav.is-stuck .nav__links a:hover { color: #023689; }
  .nvi { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
  /* Include the text-to-caret space without enlarging the visible menu group. */
  .nvi__toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 7px; width: 7px; height: 28px; padding: 0; margin-left: calc(6px + .24em); background: none; border: 0; color: inherit; }
  .nvi__toggle::before { content: ''; position: absolute; inset: 0 -13px 0 -4px; }
  .nvi__toggle svg { width: 7px; height: 4.5px; fill: currentColor; stroke: none; opacity: .8; transition: transform .25s var(--shell-ease); }
  .nvi.is-open .nvi__toggle svg { transform: rotate(180deg); }
  .nvi__dd { position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%,8px); min-width: 200px; width: max-content; max-width: min(390px,calc(100vw - 32px)); max-height: calc(100dvh - 110px); overflow-y: auto; padding: 8px; border-radius: 14px; background: rgba(10,9,32,.97); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 42px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .22s var(--shell-ease), transform .22s var(--shell-ease); }
  /* Keep a pointer bridge over the gap without interfering with dropdown scrolling. */
  .nvi::after { content: ''; position: absolute; left: -8px; right: -8px; top: 100%; height: 16px; }
  .nvi.is-open .nvi__dd { opacity: 1; pointer-events: auto; transform: translate(-50%,0); }
  .nvi:last-child .nvi__dd { left: auto; right: 0; transform: translateY(8px); }
  .nvi:last-child.is-open .nvi__dd { transform: translateY(0); }
  .nvi__dd a { display: block; padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; line-height: 1.5; color: rgba(255,255,255,.85); white-space: normal; }
  .nvi__dd a::after { display: none; }
  .nvi__dd a:hover, .nvi__dd a:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
  .nav.is-stuck .nvi__dd { background: rgba(255,255,255,.98); border-color: #d7e2f0; box-shadow: 0 18px 42px rgba(20,71,156,.14); }
  .nav.is-stuck .nvi__dd a { color: #3a4a66; }
  .nav.is-stuck .nvi__dd a:hover, .nav.is-stuck .nvi__dd a:focus-visible { background: rgba(20,71,156,.07); color: #023689; }
  .nav__end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
  .theme-toggle, .language-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: rgba(255,255,255,.85); transition: background .25s var(--shell-ease), color .25s var(--shell-ease); }
  .language-link { width: auto; min-width: 42px; padding: 0 10px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
  .theme-toggle:hover, .language-link:hover { background: rgba(255,255,255,.12); color: #fff; }
  .theme-toggle svg, .mobile-menu__theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .theme-toggle__sun { display: none; }
  .nav.is-stuck .theme-toggle, .nav.is-stuck .language-link { color: #5a6b85; background: rgba(22,33,58,.04); border-color: rgba(22,33,58,.14); }
  .nav.is-stuck .theme-toggle:hover, .nav.is-stuck .language-link:hover { color: #023689; background: rgba(20,71,156,.1); }
  .burger { display: none; flex-direction: column; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.06); }
  .burger__icon { display: flex; flex-direction: column; gap: 5px; }
  .burger__icon > span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
  .nav.is-stuck .burger { color: var(--shell-ink); background: var(--shell-hover); border-color: var(--shell-border); }
  .mobile-menu { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; padding: 24px 24px 40px; overflow-y: auto; border: 0; border-radius: 0; background: var(--shell-bg); color: var(--shell-ink); pointer-events: auto; box-shadow: none; }
  .mobile-menu[open] { animation: summit-menu-in .3s var(--shell-ease); }
  .mobile-menu::backdrop { background: rgba(4,3,18,.6); }
  .wps-mobile-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--shell-border); }
  .mobile-menu .brand .logo-on-dark { display: none; }
  .mobile-menu .brand .logo-on-light { display: block; }
  .wps-close-menu { display: grid; place-items: center; width: 40px; height: 40px; background: var(--shell-hover); border: 1px solid var(--shell-border); border-radius: 12px; font-size: 26px; }
  .mobile-menu nav > a, .mm-sub > summary { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--shell-border); font-size: 17px; font-weight: 700; }
  .mm-sub > summary { list-style: none; cursor: pointer; }
  .mm-sub > summary::-webkit-details-marker { display: none; }
  .mm-sub > summary::after { content: '+'; color: var(--shell-muted); font-weight: 400; }
  .mm-sub[open] > summary::after { content: '−'; }
  .mm-sub__list { padding: 4px 0 8px 16px; border-bottom: 1px solid var(--shell-border); }
  .mm-sub__list a { display: block; padding: 9px 0; color: var(--shell-muted); font-size: 15px; }
  .mm-sub__list a.is-all { font-weight: 700; color: var(--shell-accent); }
  .mobile-menu__theme { display: none; }
  .mobile-menu__utility { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; color: var(--shell-accent); }
  .mobile-menu .mobile-menu__utility > a { border: 0; font-size: 13px; padding: 6px 0; }

  .foot { position: relative; padding: clamp(48px,5vw,64px) 28px 40px; background: var(--shell-footer-bg); color: var(--shell-muted); }
  .foot::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,transparent,rgba(0,157,217,.35),transparent); box-shadow: 0 0 12px rgba(0,157,217,.15); }
  .foot__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.25fr auto; gap: clamp(30px,3.2vw,48px); padding-bottom: 44px; border-bottom: 1px solid var(--shell-border); }
  .foot__grid > * { min-width: 0; }
  .foot h4 { color: var(--shell-ink); margin: 0 0 18px; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
  .foot ul { display: flex; flex-direction: column; gap: 11px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
  .foot a { transition: color .25s var(--shell-ease); }
  .foot a:hover { color: var(--shell-accent); }
  .foot a[href^="mailto:"] { overflow-wrap: anywhere; }
  .foot__logo { display: inline-flex; }
  .foot__logo img { height: 36px; width: auto; max-width: 100%; }
  .foot__lock--dark, .foot__org-logo--dark { display: none; }
  .foot__grid > div:nth-child(4) li > span { display: block; margin-bottom: 4px; }
  .foot__grid > div:nth-child(4) li + li { margin-top: 8px; }
  .social { display: flex; gap: 10px; margin-top: 22px; }
  .social a, .foot__podcast-links a { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--shell-border); color: var(--shell-muted); transition: background .25s var(--shell-ease), border-color .25s var(--shell-ease), color .25s var(--shell-ease), box-shadow .25s var(--shell-ease); }
  .social svg { width: 16px; height: 16px; fill: currentColor; }
  .social a:hover, .foot__podcast-links a:hover { background: #009dd9; border-color: #009dd9; color: #04243c; box-shadow: 0 0 12px rgba(0,157,217,.2); }
  .foot__podcast { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
  .foot__podcast-label { font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--shell-ink); }
  .foot__podcast-links { display: flex; gap: 8px; }
  .foot__podcast-links a { width: 32px; height: 32px; }
  .foot__podcast-links svg { width: 15px; height: 15px; fill: currentColor; }
  .foot__app { margin-top: 22px; }
  .foot__app-links { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
  .foot__app-links a { display: inline-flex; flex-shrink: 0; }
  .foot__app-links img { display: block; width: auto; height: 42px; max-width: none; }
  .foot__org-logo { display: block; height: 72px; width: auto; }
  .foot__org-logo--dark { display: none; }
  .foot__bar { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: 11px; letter-spacing: .05em; }
  .foot__legal { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
  .foot__legal a, .foot__legal button { border: 0; border-bottom: 1px solid transparent; background: none; padding: 0; color: inherit; font: inherit; transition: color .2s ease, border-color .2s ease; }
  .foot__legal a:hover, .foot__legal button:hover { color: var(--shell-accent); border-bottom-color: currentColor; }
  @media (min-width:1101px) and (max-width:1366px) {
    .nav__pill { gap: 9px; padding-inline: 14px; }
    .brand img { height: 26px; }
    .nav__links { font-size: 11.5px; row-gap: 7px; }
    .theme-toggle, .language-link { height: 32px; flex-basis: 32px; }
    .theme-toggle { width: 32px; }
    .language-link { height: 32px; min-width: 38px; padding-inline: 8px; font-size: 10.5px; }
    .nvi__toggle { margin-left: calc(6px + .24em); }
  }
  @media (max-width:1280px) {
    .nvi__toggle { margin-left: calc(4px + .24em); }
  }
  /* Keep the reference's desktop spacing from 1280px upward; close gaps smoothly
     on smaller laptops so links do not collide with the logo and utilities. */
  @media (min-width:1101px) and (max-width:1279px) {
    .nav__links { column-gap: clamp(6px,calc(10.06vw - 104.76px),24px); }
    .nvi__toggle::before { right: -4px; }
  }
  @media (max-width:1100px) {
    .nav__links { display: none; }
    .burger { display: flex; }
    .nav__pill { gap: 10px; padding: 8px 10px 8px 16px; }
    .foot__grid { grid-template-columns: 1fr 1fr; }
    .foot__app-links img { height: 38px; }
  }
  @media (max-width:760px) {
    .brand img { height: 24px; }
    .nav__pill { padding: 9px 14px 9px 18px; }
    .nav.is-stuck .nav__pill { padding: 9px 18px; }
    .foot { padding: 48px 24px 32px; }
    .foot__grid { grid-template-columns: 1fr; gap: 32px; }
    .foot__logo img { height: 36px; }
  }
  @media (max-width:560px) {
    .nav__end .theme-toggle { display: none; }
    .mobile-menu__theme { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--shell-border); background: none; color: var(--shell-ink); font-size: 17px; font-weight: 700; text-align: left; }
  }
}
html[data-theme="dark"] .wps-site-shell .nav.is-stuck .nav__pill { background: rgba(7,6,26,.94); border-color: rgba(255,255,255,.14); box-shadow: 0 18px 42px rgba(0,0,0,.36); }
/* Root-based selectors also work when the theme is restored before the shell exists. */
html[data-theme="dark"] .wps-site-shell .nav.is-stuck .nav__links { color: rgba(255,255,255,.85); }
html[data-theme="dark"] .wps-site-shell .nav.is-stuck .nav__links a:hover { color: #fff; }
html[data-theme="dark"] .wps-site-shell .nav.is-stuck .nvi__dd { background: rgba(10,9,32,.97); border-color: rgba(255,255,255,.14); box-shadow: 0 18px 42px rgba(0,0,0,.4); }
html[data-theme="dark"] .wps-site-shell .nav.is-stuck .nvi__dd a { color: rgba(255,255,255,.85); }
html[data-theme="dark"] .wps-site-shell .nav.is-stuck .nvi__dd a:hover { background: rgba(255,255,255,.08); color: #fff; }
html[data-theme="dark"] .wps-site-shell .nav.is-stuck .theme-toggle,
html[data-theme="dark"] .wps-site-shell .nav.is-stuck .language-link { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.85); }
html[data-theme="dark"] .wps-site-shell .nav.is-stuck .brand .logo-on-dark,
html[data-theme="dark"] .wps-site-shell .mobile-menu .brand .logo-on-dark { display: block; }
html[data-theme="dark"] .wps-site-shell .nav.is-stuck .brand .logo-on-light,
html[data-theme="dark"] .wps-site-shell .mobile-menu .brand .logo-on-light { display: none; }
html[data-theme="dark"] .wps-site-shell .theme-toggle__sun { display: block; }
html[data-theme="dark"] .wps-site-shell .theme-toggle__moon { display: none; }
html[data-theme="dark"] .wps-site-shell .foot__lock--light,
html[data-theme="dark"] .wps-site-shell .foot__org-logo--light { display: none; }
html[data-theme="dark"] .wps-site-shell .foot__lock--dark,
html[data-theme="dark"] .wps-site-shell .foot__org-logo--dark { display: block; }
@media (max-width:760px) { .wps-site-header { top: 10px; padding: 0 12px; } .wps-site-header.is-stuck { top: 0; padding: 0; } }
@keyframes summit-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion:reduce) { .wps-site-shell, .wps-site-shell *, .wps-site-shell *::before, .wps-site-shell *::after { animation: none !important; transition: none !important; } }
