/*
 * PRO Access theme styles (v1.1).
 * Design tokens drive every colour, so the accessibility colour modes (high
 * contrast, negative contrast, light background) restyle the whole site and
 * switch off decorative gradients. All sizes are rem so the text-size tool
 * scales the layout up to 200%. Colour pairs meet WCAG 2.2 AA in every mode.
 */

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/PlusJakartaSans.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("../fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("../fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
	font-weight: 700;
	font-display: swap;
}

:root {
	--bg: #ffffff;
	--surface: #f4f7fb;
	--surface-2: #e8eff7;
	--text: #0f1c2e;
	--muted: #475569;
	--brand: #0a4f86;
	--brand-strong: #062c4d;
	--brand-text: #ffffff;
	--accent: #00a3e0;
	--accent-2: #14b8a6;
	--link: #0a5794;
	--link-hover: #062c4d;
	--border: #d5dee9;
	--focus: #ffbf47;
	--focus-ring: #0b0c0c;
	--ok-bg: #e6f6ee; --ok-text: #14532d;
	--err-bg: #fdecea; --err-text: #9f1c14;
	--demo-bg: #fff4d6; --demo-text: #4d3800;

	/* Decorative layers: switched off in contrast modes. */
	--hero-bg:
		radial-gradient(60rem 30rem at 85% -10%, rgb(20 184 166 / 45%), transparent 60%),
		radial-gradient(50rem 30rem at -10% 110%, rgb(0 163 224 / 40%), transparent 60%),
		radial-gradient(30rem 20rem at 55% 60%, rgb(99 102 241 / 25%), transparent 70%),
		linear-gradient(160deg, #06213b 0%, #0a3a66 55%, #0b4f7d 100%);
	--hero-text: #ffffff;
	--hero-muted: #d7e6f5;
	--hero-highlight: linear-gradient(90deg, #7dd3fc, #5eead4);
	--glass-bg: rgb(255 255 255 / 10%);
	--glass-border: rgb(255 255 255 / 22%);
	--dark-bg: linear-gradient(160deg, #06213b, #0a3a66);
	--dark-text: #ffffff;
	--dark-muted: #cfe0f1;
	--band-news: linear-gradient(135deg, #0a4f86, #0b7fb8 60%, #14b8a6);
	--band-event: linear-gradient(135deg, #0f766e, #14b8a6 70%, #5eead4);
	--band-story: linear-gradient(135deg, #4338ca, #7c3aed 60%, #c084fc);
	--band-resource: linear-gradient(135deg, #b45309, #ea580c 60%, #f59e0b);
	--band-publication: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #38bdf8);
	--map-ocean: radial-gradient(circle at 30% 20%, #0d4b7c, #06213b 75%);
	--map-grid: rgb(255 255 255 / 12%);
	--map-dot: #5eead4;
	--map-label: #ffffff;
	--map-label-stroke: #06213b;

	--radius-sm: 0.5rem;
	--radius: 0.875rem;
	--radius-lg: 1.25rem;
	--shadow-sm: 0 1px 2px rgb(15 28 46 / 6%);
	--shadow: 0 1px 2px rgb(15 28 46 / 5%), 0 8px 24px -6px rgb(15 28 46 / 12%);
	--shadow-lg: 0 2px 4px rgb(15 28 46 / 6%), 0 20px 40px -12px rgb(15 28 46 / 25%);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--a11y-scale: 1;
	color-scheme: light;
}

/* ------------------------------------------------ Accessibility colour modes */
html.a11y-contrast-high {
	--bg: #000; --surface: #000; --surface-2: #000;
	--text: #fff; --muted: #fff;
	--brand: #000; --brand-strong: #000; --brand-text: #ff0;
	--accent: #ff0; --accent-2: #ff0; --link: #ff0; --link-hover: #fff;
	--border: #fff; --focus: #0ff; --focus-ring: #000;
	--ok-bg: #000; --ok-text: #fff; --err-bg: #000; --err-text: #fff;
	--demo-bg: #000; --demo-text: #ff0;
	--hero-bg: #000; --hero-text: #fff; --hero-muted: #fff; --hero-highlight: linear-gradient(#ff0, #ff0);
	--glass-bg: #000; --glass-border: #fff;
	--dark-bg: #000; --dark-text: #fff; --dark-muted: #fff;
	--band-news: #000; --band-event: #000; --band-story: #000; --band-resource: #000; --band-publication: #000;
	--map-ocean: #000; --map-grid: #666; --map-dot: #ff0; --map-label: #fff; --map-label-stroke: #000;
	--shadow-sm: none; --shadow: none; --shadow-lg: none;
	color-scheme: dark;
}
html.a11y-contrast-negative {
	--bg: #111418; --surface: #1a1f25; --surface-2: #232a32;
	--text: #f1f5f9; --muted: #cbd5e1;
	--brand: #1a1f25; --brand-strong: #0b0e11; --brand-text: #fff;
	--accent: #7dd3fc; --accent-2: #5eead4; --link: #8fd3ff; --link-hover: #c7e9ff;
	--border: #4b5563; --focus: #ffbf47; --focus-ring: #000;
	--ok-bg: #173323; --ok-text: #c9f0d7; --err-bg: #3a1714; --err-text: #ffd2cc;
	--demo-bg: #2e2508; --demo-text: #ffe8a3;
	--hero-bg: #0b0e11; --hero-text: #fff; --hero-muted: #cbd5e1; --hero-highlight: linear-gradient(#8fd3ff, #8fd3ff);
	--glass-bg: #1a1f25; --glass-border: #4b5563;
	--dark-bg: #0b0e11; --dark-text: #fff; --dark-muted: #cbd5e1;
	--band-news: #232a32; --band-event: #232a32; --band-story: #232a32; --band-resource: #232a32; --band-publication: #232a32;
	--map-ocean: #0b0e11; --map-grid: #333; --map-dot: #8fd3ff; --map-label: #fff; --map-label-stroke: #0b0e11;
	--shadow-sm: none; --shadow: none; --shadow-lg: none;
	color-scheme: dark;
}
html.a11y-light {
	--bg: #fffdf2; --surface: #fff7da; --surface-2: #fcefc2;
	--text: #1a1a1a; --muted: #3d3d3d; --border: #c9b77a;
	--hero-bg: #fcefc2; --hero-text: #1a1a1a; --hero-muted: #3d3d3d; --hero-highlight: linear-gradient(#00476b, #00476b);
	--glass-bg: #fffdf2; --glass-border: #c9b77a;
	--dark-bg: #fcefc2; --dark-text: #1a1a1a; --dark-muted: #3d3d3d;
	--map-ocean: #fff7da; --map-grid: #c9b77a; --map-dot: #00476b; --map-label: #1a1a1a; --map-label-stroke: #fff7da;
	--brand: #00476b; --brand-strong: #00324c; --link: #00476b; --link-hover: #00324c;
}
html.a11y-grayscale body { filter: grayscale(1); }
html.a11y-underline a { text-decoration: underline !important; text-underline-offset: 0.18em; }
html.a11y-readable body, html.a11y-readable input, html.a11y-readable select,
html.a11y-readable textarea, html.a11y-readable button {
	font-family: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif !important;
	letter-spacing: 0.02em; word-spacing: 0.08em;
}
html.a11y-readable body { line-height: 1.75; }
html.a11y-contrast-high .button, html.a11y-contrast-high button { border-color: currentColor !important; }

/* ------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: calc(100% * var(--a11y-scale)); -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 0.6em; color: var(--text); font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.025em; }
h2, .h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
.h4, h4 { font-size: 1.1rem; font-weight: 700; }
.h5, h5 { font-size: 1rem; font-weight: 700; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.small { font-size: 0.9rem; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.lead p:last-child { margin-bottom: 0; }
code { background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 0.35rem; font-size: 0.92em; }

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--focus-ring);
	border-radius: 4px;
}
main:focus { outline: none; }

.screen-reader-text {
	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: 1rem; top: -100rem; z-index: 1000;
	padding: 0.75rem 1rem; background: var(--focus); color: #0b0c0c; font-weight: 700; text-decoration: none;
	border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: 78rem; margin: 0 auto; padding: 0 1.25rem; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 0.4rem;
	margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--link);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------------------------------------------------------------- Buttons */
.button, button.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 2.9rem; padding: 0.6rem 1.35rem;
	border: 2px solid var(--brand); border-radius: 999px;
	background: var(--brand); color: var(--brand-text);
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.button:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--brand-text); transform: translateY(-1px); box-shadow: var(--shadow); }
.button--secondary { background: transparent; color: var(--link); border-color: currentColor; }
.button--secondary:hover { background: var(--surface-2); color: var(--link-hover); }
.button .icon, .action .icon { width: 1.15em; height: 1.15em; flex: none; }
.button-link { background: none; border: 0; padding: 0.25rem; min-height: 2.75rem; color: var(--link); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.icon { width: 1.25rem; height: 1.25rem; vertical-align: middle; }
.icon-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
	min-width: 2.9rem; min-height: 2.9rem; padding: 0.4rem 0.75rem;
	border: 1px solid var(--border); border-radius: 999px;
	background: var(--bg); color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
}
.icon-button:hover { border-color: var(--link); color: var(--link); }
.icon-button[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-text); }

/* ------------------------------------------------- Top bar + a11y toolbar */
.a11y-bar { background: var(--brand-strong); color: #fff; font-size: 0.9rem; }
html.a11y-contrast-high .a11y-bar { border-bottom: 1px solid #fff; color: #ff0; }
html.a11y-light .a11y-bar { background: #00324c; }
.a11y-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem 1rem; padding-block: 0.4rem; }
.demo-note { margin: 0; display: flex; align-items: center; gap: 0.5rem; color: inherit; opacity: 0.95; }
.demo-pill { padding: 0.1rem 0.55rem; border-radius: 999px; background: #fbbf24; color: #1a1300; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
.a11y-bar-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
.a11y-bar button {
	display: inline-flex; align-items: center; gap: 0.45rem;
	min-height: 2.5rem; padding: 0.3rem 0.95rem;
	border: 1px solid rgb(255 255 255 / 35%); border-radius: 999px;
	background: rgb(255 255 255 / 8%); color: #fff;
	font: inherit; font-weight: 700; cursor: pointer;
}
html.a11y-contrast-high .a11y-bar button { color: #ff0; border-color: #ff0; background: #000; }
.a11y-bar button:hover { background: rgb(255 255 255 / 18%); }
.a11y-bar .icon { width: 1.05rem; height: 1.05rem; }
.a11y-toggle[aria-expanded="true"], .a11y-read[aria-pressed="true"] { background: #fff !important; color: var(--brand-strong) !important; }
.a11y-toggle .icon-chevron { width: 0.9rem; transition: transform 0.2s; }
.a11y-toggle[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }
@media (max-width: 48em) { .demo-text { display: none; } }

.a11y-panel { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); padding-block: 1.25rem 1rem; box-shadow: var(--shadow-lg); position: relative; z-index: 60; }
.a11y-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
.a11y-panel-title { font-size: 1.2rem; margin: 0; }
.a11y-panel-head .small { margin: 0; }
.a11y-groups { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.a11y-group-label { display: block; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.a11y-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.a11y-panel .a11y-row button {
	display: inline-flex; align-items: center; gap: 0.5rem;
	min-height: 2.9rem; min-width: 2.9rem; padding: 0.4rem 0.95rem;
	border: 2px solid var(--border); border-radius: var(--radius);
	background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
}
.a11y-panel .a11y-row button:hover { border-color: var(--link); }
.a11y-panel .a11y-row button[aria-pressed="true"] { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.a11y-panel .a11y-row button[aria-pressed="true"]::after { content: "✓"; }
.a11y-panel .a11y-row button:disabled { opacity: 0.45; cursor: not-allowed; }
.swatch { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 1px solid var(--muted); font-size: 0.7rem; font-weight: 800; }
.swatch--gray { background: linear-gradient(90deg, #333 50%, #bbb 50%); }
.swatch--hc { background: linear-gradient(90deg, #000 50%, #ff0 50%); }
.swatch--neg { background: linear-gradient(90deg, #111 50%, #fff 50%); }
.swatch--light { background: #fff7da; }
.swatch--underline { text-decoration: underline; }
.a11y-size-value { min-width: 3.75rem; text-align: center; font-weight: 800; font-size: 1.1rem; }
.a11y-panel-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }

/* ------------------------------------------------------------ Audio player */
.audio-player {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	background: var(--brand-strong); color: #fff;
	box-shadow: 0 -8px 30px rgb(0 0 0 / 25%);
	padding-block: 0.6rem;
}
html.a11y-contrast-high .audio-player { border-top: 2px solid #ff0; }
.audio-player-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.audio-player-title { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 700; flex: 1 1 14rem; min-width: 0; }
.audio-player-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-player audio { flex: 2 1 18rem; height: 2.75rem; }
.audio-player-actions { display: flex; gap: 0.5rem; align-items: center; }
.audio-player select { width: auto; min-height: 2.75rem; border-radius: 999px; padding: 0.25rem 0.75rem; }
.audio-player .icon-button { background: transparent; color: #fff; border-color: rgb(255 255 255 / 40%); }
body.has-player { padding-bottom: 5rem; }

/* ---------------------------------------------------------------- Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--border);
}
html.a11y-contrast-high .site-header, html.a11y-contrast-negative .site-header { background: var(--bg); backdrop-filter: none; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none; margin-right: auto; flex: none; }
.brand:hover { color: var(--text); }
.brand-mark {
	display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 0.9rem;
	background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
	box-shadow: 0 6px 16px -6px rgb(10 79 134 / 60%);
}
html.a11y-contrast-high .brand-mark { background: #000; color: #ff0; border: 2px solid #ff0; }
.brand-mark .icon { width: 1.7rem; height: 1.7rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-tagline { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.header-actions { display: flex; gap: 0.5rem; align-items: center; }
.menu-toggle { display: none; }

.site-search { border-top: 1px solid var(--border); background: var(--bg); padding-block: 0.9rem; }
.site-search-form { display: flex; align-items: center; gap: 0.75rem; }
.site-search-form > .icon { color: var(--muted); flex: none; }
.site-search-form input { flex: 1; border-radius: 999px; }

/* ------------------------------------------------------------ Navigation */
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu > li > a {
	display: flex; align-items: center; min-height: 2.75rem;
	padding: 0.4rem 0.7rem; border-radius: 999px;
	color: var(--text); font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
}
.primary-nav .menu > li > a:hover { background: var(--surface-2); color: var(--link); }
.primary-nav .menu > li.in-trail > a, .primary-nav .menu > li > a[aria-current="page"] { color: var(--link); background: var(--surface-2); }
.sub-toggle {
	display: grid; place-items: center; width: 1.9rem; height: 2.75rem; margin-left: -0.45rem;
	border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
}
.sub-toggle:hover { color: var(--link); }
.sub-toggle .icon { width: 0.95rem; transition: transform 0.2s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu {
	position: absolute; top: calc(100% + 0.5rem); left: 0; z-index: 70;
	min-width: 17rem; margin: 0; padding: 0.5rem; list-style: none;
	background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}
.sub-menu a { display: block; padding: 0.6rem 0.85rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; text-decoration: none; }
.sub-menu a:hover { background: var(--surface); color: var(--link); }

@media (max-width: 78em) {
	.menu-toggle { display: inline-flex; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); max-height: calc(100vh - 6rem); overflow-y: auto; }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1rem; max-width: 78rem; margin: 0 auto; }
	.primary-nav .menu > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--border); }
	.primary-nav .menu > li > a { flex: 1; border-radius: var(--radius-sm); font-size: 1.05rem; }
	.sub-toggle { width: 3rem; margin: 0; }
	.sub-menu { position: static; flex-basis: 100%; box-shadow: none; border: 0; border-left: 3px solid var(--accent); border-radius: 0; margin: 0 0 0.75rem 0.75rem; }
}
@media (max-width: 30em) { .menu-toggle-label, .brand-tagline { display: none; } }

/* ------------------------------------------------------------ Breadcrumbs */
.breadcrumbs { padding-top: 1.5rem; font-size: 0.9rem; font-weight: 600; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumbs li + li::before { content: "/"; margin: 0 0.45rem 0 0.2rem; color: var(--border); }
.breadcrumbs [aria-current] { color: var(--muted); }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; background: var(--hero-bg); color: var(--hero-text); overflow: hidden; }
.hero::before { /* dotted texture */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgb(255 255 255 / 12%) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000, transparent 85%);
}
html.a11y-contrast-high .hero::before, html.a11y-contrast-negative .hero::before, html.a11y-light .hero::before { display: none; }
.hero-inner { position: relative; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); padding-block: 4.5rem 7rem; align-items: center; }
.hero .eyebrow { color: var(--hero-muted); }
.hero h1 { color: var(--hero-text); font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem); line-height: 1.05; max-width: 16ch; margin-bottom: 1.25rem; }
.hero h1 .hl { background: var(--hero-highlight); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--hero-muted); font-size: 1.2rem; }
.hero-search { margin-top: 2rem; max-width: 40rem; }
.hero-search > label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.hero .hero-search > label { color: var(--hero-text); }
.hero-search-row {
	display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0.4rem;
	background: var(--bg); border-radius: 999px; box-shadow: var(--shadow-lg);
	border: 1px solid var(--border);
}
.hero-search-row input[type="search"], .hero-search-row select { flex: 1 1 12rem; border: 0; border-radius: 999px; background: transparent; }
.hero-search-row input[type="search"]:focus-visible { box-shadow: none; outline-offset: 0; }
.hero-search-row select { flex: 0 1 14rem; background: var(--surface); }
.hero-search--boxed { max-width: none; margin: 0 0 2rem; padding: 1.5rem; background: var(--surface); border-radius: var(--radius-lg); }
.hero-stats { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--hero-text); }
.hero-stats span { color: var(--hero-muted); font-size: 0.95rem; font-weight: 600; }
.hero-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.hero-links a {
	display: flex; gap: 1rem; align-items: center;
	padding: 1.1rem 1.25rem;
	background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	color: var(--hero-text); text-decoration: none;
	transition: transform 0.2s, background 0.2s;
}
.hero-links a:hover { transform: translateX(4px); background: rgb(255 255 255 / 16%); color: var(--hero-text); }
html.a11y-light .hero-links a:hover { background: var(--surface); }
.hero-links .hl-icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 0.9rem; background: rgb(255 255 255 / 14%); }
html.a11y-light .hero-links .hl-icon { background: var(--surface-2); }
.hero-links .icon { width: 1.5rem; height: 1.5rem; }
.hero-links strong { display: block; font-size: 1.1rem; }
.hero-links .hl-text span { color: var(--hero-muted); font-size: 0.95rem; }
.hero-links .arrow { margin-left: auto; opacity: 0.8; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 4.5rem; color: var(--bg); display: block; }
@media (max-width: 55em) { .hero-inner { grid-template-columns: 1fr; padding-block: 3rem 5.5rem; } }

/* ------------------------------------------------------------- Forms */
input[type="text"], input[type="email"], input[type="search"], input[type="password"], select, textarea {
	min-height: 2.9rem; width: 100%;
	padding: 0.55rem 0.95rem;
	border: 2px solid var(--border); border-radius: var(--radius-sm);
	background: var(--bg); color: var(--text); font: inherit;
}
input:hover, select:hover { border-color: var(--muted); }
input[aria-invalid="true"] { border-color: var(--err-text); border-width: 3px; }
label { font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field--check { flex-direction: row; align-items: flex-start; gap: 0.65rem; }
.field--check input { width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; flex: none; accent-color: var(--brand); }
.field--check label { font-weight: 500; font-size: 0.95rem; }
.field--radios { border: 0; padding: 0; margin: 0 0 1rem; }
.field--radios legend { font-weight: 700; margin-bottom: 0.35rem; }
.field--radios label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; min-height: 2.25rem; }
.field--radios input { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; }
.form-message { padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.form-message--success { background: var(--ok-bg); color: var(--ok-text); border-left: 5px solid var(--ok-text); }
.form-message--error { background: var(--err-bg); color: var(--err-text); border-left: 5px solid var(--err-text); }

/* ----------------------------------------------------------- Sections */
.section { padding-block: 4rem; }
.section--compact { padding-block: 1.75rem; }
.section--tint { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.5rem 1rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 0.4rem; }
.section-more {
	display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; padding: 0.3rem 1rem;
	border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
	font-weight: 700; font-size: 0.95rem; text-decoration: none;
}
.section-more::after { content: "→"; transition: transform 0.2s; }
.section-more:hover { border-color: var(--link); }
.section-more:hover::after { transform: translateX(3px); }
.two-col { display: grid; gap: 2.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.empty { padding: 1.25rem; background: var(--surface); border-radius: var(--radius); color: var(--muted); }

/* --------------------------------------------------------------- Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm); overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
html.a11y-contrast-high .card:hover { border-color: #ff0; }
.card:focus-within { box-shadow: 0 0 0 3px var(--focus), 0 0 0 6px var(--focus-ring); }
.card-band {
	position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: 9rem; padding: 1rem;
	background: var(--band-news); color: #fff; overflow: hidden;
}
.card-band::before { /* wave pattern */
	content: ""; position: absolute; inset: 0; opacity: 0.35;
	background:
		radial-gradient(circle at 110% 120%, transparent 38%, rgb(255 255 255 / 45%) 38.5%, transparent 39.5%, transparent 46%, rgb(255 255 255 / 35%) 46.5%, transparent 47.5%, transparent 54%, rgb(255 255 255 / 25%) 54.5%, transparent 55.5%),
		radial-gradient(circle at -10% -20%, rgb(255 255 255 / 30%), transparent 45%);
}
.card--pro_event .card-band { background: var(--band-event); }
.card--pro_story .card-band { background: var(--band-story); }
.card--pro_resource .card-band { background: var(--band-resource); }
.card--pro_publication .card-band { background: var(--band-publication); }
html.a11y-contrast-high .card-band, html.a11y-contrast-negative .card-band { border-bottom: 1px solid var(--border); color: var(--text); }
html.a11y-contrast-high .card-band::before, html.a11y-contrast-negative .card-band::before { display: none; }
.card-band-icon { position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.9rem; background: rgb(255 255 255 / 20%); backdrop-filter: blur(6px); border: 1px solid rgb(255 255 255 / 35%); }
.card-band .icon { width: 1.5rem; height: 1.5rem; }
.card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-type, .entry-type {
	align-self: flex-start; width: fit-content; margin: 0 0 0.6rem; padding: 0.15rem 0.65rem;
	border-radius: 999px; background: var(--surface-2); color: var(--link);
	font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.card-title { font-size: 1.15rem; line-height: 1.35; margin-bottom: 0.5rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { color: var(--link); text-decoration: underline; }
.card-title a:focus-visible { outline: none; box-shadow: none; }
.card-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; font-weight: 600; }
.card-excerpt { margin-bottom: 0.75rem; color: var(--muted); font-size: 0.975rem; }
.card-tags { margin: auto 0 0; padding-top: 0.75rem; border-top: 1px dashed var(--border); font-size: 0.875rem; color: var(--muted); font-weight: 600; }
.cards--list { grid-template-columns: 1fr; gap: 1rem; }
.cards--list .card { flex-direction: row; }
.cards--list .card:hover { transform: translateY(-2px); }
.cards--list .card-band { width: 7.5rem; height: auto; flex: none; align-items: flex-start; }
@media (max-width: 36em) { .cards--list .card { flex-direction: column; } .cards--list .card-band { width: auto; height: 5rem; } }

/* ------------------------------------------------------- Event & doc lists */
.event-list, .doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.event-item, .doc-item {
	position: relative; display: flex; gap: 1rem; align-items: center;
	padding: 1rem 1.15rem;
	background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
	transition: transform 0.2s, box-shadow 0.2s;
}
.event-item:hover, .doc-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event-item:focus-within, .doc-item:focus-within { box-shadow: 0 0 0 3px var(--focus), 0 0 0 6px var(--focus-ring); }
.event-title a::after, .doc-title a::after { content: ""; position: absolute; inset: 0; }
.event-title a:focus-visible, .doc-title a:focus-visible { outline: none; box-shadow: none; }
.date-badge {
	display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none;
	width: 4rem; height: 4rem; border-radius: var(--radius);
	background: var(--band-event); color: #fff; line-height: 1.05; font-weight: 800;
}
html.a11y-contrast-high .date-badge, html.a11y-contrast-negative .date-badge { border: 2px solid var(--border); color: var(--text); }
.date-badge .d { font-size: 1.45rem; }
.date-badge .m { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.event-title, .doc-title { font-size: 1.05rem; margin: 0 0 0.2rem; }
.event-title a, .doc-title a { color: var(--text); text-decoration: none; }
.event-title a:hover, .doc-title a:hover { color: var(--link); text-decoration: underline; }
.doc-icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--surface-2); color: var(--link); }
.doc-icon .icon { width: 1.5rem; height: 1.5rem; }
.doc-item .card-type { margin-bottom: 0.3rem; }
.doc-item .card-meta, .event-item .card-meta { margin: 0; }

/* ---------------------------------------------------- Issue bento grid */
.issue-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.issue-grid li {
	position: relative; display: flex; flex-direction: column;
	padding: 1.4rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
	transition: transform 0.2s, box-shadow 0.2s;
}
.issue-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.issue-grid li:focus-within { box-shadow: 0 0 0 3px var(--focus), 0 0 0 6px var(--focus-ring); }
.issue-grid .issue-num { font-size: 0.8rem; font-weight: 800; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.issue-grid--bento li:first-child {
	grid-column: span 2; grid-row: span 2; justify-content: flex-end;
	background: var(--hero-bg); color: var(--hero-text); border-color: transparent;
}
.issue-grid--bento li:first-child .issue-title a, .issue-grid--bento li:first-child p, .issue-grid--bento li:first-child .issue-num { color: var(--hero-text); }
.issue-grid--bento li:first-child .issue-title { font-size: 1.6rem; }
.issue-grid--bento li:first-child p { font-size: 1.05rem; opacity: 0.92; }
@media (max-width: 40em) { .issue-grid--bento li:first-child { grid-column: auto; grid-row: auto; } }
.issue-title { font-size: 1.1rem; margin-bottom: 0.4rem; }
.issue-title a { color: var(--text); text-decoration: none; }
.issue-title a::after { content: ""; position: absolute; inset: 0; }
.issue-title a:hover { text-decoration: underline; color: var(--link); }
.issue-title a:focus-visible { outline: none; box-shadow: none; }
.issue-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.issue-grid .go { margin-top: auto; padding-top: 1rem; font-weight: 800; color: var(--link); }
.issue-grid--bento li:first-child .go { color: var(--hero-text); }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1.1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); text-decoration: none; font-weight: 700; }
.pill-list a:hover { border-color: var(--link); background: var(--surface); }
.pill-list .count { color: var(--muted); font-weight: 600; margin-left: 0.35rem; }

/* ----------------------------------------------------------------- Map */
.map-section { background: var(--dark-bg); color: var(--dark-text); }
.map-section .section-head h2, .map-section .eyebrow { color: var(--dark-text); }
.map-section .country-list h2 { color: var(--dark-text); }
.map-section .country-list a { color: var(--dark-text); }
.map-section .map figcaption { color: var(--dark-muted); }
.map-block { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); align-items: start; }
@media (max-width: 55em) { .map-block { grid-template-columns: 1fr; } }
.map { margin: 0; }
.map-svg { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: var(--map-ocean); }
.map-ocean { fill: transparent; }
.map-grid { stroke: var(--map-grid); stroke-width: 1; }
.map-equator { stroke: var(--map-dot); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; opacity: 0.7; }
.map-grid-label { fill: var(--map-dot); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; }
.map-country { cursor: pointer; }
.map-halo { fill: transparent; stroke: none; }
.map-pulse { fill: var(--map-dot); opacity: 0.25; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 0.5; } to { transform: scale(1.8); opacity: 0; } }
.map-dot { fill: var(--map-dot); stroke: var(--map-label-stroke); stroke-width: 3; }
.map-label { fill: var(--map-label); font-family: var(--font); font-size: 15px; font-weight: 700; paint-order: stroke; stroke: var(--map-label-stroke); stroke-width: 5px; stroke-linejoin: round; }
.map-country:hover .map-dot, .map-country.is-current .map-dot { fill: #fbbf24; }
.map-country:hover .map-label { text-decoration: underline; }
.map-country:focus { outline: none; }
.map-country:focus-visible .map-halo { fill: var(--focus); stroke: var(--focus-ring); stroke-width: 3; }
.map figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.country-list ul { list-style: none; margin: 0; padding: 0; columns: 2 10rem; column-gap: 1.5rem; }
.country-list li { break-inside: avoid; }
.country-list a { display: inline-block; padding: 0.35rem 0; min-height: 2.1rem; font-weight: 600; }
.country-list a[aria-current] { font-weight: 800; }

/* ---------------------------------------------------------- Single */
.entry-header { padding-block: 1.25rem 1rem; }
.entry-header h1 { max-width: 30ch; }
.entry-meta { color: var(--muted); font-weight: 600; }
.layout-single { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1fr) 19rem; padding-bottom: 4rem; }
@media (max-width: 60em) { .layout-single { grid-template-columns: 1fr; } }
.entry { max-width: 48rem; }
.entry--page { max-width: none; padding-bottom: 4rem; }
.entry--page .entry-content { max-width: 48rem; }
.entry-content { font-size: 1.1rem; }
.entry-content h2 { margin-top: 1.8em; font-size: 1.6rem; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content a { text-decoration: underline; }
.lead-content { font-size: 1.15rem; color: var(--muted); max-width: 48rem; }
.entry-media { margin: 0 0 1.5rem; }
.entry-media img { border-radius: var(--radius-lg); }
.entry-aside { align-self: start; position: sticky; top: 6rem; display: grid; gap: 1.25rem; }
@media (max-width: 60em) { .entry-aside { position: static; } }
.entry-aside > * { padding: 1.25rem; background: var(--surface); border-radius: var(--radius-lg); }
.tag-list { margin: 0; }
.tag-list div + div { margin-top: 0.9rem; }
.tag-list dt { font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tag-list dd { margin: 0; font-weight: 600; }
.related h2 { margin-bottom: 0.5rem; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.related li:last-child { border-bottom: 0; padding-bottom: 0; }
.related .card-type { display: inline-block; margin: 0 0 0.3rem; }
.related a { display: block; font-weight: 600; }

.page-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; align-items: center; padding: 0.5rem; margin-bottom: 2rem; background: var(--surface); border-radius: 999px; }
@media (max-width: 40em) { .page-actions { border-radius: var(--radius-lg); } }
.actions { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.share-label { font-weight: 700; color: var(--muted); margin: 0 0.25rem 0 0.5rem; font-size: 0.9rem; }
.action {
	display: inline-flex; align-items: center; gap: 0.4rem;
	min-height: 2.75rem; min-width: 2.75rem; padding: 0.35rem 0.85rem;
	border: 0; border-radius: 999px; background: transparent;
	color: var(--link); font: inherit; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
}
.action:hover { background: var(--bg); box-shadow: var(--shadow-sm); }
.action[aria-pressed="true"] { background: var(--brand); color: var(--brand-text); }
.share .action { padding-inline: 0.7rem; }

.easy-read { display: flex; gap: 1rem; padding: 1.25rem 1.4rem; margin-bottom: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 1.15rem; }
.easy-read::before { content: ""; flex: none; width: 5px; border-radius: 5px; background: linear-gradient(var(--accent), var(--accent-2)); }
.easy-read h2 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.easy-read p { margin: 0; }
.event-details, .download { padding: 1.5rem; margin-bottom: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.event-details dl { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
.event-details dl div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px dashed var(--border); }
@media (max-width: 36em) { .event-details dl div { grid-template-columns: 1fr; gap: 0; } }
.event-details dt { font-weight: 800; }
.event-details dd { margin: 0; }
.event-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.notice { margin: 0; font-weight: 700; color: var(--muted); }
.file-meta { color: var(--muted); margin-left: 0.5rem; font-weight: 600; font-size: 0.95rem; }
.lang-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lang-list a { display: inline-flex; min-height: 2.5rem; align-items: center; padding: 0.25rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); font-weight: 700; text-decoration: none; }
.subsections { margin-top: 3rem; }

/* -------------------------------------------------------- Listings */
.layout-listing { display: grid; gap: 2rem; grid-template-columns: 19rem minmax(0, 1fr); padding-bottom: 4rem; }
@media (max-width: 60em) { .layout-listing { grid-template-columns: 1fr; } }
.filters { padding: 1.4rem; background: var(--surface); border-radius: var(--radius-lg); position: sticky; top: 6rem; }
@media (max-width: 60em) { .filters { position: static; } }
.filters-title { font-size: 1.1rem; }
.filters-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.results-count { margin: 0; font-weight: 800; }
.feed-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.feed-link .icon, .feed-links .icon, .social .icon { width: 1.1rem; height: 1.1rem; }
.feed-links, .social { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.feed-links a, .social a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.25rem; font-weight: 600; }
.navigation.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.9rem; min-height: 2.9rem; padding: 0.25rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-weight: 700; }
.page-numbers.current { background: var(--brand); border-color: var(--brand); color: var(--brand-text); }

/* ---------------------------------------------------------- X / social feed */
.x-feed-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.x-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem 0; }
.x-feed-head h2, .x-feed-head h3 { margin: 0; font-size: 1.35rem; display: flex; align-items: center; gap: 0.5rem; }
.x-feed-head .icon { width: 1.4rem; height: 1.4rem; }
.x-tabs { display: flex; gap: 0.25rem; padding: 0.75rem 1.25rem 0; border-bottom: 1px solid var(--border); }
.x-tab {
	min-height: 2.9rem; padding: 0.4rem 1rem; margin-bottom: -1px;
	border: 0; border-bottom: 3px solid transparent; background: transparent;
	color: var(--muted); font: inherit; font-weight: 800; cursor: pointer;
}
.x-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.x-tab:hover { color: var(--text); }
.x-panel { max-height: 34rem; overflow-y: auto; }
.x-panel:focus-visible { outline-offset: -3px; }
.x-posts { list-style: none; margin: 0; padding: 0; }
.x-post { display: flex; gap: 0.85rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.x-post:last-child { border-bottom: 0; }
.x-avatar { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; font-size: 0.9rem; }
html.a11y-contrast-high .x-avatar { background: #000; border: 2px solid #ff0; color: #ff0; }
.x-post-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4rem; font-size: 0.95rem; }
.x-post-head strong { font-weight: 800; }
.x-verified { width: 1rem !important; height: 1rem !important; color: var(--accent); }
.x-post-head .x-handle, .x-post-head time { color: var(--muted); }
.x-post p { margin: 0.2rem 0 0.5rem; }
.x-post p a { font-weight: 700; text-decoration: none; }
.x-post p a:hover { text-decoration: underline; }
.x-stats { display: flex; gap: 1.25rem; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.x-stats span { display: inline-flex; align-items: center; gap: 0.3rem; }
.x-stats .icon { width: 1rem; height: 1rem; }
.x-feed-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.9rem 1.25rem; background: var(--surface); font-size: 0.9rem; }
.x-feed-foot p { margin: 0; color: var(--muted); }
.feeds-card { padding: 1.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* ------------------------------------------- Highlight-to-share & reading */
.select-share {
	position: absolute; z-index: 80;
	display: inline-flex; align-items: center; gap: 0.45rem;
	min-height: 2.6rem; padding: 0.4rem 0.95rem;
	background: #0f1c2e; color: #fff;
	border: 0; border-radius: 999px; box-shadow: var(--shadow-lg);
	font: inherit; font-weight: 800; font-size: 0.9rem; text-decoration: none;
}
html.a11y-contrast-high .select-share { background: #ff0; color: #000; }
.select-share:hover { color: #fff; text-decoration: underline; }
.select-share .icon { width: 1rem; height: 1rem; }
.is-reading { background: #fef08a; color: #1a1300 !important; box-shadow: 0 0 0 4px #fef08a; border-radius: 4px; transition: background 0.2s; }
html.a11y-contrast-high .is-reading { background: #ff0; box-shadow: 0 0 0 4px #ff0; color: #000 !important; }
.is-reading a { color: #1a1300 !important; }

/* --------------------------------------------------------------- Footer */
.site-footer { position: relative; background: var(--dark-bg); color: var(--dark-text); padding-top: 5.5rem; margin-top: 2rem; }
.site-footer .wave-top { position: absolute; top: -1px; left: 0; width: 100%; height: 4rem; color: var(--bg); transform: scaleY(-1); }
html.a11y-contrast-high .site-footer { border-top: 3px solid #fff; }
.site-footer h2 { color: var(--dark-text); font-size: 1.2rem; }
.site-footer p { color: var(--dark-muted); }
.site-footer a { color: var(--dark-text); }
.site-footer a:hover { color: var(--dark-text); text-decoration-thickness: 3px; }
html.a11y-contrast-high .site-footer a { color: #ff0; }
.footer-grid { display: grid; gap: 2.5rem 3rem; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 55em) { .footer-grid { grid-template-columns: 1fr; } }
.footer-newsletter { padding: 1.75rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); }
.site-footer label { color: var(--dark-text); }
.site-footer .button { background: #fff; color: var(--brand-strong); border-color: #fff; }
html.a11y-contrast-high .site-footer .button { background: #000; color: #ff0; border-color: #ff0; }
html.a11y-light .site-footer .button { background: var(--brand); color: #fff; border-color: var(--brand); }
.site-footer .button:hover { background: #e0f2fe; color: var(--brand-strong); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-menu a { display: inline-block; min-height: 2rem; font-weight: 600; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--glass-border); font-size: 0.9rem; }
.footer-base p { margin: 0; }

/* ------------------------------------------------ WordPress core blocks */
.wp-block-image figcaption, .wp-caption-text { font-size: 0.9rem; color: var(--muted); }
.post-password-form { padding: 1.5rem; background: var(--surface); border-radius: var(--radius-lg); max-width: 34rem; }
.post-password-form input[type="password"] { margin: 0.35rem 0.5rem 0.35rem 0; width: auto; }
.post-password-form input[type="submit"] { min-height: 2.9rem; padding: 0.5rem 1.35rem; border: 2px solid var(--brand); border-radius: 999px; background: var(--brand); color: var(--brand-text); font: inherit; font-weight: 700; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.card:hover, .issue-grid li:hover, .event-item:hover, .doc-item:hover, .hero-links a:hover { transform: none; }
}

/* Small screens: let the brand shrink and wrap so header buttons stay visible. */
@media (max-width: 40em) {
	.header-inner { gap: 0.5rem; }
	.brand { flex: 1 1 auto; min-width: 0; margin-right: 0; gap: 0.6rem; }
	.brand-text { min-width: 0; }
	.brand-name { font-size: 0.95rem; }
	.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
	.header-actions { flex: none; gap: 0.35rem; }
	.hero-inner { padding-block: 2.5rem 5rem; }
}
