/* Amin Foundation: cool, modern, calm, trustworthy. Teal water, warm sun, gentle waves and lifebuoys.
   Tokens first, then base, layout, components, pages, print. Classes are documented in DESIGN.md. Light theme only. */
@font-face { font-family: Nunito; src: url(/fonts/nunito.woff2) format('woff2'); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: Atkinson; src: url(/fonts/atkinson.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: Atkinson; src: url(/fonts/atkinson-italic.woff2) format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
/* Bengali pages (/bn/…): downloaded only when Bengali characters appear on the page. */
@font-face { font-family: 'Noto Sans Bengali'; src: url(/fonts/noto-sans-bengali.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }

:root {
  /* Brand teal (logo #4AA3AD / brand #2E9AA6). 500 and lighter are for fills, borders and large shapes only;
     700+ are for text and buttons (7.3:1 on white). */
  --teal-50: #EEF7F8;
  --teal-100: #D7EEF1;
  --teal-200: #B9E2E7;
  --teal-300: #86CBD3;
  --teal-400: #4AA3AD;
  --teal-500: #2E9AA6;
  --teal-600: #1A7F8A;
  --teal-700: #0F5F69;
  --teal-800: #0B4A54;
  --teal-900: #083540;
  --ink: #1D1D1F;
  --ink-2: #4A5560;
  --ink-3: #5B6570;
  --bg: #FFFFFF;
  --bg-soft: #F3F8F9;
  --bg-tint: #EEF7F8;
  --line: #D5E3E6;
  --line-2: #B9CFD4;
  --sun: #F6C64A;
  --sun-50: #FFF6DC;
  --sun-100: #FDEBB4;
  --sun-700: #7A5600;
  --coral: #E4664F;
  --coral-50: #FDEEEA;
  --coral-100: #F9D5CC;
  --coral-700: #A8371F;
  --navy: #0B2540;
  --navy-50: #E8EEF6;
  --navy-100: #CFDBEA;
  --success: #1E6B3A;
  --success-50: #E7F4EC;
  --display: Nunito, ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: Atkinson, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bengali: Atkinson, 'Noto Sans Bengali', 'Kohinoor Bangla', 'Bangla Sangam MN', 'Nirmala UI', 'Vrinda', sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(8, 53, 64, .06), 0 2px 6px rgba(8, 53, 64, .05);
  --shadow: 0 2px 4px rgba(8, 53, 64, .06), 0 12px 28px -10px rgba(8, 53, 64, .22);
  --shadow-lg: 0 6px 12px rgba(8, 53, 64, .08), 0 30px 60px -24px rgba(8, 53, 64, .35);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--teal-700);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

/* ---- Base ---------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
:lang(bn) { font-family: var(--bengali); line-height: 1.75; }
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3, :lang(bn) h4 { font-family: Nunito, 'Noto Sans Bengali', var(--bengali); line-height: 1.35; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--teal-800); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.icon { flex: none; }
.muted { color: var(--ink-3); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.eyebrow { margin: 0 0 .5rem; font: 800 .82rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); display: flex; align-items: center; gap: .4rem; }
.eyebrow a { color: inherit; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow-light { color: var(--teal-100); }
main { display: block; flex: 1 0 auto; min-height: 50vh; }
main:focus { outline: none; }

/* ---- Layout -------------------------------------------------------------------------------------------------- */
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow-prose { max-width: 760px; }
.page-body { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px); }
/* grid-N: responsive, never more than N columns (each track is at least 1/N of the row, minus the gaps). */
.grid { --grid-gap: clamp(14px, 2vw, 22px); display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); list-style: none; padding: 0; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(340px, (100% - var(--grid-gap)) / 2)), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(280px, (100% - 2 * var(--grid-gap)) / 3)), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(220px, (100% - 3 * var(--grid-gap)) / 4)), 1fr)); }
.grid-1 { grid-template-columns: 1fr; }
.stack > * + * { margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.25rem; }

/* ---- Buttons, badges, pills ----------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .65rem 1.25rem; border: 2px solid transparent; border-radius: 999px; font: 800 1rem/1.1 var(--display); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; text-align: center; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-secondary { background: #fff; color: var(--teal-700); border-color: var(--teal-700); }
.btn-secondary:hover { background: var(--teal-50); color: var(--teal-800); }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--teal-50); color: var(--teal-800); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #FFD25E; color: var(--ink); }
.btn-danger { background: var(--navy); color: #fff; }
.btn-danger:hover { background: #061a2e; color: #fff; }
.btn-sm { min-height: 38px; padding: .45rem .95rem; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: .85rem 1.6rem; font-size: 1.08rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font: 700 .82rem/1.4 var(--sans); }
.badge-teal { background: var(--teal-100); color: var(--teal-800); }
.badge-sun { background: var(--sun-100); color: var(--sun-700); }
.badge-coral { background: var(--coral-100); color: var(--coral-700); }
.badge-navy { background: var(--navy-100); color: var(--navy); }
.badge-gray { background: #E9EEF0; color: var(--ink-2); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; transition: border-color .15s, background-color .15s; }
.pill .icon { color: var(--teal-600); }
.pill:hover { border-color: var(--teal-500); background: var(--teal-50); color: var(--teal-800); text-decoration: none; }
.link-list { list-style: none; padding: 0; display: grid; gap: .5rem; }

/* ---- Header -------------------------------------------------------------------------------------------------- */
.site-banner { background: var(--sun-50); border-bottom: 1px solid var(--sun-100); }
.site-banner p { margin: 0; padding: 8px 0; font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.site-banner a { color: inherit; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand img { width: 150px; height: auto; }
.host-label { margin: 0; display: flex; align-items: center; gap: .4rem; padding-left: 14px; border-left: 1px solid var(--line); font: 800 1rem/1.1 var(--display); color: var(--teal-700); }
.host-label a { color: inherit; text-decoration: none; }
.nav-primary { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-primary > a, .nav-topics > summary { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font: 700 .98rem/1.2 var(--display); cursor: pointer; list-style: none; white-space: nowrap; }
.nav-topics > summary::-webkit-details-marker { display: none; }
.nav-primary > a:hover, .nav-topics > summary:hover, .nav-topics[open] > summary { background: var(--teal-50); color: var(--teal-800); }
.nav-primary > a[aria-current="page"] { color: var(--teal-800); background: var(--teal-50); box-shadow: inset 0 -2px 0 var(--teal-500); }
.nav-topics { position: static; }
.site-header .header-row { position: relative; }
.nav-topics[open] > summary .icon { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% - 6px); left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; max-width: 920px; margin-inline: auto; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.mega-title { margin: 0 0 .4rem; font: 800 .78rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mega ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.mega a { display: flex; align-items: center; gap: .55rem; padding: .45rem .55rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .96rem; }
.mega a .icon { color: var(--teal-600); }
.mega a:hover, .mega a[aria-current="page"] { background: var(--teal-50); color: var(--teal-800); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-form { display: flex; align-items: stretch; position: relative; }
.search-form input[type="search"] { width: 100%; min-height: 44px; padding: .55rem 2.9rem .55rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-soft); font-size: 1rem; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px var(--teal-100); background: #fff; }
.search-compact { width: 220px; }
.search-btn { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 38px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--teal-700); color: #fff; }
.search-btn:hover { background: var(--teal-800); }
.search-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.menu { display: none; margin-left: auto; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .85rem; border: 1px solid var(--line-2); border-radius: 999px; font: 800 .95rem/1 var(--display); cursor: pointer; color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--teal-50); border-color: var(--teal-500); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; max-height: calc(100vh - var(--header-h)); overflow: auto; padding: 16px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.menu-panel nav { display: grid; gap: 2px; margin-top: 12px; }
.menu-panel nav a:not(.btn) { padding: .7rem .6rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 700; }
.menu-panel nav a:not(.btn):hover, .menu-panel nav a[aria-current="page"] { background: var(--teal-50); color: var(--teal-800); }
.menu-panel .btn { margin-top: 14px; }
.menu-heading { margin: 14px 0 4px; font: 800 .78rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
/* The full header needs about 1140px. At 1200px and below the nav, search and Get involved move into the Menu (which
   has search too). On the resource host the "Resource library" label already links home, so the nav's "Library home"
   link is hidden on wide screens to make room (it stays in the Menu). */
.host-label, .header-cta { white-space: nowrap; }
.host-resource .nav-primary > a:first-child { display: none; }
@media (max-width: 1300px) { .search-compact { width: 170px; } .search-compact input[type="search"] { padding-left: .8rem; font-size: .94rem; } }
@media (max-width: 1200px) {
  .nav-primary:not(.nav-kids), .header-actions { display: none; }
  .menu { display: block; }
}
@media (max-width: 1000px) { .brand img { width: 132px; } }
@media (max-width: 520px) { .host-label { display: none; } }
.site-header-kids .header-row, .site-header-admin .header-row { flex-wrap: wrap; padding-block: 8px; }
.nav-kids { flex-wrap: wrap; margin-left: auto; }

/* ---- Hero with animated waves --------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(134, 203, 211, .35), transparent 60%), radial-gradient(800px 420px at -10% 110%, rgba(246, 198, 74, .14), transparent 60%), linear-gradient(160deg, var(--teal-900) 0%, var(--teal-800) 35%, var(--teal-700) 70%, var(--teal-600) 100%); padding: clamp(48px, 7vw, 96px) 0 clamp(120px, 14vw, 190px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: center; position: relative; z-index: 2; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.04; max-width: 14ch; }
.hero-text { margin-top: 1.1rem; font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.55; color: #EAF6F7; max-width: 52ch; }
.hero-art { position: relative; aspect-ratio: 1; width: min(340px, 100%); justify-self: center; display: grid; place-items: center; }
.hero-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); }
.hero-ring-2 { inset: 14%; border-color: rgba(255, 255, 255, .14); }
.hero-buoy { --buoy-ring: #fff; --buoy-band: var(--coral); --buoy-edge: rgba(8, 53, 64, .25); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); animation: bob 6s ease-in-out infinite; }
.hero-lifebuoy { width: min(220px, 60vw); height: auto; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(70px, 9vw, 130px); overflow: hidden; pointer-events: none; z-index: 1; }
.waves svg { width: 200%; height: 100%; }
.wave { will-change: transform; }
.hero-waves .wave-back { fill: rgba(255, 255, 255, .16); }
.hero-waves .wave-mid { fill: rgba(255, 255, 255, .32); }
.hero-waves .wave-front { fill: var(--bg); }
.wave-anim .wave-back { animation: wave 26s linear infinite; }
.wave-anim .wave-mid { animation: wave 18s linear infinite reverse; }
.wave-anim .wave-front { animation: wave 34s linear infinite; }
@keyframes wave { to { transform: translateX(-1440px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: 180px; justify-self: start; order: -1; }
  .hero-lifebuoy { width: 120px; }
}
@media (max-width: 480px) { .hero-art { display: none; } }

/* Quick actions sit over the bottom of the hero. */
.quick { position: relative; z-index: 3; margin-top: clamp(-84px, -6.5vw, -48px); padding-bottom: clamp(28px, 4vw, 48px); }
.quick-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; }
.quick-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font: 800 1.05rem/1.25 var(--display); transition: transform .15s, box-shadow .15s, border-color .15s; }
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--teal-300); color: var(--teal-800); text-decoration: none; }
.quick-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--teal-700); }
.quick-label { flex: 1; }
.quick-arrow { color: var(--teal-600); }

/* ---- Sections --------------------------------------------------------------------------------------------------- */
.section { padding-block: clamp(40px, 6vw, 80px); }
.section-soft { background: var(--bg-soft); }
.section-teal { background: var(--teal-50); }
.section-sun { background: var(--sun-50); }
.section-title { margin-bottom: .5rem; }
.section-lead { color: var(--ink-2); max-width: 62ch; margin-bottom: 1.6rem; font-size: 1.1rem; }
.section-title + .grid, .section-title + div { margin-top: 1.25rem; }
.topic-group + .topic-group { margin-top: 2rem; }
.topic-group-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .9rem; }
.wave-rule { color: var(--teal-300); margin: 1.5rem 0; }

/* ---- Page header and breadcrumbs ---------------------------------------------------------------------------------- */
.page-header { position: relative; background: linear-gradient(180deg, var(--teal-50), #fff); border-bottom: 1px solid var(--line); padding: clamp(20px, 3vw, 32px) 0 clamp(28px, 4vw, 44px); overflow: hidden; }
.page-header::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 26px solid rgba(46, 154, 166, .08); pointer-events: none; }
.page-header h1 { margin-top: .2rem; max-width: 24ch; }
.page-header .lead { margin-top: .8rem; margin-bottom: 0; }
.page-header-row { display: flex; gap: 18px; align-items: flex-start; }
.page-header-icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; margin-top: .25rem; border-radius: 18px; background: #fff; color: var(--teal-700); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.page-meta { margin-top: 1rem; }
@media (max-width: 560px) { .page-header-icon { display: none; } }
.breadcrumbs { margin-bottom: 1rem; font-size: .92rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: .25rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .25rem; color: var(--ink-3); }
.breadcrumbs li + li::before { content: '›'; color: var(--ink-3); margin-right: .1rem; }
.breadcrumbs a { color: var(--teal-700); }
.breadcrumbs [aria-current] { color: var(--ink-2); }
.crumbs-wrap { padding-top: 18px; }
.updated { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .8rem 0 0; color: var(--ink-3); font-size: .93rem; }
.updated .icon { color: var(--teal-600); }
.lang-switch { margin: .8rem 0 0; font-weight: 700; }
/* One Bengali word on an English page: the system font has the glyphs, so the 108 KB Bengali web font isn't fetched. */
.lang-switch a[lang="bn"] { font-family: system-ui, sans-serif; }
.translation-banner { display: flex; gap: .6rem; align-items: center; padding-block: 10px; color: var(--sun-700); }
.translation-banner p { margin: 0; }
.draft-flag { display: inline-flex; gap: .4rem; align-items: center; padding: .3rem .8rem; border-radius: 999px; background: var(--sun-50); color: var(--sun-700); font-weight: 700; font-size: .9rem; }

/* ---- Cards --------------------------------------------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; overflow: hidden; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--teal-300); }
.card:focus-within { box-shadow: var(--shadow); border-color: var(--teal-500); }
.card-body { display: flex; flex-direction: column; gap: .35rem; padding: 20px 20px 22px; height: 100%; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--teal-50); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .4rem; border-radius: 14px; background: var(--teal-50); color: var(--teal-700); }
.card-eyebrow { margin: 0; font: 800 .78rem/1.3 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.card-title { font-size: 1.14rem; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-title a:hover { color: var(--teal-800); }
.card-title a:focus-visible { outline: none; }
.card-title a:focus-visible::after { box-shadow: inset 0 0 0 3px var(--teal-700); }
.card-text { margin: 0; color: var(--ink-2); font-size: .98rem; }
.card-meta { margin: auto 0 0; padding-top: .5rem; color: var(--ink-3); font-size: .88rem; font-weight: 700; }
.card-hub .card-icon { background: linear-gradient(135deg, var(--teal-100), var(--teal-50)); }
/* Resource cards ({{tool:id}}, {{printable:id}} …) */
.rcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal-500); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin: 1.25rem 0; transition: box-shadow .15s, transform .15s; }
.grid .rcard, .rcard-grid .rcard { margin: 0; }
.rcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.rcard-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--teal-50); }
.rcard-body { padding: 16px 18px 18px; }
.rcard-kind { display: flex; align-items: center; gap: .4rem; margin: 0 0 .3rem; font: 800 .78rem/1.3 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700); }
.rcard-title { font-size: 1.1rem; margin: 0 0 .3rem; }
.rcard-title a { color: var(--ink); text-decoration: none; }
.rcard-title a::after { content: ''; position: absolute; inset: 0; }
.rcard-title a:hover { color: var(--teal-800); }
.rcard-title a:focus-visible { outline: none; }
.rcard-title a:focus-visible::after { box-shadow: inset 0 0 0 3px var(--teal-700); border-radius: var(--radius); }
.rcard-text { margin: 0; color: var(--ink-2); font-size: .96rem; }
.rcard-printables { border-left-color: var(--sun); }
.rcard-printables .rcard-kind { color: var(--sun-700); }
.rcard-infographics { border-left-color: var(--coral); }
.rcard-infographics .rcard-kind { color: var(--coral-700); }
.rcard-games { border-left-color: #7C5CC4; }
.rcard-lessons { border-left-color: var(--navy); }
.rcard-lessons .rcard-kind { color: var(--navy); }

/* ---- Callouts, notices, stat cards ---------------------------------------------------------------------------- */
.callout { margin: 1.5rem 0; padding: 16px 18px 6px; border-radius: var(--radius); border: 1px solid; border-left-width: 6px; }
.callout-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; font: 900 1rem/1.3 var(--display); letter-spacing: .01em; }
.callout-body > :last-child { margin-bottom: .6rem; }
.callout-tip { background: var(--teal-50); border-color: var(--teal-200); border-left-color: var(--teal-500); }
.callout-tip .callout-title { color: var(--teal-800); }
.callout-note { background: #F4F6F8; border-color: #DCE2E7; border-left-color: #8A97A3; }
.callout-note .callout-title { color: var(--ink-2); }
.callout-warning { background: var(--sun-50); border-color: var(--sun-100); border-left-color: var(--sun); }
.callout-warning .callout-title { color: var(--sun-700); }
.callout-danger { background: var(--navy); color: #fff; border-color: var(--navy); border-left-color: var(--coral); --buoy-ring: #fff; }
.callout-danger .callout-title { color: #fff; font-size: 1.1rem; }
.callout-danger a { color: #fff; }
.callout-danger strong { color: #fff; }
.notice { display: flex; gap: .75rem; align-items: flex-start; margin: 1rem 0; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; }
.notice > .icon { margin-top: .2rem; }
.notice p { margin: 0 0 .3rem; }
.notice-title { font-weight: 800; }
.notice-info { background: var(--teal-50); border-color: var(--teal-200); color: var(--teal-900); }
.notice-success { background: var(--success-50); border-color: #B8DCC4; color: var(--success); }
.notice-warning { background: var(--sun-50); border-color: var(--sun-100); color: #4D3700; }
.notice-error { background: var(--coral-50); border-color: var(--coral-100); color: #6E2414; }
.notice-error a { color: #6E2414; }
.notice ul { padding-left: 1.1rem; margin: .2rem 0 .3rem; }
.stat-card { margin: 1.5rem 0; padding: 22px 22px 18px; background: linear-gradient(140deg, var(--teal-800), var(--teal-700)); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; right: -36px; bottom: -36px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .08); }
.grid .stat-card { margin: 0; }
.stat-number { margin: 0 0 .2rem; font: 900 clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem)/1 var(--display); letter-spacing: -.02em; color: var(--sun); }
.stat-card figcaption { display: grid; gap: .5rem; }
.stat-caption { font-size: 1.05rem; line-height: 1.45; }
.stat-source { color: var(--teal-100); font-size: .86rem; position: relative; z-index: 1; }
.stat-source:hover { color: #fff; }

/* ---- Crisis box ------------------------------------------------------------------------------------------------ */
.crisis-box { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 1.5rem; padding: 16px 18px; border-radius: var(--radius); background: var(--navy-50); border: 2px solid var(--navy); color: var(--navy); }
.crisis-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; }
.crisis-title { margin: 0 0 .25rem; font: 900 1.08rem/1.3 var(--display); }
.crisis-box p { margin: 0 0 .35rem; }
.crisis-box a { color: var(--navy); font-weight: 700; }
.crisis-911 { margin-bottom: 0 !important; }
.crisis-compact { margin-top: 1rem; }
.crisis-wrap { padding-top: 20px; }

/* ---- Guides ---------------------------------------------------------------------------------------------------- */
.guide-head { max-width: 860px; }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 1rem; }
.guide-meta .updated { margin: 0; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: start; gap: 48px; padding-block: clamp(24px, 4vw, 44px) clamp(40px, 6vw, 72px); }
.guide-layout.has-toc { grid-template-columns: minmax(0, 760px) 260px; }
.guide-layout.has-toc .guide-aside { order: 2; }
.guide-aside { position: relative; }
.guide-aside .toc { position: sticky; top: calc(var(--header-h) + 20px); }
.guide-main { min-width: 0; }
@media (max-width: 1060px) {
  .guide-layout.has-toc { grid-template-columns: minmax(0, 760px); }
  .guide-layout.has-toc .guide-aside { order: 0; }
  .guide-aside .toc { position: static; }
}
.toc { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); font-size: .95rem; }
.toc-title { margin: 0 0 .5rem; font: 900 .85rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: .55rem; padding: .3rem .4rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a::before { content: counter(toc); flex: none; min-width: 1.4em; color: var(--teal-600); font-weight: 800; }
.toc a:hover, .toc a[aria-current="true"] { background: #fff; color: var(--teal-800); }
.takeaways { margin: 0 0 2rem; padding: 20px 22px 14px; border-radius: var(--radius); background: linear-gradient(135deg, var(--teal-50), #F7FBFB); border: 1px solid var(--teal-200); }
.takeaways-title { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin-bottom: .7rem; color: var(--teal-800); }
.takeaways ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.takeaways li { position: relative; padding-left: 1.6rem; }
.takeaways li::before { content: ''; position: absolute; left: .2rem; top: .55em; width: .65rem; height: .65rem; border-radius: 50%; border: 3px solid var(--teal-500); }
.guide-steps, .guide-faq, .guide-resources { margin-top: 2.5rem; }
.guide-faq h2, .guide-resources h2 { margin-bottom: 1rem; }
.more-link { margin-top: 1.25rem; font-weight: 700; }

/* Prose (rendered Markdown) */
.prose { font-size: 1.08rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .6em; padding-top: .2em; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.25rem; }
.prose h4 { margin: 1.5em 0 .4em; font-size: 1.08rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .table-wrap { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--teal-600); font-weight: 800; }
.prose strong { font-weight: 800; }
.prose blockquote { margin-left: 0; padding: .4em 1.2em; border-left: 4px solid var(--teal-300); color: var(--ink-2); font-style: italic; }
.prose hr { border: 0; height: 12px; margin: 2.2em 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='12'%3E%3Cpath d='M0 6c7.5 0 7.5-4 15-4s7.5 4 15 4 7.5-4 15-4 7.5 4 15 4' fill='none' stroke='%2386CBD3' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x center; }
.prose img { border-radius: var(--radius); margin: 1.5em auto; }
.prose a.glossary-link { text-decoration-style: dotted; }
.prose code { padding: .1em .35em; border-radius: 6px; background: var(--bg-soft); font-size: .92em; }
.prose .rcard-kind, .prose .rcard-title, .prose .stat-number, .prose .callout-title { margin-top: 0; }
.prose .rcard-kind { margin-bottom: .3rem; }
.prose .rcard-title { margin-bottom: .3rem; font-size: 1.12rem; }
.prose .rcard-text { margin: 0; font-size: .98rem; }
.prose .stat-number { margin-bottom: .25rem; }
.prose .callout-title { margin-bottom: .4rem; }
.prose .callout-body > :last-child { margin-bottom: .6rem; }
.prose .checklist + .checklist-tools { margin-top: -.6rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table, table.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td, .table th, .table td { padding: .65rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th, .table th { background: var(--teal-50); font-weight: 800; color: var(--teal-900); }
.prose tr:last-child td { border-bottom: 0; }

/* Step lists */
.steps { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; counter-reset: step; display: grid; gap: 14px; }
.step { position: relative; padding: 16px 18px 12px 70px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal-700); color: #fff; font: 900 1.05rem/1 var(--display); }
.step-name { margin: 0 0 .25rem; font: 800 1.08rem/1.3 var(--display); }
.step-text { margin: 0 0 .4rem; color: var(--ink-2); }
.prose ol.steps { padding-left: 0; }

/* Checklists (- [ ] items). Ticks stay in this browser. */
.checklist { list-style: none !important; padding: 0 !important; margin: 1.2rem 0 1.5rem; display: grid; gap: 8px; }
.check-item { display: flex; align-items: flex-start; gap: .7rem; margin: 0 !important; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: background-color .15s, border-color .15s; }
.check-item input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--teal-700); cursor: pointer; }
.check-item label { cursor: pointer; flex: 1; }
.check-item:has(input:checked) { background: var(--teal-50); border-color: var(--teal-200); }
.check-item:has(input:checked) label { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--teal-400); }
.checklist-tools { display: flex; gap: 8px; align-items: center; margin-top: -.5rem; margin-bottom: 1.5rem; font-size: .92rem; color: var(--ink-3); }

/* Sources, share, related */
.sources { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.sources ol { padding-left: 1.4em; display: grid; gap: .45rem; font-size: .96rem; }
.sources li::marker { color: var(--ink-3); }
.source-pub { color: var(--ink-3); }
.share { margin-top: 2rem; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-soft); }
.share-title { margin: 0 0 .6rem; font: 800 .95rem/1.2 var(--display); }
.share-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.share-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .85rem; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font: 700 .92rem/1 var(--sans); }
.share-link:hover { border-color: var(--teal-500); color: var(--teal-800); background: var(--teal-50); }
.share-link .icon { color: var(--teal-700); }
.related { margin-top: 2.5rem; }
.related h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.related-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.related-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.related-list a { display: inline-flex; align-items: center; gap: .4rem; font: 800 1.05rem/1.3 var(--display); text-decoration: none; }
.related-list a:hover { text-decoration: underline; }
.related-list p { margin: .25rem 0 0; color: var(--ink-2); font-size: .95rem; }

/* ---- Accordions and tabs --------------------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 10px; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.accordion[open] { border-color: var(--teal-300); box-shadow: var(--shadow-sm); }
.accordion > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary:hover { background: var(--bg-soft); }
.accordion > summary:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 2px; }
.accordion-q { font: 800 1.08rem/1.35 var(--display); margin: 0; }
.accordion-chev { color: var(--teal-700); transition: transform .2s; }
.accordion[open] .accordion-chev { transform: rotate(180deg); }
.accordion-a { padding: 0 18px 8px; }
.accordion-a > :first-child { margin-top: 0; }
.accordion-src { font-size: .9rem; color: var(--ink-3); }
.faq-tools { margin: 0 0 1rem; display: flex; justify-content: flex-end; }
.faq-hub { margin-top: 2rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-weight: 700; }
.tabs { margin: 1.5rem 0; }
.tab-list { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); margin-bottom: 1rem; }
.tab-list [role="tab"] { flex: none; padding: .7rem 1rem; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; font: 800 1rem/1.2 var(--display); color: var(--ink-2); border-radius: 8px 8px 0 0; }
.tab-list [role="tab"]:hover { background: var(--bg-soft); color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--teal-800); border-bottom-color: var(--teal-600); }
.tab-panel { padding: 4px 2px; }
.tab-panel + .tab-panel { margin-top: 1.5rem; }
.tabs.is-ready .tab-panel + .tab-panel { margin-top: 0; }
.tabs.is-ready .tab-panel-label { display: none; }
.tab-panel-label { font: 800 1.1rem/1.3 var(--display); }

/* ---- Forms ----------------------------------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .fieldset legend { font-weight: 800; font-family: var(--display); font-size: 1.02rem; }
.req { color: var(--coral-700); }
.opt { font-weight: 400; color: var(--ink-3); font-family: var(--sans); font-size: .92rem; }
.hint { margin: 0; color: var(--ink-3); font-size: .93rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: .65rem .9rem; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-size: 1.02rem; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F5F69' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px var(--teal-100); }
.has-error input:not([type="checkbox"]), .has-error select, .has-error textarea { border-color: var(--coral-700); }
.field-error { display: flex; align-items: center; gap: .35rem; margin: 0; color: var(--coral-700); font-weight: 700; font-size: .95rem; }
.check-field { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.check-field input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--teal-700); cursor: pointer; }
.check-field label { font-weight: 700; cursor: pointer; }
.check-field .hint, .check-field .field-error { grid-column: 2; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 16px; margin: 0; }
.fieldset legend { padding: 0 .3rem; }
.check-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: .5rem; }
.check-grid label { font-weight: 400; }
.form .btn { justify-self: start; }
.form-note { display: flex; gap: .5rem; align-items: flex-start; margin: 0; color: var(--ink-3); font-size: .93rem; }
.form-note .icon { margin-top: .2rem; color: var(--teal-600); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-summary:focus { outline: 3px solid var(--coral-700); outline-offset: 2px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-aside .notice { margin-top: 0; }

/* ---- Lists: search, states, glossary, news ---------------------------------------------------------------------- */
.search-large { margin-bottom: 1rem; gap: 10px; }
.search-large input[type="search"] { min-height: 54px; padding-right: 1rem; font-size: 1.1rem; }
.search-large .btn { flex: none; }
.search-status { color: var(--ink-3); min-height: 1.5em; }
.search-results { list-style: none; padding: 0; display: grid; gap: 12px; }
.search-result { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.search-result h2 { font-size: 1.15rem; margin: 0 0 .3rem; }
.search-result h2 a { text-decoration: none; }
.search-result h2 a:hover { text-decoration: underline; }
.search-result p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.search-type { margin: 0 0 .2rem !important; font: 800 .75rem/1.2 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-700) !important; }
.search-topics { margin-top: 2rem; }
.search-topics h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.state-list { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.state-list a { display: flex; align-items: center; gap: .7rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; }
.state-list a:hover { border-color: var(--teal-500); background: var(--teal-50); color: var(--teal-800); }
.state-abbr { display: grid; place-items: center; width: 40px; height: 32px; border-radius: 8px; background: var(--teal-700); color: #fff; font: 900 .85rem/1 var(--display); letter-spacing: .04em; }
.filter-field { max-width: 360px; margin-bottom: 1.25rem; }
.az ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin-bottom: 1.5rem; }
.az a { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font: 800 1rem/1 var(--display); }
.az a:hover { background: var(--teal-50); border-color: var(--teal-500); }
.az-group { margin-bottom: 2rem; }
.az-group h2 { font-size: 1.6rem; color: var(--teal-700); border-bottom: 2px solid var(--teal-100); padding-bottom: .3rem; margin-bottom: .8rem; }
.glossary-list { margin: 0; display: grid; gap: 12px; }
.glossary-item dt { font: 800 1.08rem/1.3 var(--display); }
.glossary-item dd { margin: .2rem 0 0; color: var(--ink-2); }
.news-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.news-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.news-item h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.news-date { margin: 0 0 .3rem; color: var(--ink-3); font-size: .92rem; font-weight: 700; }

/* ---- Hub ------------------------------------------------------------------------------------------------------- */
.hub-body { padding-block: clamp(24px, 4vw, 44px) clamp(32px, 5vw, 56px); }
.hub-intro { max-width: 760px; margin-bottom: 2rem; }
.hub-section { margin-top: 2.5rem; }
.hub-section h2 { margin-bottom: 1.1rem; }

/* ---- Home extras ------------------------------------------------------------------------------------------------ */
.mission .section-title { text-align: left; }
.memorial { font-size: 1.15rem; color: var(--ink); }
.mission-quote { margin: 1.5rem 0 0; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--teal-50); border: 1px solid var(--teal-200); position: relative; }
.mission-quote blockquote { margin: 0; font: 600 clamp(1.1rem, 1rem + .5vw, 1.35rem)/1.55 var(--display); color: var(--teal-900); }
.mission-quote blockquote p { margin: 0; }
.mission-quote figcaption { margin-top: 1rem; color: var(--ink-2); font-size: .95rem; }
.stat-grid { margin-top: 1.25rem; }
#news .grid + p { margin-top: 1rem; }
.cta-band { background: linear-gradient(135deg, var(--teal-800), var(--teal-700)); color: #fff; padding-block: clamp(36px, 5vw, 64px); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: .5rem 0 0; color: #E3F2F4; font-size: 1.1rem; }
.cta-band .actions { margin-top: 0; }
@media (max-width: 760px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---- Empty and status pages --------------------------------------------------------------------------------------- */
.empty-state { display: grid; justify-items: center; gap: .4rem; padding: 36px 20px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); --buoy-ring: #fff; }
.empty-state .lifebuoy { margin-bottom: .5rem; }
.empty-title { margin: 0; font: 900 1.2rem/1.3 var(--display); }
.empty-state p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.empty-state .btn { margin-top: .8rem; }
.status-page { padding-block: clamp(40px, 7vw, 96px); }
.status-art { --buoy-ring: #fff; margin-bottom: 1rem; animation: bob 6s ease-in-out infinite; width: max-content; }
.status-code { margin: 0 0 .3rem; font-weight: 800; color: var(--teal-700); }
.status-page h1 { margin-bottom: .6rem; }
.status-search { margin: 1.5rem 0; }
.status-topics-title { font-size: 1.15rem; margin: 2rem 0 1rem; }

/* ---- Footer ---------------------------------------------------------------------------------------------------- */
.site-footer { position: relative; margin-top: clamp(32px, 5vw, 64px); color: #DCEFF1; }
.waves.footer-waves { position: relative; height: clamp(40px, 6vw, 80px); bottom: auto; }
/* A page that ends in a tinted band flows straight into the footer waves instead of leaving a white strip. */
main:has(> .section-soft:last-child, > :last-child > .section-soft:last-child) ~ .site-footer { margin-top: 0; }
main:has(> .section-soft:last-child, > :last-child > .section-soft:last-child) ~ .site-footer .footer-waves { background: var(--bg-soft); }
main:has(> .cta-band:last-child) ~ .site-footer { margin-top: 0; }
main:has(> .cta-band:last-child) ~ .site-footer .footer-waves { background: var(--teal-700); }
.footer-waves .wave-back { fill: var(--teal-300); opacity: .35; }
.footer-waves .wave-mid { fill: var(--teal-600); opacity: .55; }
.footer-waves .wave-front { fill: var(--teal-900); }
.footer-inner { background: var(--teal-900); padding: 24px 0 28px; margin-top: -3px; position: relative; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; padding-bottom: 28px; }
.footer-brand img { width: 180px; height: auto; margin-bottom: 1rem; }
.footer-brand p { color: #CDE8EB; font-size: .97rem; }
.footer-slogan { font: 800 1.15rem/1.3 var(--display) !important; color: #fff !important; }
.footer-crisis { display: flex; gap: .5rem; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .07); }
.footer-crisis .icon { margin-top: .25rem; color: var(--sun); }
.footer-social { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-social a { display: inline-block; padding: 4px 0; }
.site-footer h2 { margin-bottom: .8rem; font: 900 .85rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .09em; color: #fff; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: #DCEFF1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p a { text-decoration: underline; text-underline-offset: .18em; }
.site-footer :focus-visible { outline-color: var(--sun); }
.footer-base { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .92rem; }
.footer-legal { margin: 0; color: #CDE8EB; }
.footer-legal-links { display: flex !important; flex-wrap: wrap; gap: 6px 18px !important; }
.footer-kids { padding-block: 8px 4px; }
.footer-kids p { color: #DCEFF1; }
.site-footer-admin { background: var(--bg-soft); color: var(--ink-3); padding: 18px 0; border-top: 1px solid var(--line); }
.site-footer-admin .footer-legal { color: var(--ink-3); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Kids host ------------------------------------------------------------------------------------------------- */
.kids { font-size: 1.1rem; }
.kids .page-header { background: linear-gradient(180deg, var(--sun-50), #fff); }

/* ---- Motion and print ---------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .wave-anim .wave, .hero-buoy, .status-art { animation: none !important; }
}
@media print {
  @page { margin: 16mm 14mm; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .site-header, .site-footer, .skip, .share, .menu, .toc, .guide-aside, .waves, .hero-art, .search-form, .btn, .faq-tools, .lang-switch, .site-banner, #more, .hub-section .grid, .section-soft:not(.mission) { display: none !important; }
  .page-header { background: none; border: 0; padding: 0 0 12pt; }
  .page-header::after { display: none; }
  .guide-layout, .guide-layout.has-toc { display: block; padding: 0; }
  .wrap, .narrow { width: auto; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
  .callout, .takeaways, .stat-card, .crisis-box, .step, .check-item { break-inside: avoid; box-shadow: none; }
  .callout-danger, .stat-card { background: #fff !important; color: #000 !important; border: 2px solid #000; }
  .stat-number { color: #000; }
  .accordion-a { display: block !important; }
  details:not([open]) > :not(summary) { display: block; }
  .check-item input { appearance: none; width: 14pt; height: 14pt; border: 1.5pt solid #000; border-radius: 3pt; }
  .sources a::after { content: " " attr(href); font-size: 9pt; }
}
