/* ==========================================================================
   Najam Relief — design system (CORE)
   1. Fonts   2. Tokens   3. Base   4. Typography   5. Layout and surfaces
   6. Utilities   7. Buttons, links, icon buttons, tags, segmented control
   8. Media and grids   9. Shared components   10. Forms   11. Prose
   12. Header and mobile menu   13. Footer CTA and footer
   14. Accessibility modes   15. Print
   Page sections live in assets/css/pages/*.css, cross-page components owned by page
   engineers in assets/css/components/*.css, and motion in assets/css/motion.css.
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-var.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Amiri";
	src: url("../fonts/amiri-values.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
	/* Brand */
	--c-blue: #001489;            /* links, primary, active nav */
	--c-blue-700: #0a1f9e;
	--c-blue-900: #000c57;
	--c-blue-950: #00083d;        /* navy: headings, dark surfaces */
	--c-blue-500: #2b47d9;        /* gradient end only (6.6:1 on white) */
	--c-gold: #ffd400;
	--c-gold-deep: #ffc800;       /* gradient far stop only */
	/* Neutrals */
	--c-white: #ffffff;           /* default surface */
	--c-paper: #f7f5f0;           /* alternate surface */
	--c-sky: #eef1fb;             /* tiles, tool panels, active chips */
	--c-sky-2: #dfe5f8;
	--c-ink: #14182b;             /* body */
	--c-ink-2: #454a5e;           /* secondary: 8.9:1 on white, 8.2:1 on paper */
	--c-ink-3: #5a5e70;           /* captions and meta only: 6.4:1 */
	--c-line: rgb(0 8 61 / .12);  /* hairline on light */
	--c-line-strong: rgb(0 8 61 / .20);
	--c-line-dark: rgb(255 255 255 / .14);
	--c-line-soft: var(--c-line); /* back-compat alias */
	--c-field: #8a8fa3;           /* input border, 3.3:1 */
	--c-on-dark: #ffffff;
	--c-on-dark-2: #c9cde6;       /* 12:1 on navy */
	--c-success: #1d6a44; --c-success-bg: #e5f2ea; --c-error: #a3241c; --c-error-bg: #fbe9e7;

	/* Type */
	--ff-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
	--ff-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ff-arabic: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
	--fs-display: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);      /* 36 → 63px, Home H1 only */
	--fs-h1: clamp(2.125rem, 1.65rem + 1.9vw, 3.5rem);       /* 34 → 54 */
	--fs-h1-doc: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);       /* 32 → 44, legal, posts, 404 */
	--fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.625rem);       /* 28 → 42 */
	--fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);         /* 20 → 24 */
	--fs-h4: 1.125rem;                                        /* 18 */
	--fs-statement: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem); /* 22 → 35 */
	--fs-lede: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);      /* 17 → 19 */
	--fs-body: clamp(1rem, .97rem + .12vw, 1.0625rem);        /* 16 → 17 */
	--fs-small: .875rem; --fs-xs: .8125rem;
	--fs-stat: clamp(2rem, 1.55rem + 1.6vw, 3rem);            /* 32 → 48 */
	--fs-stat-xl: clamp(2.75rem, 1.8rem + 3.6vw, 5rem);       /* 44 → 80, Appeals total only */
	--lh-tight: 1.04; --lh-heading: 1.12; --lh-body: 1.6;

	/* Space and rhythm */
	--space-3xs: .25rem; --space-2xs: .5rem; --space-xs: .75rem; --space-s: 1rem;
	--space-m: 1.5rem; --space-l: 2rem;
	--space-xl: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
	--space-2xl: clamp(2.5rem, 1.9rem + 2.2vw, 3.75rem);
	--section: clamp(2.75rem, 2rem + 2.8vw, 4.5rem);          /* 43 → 72px */
	--section-tight: clamp(2rem, 1.5rem + 1.8vw, 3rem);       /* 32 → 48 */
	--head-gap: clamp(1.25rem, .9rem + 1.4vw, 2.25rem);       /* section head → content, 20 → 34 */
	--hero-top: clamp(1rem, .5rem + 1.6vw, 2rem);             /* header → hero content, 16 → 31 */
	--grid-gap: clamp(1rem, .5rem + 1.5vw, 2rem);
	--card-gap: clamp(.75rem, .5rem + .8vw, 1.25rem);

	/* Layout */
	--max: 82.5rem; --max-text: 40rem; --max-wide-text: 52rem;
	--gutter: clamp(1rem, .4rem + 2.6vw, 2.75rem);           /* 16px at 390 */
	--header-h: 4rem;                                         /* 64px; 72px at 68.75em and up */

	/* Radii (no pill token) */
	--radius-s: 8px;   /* tags, nav chips, inner segments */
	--radius: 10px;    /* buttons, inputs, caption bars, segmented control, thumbnails, tiles, stat cards */
	--radius-m: 16px;  /* media in grids, give panel, form card, calculator, floating header */
	--radius-l: clamp(18px, 1rem + .5vw, 24px); /* hero media, dark panels, slider, FAQ panel, doors */

	/* The only shadow token */
	--shadow-float: 0 18px 40px -24px rgb(0 8 61 / .32), 0 1px 2px rgb(0 8 61 / .06);

	/* Gradients: atmosphere, never art */
	--grad-hero: radial-gradient(60rem 28rem at 100% -10%, rgb(255 212 0 / .10), transparent 60%),
	             radial-gradient(56rem 32rem at -10% 0%, rgb(0 20 137 / .07), transparent 65%), #fff;
	--grad-navy: radial-gradient(70% 90% at 100% 0%, rgb(58 92 255 / .28), transparent 60%),
	             radial-gradient(60% 80% at 0% 100%, rgb(255 212 0 / .06), transparent 70%),
	             linear-gradient(160deg, #00083d 0%, #000c57 100%);
	--grad-blue: linear-gradient(140deg, #0a1f9e 0%, #001489 55%, #000c57 100%);
	--grad-gold: linear-gradient(135deg, #ffe14d 0%, #ffd400 45%, #ffc800 100%);
	--grad-btn-gold: linear-gradient(180deg, #ffe14d 0%, #ffd400 58%, #ffcc00 100%);
	--grad-btn-gold-hover: linear-gradient(180deg, #ffe866 0%, #ffda26 58%, #ffd000 100%);
	--grad-sky: linear-gradient(135deg, #eef1fb 0%, #f6f7fd 100%);
	--grad-scrim: linear-gradient(to top, rgb(0 6 40 / .82) 0%, rgb(0 6 40 / .45) 35%, rgb(0 6 40 / 0) 65%);
	--grad-progress-light: linear-gradient(90deg, #001489 0%, #2b47d9 100%);
	--grad-progress-dark: linear-gradient(90deg, #ffc400 0%, #ffd400 60%, #ffe566 100%);
	--grad-text: linear-gradient(90deg, #001489 0%, #2b47d9 100%); /* Home H1 line 2 only */

	/* Motion */
	--ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
	--ease: var(--ease-out); /* back-compat */
	--dur-fast: 160ms; --dur: 260ms; --dur-reveal: 1100ms; --dur-slow: 1300ms; --stagger: 110ms;
}

@media (min-width: 68.75em) {
	:root {
		--header-h: 4.5rem;
	}
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-ink);
	font: 400 var(--fs-body)/var(--lh-body) var(--ff-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

html.nav-open,
body.nav-open {
	overflow: hidden;
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
	object-position: var(--focus, 50% 50%);
}

/* Normal (upright) style for every element browsers slant by default. */
em,
i,
cite,
address,
dfn,
var,
q {
	font-style: normal;
}

/* Prose links: a same-colour underline (WCAG 1.4.1), thickening on hover.
   Interface links (navigation, footer, cards) remove it. */
a {
	color: var(--c-blue);
	text-decoration: underline 1px currentColor;
	text-underline-offset: 3px;
	transition: color var(--dur-fast) var(--ease-out), text-decoration-thickness var(--dur-fast) var(--ease-out);
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--c-blue);
	outline-offset: 3px;
}

::selection {
	background: var(--c-gold);
	color: var(--c-blue-950);
}

hr {
	margin: var(--space-xl) 0;
	border: 0;
	border-top: 1px solid var(--c-line);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

/* Text on navy, blue and photo surfaces keeps its contrast on hover (client item 5). */
:is([data-surface="navy"], .on-dark, .on-photo) {
	color: var(--c-on-dark);
}

:is([data-surface="navy"], .on-dark, .on-photo) a:not(.button) {
	color: var(--c-on-dark);
}

:is([data-surface="navy"], .on-dark, .on-photo) a:not(.button):hover {
	color: var(--c-on-dark);
}

:is([data-surface="navy"], .on-dark, .on-photo) a:not(.button):not(.icon-btn):not(.mcard__link):hover .icon {
	color: var(--c-gold);
}

:is([data-surface="navy"], .on-dark) :focus-visible,
.on-photo :focus-visible {
	outline-color: var(--c-gold);
}

/* 4. Typography ----------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--ff-display);
	font-weight: 700;
	line-height: var(--lh-heading);
	letter-spacing: -.025em;
	color: var(--c-blue-950);
	text-wrap: balance;
}

h1 {
	max-width: 18ch;
	font-size: var(--fs-h1);
	line-height: 1.06;
	letter-spacing: -.03em;
}

h2 {
	max-width: 22ch;
	font-size: var(--fs-h2);
}

h3,
.h3 {
	font-size: var(--fs-h3);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.015em;
}

h4,
.h4 {
	font-size: var(--fs-h4);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.01em;
}

:is([data-surface="navy"], .on-dark, .on-photo) :is(h1, h2, h3, h4) {
	color: var(--c-on-dark);
}

p {
	margin: 0;
	text-wrap: pretty;
}

strong,
b {
	font-weight: 600;
}

.display {
	font-family: var(--ff-display);
	font-size: var(--fs-display);
	font-weight: 700;
	line-height: var(--lh-tight);
	letter-spacing: -.035em;
}

.lede {
	max-width: 34em;
	font-size: var(--fs-lede);
	line-height: 1.55;
	color: var(--c-ink-2);
}

.statement {
	max-width: 30em;
	font-family: var(--ff-display);
	font-size: var(--fs-statement);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.015em;
	color: var(--c-blue-950);
}

:is([data-surface="navy"], .on-dark) :is(.lede, .muted) {
	color: var(--c-on-dark-2);
}

:is([data-surface="navy"], .on-dark) .statement {
	color: var(--c-on-dark);
}

/* One accent phrase per heading: blue on light, gold on navy. Never a bar or underline. */
.accent {
	color: var(--c-blue);
}

:is([data-surface="navy"], .on-dark) .accent {
	color: var(--c-gold);
}

/* Home H1 line 2 only. */
.text-grad {
	background: var(--grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.small {
	font-size: var(--fs-small);
}

.muted {
	color: var(--c-ink-2);
}

.meta-line {
	font-size: var(--fs-small);
	color: var(--c-ink-3);
}

/* Arabic value names only (with lang="ar"). */
.ar {
	font-family: var(--ff-arabic);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
}

.caption,
figcaption {
	font-size: var(--fs-xs);
	line-height: 1.5;
	color: var(--c-ink-3);
}

/* 5. Layout and surfaces -------------------------------------------------- */
.container {
	width: min(100% - 2 * var(--gutter), var(--max));
	margin-inline: auto;
}

.container--text {
	width: min(100% - 2 * var(--gutter), var(--max-text));
}

.container--wide-text {
	width: min(100% - 2 * var(--gutter), var(--max-wide-text));
}

.grid-12 {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--grid-gap);
}

.section {
	padding-block: var(--section);
}

.section--tight {
	padding-block: var(--section-tight);
}

[data-surface="white"] {
	background: var(--c-white);
}

[data-surface="paper"] {
	background: var(--c-paper);
}

[data-surface="sky"] {
	background: var(--c-sky);
}

[data-surface="navy"] {
	background: var(--grad-navy);
	color: var(--c-on-dark);
}

/* Two neighbours on the same surface share one gap. */
:is([data-surface="white"] + [data-surface="white"],
	[data-surface="paper"] + [data-surface="paper"],
	[data-surface="sky"] + [data-surface="sky"]) {
	padding-top: 0;
}

/* Hero shell: the transparent header sits over the hero background.
   Variants (.hero--home, .hero--skyline…) live in the page stylesheets.
   .hero--plain keeps a plain white background (Appeal, 404, stories, posts). */
.hero {
	margin-top: calc(-1 * var(--header-h));
	padding-top: calc(var(--header-h) + var(--hero-top));
	padding-bottom: var(--section-tight);
	background: var(--grad-hero);
}

.hero[data-surface="paper"] {
	background: var(--c-paper);
}

.hero--plain {
	background: var(--c-white);
}

.hero__title {
	max-width: 18ch;
}

.hero__lede {
	margin-top: 16px;
}

.hero__actions {
	margin-top: 24px;
}

.hero__media {
	margin: 0;
}

/* Legacy hero (template-parts/page-hero.php shim) until each template ships its own hero. */
.hero--legacy .hero__grid {
	display: grid;
	gap: var(--space-l);
	align-items: center;
}

.hero--legacy .hero__copy {
	display: grid;
	gap: var(--space-s);
	justify-items: start;
}

@media (min-width: 60em) {
	.hero--legacy-media .hero__grid {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		gap: var(--grid-gap);
	}
}

.stack {
	display: flex;
	flex-direction: column;
	gap: var(--stack, var(--space-m));
}

.stack > * {
	margin-block: 0;
}

/* 6. Utilities ------------------------------------------------------------ */
.visually-hidden,
.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: fixed;
	top: -100px;
	left: 12px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: var(--radius);
	background: var(--c-gold);
	color: var(--c-blue-950);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

@media (max-width: 29.99em) {
	.actions > .button {
		flex: 1 1 100%;
	}
}

/* 7. Buttons, links, icon buttons, tags, segmented control ---------------- */
.button {
	--btn-bg: var(--grad-blue);
	--btn-fg: var(--c-white);
	--btn-bd: transparent;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 20px;
	border: 1.5px solid var(--btn-bd);
	border-radius: var(--radius);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 600 .97rem/1.15 var(--ff-display);
	letter-spacing: -.005em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	isolation: isolate;
	transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
		color var(--dur) var(--ease-out), scale 80ms var(--ease-out);
}

.button:hover {
	color: var(--btn-fg);
	text-decoration: none;
}

.button:active {
	scale: .98;
}

.button > span,
.button > .icon {
	position: relative;
	z-index: 1;
}

.button__icon {
	width: 18px;
	height: 18px;
	transition: translate 200ms var(--ease-out);
}

.button:hover .icon--arrow-right {
	translate: 3px 0;
}

.button:hover .icon--arrow-up-right {
	translate: 2px -2px;
}

/* Gold: every money action, at most one per card, row or hero. */
.button--gold {
	--btn-bg: var(--grad-btn-gold);
	--btn-fg: var(--c-blue-950);
	--btn-bd: rgb(0 8 61 / .10);
}

.button--gold::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--grad-btn-gold-hover);
	opacity: 0;
	transition: opacity var(--dur) var(--ease-out);
}

.button--gold:hover::before {
	opacity: 1;
}

@keyframes najam-beat {
	0%,
	100% {
		scale: 1;
	}
	50% {
		scale: 1.12;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.button--gold:hover .icon--heart {
		animation: najam-beat 320ms var(--ease-out) 1;
	}
}

.button--primary:hover {
	--btn-bg: var(--c-blue-700);
}

.button--outline,
.button--secondary,
.button--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--c-blue);
	--btn-bd: rgb(0 20 137 / .35);
}

.button--outline:hover,
.button--secondary:hover,
.button--ghost:hover {
	--btn-bg: var(--c-sky);
	--btn-bd: var(--c-blue);
}

.button--outline-light,
.button--light {
	--btn-bg: transparent;
	--btn-fg: var(--c-white);
	--btn-bd: rgb(255 255 255 / .55);
}

.button--outline-light:hover,
.button--light:hover {
	--btn-bg: rgb(255 255 255 / .12);
	--btn-bd: var(--c-white);
	--btn-fg: var(--c-white);
}

.button--text {
	--btn-bg: transparent;
	--btn-fg: var(--c-blue);
	min-height: 44px;
	padding-inline: 0;
}

.button--lg {
	min-height: 52px;
	padding-inline: 22px;
}

.button--sm,
.button--small {
	min-height: 40px;
	padding: 6px 16px;
	font-size: .9rem;
}

.button--header {
	min-height: 44px;
}

.button--block {
	width: 100%;
}

.button[aria-disabled="true"] {
	opacity: .6;
	cursor: progress;
}

/* Arrow links: the navigation tier. Section-head links are always these. */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--c-blue);
	font: 600 .97rem/1.25 var(--ff-display);
	letter-spacing: -.005em;
	text-decoration: none;
}

.link-arrow .icon {
	width: 1.1em;
	height: 1.1em;
	transition: translate 200ms var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.link-arrow:hover .icon--arrow-right {
	translate: 4px 0;
}

.link-arrow:hover .icon--arrow-up-right {
	translate: 2px -2px;
}

.link-arrow--light,
:is([data-surface="navy"], .on-dark, .on-photo) .link-arrow {
	color: var(--c-on-dark);
}

.link-arrow--light:hover .icon {
	color: var(--c-gold);
}

/* Icon buttons: 44px circles (always with aria-label). */
.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--c-line-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--c-blue-950);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out),
		color 200ms var(--ease-out), opacity 200ms var(--ease-out), scale 80ms var(--ease-out);
}

.icon-btn .icon {
	width: 20px;
	height: 20px;
}

.icon-btn:hover {
	border-color: var(--c-blue-950);
	background: var(--c-blue-950);
	color: var(--c-white);
}

.icon-btn:active {
	scale: .94;
}

.icon-btn:disabled,
.icon-btn[aria-disabled="true"] {
	opacity: .4;
	cursor: default;
	pointer-events: none;
}

.icon-btn--light {
	border-color: rgb(255 255 255 / .6);
	color: var(--c-white);
}

.icon-btn--light:hover,
:is([data-surface="navy"], .on-dark, .on-photo) a.icon-btn--light:hover {
	border-color: var(--c-white);
	background: var(--c-white);
	color: var(--c-blue-950);
}

.icon-btn--solid {
	border-color: var(--c-white);
	background: var(--c-white);
	color: var(--c-blue-950);
}

.icon-btn--solid:hover {
	border-color: var(--c-gold);
	background: var(--c-gold);
	color: var(--c-blue-950);
}

.icon-btn--sm {
	width: 40px;
	height: 40px;
}

.icon-btn--sm .icon {
	width: 18px;
	height: 18px;
}

/* Tags (REF1 photo tags): sentence case, no hashes, never pills. */
.tag {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	border-radius: var(--radius-s);
	background: var(--c-sky);
	color: var(--c-blue);
	font: 500 .8125rem/1.2 var(--ff-sans);
}

.tag--photo {
	border: 1px solid rgb(255 255 255 / .75);
	background: rgb(0 8 61 / .28);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--c-white);
}

/* Segmented control: a fieldset of radios or a group of buttons with aria-pressed. */
.seg {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	min-inline-size: 0;
	margin: 0;
	padding: 4px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-white);
}

.seg > legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.seg__item,
.seg > button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--radius-s);
	background: transparent;
	color: var(--c-ink);
	font: 500 .9rem/1.2 var(--ff-sans);
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.seg__item:hover,
.seg > button:hover {
	background: var(--c-sky);
	color: var(--c-blue);
}

.seg__item > input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.seg__item[aria-pressed="true"],
.seg > button[aria-pressed="true"],
.seg__item:has(> input:checked) {
	background: var(--c-blue-950);
	color: var(--c-white);
	font-weight: 600;
}

.seg__item:has(> input:focus-visible) {
	outline: 2px solid var(--c-blue);
	outline-offset: 2px;
}

/* 8. Media and grids ------------------------------------------------------ */
.media {
	position: relative;
	margin: 0;
	overflow: hidden;
	aspect-ratio: var(--ratio, auto);
	border-radius: var(--radius-m);
	background: var(--c-sky-2);
	isolation: isolate;
}

.media > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focus, 50% 50%);
}

.media--r-s {
	border-radius: var(--radius);
}

.media--r-l {
	border-radius: var(--radius-l);
}

.media--r-none {
	border-radius: 0;
}

.media--empty {
	background: var(--grad-navy);
}

/* Partner photo credit: a chip inside the frame, or a line beneath it. */
.media__credit {
	margin: 0;
	font-size: var(--fs-xs);
	line-height: 1.4;
	color: var(--c-ink-3);
}

.media > .media__credit {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	max-width: calc(100% - 20px);
	padding: 4px 8px;
	border-radius: var(--radius-s);
	background: rgb(0 8 61 / .62);
	color: var(--c-white);
}

.media__credit--below {
	margin-top: 8px;
}

/* Card grid: 1 column, 2 from 44em, --cols from 72em. Orphan helpers (set by JS):
   .span-full and .span-half from 72em, .span-full-md between 44em and 72em. */
.card-grid {
	--cols: 3;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-xl) var(--card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.card-grid > [hidden] {
	display: none;
}

@media (min-width: 44em) {
	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 44em) and (max-width: 71.99em) {
	.card-grid > .span-full-md {
		grid-column: 1 / -1;
	}
}

@media (min-width: 72em) {
	.card-grid {
		grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	}

	.card-grid > .span-full {
		grid-column: 1 / -1;
	}

	.card-grid:has(> .span-half) {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.card-grid:has(> .span-half) > * {
		grid-column: span 2;
	}

	.card-grid:has(> .span-half) > .span-half {
		grid-column: span 3;
	}
}

.story-list {
	display: grid;
	gap: var(--space-xl) var(--card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.story-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 72em) {
	.story-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* 9. Shared components ---------------------------------------------------- */

/* Section head */
.sec-head {
	display: grid;
	gap: var(--space-s) var(--grid-gap);
	margin-bottom: var(--head-gap);
}

.sec-head__aside {
	display: grid;
	gap: 8px;
	justify-items: start;
	align-content: end;
}

.sec-head__lede {
	max-width: 34em;
	color: var(--c-ink-2);
}

:is([data-surface="navy"], .on-dark) .sec-head__lede {
	color: var(--c-on-dark-2);
}

@media (min-width: 56em) {
	.sec-head--split {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: end;
	}

	.sec-head--split .sec-head__aside {
		justify-items: end;
		text-align: end;
	}
}

.sec-head--center {
	justify-items: center;
	text-align: center;
}

.sec-head--center .sec-head__title {
	margin-inline: auto;
}

.sec-head--center .sec-head__aside {
	justify-items: center;
}

.sec-head--center .sec-head__lede {
	max-width: 46ch;
}

/* Progress: 6px bar; navy fill on light surfaces, gold on navy. */
.progress {
	display: grid;
	gap: 8px;
}

.progress__bar {
	position: relative;
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: rgb(0 20 137 / .10);
}

.progress__bar > span {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--p, 0%);
	border-radius: inherit;
	background: var(--grad-progress-light);
	transform-origin: left;
}

.progress__text {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	font-size: var(--fs-small);
	color: var(--c-ink-2);
	font-variant-numeric: tabular-nums;
}

.progress__text strong {
	font-weight: 600;
	color: var(--c-blue-950);
}

.progress--sm .progress__text {
	font-size: var(--fs-xs);
}

.progress--dark .progress__bar {
	background: rgb(255 255 255 / .18);
}

.progress--dark .progress__bar > span {
	background: var(--grad-progress-dark);
}

.progress--dark .progress__text {
	color: var(--c-on-dark-2);
}

.progress--dark .progress__text strong {
	color: var(--c-white);
}

/* Stats: a number and a label. */
.stats {
	--cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: var(--grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.stat {
	display: grid;
	align-content: start;
	gap: 6px;
	min-width: 0;
}

.stat__value {
	color: var(--c-blue-950);
	font: 700 var(--fs-stat)/1 var(--ff-display);
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

.stat__label,
.stat__text {
	font-size: .9375rem;
	line-height: 1.45;
	color: var(--c-ink-2);
}

:is([data-surface="navy"], .on-dark) .stat__value {
	color: var(--c-on-dark);
}

:is([data-surface="navy"], .on-dark) :is(.stat__label, .stat__text) {
	color: var(--c-on-dark-2);
}

@media (max-width: 29.99em) {
	.stats--row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Tiles (REF5): sky fill, number at the top and label at the bottom. */
.stats--tiles {
	gap: 12px;
}

.stats--tiles .stat {
	align-content: space-between;
	min-height: clamp(9rem, 8rem + 3vw, 11rem);
	padding: 20px;
	border-radius: var(--radius);
	background: var(--c-sky);
}

.stats--tiles .stat__label {
	font-size: var(--fs-small);
}

@media (max-width: 59.99em) {
	.stats--tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Cards (REF3): white cards on the navy panel, no shadow. */
.stats--cards {
	gap: 12px;
}

.stats--cards .stat {
	gap: 4px;
	padding: 16px 20px;
	border-radius: var(--radius);
	background: var(--c-white);
	color: var(--c-ink);
}

.stats--cards .stat__value,
:is([data-surface="navy"], .on-dark) .stats--cards .stat__value {
	color: var(--c-blue-950);
	font-size: 2rem;
}

.stats--cards .stat__label,
:is([data-surface="navy"], .on-dark) .stats--cards .stat__label {
	font-size: var(--fs-small);
	color: var(--c-ink-2);
}

.stats--cards .stat__text,
:is([data-surface="navy"], .on-dark) .stats--cards .stat__text {
	font-size: var(--fs-xs);
	color: var(--c-ink-3);
}

.stats--cards .progress {
	margin-block: 6px 2px;
}

/* Ledger: hairline rows with a figure, label, line and link. */
.stats--ledger .stat {
	gap: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--c-line);
}

.stats--ledger .stat__value {
	font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem);
}

.stats--ledger .stat__label {
	font-family: var(--ff-display);
	font-size: 1rem;
	font-weight: 600;
	color: var(--c-blue-950);
}

.stats--ledger .stat__link {
	justify-self: start;
}

@media (max-width: 47.99em) {
	.stats--ledger {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Facts ledger */
.facts-ledger {
	--cols: 2;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	column-gap: var(--grid-gap);
	margin: 0;
}

.facts-ledger__row {
	display: grid;
	align-content: start;
	gap: 4px;
	min-width: 0;
	padding: 16px 0;
	border-top: 1px solid var(--c-line);
}

.facts-ledger dt {
	font-size: var(--fs-small);
	color: var(--c-ink-3);
}

.facts-ledger dd {
	margin: 0;
	color: var(--c-blue-950);
	font-weight: 600;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}

.facts-ledger dd a {
	color: inherit;
}

:is([data-surface="navy"], .on-dark) .facts-ledger__row {
	border-top-color: var(--c-line-dark);
}

:is([data-surface="navy"], .on-dark) .facts-ledger dt {
	color: var(--c-on-dark-2);
}

:is([data-surface="navy"], .on-dark) .facts-ledger dd {
	color: var(--c-on-dark);
}

@media (max-width: 47.99em) {
	.facts-ledger {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.facts-ledger[style*="--cols: 1"] {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 29.99em) {
	.facts-ledger {
		grid-template-columns: minmax(0, 1fr);
	}
}

.facts-aside {
	display: grid;
	gap: var(--space-s);
}

/* Help line */
.help-line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 46rem;
	color: var(--c-ink-2);
}

.help-line__icon {
	margin-top: .2em;
	color: var(--c-blue);
}

/* FAQ panel (REF2) */
.faq {
	max-width: 68rem;
	margin-inline: auto;
	padding: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(1.25rem, .5rem + 3vw, 3.5rem);
	border-radius: var(--radius-l);
	background: var(--c-paper);
}

.faq--panel-white {
	background: var(--c-white);
}

.faq__title {
	margin-inline: auto;
	text-align: center;
}

.faq__sub {
	margin-top: 10px;
	font-size: .9375rem;
	color: var(--c-ink-2);
	text-align: center;
}

.faq__sub a {
	color: inherit;
}

.faq__title + .faq__item,
.faq__sub + .faq__item {
	margin-top: clamp(1rem, .6rem + 1.4vw, 2rem);
}

.faq__item {
	border-bottom: 1px solid var(--c-line);
}

.faq__item:last-child {
	border-bottom: 0;
}

.faq__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 16px 0;
	color: var(--c-blue-950);
	font: 600 clamp(1.0625rem, 1rem + .3vw, 1.1875rem)/1.35 var(--ff-display);
	letter-spacing: -.01em;
	list-style: none;
	cursor: pointer;
}

.faq__item > summary::-webkit-details-marker {
	display: none;
}

.faq__icon {
	width: 24px;
	height: 24px;
	color: var(--c-blue-950);
	transition: rotate 240ms var(--ease-out);
}

.faq__item[open] > summary .faq__icon {
	rotate: 180deg;
}

.faq__item > summary:hover .faq__q {
	color: var(--c-blue);
}

.faq__a {
	max-width: 62ch;
	padding-bottom: 22px;
	color: var(--c-ink-2);
}

.faq__a > * + * {
	margin-top: .75em;
}

@media (prefers-reduced-motion: no-preference) {
	.faq {
		interpolate-size: allow-keywords;
	}

	.faq__item::details-content {
		block-size: 0;
		overflow: clip;
		transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete;
	}

	.faq__item[open]::details-content {
		block-size: auto;
	}
}

.faq__note {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	max-width: 68rem;
	margin: 16px auto 0;
	font-size: .9375rem;
	color: var(--c-ink-2);
	text-align: center;
}

.faq__note .icon {
	margin-top: .15em;
	color: var(--c-blue);
}

/* Slider (REF6) */
.slider {
	--slide-ratio: 4 / 5;
	position: relative;
}

@media (min-width: 40em) {
	.slider {
		--slide-ratio: 16 / 10;
	}
}

@media (min-width: 64em) {
	.slider {
		--slide-ratio: 21 / 9;
	}
}

.slider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: var(--card-gap);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	border-radius: var(--radius-l);
	list-style: none;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.slider__track::-webkit-scrollbar {
	display: none;
}

.slider__slide {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 18rem;
	aspect-ratio: var(--ratio, var(--slide-ratio));
	overflow: hidden;
	border-radius: var(--radius-l);
	background: var(--grad-navy);
	isolation: isolate;
	scroll-snap-align: start;
}

.slider__slide > .media {
	position: absolute;
	inset: 0;
	z-index: -2;
	aspect-ratio: auto;
}

.slider__slide--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--grad-scrim);
}

.slider__ar {
	position: absolute;
	top: clamp(1.25rem, .75rem + 2vw, 2.5rem);
	left: clamp(1.25rem, .75rem + 2vw, 2.5rem);
	right: clamp(1.25rem, .75rem + 2vw, 2.5rem);
	z-index: -1;
	overflow: hidden;
	color: rgb(255 255 255 / .25);
	font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
	line-height: 1.3;
	white-space: nowrap;
}

.slider__body {
	display: grid;
	gap: 10px;
	justify-items: start;
	max-width: 40rem;
	padding: clamp(1.25rem, .75rem + 2vw, 2.5rem);
}

.slider__title {
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
	font-weight: 700;
}

.slider__text {
	color: var(--c-white);
}

.slider__slide--navy .slider__text {
	color: var(--c-on-dark-2);
}

.slider__controls {
	display: none;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}

.js .slider__controls {
	display: flex;
}

.slider__count {
	margin-right: auto;
	font-size: var(--fs-small);
	color: var(--c-ink-2);
	font-variant-numeric: tabular-nums;
}

/* Below the frame the controls sit on white: navy outline and navy solid. */
.slider__controls .icon-btn--light {
	border-color: var(--c-line-strong);
	color: var(--c-blue-950);
}

.slider__controls .icon-btn--light:hover {
	border-color: var(--c-blue-950);
	background: var(--c-blue-950);
	color: var(--c-white);
}

.slider__controls .icon-btn--solid {
	border-color: var(--c-blue-950);
	background: var(--c-blue-950);
	color: var(--c-white);
}

.slider__controls .icon-btn--solid:hover {
	border-color: var(--c-blue);
	background: var(--c-blue);
}

@media (min-width: 48em) {
	.slider__body {
		padding-right: 11rem;
	}

	.slider__controls {
		position: absolute;
		right: clamp(1.25rem, .75rem + 2vw, 2.5rem);
		bottom: clamp(1.25rem, .75rem + 2vw, 2.5rem);
		margin: 0;
	}

	.slider__count {
		margin-right: 8px;
		color: var(--c-white);
	}

	.slider__controls .icon-btn--light {
		border-color: rgb(255 255 255 / .6);
		color: var(--c-white);
	}

	.slider__controls .icon-btn--light:hover {
		border-color: var(--c-white);
		background: var(--c-white);
		color: var(--c-blue-950);
	}

	.slider__controls .icon-btn--solid {
		border-color: var(--c-white);
		background: var(--c-white);
		color: var(--c-blue-950);
	}

	.slider__controls .icon-btn--solid:hover {
		border-color: var(--c-gold);
		background: var(--c-gold);
	}

	.slider__controls :focus-visible {
		outline-color: var(--c-gold);
	}
}

/* Active-slide settle, only once site.js is running (.js-ready). */
@media (prefers-reduced-motion: no-preference) {
	.js-ready .slider__body {
		transition: opacity 500ms var(--ease-out), translate 500ms var(--ease-out);
	}

	.js-ready .slider__slide:not(.is-active) .slider__body {
		opacity: 0;
		translate: 0 8px;
	}

	.js-ready .slider__slide > .media > img {
		transition: scale 500ms var(--ease-out);
	}

	.js-ready .slider__slide:not(.is-active) > .media > img {
		scale: 1.02;
	}
}

/* Rail (REF4): visible cards per --rail-cols; native scroll-snap. */
.rail {
	--rail-cols: 1.4;
	position: relative;
}

@media (min-width: 40em) {
	.rail {
		--rail-cols: 2.2;
	}
}

@media (min-width: 64em) {
	.rail {
		--rail-cols: 4.25;
	}
}

.rail__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - var(--card-gap) * (var(--rail-cols) - 1)) / var(--rail-cols));
	align-items: start;
	gap: var(--card-gap);
	margin: -8px calc(-1 * var(--gutter)) 0;
	padding: 8px var(--gutter);
	overflow-x: auto;
	list-style: none;
	scroll-padding-inline: var(--gutter);
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.rail__track::-webkit-scrollbar {
	display: none;
}

.rail__track > * {
	min-width: 0;
	scroll-snap-align: start;
}

.rail--stagger .rail__track > :nth-child(even) {
	margin-top: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
}

.rail__item {
	display: grid;
}

.rail__controls {
	display: none;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 20px;
}

.js .rail__controls {
	display: flex;
}

.js .rail[data-overflow="false"] .rail__controls {
	display: none;
}

/* Rail that becomes a grid: a rail below 44em (cards at 82%), 2 columns, then --cols from 72em. */
.rail--to-grid {
	--rail-cols: 1.22;
}

@media (min-width: 44em) {
	.rail--to-grid .rail__track {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: var(--space-xl);
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
		scroll-snap-type: none;
	}

	.rail--to-grid .rail__item {
		grid-row: span 5;
		grid-template-rows: subgrid;
	}

	.js .rail--to-grid .rail__controls {
		display: none;
	}
}

@media (min-width: 72em) {
	.rail--to-grid .rail__track {
		grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	}
}

/* Program card (REF4): portrait photo with a caption bar; the whole card is one link. */
.mcard {
	position: relative;
	min-width: 0;
	margin: 0;
	list-style: none;
}

.mcard--portrait .mcard__link {
	position: relative;
	display: block;
	border-radius: var(--radius-m);
	color: var(--c-white);
	text-decoration: none;
}

.mcard--portrait .media > img {
	transition: scale 600ms var(--ease-out);
}

.mcard--portrait .mcard__link:hover .media > img {
	scale: 1.04;
}

.mcard__caption {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 48px;
	padding: 10px 12px 10px 16px;
	border-radius: var(--radius);
	background: rgb(0 8 61 / .66);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--c-white);
	font: 600 1rem/1.25 var(--ff-display);
	letter-spacing: -.01em;
	transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.mcard__arrow {
	width: 20px;
	height: 20px;
	transition: translate 200ms var(--ease-out);
}

.mcard--portrait .mcard__link:is(:hover, :focus-visible) .mcard__caption {
	background: rgb(255 255 255 / .95);
	color: var(--c-blue-950);
}

.mcard--portrait .mcard__link:hover .mcard__arrow {
	translate: 4px 0;
}

.mcard--portrait .mcard__link:focus-visible {
	outline-offset: 4px;
}

/* Give panel (the only sticky card). */
.give-panel {
	display: grid;
	align-content: start;
	gap: 16px;
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-m);
	background: var(--c-white);
}

.give-panel__title {
	font-size: var(--fs-h3);
	font-weight: 600;
	letter-spacing: -.015em;
}

.give-panel__actions {
	display: grid;
	gap: 10px;
}

.give-panel__actions .button {
	width: 100%;
}

.give-panel__note,
.give-panel__secure {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: var(--fs-small);
	color: var(--c-ink-2);
}

.give-panel__note .icon,
.give-panel__secure .icon {
	width: 18px;
	height: 18px;
	margin-top: .1em;
	color: var(--c-blue);
}

.give-panel__secure {
	padding-top: 14px;
	border-top: 1px solid var(--c-line);
	font-size: var(--fs-xs);
	color: var(--c-ink-3);
}

@media (min-width: 64em) {
	.give-panel--sticky {
		position: sticky;
		top: calc(var(--header-h) + 16px);
	}
}

/* Mobile give bar (below 64em only). */
.give-bar {
	position: fixed;
	right: 8px;
	bottom: calc(8px + env(safe-area-inset-bottom));
	left: 8px;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 16px;
	border: 1px solid rgb(0 8 61 / .08);
	border-radius: var(--radius-m);
	background: var(--c-white);
	box-shadow: var(--shadow-float);
	translate: 0 calc(100% + 24px);
	transition: translate 360ms var(--ease-out);
}

.give-bar.is-visible {
	translate: 0 0;
}

.give-bar[hidden] {
	display: none;
}

.give-bar__text {
	display: grid;
	flex: 1;
	min-width: 0;
}

.give-bar__title {
	overflow: hidden;
	color: var(--c-blue-950);
	font: 600 var(--fs-small)/1.3 var(--ff-display);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.give-bar__meta {
	font-size: var(--fs-xs);
	color: var(--c-ink-2);
	font-variant-numeric: tabular-nums;
}

.give-bar .button {
	flex: none;
}

@media (min-width: 64em) {
	.give-bar {
		display: none !important;
	}
}

/* Story card */
.story-card {
	display: grid;
	align-content: start;
	gap: 12px;
}

.story-card__media {
	display: block;
	border-radius: var(--radius-m);
}

.story-card__media .media > img {
	transition: scale 600ms var(--ease-out);
}

.story-card:hover .story-card__media .media > img {
	scale: 1.04;
}

.story-card__title {
	font-size: 1.25rem;
	line-height: 1.3;
}

.story-card__title a {
	color: inherit;
	text-decoration: none;
}

.story-card__title a:hover {
	color: var(--c-blue);
}

.story-card__meta {
	font-size: var(--fs-small);
	color: var(--c-ink-3);
}

/* Pagination */
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius);
	color: var(--c-ink);
	text-decoration: none;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.pagination a.page-numbers:hover {
	background: var(--c-sky);
	color: var(--c-blue);
}

.pagination .current {
	border-color: var(--c-blue-950);
	background: var(--c-blue-950);
	color: var(--c-white);
}

/* 10. Forms --------------------------------------------------------------- */
.form-card {
	padding: clamp(1.25rem, .9rem + 1.4vw, 1.75rem);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-m);
	background: var(--c-white);
}

.enquiry,
.enquiry__form {
	display: grid;
	gap: var(--space-m);
}

.field-row {
	display: grid;
	gap: var(--space-m);
}

@media (min-width: 40em) {
	.field-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.field {
	display: grid;
	gap: 6px;
}

.field label {
	font-size: var(--fs-small);
	font-weight: 600;
	color: var(--c-ink);
}

.field__req {
	color: var(--c-error);
}

.field__opt {
	font-weight: 400;
	color: var(--c-ink-3);
}

.field input,
.field select,
.field textarea,
.search-form input[type="search"] {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid var(--c-field);
	border-radius: var(--radius);
	background: var(--c-white);
	color: var(--c-ink);
	font: 400 1rem/1.4 var(--ff-sans);
	transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.field textarea {
	min-height: 9rem;
	resize: vertical;
}

.field select {
	appearance: none;
	padding-right: 2.75rem;
	background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300083d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.search-form input[type="search"]:hover {
	border-color: var(--c-ink-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-form input[type="search"]:focus {
	border-color: var(--c-blue);
	outline: 2px solid var(--c-blue);
	outline-offset: 0;
	background-color: var(--c-sky);
}

.field [aria-invalid="true"] {
	border-color: var(--c-error);
}

.field__error {
	font-size: var(--fs-small);
	font-weight: 500;
	color: var(--c-error);
}

.enquiry__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.enquiry__privacy {
	font-size: var(--fs-small);
	color: var(--c-ink-2);
}

.enquiry__notice {
	padding: var(--space-s) var(--space-m);
	border: 1px solid;
	border-radius: var(--radius);
}

.enquiry__notice > * + * {
	margin-top: .35rem;
}

.enquiry__notice--success {
	border-color: var(--c-success);
	background: var(--c-success-bg);
	color: #0f3d26;
}

.enquiry__notice--error {
	border-color: var(--c-error);
	background: var(--c-error-bg);
	color: #5e140f;
}

.enquiry__notice:focus {
	outline: none;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 34rem;
}

.search-form label {
	flex: 1 1 16rem;
}

@media (max-width: 29.99em) {
	.search-form .button {
		flex: 1 1 100%;
	}
}

/* 11. Prose --------------------------------------------------------------- */
.prose {
	max-width: 65ch;
	color: var(--c-ink);
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose > :first-child {
	margin-top: 0;
}

.prose h2 {
	max-width: none;
	margin-top: 2.25em;
	font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem);
}

.prose h3 {
	margin-top: 1.8em;
	font-size: var(--fs-h3);
}

.prose h2 + *,
.prose h3 + * {
	margin-top: .6em;
}

.prose ul,
.prose ol {
	padding-left: 1.25em;
}

.prose li + li {
	margin-top: .45em;
}

.prose ul li::marker {
	color: var(--c-ink-3);
}

.prose blockquote {
	margin-inline: 0;
	color: var(--c-blue-950);
	font-family: var(--ff-display);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.45;
}

.prose blockquote cite {
	display: block;
	margin-top: .5em;
	color: var(--c-ink-2);
	font-family: var(--ff-sans);
	font-size: var(--fs-small);
	font-weight: 400;
}

.prose figure {
	margin-inline: 0;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-small);
}

.prose th,
.prose td {
	padding: .7em .8em .7em 0;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
	vertical-align: top;
}

.prose a {
	font-weight: 500;
}

.prose .alignwide,
.prose .alignfull {
	max-width: none;
}

/* 12. Header and mobile menu ---------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	color: var(--c-ink);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__bar {
	position: relative;
	z-index: 0;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	height: var(--header-h);
	transition: margin var(--dur) var(--ease-out), height var(--dur) var(--ease-out),
		width var(--dur) var(--ease-out), padding var(--dur) var(--ease-out);
}

/* The floating bar's surface is a pseudo-element, so its backdrop filter never
   becomes the containing block of the fixed mobile sheet. */
.site-header__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border: 1px solid transparent;
	border-radius: var(--radius-m);
	background-color: transparent;
	pointer-events: none;
	transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
		box-shadow var(--dur) var(--ease-out);
}

.site-header.is-scrolled .site-header__bar {
	width: min(var(--max) + 32px, 100% - 16px);
	height: 56px;
	margin-top: 8px;
	padding-inline: 16px;
}

.site-header.is-scrolled .site-header__bar::before {
	border-color: rgb(0 8 61 / .08);
	background-color: var(--c-white); /* solid: page content never shows through */
	box-shadow: var(--shadow-float);
}

/* Brand mark: official navy and gold, never recoloured. */
.brand {
	--brand-h: 36px;
	display: inline-flex;
	align-items: center;
	color: var(--c-blue-950);
	text-decoration: none;
}

.brand__mark {
	width: auto;
	height: var(--brand-h);
	transition: height var(--dur) var(--ease-out);
}

/* Fallback for the padded mark: the mark fills about half its canvas. */
.brand__crop {
	position: relative;
	display: block;
	width: calc(var(--brand-h) * 1.05);
	height: var(--brand-h);
	overflow: hidden;
	transition: width var(--dur) var(--ease-out), height var(--dur) var(--ease-out);
}

.brand__crop .brand__mark {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: none;
	height: calc(var(--brand-h) * 2);
	translate: -50% -50%;
}

.brand__text {
	font-family: var(--ff-display);
	font-size: 1.4rem;
	font-weight: 700;
}

.brand__logo {
	width: auto;
	height: 32px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	justify-self: end;
	gap: 8px;
}

.site-nav__link,
.site-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: var(--radius-s);
	color: var(--c-ink);
	font: 500 15px/1.2 var(--ff-sans);
	text-decoration: none;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.site-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-toggle {
	color: var(--c-blue-950);
}

.nav-toggle__lines {
	position: relative;
	display: block;
	width: 18px;
	height: 10px;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1.75px;
	border-radius: 1px;
	background: currentColor;
	transition: translate 200ms var(--ease-out), rotate 200ms var(--ease-out);
}

.nav-toggle__lines::before {
	top: 0;
}

.nav-toggle__lines::after {
	bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before {
	translate: 0 4.1px;
	rotate: 45deg;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after {
	translate: 0 -4.1px;
	rotate: -45deg;
}

/* Mobile and tablet: 64px bar, gold Donate and a full-screen navy sheet. */
@media (max-width: 68.74em) {
	.site-header__contact {
		display: none;
	}

	.site-header__donate {
		min-height: 40px;
		padding: 6px 16px;
		font-size: .9rem;
	}

	.site-header.is-scrolled .site-header__bar {
		padding-inline: 12px 6px;
	}

	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 60;
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
		overflow: auto;
		overscroll-behavior: contain;
		background: var(--grad-navy);
		color: var(--c-on-dark);
		clip-path: inset(0 0 100% 0);
		visibility: hidden;
		transition: clip-path 360ms var(--ease-out), visibility 0s linear 360ms;
	}

	.nav-open .site-nav {
		clip-path: inset(0);
		visibility: visible;
		transition: clip-path 360ms var(--ease-out), visibility 0s;
	}

	.site-nav :focus-visible {
		outline-color: var(--c-gold);
	}

	.site-nav__sheet-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		min-height: 44px;
	}

	.site-nav__list {
		border-top: 1px solid var(--c-line-dark);
	}

	.site-nav__list li {
		border-bottom: 1px solid var(--c-line-dark);
	}

	.site-nav__list a {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		width: 100%;
		min-height: 60px;
		padding: 8px 0;
		border-radius: 0;
		color: var(--c-on-dark);
		font: 600 clamp(1.5rem, 1.2rem + 1.5vw, 1.9rem)/1.15 var(--ff-display);
		letter-spacing: -.02em;
	}

	.site-nav__list a::after {
		content: "";
		flex: none;
		width: 10px;
		height: 10px;
		margin-right: 6px;
		border-top: 1.75px solid currentColor;
		border-right: 1.75px solid currentColor;
		rotate: 45deg;
		transition: border-color var(--dur-fast) var(--ease-out);
	}

	.site-nav__list a:hover {
		color: var(--c-on-dark);
	}

	.site-nav__list a:hover::after {
		border-color: var(--c-gold);
	}

	.site-nav__list a[aria-current="page"] {
		color: var(--c-gold);
	}

	.site-nav__list--extra {
		border-top: 0;
	}

	.site-nav__sheet-extra {
		display: grid;
		gap: 20px;
	}

	.site-nav__give .button {
		flex: 1 1 100%;
	}

	.site-nav__contact {
		display: grid;
		gap: 4px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.site-nav__contact a {
		display: inline-flex;
		align-items: center;
		gap: 12px;
		min-height: 44px;
		color: var(--c-on-dark);
		font-size: 1.125rem;
		text-decoration: none;
	}

	.site-nav__contact a:hover .icon {
		color: var(--c-gold);
	}

	.site-nav__legal {
		font-size: var(--fs-xs);
		color: var(--c-on-dark-2);
	}

	.site-nav .social a:hover {
		color: var(--c-blue-950);
	}
}

@media (max-width: 68.74em) and (prefers-reduced-motion: no-preference) {
	.js .site-nav__list li {
		opacity: 0;
		translate: 0 8px;
		transition: opacity 300ms var(--ease-out), translate 300ms var(--ease-out);
	}

	.nav-open .site-nav__list li {
		opacity: 1;
		translate: 0 0;
		transition-delay: calc(var(--i, 0) * 35ms + 80ms);
	}

	.site-nav__list li:nth-child(2) { --i: 1; }
	.site-nav__list li:nth-child(3) { --i: 2; }
	.site-nav__list li:nth-child(4) { --i: 3; }
	.site-nav__list li:nth-child(5) { --i: 4; }
	.site-nav__list li:nth-child(6) { --i: 5; }
	.site-nav__list li:nth-child(7) { --i: 6; }
	.site-nav__list li:nth-child(8) { --i: 7; }
	.site-nav__list--extra li { --i: 7; }
}

@media (max-width: 25.99em) {
	.site-header__donate .icon {
		display: none;
	}
}

/* Desktop: centred chips; Contact and Donate on the right. */
@media (min-width: 68.75em) {
	.brand {
		--brand-h: 44px;
	}

	.site-header.is-scrolled .brand {
		--brand-h: 36px;
	}

	.site-header.is-scrolled .site-header__bar {
		height: 60px;
	}

	.nav-toggle,
	.site-nav__sheet-head,
	.site-nav__sheet-extra {
		display: none;
	}

	.site-nav {
		justify-self: center;
	}

	.site-nav__list {
		display: flex;
		gap: 4px;
	}

	.site-nav__link:hover,
	.site-nav__list a:hover {
		background: rgb(0 20 137 / .06);
		color: var(--c-blue);
	}

	.site-nav__link[aria-current="page"],
	.site-nav__list a[aria-current="page"] {
		background: var(--c-sky);
		color: var(--c-blue);
		font-weight: 600;
	}
}

@media (min-width: 68.75em) and (max-width: 79.99em) {
	.site-nav__link,
	.site-nav__list a {
		padding: 8px 9px;
		font-size: 14.5px;
	}
}

/* 13. Footer CTA and footer: one navy area -------------------------------- */
.site-end {
	background: var(--grad-navy);
	color: var(--c-on-dark);
}

.site-end > [data-surface="navy"] {
	background: none;
}

.footer-cta {
	padding-block: var(--section);
	border-bottom: 1px solid var(--c-line-dark);
}

.footer-cta__title {
	grid-column: 1 / -1;
	max-width: 18ch;
	font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -.03em;
}

.footer-cta__aside {
	display: grid;
	grid-column: 1 / -1;
	gap: 20px;
	margin-top: 20px;
}

.footer-cta__text {
	max-width: 34em;
	font-size: 1.0625rem;
	color: var(--c-on-dark-2);
}

@media (min-width: 60em) {
	.footer-cta__title {
		grid-column: 1 / span 7;
	}

	.footer-cta__aside {
		grid-column: 9 / -1;
		align-self: end;
		margin-top: 0;
	}
}

.site-footer {
	color: var(--c-on-dark-2);
	font-size: .9375rem;
}

.footer-directory {
	row-gap: 40px;
	padding: 56px 0 40px;
}

.footer-brand {
	display: grid;
	grid-column: 1 / -1;
	align-content: start;
	justify-items: start;
	gap: 20px;
}

.footer-brand .brand__logo {
	height: 44px;
}

.footer-brand p {
	max-width: 32ch;
	font-size: .9375rem;
	color: var(--c-on-dark-2);
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-cols {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-areas:
		"org give"
		"work work"
		"reach reach";
	gap: 32px 24px;
}

.footer-col--org { grid-area: org; }
.footer-col--work { grid-area: work; }
.footer-col--give { grid-area: give; }
.footer-col--reach { grid-area: reach; }

.footer-col h2 {
	max-width: none;
	margin-bottom: 10px;
	color: var(--c-on-dark);
	font: 600 .9375rem/1.3 var(--ff-display);
	letter-spacing: -.005em;
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 2;
}

.footer-col--work ul {
	columns: 2;
	column-gap: 24px;
}

.footer-col li {
	break-inside: avoid;
}

.site-footer a:not(.button):not(.icon-btn):not(.brand) {
	color: var(--c-on-dark-2);
	text-decoration: none;
}

.site-footer a:not(.button):not(.icon-btn):not(.brand):hover {
	color: var(--c-on-dark);
}

@media (min-width: 48em) {
	.footer-cols {
		grid-template-areas:
			"org work"
			"give reach";
	}

	.footer-col--work ul {
		columns: 1;
	}
}

@media (min-width: 64em) {
	.footer-brand {
		grid-column: 1 / span 4;
	}

	.footer-cols {
		grid-column: 6 / -1;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-areas: "org work give reach";
	}
}

.footer-legal {
	display: grid;
	gap: 12px 24px;
	padding: 20px 0 28px;
	border-top: 1px solid var(--c-line-dark);
	font-size: var(--fs-xs);
	line-height: 1.6;
	color: var(--c-on-dark-2);
}

.footer-legal__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-legal__links a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
}

@media (min-width: 56em) {
	.footer-legal {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}
}

/* 14. Accessibility modes ------------------------------------------------- */
@media (forced-colors: active) {
	.text-grad {
		background: none;
		-webkit-text-fill-color: currentColor;
		color: CanvasText;
	}

	.button--gold,
	.button--primary {
		background: ButtonFace;
		color: ButtonText;
		border: 1px solid ButtonText;
	}

	.button--gold::before {
		display: none;
	}

	.progress__bar > span {
		background: Highlight;
	}

	.progress__bar,
	.icon-btn,
	.seg,
	.give-panel,
	.give-bar,
	.faq,
	.mcard__caption {
		border: 1px solid CanvasText;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* 15. Print --------------------------------------------------------------- */
@media print {
	.site-header,
	.site-end,
	.skip-link,
	.give-bar,
	.slider__controls,
	.rail__controls {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.hero {
		margin-top: 0;
		padding-top: 0;
		background: none;
	}

	[data-surface] {
		background: none;
	}
}
