/* PSSD Institute — site styles
   Design: deep navy + warm gold, bold condensed headings (Archivo), readable body (Public Sans).
   Sections: tokens · base · buttons · header · sections & heroes · components · pages · footer. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --navy-950: #071a30;
  --navy-900: #0b2440;
  --navy-800: #0f3d66;
  --navy-700: #17497d;   /* brand blue (logo, headings) */
  --blue-500: #346eaa;
  --blue-100: #e6eef7;
  --blue-50:  #f3f7fb;
  --gold-500: #edb25e;   /* donate gold, from the old site */
  --gold-600: #e3a84e;
  --gold-700: #c98a2e;
  --gold-100: #fbefdc;
  --gold-text: #8a5a14;  /* gold for small text on light backgrounds (AA contrast) */
  --ink: #102035;
  --text: #2a3a4f;
  --muted: #56657a;
  --line: #d9e2ec;
  --paper: #ffffff;

  --font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(7, 26, 48, .10);
  --shadow-lg: 0 24px 60px rgba(7, 26, 48, .18);
  --header-h: 84px;
  --utility-h: 36px;
  --shimmer-cycle: 4.5s; /* shared rhythm: Donate button sweep + logo flame */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: .2em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
a:hover { color: var(--blue-500); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 760; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.1rem; font-weight: 700; }
p, li { text-wrap: pretty; }
p, ul, ol { margin: 0 0 1em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-500); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 800; color: var(--gold-text); margin: 0 0 .9rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
  line-height: 1.1; white-space: nowrap; max-width: 100%;
}
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-500); box-shadow: 0 8px 20px rgba(201, 138, 46, .28); }
.btn--gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--navy-950); }
/* Donate buttons: warm gold gradient, a light sweep every few seconds, soft breathing glow, sparkle on hover */
.btn--shimmer { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #f6cd85 0%, var(--gold-500) 45%, #e39f3f 100%) border-box; border-color: transparent; animation: donate-glow var(--shimmer-cycle) ease-in-out infinite; }
.btn--shimmer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .75) 46%, rgba(255, 248, 230, .95) 50%, rgba(255, 255, 255, .75) 54%, transparent 70%); background-size: 260% 100%; background-position: 140% 0; animation: donate-sweep var(--shimmer-cycle) ease-in-out infinite; pointer-events: none; }
.btn--shimmer::after { content: "✦"; position: absolute; top: 3px; right: 9px; font-size: .62em; color: #fff; opacity: 0; transform: scale(.4) rotate(0); transition: opacity .25s ease, transform .4s ease; pointer-events: none; text-shadow: 0 0 6px rgba(255, 255, 255, .9); }
.btn--shimmer:hover { background: linear-gradient(135deg, #f8d595 0%, var(--gold-500) 40%, #dc9532 100%) border-box; transform: translateY(-1px); }
.btn--shimmer:hover::after { opacity: 1; transform: scale(1) rotate(90deg); }
@keyframes donate-sweep { 0%, 55% { background-position: 140% 0; } 100% { background-position: -40% 0; } }
@keyframes donate-glow { 0%, 50%, 100% { box-shadow: 0 8px 20px rgba(201, 138, 46, .28), 0 0 0 0 rgba(237, 178, 94, 0); } 78% { box-shadow: 0 10px 26px rgba(201, 138, 46, .42), 0 0 0 6px rgba(237, 178, 94, .18); } }
/* Logo flame – calm, organic motion on the shared --shimmer-cycle:
   - each tongue sways gently from its base (main: one full sway per cycle, side: two, out of phase);
   - the whole flame swells softly, a warm halo brightens and a glint rises through it while the
     Donate sweep crosses the button (55–100% of the cycle). Everything returns smoothly to rest. */
.logo-flame { animation: flame-swell var(--shimmer-cycle) cubic-bezier(.45, 0, .25, 1) infinite; }
.logo-flame__tongue--main { animation: flame-sway calc(var(--shimmer-cycle) / 2) cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.logo-flame__tongue--side { animation: flame-sway-side calc(var(--shimmer-cycle) / 4) cubic-bezier(.37, 0, .63, 1) calc(var(--shimmer-cycle) / -8) infinite alternate; }
.logo-flame__halo { opacity: 0; animation: flame-halo var(--shimmer-cycle) ease-in-out infinite; }
.logo-glint { animation: flame-glint var(--shimmer-cycle) cubic-bezier(.4, 0, .3, 1) infinite; }
@keyframes flame-sway { from { transform: skewX(-1.6deg) scaleY(.995); } to { transform: skewX(1.8deg) scaleY(1.02); } }
@keyframes flame-sway-side { from { transform: skewX(2.4deg) scaleY(1.025); } to { transform: skewX(-1.8deg) scaleY(.985); } }
@keyframes flame-swell { 0%, 52%, 100% { transform: scale(1); } 76% { transform: scale(1.025, 1.055); } }
@keyframes flame-halo { 0%, 50%, 100% { opacity: 0; } 76% { opacity: .5; } }
@keyframes flame-glint { 0%, 55% { transform: translateY(0); opacity: 1; } 96% { opacity: 1; } 100% { transform: translateY(var(--glint-rise)); opacity: 0; } }
.btn--navy { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.btn--navy:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn--outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-700); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--lg { font-size: 1.05rem; padding: 1em 1.8em; }

.link-arrow { display: inline-flex; align-items: center; gap: .7em; font-family: var(--font-head); font-weight: 700; color: var(--navy-700); text-decoration: none; }
.link-arrow::after { content: ""; flex: none; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--navy-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9.5M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .85em no-repeat; box-shadow: 0 4px 10px rgba(23, 73, 125, .22); transition: transform .2s ease, background-color .2s ease; }
.link-arrow:hover { color: var(--navy-800); }
.link-arrow:hover::after { transform: translateX(4px); background-color: var(--blue-500); }
.link-arrow--light { color: #fff; }
.link-arrow--light::after { background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9.5M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23071a30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .85em no-repeat; box-shadow: 0 4px 12px rgba(237, 178, 94, .3); }
.link-arrow--light:hover { color: var(--gold-500); }
.link-arrow--light:hover::after { background-color: #f3c47e; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: calc(var(--utility-h) * -1); z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.utility-bar { background: var(--navy-900); color: #c9d6e6; font-size: .82rem; }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--utility-h); }
.utility-bar__tagline { margin: 0; }
.utility-bar__links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.utility-bar a { color: #fff; text-decoration: none; }
.utility-bar a:hover { color: var(--gold-500); text-decoration: underline; }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.site-header__actions { flex: none; }
.site-logo { flex: none; display: block; color: #1f446b; line-height: 0; }
.site-logo .logo-svg { display: block; width: 129px; height: 58px; } /* logo is 2.221:1 */
.site-logo:hover { color: var(--navy-800); }
.main-nav { margin-left: auto; }
.main-nav__list { display: flex; flex-wrap: nowrap; align-items: center; gap: .2rem .1rem; list-style: none; margin: 0; padding: 0; }
.main-nav__list a { display: block; padding: .5rem .6rem; border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; white-space: nowrap; color: var(--ink); text-decoration: none; }
.main-nav__list a:hover { background: var(--blue-50); color: var(--navy-700); }
.main-nav__list a[aria-current="page"] { color: var(--navy-700); box-shadow: inset 0 -3px 0 var(--gold-500); border-radius: 0; }
.main-nav__donate-mobile { display: none; }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 11px; right: 11px; height: 2.5px; border-radius: 2px; background: var(--navy-900); content: ""; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1340px) {
  .main-nav__list { flex-wrap: wrap; }
  .utility-bar__tagline { display: none; }
  .utility-bar__inner { justify-content: flex-end; }
  .nav-toggle { display: inline-block; }
  .site-header__inner { justify-content: space-between; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff;
    padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow-lg); border-top: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h) - var(--utility-h)); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav__list { flex-direction: column; align-items: stretch; }
  .main-nav__list a { font-size: 1.1rem; padding: .7rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav__list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold-500); padding-left: 1rem; }
  .main-nav__donate-mobile { display: flex; margin-top: 1.25rem; width: 100%; }
  .main-nav .lang-switch--menu { display: flex; justify-content: center; }
}
@media (max-width: 560px) {
  :root { --header-h: 70px; }
  .site-logo .logo-svg { width: 102px; height: 46px; }
  .btn--donate { padding: .7em 1.1em; font-size: .85rem; }
  .utility-bar__email { display: none; }
  .utility-bar__links { gap: .9rem; }
  .utility-bar__links li:nth-child(2) { display: none; }
  .utility-bar__links a { white-space: nowrap; }
}

/* ---------- Language switcher ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; font-size: inherit; }
.lang-switch__icon { width: 15px; height: 15px; opacity: .85; }
.lang-switch__item[aria-current] { font-weight: 700; }
.lang-switch a.lang-switch__item { text-decoration: none; }
.lang-switch a.lang-switch__item:hover { text-decoration: underline; text-underline-offset: .2em; }
.lang-switch__sep { opacity: .45; }
.lang-switch--bar { color: #fff; padding-left: .4rem; border-left: 1px solid rgba(255,255,255,.25); }
.lang-switch--bar a.lang-switch__item { color: #c9d6e6; }
.lang-switch--bar a.lang-switch__item:hover { color: var(--gold-500); }
.lang-switch--menu { display: none; margin-top: 1.1rem; font-size: 1.05rem; color: var(--ink); }
.lang-switch--menu a.lang-switch__item { color: var(--navy-700); font-weight: 600; }
.lang-switch--footer { margin-top: .4rem; color: #fff; }
.lang-switch--footer a.lang-switch__item { color: #b8c7da; }

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--mist { background: var(--blue-50); }
.section--navy { background: radial-gradient(1200px 500px at 85% -10%, #1d5a96 0%, transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #d6e1ee; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy a:not(.btn) { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2 { margin: 0; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.section--navy .section-head p { color: #c3d2e4; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--ink); }
.section--navy .lead { color: #e7eef7; }
.center { text-align: center; }

/* ---------- Home hero ---------- */
.home-hero { position: relative; overflow: hidden; background: radial-gradient(900px 480px at 90% 10%, #2a6aa8 0%, transparent 62%), linear-gradient(150deg, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%); color: #dbe6f3; }
.home-hero::after { content: ""; position: absolute; inset: auto -10% -2px -10%; height: 56px; background: #fff; clip-path: ellipse(60% 100% at 50% 100%); }
.home-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 7vw, 92px); }
.home-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .35em; letter-spacing: -.025em; }
.home-hero h1 em { font-style: normal; color: var(--gold-500); }
.home-hero .lead { color: #e2ebf6; max-width: 40rem; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.home-hero__media { margin: 0; position: relative; }
.home-hero__media > img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--blue-50); }
.home-hero__badge { position: absolute; left: -18px; bottom: -22px; background: #fff; color: var(--ink); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; max-width: 300px; font-size: .92rem; line-height: 1.35; }
.home-hero__badge img { width: 40px; height: 40px; flex: none; }
@media (max-width: 900px) {
  .home-hero__inner { grid-template-columns: 1fr; }
  .home-hero__badge { left: 12px; }
}

.home-hero + .section { padding-top: clamp(28px, 4vw, 48px); }
.home-hero + .section .split { align-items: start; }
.home-hero + .section .split .prose { padding-top: .5rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: #d9e4f1; }
.page-hero__inner { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: clamp(44px, 6vw, 80px); align-items: center; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .eyebrow, .home-hero .eyebrow, .section--navy .eyebrow, .panel--navy .eyebrow { color: var(--gold-500); }
.section--navy a.feature, .section--navy a.feature:hover { color: var(--navy-950); }
.page-hero a { color: #fff; text-decoration-color: var(--gold-500); }
.page-hero a:hover { color: var(--gold-500); }
.page-hero__intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #e2ebf6; max-width: 46rem; margin: 1rem 0 0; }
.page-hero--image .page-hero__inner { grid-template-columns: 1.2fr .8fr; }
.page-hero__media { margin: 0; }
.page-hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.12); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .page-hero--image .page-hero__inner { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose { max-width: 42rem; }
.prose p, .prose li { color: var(--text); }
.section--navy .prose p, .section--navy .prose li { color: #d6e1ee; }
.section--navy .prose .lead { color: #eef3f9; }
.prose--wide { max-width: none; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; color: var(--navy-700); }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .35em; }
.prose li > p { margin: 0; }
.prose li::marker { color: var(--navy-700); font-weight: 700; }
.prose strong { color: var(--ink); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--60 { grid-template-columns: 1.2fr .8fr; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 860px) { .split, .split--60 { grid-template-columns: 1fr; } }

/* ---------- Panels & tiles ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.panel h3 { margin-top: 0; }
.panel--navy { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; color: #dbe6f3; }
.panel--navy h3 { color: #fff; }
.panel--gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.panel--gold h3, .panel--gold h2 { color: var(--navy-950); }
.panel-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.panel-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .panel-grid--2 { grid-template-columns: 1fr; } }
.panel-grid--values { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.panel-grid--values > * { grid-column: span 2; }
.panel-grid--values > :nth-child(4), .panel-grid--values > :nth-child(5) { grid-column: span 3; }
@media (max-width: 900px) { .panel-grid--values { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel-grid--values > * { grid-column: auto !important; } .panel-grid--values > :last-child { grid-column: 1 / -1 !important; } }
@media (max-width: 560px) { .panel-grid--values { grid-template-columns: 1fr; } }

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .95rem; height: .95rem; border-radius: 50%; background: var(--gold-500); box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
.tick-list li > p { margin: 0; }
.footnote { font-size: .9rem; color: var(--muted); margin-top: 1.2rem; }
.section--navy .footnote { color: #a9bbd1; }

.tile-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; border: 2px solid var(--gold-500); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; line-height: 1.25; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.tile span:last-child { flex: none; width: 2rem; height: 2rem; border-radius: 50%; font-size: 0; background: var(--navy-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9.5M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .95rem no-repeat; box-shadow: 0 4px 10px rgba(23, 73, 125, .2); transition: transform .2s ease, background-color .2s ease; }
.tile:hover { background: var(--gold-100); color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile:hover span:last-child { transform: translateX(3px); background-color: var(--blue-500); }
.tile small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--muted); margin-top: .2rem; }

/* ---------- Stats (home "latest research") ---------- */
.stats { display: grid; grid-template-columns: .9fr 1fr 1fr 1fr; gap: clamp(18px, 3vw, 40px); align-items: start; }
.stats__intro { background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.4rem; }
.stats__intro h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
.stat__number { font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em; font-size: clamp(2.6rem, 4.6vw, 4.4rem); white-space: nowrap; line-height: 1; color: var(--gold-500); margin: 0 0 .4rem; }
.stat__number--phrase { white-space: nowrap; }
.stat__number--phrase span { font-size: .4em; letter-spacing: 0; margin-right: .15em; }
.stat p { margin: 0; color: #e2ebf6; font-weight: 600; line-height: 1.4; }
.stat cite { display: block; margin-top: .45rem; font-style: normal; font-size: .85rem; color: #a9bbd1; font-weight: 400; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stats__intro { grid-column: 1 / -1; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Feature (latest news) ---------- */
.feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(18px, 3vw, 32px); }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 320px; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--gold-500); color: var(--navy-950); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--navy-950); }
.feature__kicker { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .8rem; color: var(--navy-950); }
.feature__title { font-family: var(--font-head); font-weight: 800; letter-spacing: -.015em; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; margin: 0; color: var(--navy-950); }
.feature .link-arrow { color: var(--navy-950); align-self: flex-start; }

/* ---------- Accordion (native <details>) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem .25rem; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--navy-700); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--gold-500); background: linear-gradient(var(--navy-700), var(--navy-700)) center / 12px 2px no-repeat, linear-gradient(var(--navy-700), var(--navy-700)) center / 2px 12px no-repeat; transition: transform .2s ease, background-color .2s ease; }
.accordion details[open] summary::after { transform: rotate(45deg); background-color: var(--gold-100); }
.accordion summary:hover { color: var(--blue-500); }
.accordion__body { padding: 0 .25rem 1.4rem; }
.accordion__body > :last-child { margin-bottom: 0; }

/* ---------- Footnotes / sources ---------- */
.sources { columns: 2 22rem; column-gap: 2.5rem; font-size: .92rem; color: var(--muted); padding-left: 1.3rem; }
.sources li { break-inside: avoid; margin-bottom: .45rem; }


/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem 1.2rem; grid-template-columns: 1fr 1fr; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .35rem; font-size: .95rem; }
.field label .req { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input[type="text"], .field input[type="email"], .field textarea, .newsletter-form input[type="email"] {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .8rem .95rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .newsletter-form input[type="email"]:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(23, 73, 125, .15); }
.field--check { display: flex; gap: .6rem; align-items: center; }
.field--check input { width: 1.2rem; height: 1.2rem; accent-color: var(--navy-700); }
.field--check label { margin: 0; font-weight: 500; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.form-status { margin: .75rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status[data-state="success"] { color: #136c3a; }
.form-status[data-state="error"] { color: #a12a2a; }
.newsletter-form__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form__row input[type="email"] { flex: 1 1 240px; }
.newsletter-form--dark input[type="email"] { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; }
.newsletter-form--dark input[type="email"]::placeholder { color: #a9bbd1; }
.newsletter-form--dark .form-status[data-state="success"] { color: #8fe0b0; }
.newsletter-form--dark .form-status[data-state="error"] { color: #ffb4b4; }

/* ---------- Donate page ---------- */
.donate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .donate-layout { grid-template-columns: 1fr; } .donate-layout > .donate-widget { order: -1; } }
.donate-widget { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line); }
.donate-widget fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.donate-widget legend { font-family: var(--font-head); font-weight: 800; color: var(--ink); margin-bottom: .7rem; font-size: 1.05rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--blue-50); border-radius: 999px; padding: 5px; }
.seg input, .amounts input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: .7rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--muted); }
.seg input:checked + label { background: var(--navy-700); color: #fff; box-shadow: var(--shadow); }
.seg input:focus-visible + label, .amounts input:focus-visible + label { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.amounts label { display: grid; place-items: center; padding: .9rem .5rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); transition: border-color .15s ease, background .15s ease; }
.amounts input:checked + label { border-color: var(--gold-500); background: var(--gold-100); }
.amounts .amounts__other { grid-column: 1 / -1; font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.donate-widget .btn { width: 100%; }
.donate-note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; text-align: center; }
.donate-alt { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: .9rem; }
.trust-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.trust-list li { display: flex; gap: .8rem; align-items: flex-start; }
.trust-list li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold-100); color: var(--gold-700); font-weight: 900; font-size: .85rem; }

/* ---------- Donate band ---------- */
.donate-band { background: linear-gradient(100deg, var(--navy-800), var(--navy-900)); color: #d6e1ee; position: relative; overflow: hidden; }
.donate-band::before { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--gold-500), #f6d28f, var(--gold-600)); }
.donate-band__inner { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 1.5rem 2.5rem; align-items: center; padding-block: clamp(34px, 5vw, 52px); }
.donate-band__title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.donate-band__title span { color: var(--gold-500); }
.donate-band__text { margin: 0; color: #c9d6e6; }
.donate-band__actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 960px) { .donate-band__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #b8c7da; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); text-decoration: underline; }
.site-footer__signup { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; align-items: center; padding-block: clamp(40px, 6vw, 64px); border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__signup p { margin: 0; color: #c9d6e6; }
.site-footer__heading { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 0 0 .4rem; }
@media (max-width: 860px) { .site-footer__signup { grid-template-columns: 1fr; } }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-block: clamp(36px, 5vw, 56px); }
.site-footer__brand a:first-child { display: inline-block; color: #fff; line-height: 0; margin-bottom: 1.1rem; }
.site-footer__brand .logo-svg { display: block; width: 187px; height: 84px; }
.site-footer__brand a:first-child:hover { color: var(--gold-500); }
.site-footer__label { font-family: var(--font-head); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer__legal { margin: 0; padding-block: 1.4rem 2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #8ea2bb; }

/* ---------- Article (news) ---------- */
.article-meta { color: #c3d2e4; margin: 1rem 0 0; font-weight: 600; }
.article-body { font-size: 1.125rem; line-height: 1.75; }
.article-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--navy-700); }
.callout { border-left: 5px solid var(--gold-500); background: var(--gold-100); padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6rem 0; color: var(--ink); }
.callout p:last-child { margin: 0; }

/* ---------- Codes list (report page) ---------- */
.code-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.code-list li { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.code-list span { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.code-list a { font-family: var(--font-head); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.6rem; text-decoration: none; }


/* ---------- Small utilities ---------- */
.btn--sm { font-size: .8rem; padding: .62em 1.05em; letter-spacing: .05em; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-700); text-decoration: underline; cursor: pointer; }
.page-hero--compact .page-hero__inner { padding-block: clamp(36px, 5vw, 64px); }
.label { display: inline-flex; align-items: center; gap: .35em; font-size: .78rem; font-weight: 700; line-height: 1; padding: .42em .7em; border-radius: 999px; background: var(--blue-50); color: var(--navy-800); border: 1px solid var(--blue-100); }
.label--open { background: #e7f6ee; color: #145c34; border-color: #c7ead6; }
.label--open::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: #1f8a4c; }
.label--paywalled { background: #fdf3e3; color: #7a4d0b; border-color: #f4dfba; }

/* ---------- Jump links ---------- */
.jump-links { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: 1.5rem 0; }
.jump-links a { font-weight: 600; font-size: .95rem; text-decoration: none; padding: .45rem .9rem; border-radius: 999px; background: var(--blue-50); border: 1px solid var(--blue-100); }
.jump-links a:hover { background: var(--blue-100); }

/* ---------- Media & Resources (also Key Research Articles) ---------- */
.jump-links a span { font-size: .78rem; color: var(--muted); margin-left: .25rem; }
.m-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); padding-block: clamp(24px, 4vw, 40px) clamp(56px, 8vw, 96px); }
.m-panel { min-width: 0; background: linear-gradient(180deg, #fff, var(--blue-50)); border: 1px solid var(--blue-100); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 32px); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 12px 32px rgba(7, 26, 48, .06); scroll-margin-top: calc(var(--header-h) + 16px); }
.m-panel__headrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.m-panel__headrow .m-panel__head { margin-bottom: 0; }
.m-panel__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.m-panel__head h2 { margin: 0; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.m-panel__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--navy-700); color: #fff; box-shadow: 0 6px 14px rgba(23, 73, 125, .25); }
.m-panel__icon svg { width: 1.35rem; height: 1.35rem; }
.m-panel__count { font-size: .85rem; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; }
.m-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.2rem 0 1.1rem; }
.m-chip { font: inherit; font-size: .9rem; font-weight: 700; color: var(--navy-800); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.m-chip:hover { border-color: var(--navy-700); }
.m-chip[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.m-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.m-grid li { display: flex; }
.m-card { position: relative; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: 0 2px 6px rgba(7, 26, 48, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.m-card:hover { transform: translateY(-2px); border-color: #c5d5e6; box-shadow: 0 14px 30px rgba(7, 26, 48, .10); color: var(--ink); }
.m-card__icon { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(7, 26, 48, .06); }
.m-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.m-card__icon--mono { background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; border: 0; }
.m-card__icon--pdf { color: #c0392b; background: #fff5f3; }
.m-card__icon--pdf svg { width: 30px; height: 36px; }
.m-card__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.m-card__kicker { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.m-card__title { font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.3; }
.m-card__src { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.m-card__src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c3cfdc; flex: none; }
.m-card__arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy-700); background: var(--blue-50); transition: background .18s ease, color .18s ease, transform .18s ease; }
.m-card__arrow svg { width: 14px; height: 14px; }
.m-card:hover .m-card__arrow { background: var(--navy-700); color: #fff; transform: rotate(0deg) scale(1.05); }
.m-carousel__nav { display: flex; gap: .5rem; }
.m-round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy-700); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px rgba(7, 26, 48, .06); transition: background .15s ease, color .15s ease, opacity .15s ease; }
.m-round svg { width: 16px; height: 16px; }
.m-round:hover:not(:disabled) { background: var(--navy-700); color: #fff; }
.m-round:disabled { opacity: .35; cursor: default; }
.m-carousel { list-style: none; margin: 0 -6px; padding: 6px 6px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 16px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 6px; scrollbar-width: thin; }
.m-carousel:focus-visible { outline-offset: 4px; }
.m-carousel li { scroll-snap-align: start; display: flex; }
.m-video { position: relative; display: flex; flex-direction: column; gap: .45rem; width: 100%; padding: 10px 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.m-video:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(7, 26, 48, .12); color: var(--ink); }
.m-video__thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #1c1c1c, #3a3a3a); margin-bottom: .3rem; }
.m-video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.m-video__thumb--channel { background: linear-gradient(135deg, var(--navy-700), var(--navy-950)); }
.m-video__thumb .m-video__chan { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; }
.m-video__play { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); box-shadow: 0 0 0 2px rgba(255,255,255,.85); transition: background .15s ease, transform .15s ease; }
.m-video__play::after { content: ""; position: absolute; left: 19px; top: 15px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.m-video__thumb--channel .m-video__play { display: none; }
.m-video:hover .m-video__thumb img { transform: scale(1.05); }
.m-video:hover .m-video__play { background: #e62117; transform: scale(1.08); }
.m-video__title { font-family: var(--font-head); font-weight: 700; line-height: 1.3; padding-inline: 4px; }
.m-video .m-card__src { padding-inline: 4px; }
@media (max-width: 1000px) { .m-carousel { grid-auto-columns: minmax(240px, calc((100% - 16px) / 2)); } }
@media (max-width: 560px) { .m-carousel__nav { display: none; } .m-carousel { grid-auto-columns: 82%; } .m-card { grid-template-columns: 48px 1fr auto; } .m-card__icon { width: 48px; height: 48px; } }

/* ---------- Literature library ---------- */
.lit-toolbar { display: flex; gap: .9rem 1.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.lit-search { flex: 1 1 380px; display: flex; align-items: center; gap: .6rem; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 1.1rem; color: var(--muted); transition: border-color .15s ease, box-shadow .15s ease; }
.lit-search:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(23, 73, 125, .14); }
.lit-search input { flex: 1; border: 0; outline: 0; font: inherit; padding: .55rem 0; color: var(--ink); background: transparent; min-width: 0; }
.lit-search input::-webkit-search-cancel-button { cursor: pointer; }
.lit-sort { display: flex; align-items: center; gap: .2rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.lit-sort span { margin-right: .35rem; }
.lit-sort__opt { font: inherit; font-weight: 700; color: var(--navy-700); background: none; border: 0; padding: .45rem .7rem; border-radius: 999px; cursor: pointer; }
.lit-sort__opt[aria-pressed="true"] { background: var(--navy-700); color: #fff; }
.lit-sort__opt:hover:not([aria-pressed="true"]) { background: var(--blue-50); }
.lit-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.lit-filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(7, 26, 48, .06); overscroll-behavior: contain; }
.lit-filters__toggle { display: none; }
.lit-filters__body { padding: 1.1rem 1.15rem 1.3rem; }
.lit-filters fieldset { border: 0; padding: 0 0 1.1rem; margin: 0 0 1.1rem; border-bottom: 1px solid var(--line); }
.lit-filters legend { display: flex; width: 100%; justify-content: space-between; align-items: baseline; font-family: var(--font-head); font-weight: 800; color: var(--ink); margin-bottom: .55rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .09em; }
.lit-quick { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: .82rem; }
.lit-quick button { font: inherit; color: var(--navy-700); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.lit-years { display: grid; gap: 0; }
.lit-filters select { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); padding: .55rem 2rem .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317497D' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .7rem center; appearance: none; cursor: pointer; }
.check { display: flex; align-items: center; gap: .55rem; padding: .26rem .35rem; margin-inline: -.35rem; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: .95rem; color: var(--ink); }
.check:hover { background: var(--blue-50); }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--navy-700); margin: 0; }
.check__n { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lit-reset { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: .9rem; color: var(--navy-700); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.lit-count { font-weight: 700; color: var(--muted); margin: 0 0 .8rem; font-size: .95rem; }
.lit-list { display: grid; gap: 14px; }
.lit-empty { padding: 2rem; text-align: center; background: var(--blue-50); border-radius: var(--radius); }
.paper { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 1.2rem 1.6rem; background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 2.4vw, 26px); box-shadow: 0 2px 8px rgba(7, 26, 48, .04); transition: border-color .18s ease, box-shadow .18s ease; scroll-margin-top: calc(var(--header-h) + 16px); }
.paper:hover { border-color: #c5d5e6; box-shadow: 0 14px 30px rgba(7, 26, 48, .08); }
.paper:target { border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100); }
.paper__title { font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.25; margin: 0 0 .45rem; }
.paper__title a { color: var(--navy-800); text-decoration: none; }
.paper__title a:hover { text-decoration: underline; text-underline-offset: .18em; }
.paper__meta { font-size: .9rem; color: var(--muted); margin: 0 0 .9rem; }
.paper__quick { margin: 0; padding: .75rem .95rem; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 12px; font-size: .97rem; color: var(--text); }
.paper__side { display: flex; flex-direction: column; align-items: stretch; gap: .55rem; padding-left: 1.4rem; border-left: 1px solid var(--line); }
.paper__labels { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .2rem; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font: inherit; font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-700); background: #fff; border: 2px solid var(--navy-700); border-radius: 999px; padding: .6rem .9rem; text-decoration: none; cursor: pointer; transition: background .15s ease, color .15s ease; }
.pill:hover { background: var(--navy-700); color: #fff; }
.pill.is-done { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.ai-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-family: var(--font-head); font-weight: 800; font-size: .86rem; color: #fff; border: 0; border-radius: 999px; padding: .68rem 1rem; cursor: pointer; background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); box-shadow: 0 8px 20px rgba(23, 73, 125, .30), 0 0 0 0 rgba(237, 178, 94, .0); transition: transform .15s ease, box-shadow .2s ease; overflow: hidden; }
.ai-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ai-angle, 0deg), rgba(237,178,94,0), rgba(237,178,94,.95), rgba(255,255,255,.9), rgba(143,179,218,.9), rgba(237,178,94,0) 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ai-ring 4s linear infinite; pointer-events: none; }
.ai-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.42) 48%, rgba(255, 236, 200, .55) 52%, transparent 65%); background-size: 250% 100%; animation: ai-shimmer 3.2s ease-in-out infinite; pointer-events: none; }
.ai-btn > * { position: relative; z-index: 1; }
@property --ai-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ai-ring { to { --ai-angle: 360deg; } }
@keyframes ai-shimmer { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
@keyframes ai-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 45% { transform: scale(.72) rotate(45deg); opacity: .75; } 60% { transform: scale(1.15) rotate(90deg); opacity: 1; } }
.ai-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(23, 73, 125, .35), 0 0 0 4px rgba(237, 178, 94, .25); }
.ai-btn[aria-expanded="true"] { background: linear-gradient(135deg, #7a5517, var(--gold-700)); }
.ai-btn[aria-expanded="true"]::before, .ai-btn[aria-expanded="true"]::after { animation: none; opacity: 0; }
.ai-spark { display: inline-block; width: 1em; height: 1em; flex: none; background: var(--gold-500); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.ai-btn .ai-spark { width: 1.05em; height: 1.05em; filter: drop-shadow(0 0 5px rgba(237, 178, 94, .95)); animation: ai-twinkle 2.6s ease-in-out infinite; }
.ai-btn:hover .ai-spark { animation-duration: 1.2s; }
.ai-btn[aria-expanded="true"] .ai-spark { background: #fff; }
.paper__ai { margin-top: .9rem; padding: 1rem 1.1rem .9rem; border-radius: 14px; background: linear-gradient(135deg, #fffaf1, #f4f8fd); border: 1px solid #f0dfbf; position: relative; }
.paper__ai-head { display: flex; align-items: center; gap: .45rem; margin: 0 0 .5rem; font-family: var(--font-head); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); }
.paper__ai ul { margin: 0 0 .6rem; padding-left: 1.15rem; font-size: .96rem; }
.paper__ai li { margin-bottom: .35rem; }
.paper__ai li::marker { color: var(--gold-600); }
.paper__ai-note { margin: 0; font-size: .8rem; color: var(--muted); }
.paper__ai.is-revealing { animation: ai-in .35s ease both; }
.paper__ai.is-revealing li { animation: ai-line .45s ease both; }
.paper__ai.is-revealing li:nth-child(2) { animation-delay: .08s; }
.paper__ai.is-revealing li:nth-child(3) { animation-delay: .16s; }
.paper__ai.is-revealing li:nth-child(4) { animation-delay: .24s; }
.paper__ai.is-revealing li:nth-child(n+5) { animation-delay: .32s; }
@keyframes ai-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes ai-line { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .paper { grid-template-columns: 1fr; } .paper__side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); order: 2; } .paper__labels { width: 100%; } .paper__main { order: 1; } }
@media (max-width: 720px) {
  .lit-layout { grid-template-columns: 1fr; }
  .lit-filters { position: static; max-height: none; }
  .lit-filters__toggle { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.1rem; font-family: var(--font-head); font-weight: 800; color: var(--navy-800); cursor: pointer; list-style: none; }
  .lit-filters__toggle::-webkit-details-marker { display: none; }
  .lit-filters__toggle::after { content: "▾"; transition: transform .2s ease; }
  .lit-filters[open] .lit-filters__toggle::after { transform: rotate(180deg); }
  .lit-filters[open] .lit-filters__body { border-top: 1px solid var(--line); }
  .lit-years { grid-template-columns: repeat(3, 1fr); column-gap: .8rem; }
  .lit-search__btn { display: none; }
}

/* ---------- Article with table of contents ---------- */
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .95rem; }
.toc__title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--gold-text); margin: 0 0 .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: .38rem 0 .38rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--navy-700); }
.toc a.is-active { color: var(--navy-700); border-left-color: var(--gold-500); font-weight: 700; }
.toc__more { margin: .8rem 0 0; padding-left: calc(1rem + 2px); }
.article-section { padding-bottom: .5rem; }
.article-section + .article-section { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
.article-section h2 { margin-top: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article-section h3 { font-size: 1.15rem; color: var(--navy-700); margin-top: 1.4em; }
.article-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
sup { line-height: 0; }
a.fn { font-size: .78em; font-weight: 700; text-decoration: none; padding: 0 .1em; }
a.fn:hover { text-decoration: underline; }
.sources-title { font-size: 1.2rem; }
.sources li:target { background: var(--gold-100); border-radius: 6px; outline: 4px solid var(--gold-100); color: var(--ink); }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--blue-50); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
}

/* ---------- Share ---------- */
.share { margin-top: 3rem; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--blue-50); border: 1px solid var(--blue-100); }
.share .share__title { font-size: 1.25rem; margin: 0 0 .3rem; }
.share__text { margin: 0 0 1rem; color: var(--muted); font-size: .98rem; }
.share__buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.share__btn { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-weight: 700; font-size: .92rem; color: var(--navy-800); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; cursor: pointer; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.share__btn svg { width: 18px; height: 18px; }
.share__btn:hover { border-color: var(--navy-700); background: #fff; color: var(--navy-700); }

/* ---------- Event (webinar) ---------- */
.event { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.event__when { display: grid; gap: .6rem; margin: 1.5rem 0; padding: 1.1rem 1.3rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.event__when div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; }
.event__when dt { font-weight: 800; color: var(--muted); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; padding-top: .2rem; }
.event__when dd { margin: 0; font-weight: 600; color: var(--ink); }
.event .callout { margin: 0 0 1.2rem; }
.event__flyer { margin: 0; }
.event__flyer img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 960px) { .event { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(70px, 12vw, 140px); }
.not-found__es { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.not-found__es h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

@media print {
  .site-header, .donate-band, .site-footer, .skip-link { display: none !important; }
  .page-hero, .home-hero { background: none; color: #000; }
  .page-hero h1, .home-hero h1 { color: #000; }
}
