/*
 * RJGF design system and components.
 * Loaded after style.css (Underscores base + normalize).
 */

/* ---------- Tokens ---------- */
:root {
	--indigo: #3F459F;
	--indigo-dark: #262A66;
	--indigo-deep: #1B1E4B;
	--blue: #149BCB;
	--orange: #F7A85B;
	--orange-dark: #E8892A;
	--green: #65BE45;
	--pink: #E81768;
	--white: #fff;
	--bg: #F7F8FA;
	--bg-warm: #FBF6EF;
	--text: #202433;
	--muted: #5B6075;
	--line: #E3E5EC;

	--font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--font-head: Georgia, "Iowan Old Style", "Times New Roman", serif;

	--container: 1200px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--section-y: clamp(3.5rem, 8vw, 6.5rem);
	--header-h: 76px;
	--radius: 4px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--indigo-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
/* WordPress adds .page / .post to <body>; the base theme gives those a bottom margin, which showed as white space under the footer. */
body.page, body.post, body.single { margin: 0; }
a { color: var(--indigo); transition: color .2s var(--ease); }
a:hover, a:focus { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.site { min-width: 0; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.hp { position: absolute; left: -9999px; }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--text); }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: .7rem 1.6rem;
	font: 600 .95rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
	border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-dark); color: #fff; }
.btn--accent { background: var(--orange); color: var(--indigo-deep); }
.btn--accent:hover { background: var(--orange-dark); color: #fff; }
.btn--light { background: #fff; color: var(--indigo-dark); }
.btn--light:hover { background: var(--bg); color: var(--indigo); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--indigo-dark); }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin: 0; }

.more {
	display: inline-block; position: relative; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
	color: var(--pink); text-decoration: none; padding-bottom: 2px;
}
.more::after { content: " \2192"; transition: margin .25s var(--ease); }
.more:hover { color: var(--indigo); }
.more:hover::after { margin-left: .35rem; }

.tag { display: inline-block; margin: 0 .6rem .5rem 0; padding: .1rem .6rem; font: 700 .72rem/1.7 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--indigo); border-radius: 2px; }
.tag--blue { background: var(--blue); }
.tag--orange { background: var(--orange-dark); }
.tag--green { background: #4a9a2e; }
.tag--pink { background: var(--pink); }

.eyebrow { font: 700 .8rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--pink); margin-bottom: .9rem; }
.eyebrow--light { color: var(--orange); }

/* ---------- Image slots ---------- */
.ph {
	position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .08) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .08) 75%, transparent 75%) 0 0 / 28px 28px,
		linear-gradient(145deg, var(--ph-a), var(--ph-b));
}
.ph__label { margin: .6rem; padding: .1rem .5rem; font: 600 .68rem/1.6 var(--font-body); letter-spacing: .06em; color: rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .28); border-radius: 2px; }
.ph--indigo { --ph-a: #3F459F; --ph-b: #1B1E4B; }
.ph--blue { --ph-a: #149BCB; --ph-b: #2a62a8; }
.ph--orange { --ph-a: #F7A85B; --ph-b: #d96a3c; }
.ph--green { --ph-a: #65BE45; --ph-b: #2f7f55; }
.ph--pink { --ph-a: #E81768; --ph-b: #7e2b86; }
.frame, .program__media, .story__media, .news__thumb, .involve__media, .page-hero__media, .hero__media, .partner { position: relative; overflow: hidden; }
.frame img, .program__media img, .story__media img, .news__thumb img, .involve__media img, .page-hero__media img, .hero__media img, .partner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partner img { object-fit: contain; padding: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-stuck { box-shadow: 0 4px 24px rgba(27, 30, 75, .1); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.site-branding { flex: none; }
.site-branding .custom-logo { width: auto; max-height: 56px; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.wordmark__logo { width: 52px; height: 52px; object-fit: contain; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark__text strong { font: 800 1.6rem/1 var(--font-head); color: var(--indigo); letter-spacing: .02em; }
.wordmark__text small { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); max-width: 15em; }
.wordmark__dots, .footer-brand .wordmark__dots { display: inline-flex; gap: 3px; align-items: flex-end; }
.wordmark__dots i { display: block; width: 7px; border-radius: 4px 4px 1px 1px; }
.wordmark__dots i:nth-child(1) { height: 18px; background: var(--indigo); }
.wordmark__dots i:nth-child(2) { height: 26px; background: var(--orange); }
.wordmark__dots i:nth-child(3) { height: 22px; background: var(--blue); }
.wordmark__dots i:nth-child(4) { height: 28px; background: var(--green); }
.wordmark__dots i:nth-child(5) { height: 20px; background: var(--pink); }

.main-navigation { display: flex; align-items: center; width: auto; margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.main-navigation li { position: relative; }
.main-navigation .menu > li > a {
	display: block; padding: .5rem .65rem; font-weight: 600; font-size: .9rem; white-space: nowrap; color: var(--indigo-dark); text-decoration: none;
	background: linear-gradient(var(--pink), var(--pink)) left calc(100% - 4px) / 0 3px no-repeat;
	transition: background-size .3s var(--ease), color .2s;
}
.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current-menu-ancestor > a,
.main-navigation .menu > li.current_page_item > a { background-size: calc(100% - 1.3rem) 3px; background-position: .65rem calc(100% - 4px); color: var(--indigo); }
.main-navigation .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10; display: block; min-width: 230px; margin: 0; padding: .6rem 0;
	background: #fff; border-top: 0; box-shadow: 0 16px 36px rgba(27, 30, 75, .16);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li.focus > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a { display: block; padding: .55rem 1.2rem; font-size: .92rem; color: var(--text); text-decoration: none; }
.main-navigation .sub-menu a:hover { background: var(--bg); color: var(--indigo); }
.menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: .45rem; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.main-navigation .nav-donate { display: none; }
.header-donate { flex: none; }
.menu-toggle { display: none; }

@media (max-width: 1180px) {
	.header-donate { display: none; }
	.main-navigation .nav-donate { display: inline-flex; margin: 1rem 1.25rem 0; }
	.menu-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
		background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; position: relative; z-index: 120;
	}
	.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 22px; height: 2px; background: var(--indigo-dark); transition: transform .3s var(--ease), background .2s; }
	.menu-toggle__bars { position: relative; }
	.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.menu-toggle__bars::before { top: -7px; }
	.menu-toggle__bars::after { top: 7px; }
	.toggled .menu-toggle__bars { background: transparent; }
	.toggled .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.toggled .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.main-navigation { position: static; margin-left: auto; }
	.main-navigation > .menu {
		position: fixed; top: var(--header-h); right: 0; bottom: 0; z-index: 110; flex-direction: column; align-items: stretch; gap: 0;
		width: min(86vw, 360px); padding: 1rem 0 8rem; overflow-y: auto; background: #fff; box-shadow: -16px 0 40px rgba(27, 30, 75, .18);
		transform: translateX(105%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
	}
	.main-navigation > .nav-donate.nav-donate { position: fixed; right: 0; bottom: 0; z-index: 111; width: min(86vw, 360px); margin: 0; border-radius: 0; transform: translateX(105%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
	.toggled > .menu, .toggled > .nav-donate { transform: none; visibility: visible; }
	.main-navigation .menu > li > a { padding: .95rem 1.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); background: none; }
	.main-navigation .sub-menu { position: static; float: none; width: auto; min-width: 0; left: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; background: var(--bg); }
	.main-navigation .sub-menu a { padding-left: 2.2rem; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(520px, 82vh, 760px); color: #fff; background: var(--indigo-deep); }
.hero__media { position: absolute; inset: 0; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 30, 75, .88) 0%, rgba(27, 30, 75, .55) 55%, rgba(27, 30, 75, .15) 100%); }
.hero__body { position: relative; z-index: 2; padding-block: 5rem; }
.hero__title { max-width: 14ch; margin-bottom: .4em; color: #fff; }
.hero__lead { max-width: 36rem; margin-bottom: 2rem; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: rgba(255, 255, 255, .92); }
.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; height: 6px; }
.hero__bar i { flex: 1; }
.hero__bar i:nth-child(1) { background: var(--indigo); }
.hero__bar i:nth-child(2) { background: var(--orange); }
.hero__bar i:nth-child(3) { background: var(--blue); }
.hero__bar i:nth-child(4) { background: var(--green); }
.hero__bar i:nth-child(5) { background: var(--pink); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-title { margin-bottom: .35em; }
.section-intro { font-size: 1.15rem; color: var(--muted); }
.section-head--light .section-title, .section-head--light .section-intro { color: #fff; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-row .section-head { margin-bottom: 0; }
.section-foot { margin: 2.5rem 0 0; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__media { order: -1; }

/* About */
.about .split__media { position: relative; padding: 0 0 3rem 3rem; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 3 / 2; }
.frame--inset { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 1; border: 8px solid #fff; box-shadow: 0 12px 30px rgba(27, 30, 75, .2); }

/* Vision: soft watercolour wash with ragged edges (brand tints) */
.vision { position: relative; padding-block: clamp(6rem, 12vw, 9.5rem); color: var(--text); background: #fff url('../images/watercolor.webp') center / 100% 100% no-repeat; overflow: hidden; }
.vision .container { position: relative; }
.vision .section-title { color: var(--indigo-dark); }
.vision .eyebrow { color: var(--pink); }
.vision__quote { margin: 0; padding-left: 1.4rem; border-left: 4px solid var(--orange); font: italic 400 clamp(1.4rem, 2.8vw, 2rem)/1.45 var(--font-head); color: var(--indigo-deep); }
.vision .frame { box-shadow: 0 18px 44px rgba(27, 30, 75, .22); }
@media (max-width: 860px) { .vision { background-size: auto 100%; } }

/* Programs: asymmetric, image-led grid */
.programs { background: var(--bg); }
.program-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.program { grid-column: span 4; }
.program:nth-child(6n+1) { grid-column: span 7; }
.program:nth-child(6n+2) { grid-column: span 5; }
.program:nth-child(6n+3) { grid-column: span 5; }
.program:nth-child(6n+4) { grid-column: span 7; }
.program:nth-child(6n+5), .program:nth-child(6n) { grid-column: span 6; }
.program__link { position: relative; display: block; height: 100%; min-height: 380px; color: #fff; text-decoration: none; background: var(--indigo-deep); overflow: hidden; }
.program__media { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.program__link:hover .program__media { transform: scale(1.06); }
.program__link::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(27, 30, 75, .92) 0%, rgba(27, 30, 75, .35) 55%, rgba(27, 30, 75, 0) 100%); }
.program__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.75rem; border-top: 0; }
.program__body::before { content: ""; display: block; width: 48px; height: 4px; margin-bottom: 1rem; background: var(--accent, var(--orange)); transition: width .35s var(--ease); }
.program__link:hover .program__body::before { width: 96px; }
.program--blue { --accent: var(--blue); } .program--orange { --accent: var(--orange); } .program--green { --accent: var(--green); } .program--pink { --accent: var(--pink); } .program--indigo { --accent: #8d93e0; }
.program__title { color: #fff; margin-bottom: .4em; }
.program__body p { margin-bottom: .9em; color: rgba(255, 255, 255, .9); font-size: .98rem; line-height: 1.55; }
.program .more { color: #fff; }

/* Impact: big orange numbers on a pale sky wash, group photo fading in below */
.impact { position: relative; padding-top: var(--section-y); overflow: hidden; background: linear-gradient(180deg, #fff 0%, #EAF4FA 35%, #F6FAFD 70%, #fff 100%); }
.impact__head { text-align: center; max-width: none; margin-bottom: 2rem; }
.impact__head .section-title { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem 1.5rem; margin: 0; padding: 0; list-style: none; text-align: center; }
.stat { padding: 0 .5rem; }
.stat__num { display: block; font: 400 clamp(3.6rem, 8vw, 6.2rem)/1 Impact, "Arial Narrow", "Haettenschweiler", sans-serif; letter-spacing: .01em; color: #F5821F; }
.stat__label { display: block; margin-top: 1rem; font-size: 1.3rem; line-height: 1.4; color: var(--text); }
.impact__note { margin: 2rem 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
.impact__photo { position: relative; margin: clamp(1.5rem, 4vw, 3rem) auto 0; max-width: 1400px; aspect-ratio: 16 / 7; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-composite: intersect; }
.impact__photo img, .impact__photo .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (max-width: 600px) { .impact__photo { aspect-ratio: 4 / 3; } .stat__label { font-size: 1.1rem; } }

/* Stories */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.75rem; }
.story__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.story__media { aspect-ratio: 4 / 3; margin-bottom: 1.25rem; }
.story__media img, .story__media .ph { transition: transform .8s var(--ease); }
.story__link:hover .story__media img, .story__link:hover .story__media .ph { transform: scale(1.05); }
.story__person { margin-bottom: .2rem; font-weight: 700; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.story__title { margin-bottom: .4em; transition: color .2s; }
.story__link:hover .story__title { color: var(--pink); }
.story__body p { color: var(--muted); }
.stories .story-grid .story:first-child { grid-column: span 2; grid-row: span 2; }
.stories .story-grid .story:first-child .story__media { aspect-ratio: 16 / 10; }
.stories .story-grid .story:first-child .story__title { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* News */
.news-section { background: var(--bg); }
.news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.news { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; padding: 1.25rem; background: #fff; border-bottom: 3px solid var(--blue); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.news:hover { box-shadow: 0 14px 34px rgba(27, 30, 75, .1); transform: translateY(-3px); }
.news__thumb { display: block; min-height: 150px; }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .85rem; color: var(--muted); }
.news__meta .tag { margin: 0; }
.news__title { font-size: 1.25rem; margin-bottom: .4em; }
.news__title a { color: var(--indigo-dark); text-decoration: none; }
.news__title a:hover { color: var(--pink); }
.news__body p { font-size: .95rem; color: var(--muted); margin-bottom: .7em; }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.partner { aspect-ratio: 5 / 3; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.partner:hover { transform: scale(1.04); box-shadow: 0 8px 22px rgba(27, 30, 75, .12); z-index: 1; }
.partner .ph { background: #fff; align-items: center; justify-content: center; }
.partner .ph__label { background: none; color: #aaaec4; margin: 0; }

/* Get involved */
.involve__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.involve__panel { position: relative; display: flex; align-items: flex-end; min-height: 440px; color: #fff; overflow: hidden; }
.involve__media { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.involve__panel:hover .involve__media { transform: scale(1.05); }
.involve__panel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, var(--tint, rgba(27, 30, 75, .94)) 15%, rgba(27, 30, 75, .25) 100%); }
.involve__panel--orange { --tint: rgba(150, 74, 20, .94); } .involve__panel--green { --tint: rgba(30, 82, 40, .94); } .involve__panel--blue { --tint: rgba(18, 78, 120, .94); }
.involve__body { position: relative; z-index: 2; padding: 2rem; }
.involve__body h3 { color: #fff; }
.involve__body p { margin-bottom: 1.2rem; color: rgba(255, 255, 255, .92); }

/* ---------- Inner pages ---------- */
/* Inner-page banner: text on a clean brand gradient, photo fades in from the right (never behind the text). */
.page-hero { position: relative; display: flex; align-items: center; min-height: clamp(320px, 44vh, 460px); overflow: hidden; color: #fff; background: linear-gradient(115deg, var(--indigo-deep) 0%, var(--indigo-dark) 45%, #1a5a8c 100%); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(45% 70% at 0% 100%, rgba(232, 23, 104, .18), transparent 70%), radial-gradient(40% 60% at 55% 0%, rgba(20, 155, 203, .20), transparent 70%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 6px; background: linear-gradient(90deg, var(--indigo) 0 20%, var(--orange) 20% 40%, var(--blue) 40% 60%, var(--green) 60% 80%, var(--pink) 80%); }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img, .page-hero__media .ph { object-position: right center; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 30, 75, .97) 0%, rgba(30, 34, 86, .94) 30%, rgba(38, 42, 102, .72) 50%, rgba(26, 90, 140, .25) 78%, rgba(26, 90, 140, 0) 100%); }
.page-hero__body { position: relative; z-index: 2; padding-block: 3.5rem 4rem; }
.page-hero__body > *:not(.breadcrumbs) { max-width: 44rem; }
.page-hero__title { max-width: 18ch; color: #fff; margin-bottom: .3em; }
.page-hero__intro { max-width: 40rem; font-size: 1.2rem; color: rgba(255, 255, 255, .92); margin: 0; }
.breadcrumbs { margin-bottom: 1.25rem; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumbs a { color: #fff; text-decoration: none; opacity: .85; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs [aria-current] { opacity: .7; }

.prose { max-width: 46rem; }
.prose--center { margin-inline: auto; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose img { height: auto; }
.page-body { padding-block: var(--section-y); }

.values-grid, .metric-grid, .team-grid { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.values-grid { grid-template-columns: repeat(4, 1fr); }
.value { padding: 1.6rem 0 0; border-top: 4px solid var(--accent, var(--indigo)); }
.value h3 { font-size: 1.25rem; }
.value p { color: var(--muted); font-size: .98rem; }
.value:nth-child(1) { --accent: var(--orange); } .value:nth-child(2) { --accent: var(--blue); } .value:nth-child(3) { --accent: var(--green); } .value:nth-child(4) { --accent: var(--pink); }
.band { padding-block: var(--section-y); background: var(--bg); }
.band--warm { background: var(--bg-warm); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.mv-card { padding: 2.25rem; background: #fff; border-top: 5px solid var(--accent, var(--indigo)); }
.mv-card--mission { --accent: var(--orange); } .mv-card--vision { --accent: var(--blue); }
.timeline { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--line); }
.timeline li { position: relative; margin-left: 1.5rem; padding-bottom: 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: -2.15rem; top: .45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--pink); }
.timeline strong { display: block; color: var(--indigo-dark); font-family: var(--font-head); font-size: 1.15rem; }
.team-grid { grid-template-columns: repeat(4, 1fr); }
.team-card { text-align: center; }
.team-card .frame { aspect-ratio: 1; margin-bottom: 1rem; }
.placeholder-note { padding: 1rem 1.25rem; font-size: .92rem; color: var(--muted); background: #fff; border-left: 4px solid var(--orange); }

/* Program detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.75rem; background: var(--bg); border-top: 5px solid var(--accent, var(--indigo)); }
.detail__aside h2 { font-size: 1.3rem; }
.check-list { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--green)); }
.metric-grid { grid-template-columns: repeat(3, 1fr); margin: 2rem 0; }
.metric { padding: 1.25rem; background: var(--bg); border-top: 4px solid var(--accent, var(--indigo)); }
.metric strong { display: block; font: 700 2rem/1 var(--font-head); color: var(--indigo); }
.metric span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* Filters, pagination */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.filter-bar a { display: inline-block; padding: .5rem 1.1rem; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--indigo-dark); border: 1px solid var(--line); border-radius: 999px; transition: all .2s var(--ease); }
.filter-bar a:hover { border-color: var(--indigo); }
.filter-bar .is-active a { color: #fff; background: var(--indigo); border-color: var(--indigo); }
.pagination, .navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .8rem; text-decoration: none; border: 1px solid var(--line); color: var(--indigo-dark); }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--indigo); border-color: var(--indigo); }
.stories-archive .story-grid .story:first-child { grid-column: auto; grid-row: auto; }
.stories-archive .story-grid .story:first-child .story__media { aspect-ratio: 4 / 3; }
.featured-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 4rem; }
.featured-story .story__media { margin: 0; aspect-ratio: 16 / 10; }
.news-list--stack { grid-template-columns: 1fr; }
.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--bg); }

/* Article */
.article { max-width: 46rem; margin-inline: auto; }
.article__meta { margin-bottom: 1.5rem; font-size: .92rem; color: var(--muted); }
.article__figure { max-width: 64rem; margin: 0 auto 3rem; aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.article__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .92rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form textarea, .form select {
	width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; color: var(--text); background: #fff; border: 1px solid #c9ccd9; border-radius: var(--radius);
}
.form textarea { min-height: 150px; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(63, 69, 159, .18); outline: 0; }
.notice { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-left: 4px solid var(--green); background: #eef8e9; }
.notice--error { border-color: var(--pink); background: #fdeaf1; }
.amounts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .5rem; padding: 0; border: 0; }
.amounts legend { margin-bottom: .5rem; font-weight: 600; font-size: .92rem; }
.amounts label { position: relative; margin: 0; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: inline-block; min-width: 96px; padding: .75rem 1rem; text-align: center; font-weight: 700; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: all .2s var(--ease); }
.amounts input:checked + span, .amounts span:hover { color: #fff; background: var(--indigo); border-color: var(--indigo); }
.amounts input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.card-box { padding: clamp(1.5rem, 4vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--accent, var(--indigo)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }
.map-embed { margin-top: 3rem; aspect-ratio: 21 / 8; background: var(--bg); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.involve-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Generic content (page.php, single.php, archive.php, search, 404) */
.site-main { min-width: 0; }
body:not(.is-home) .site-main > article,
body:not(.is-home) .site-main > .page-header,
body:not(.is-home) .site-main > section.no-results,
body:not(.is-home) .site-main > section.error-404 { max-width: 46rem; margin-inline: auto; padding-inline: var(--gutter); }
.site-main > article { padding-block: 2.5rem; }
.widget-area { max-width: 46rem; margin: 0 auto; padding: 2rem var(--gutter); }
.entry-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.entry-title a { color: var(--indigo-dark); text-decoration: none; }
.entry-meta, .entry-footer { font-size: .88rem; color: var(--muted); }
.entry-meta > span + span::before { content: "·"; margin: 0 .4rem; }
.post-navigation .nav-links, .posts-navigation .nav-links { justify-content: space-between; }

/* ---------- Footer ---------- */
.site-footer { color: rgba(255, 255, 255, .82); background: var(--indigo-deep); border-top: 6px solid var(--indigo); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-brand { display: flex; align-items: flex-end; gap: .7rem; margin: 0 0 .3rem; font: 800 1.8rem/1 var(--font-head); color: #fff; }
.footer-name { font-weight: 600; color: #fff; }
.footer-title { margin-bottom: 1rem; font: 700 .85rem/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.footer-links, .footer-legal, .social-list { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-contact { margin-bottom: 1.25rem; font-style: normal; line-height: 1.9; }
.social-list { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }
.footer-bar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; }
.footer-bar p { margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .program-grid .reveal:nth-child(2n), .js .story-grid .reveal:nth-child(3n+2) { transition-delay: .1s; }
.js .program-grid .reveal:nth-child(3n), .js .story-grid .reveal:nth-child(3n) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.stats { grid-template-columns: repeat(3, 1fr); }
	.stat { padding-bottom: 1.5rem; }
	.values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
	.partner-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
	.split, .two-col, .contact-grid, .detail, .featured-story, .involve-split, .footer-grid { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 0; }
	.about .split__media { padding: 0 0 2.5rem 1.5rem; }
	.program-grid { grid-template-columns: 1fr; }
	.program, .program:nth-child(n) { grid-column: auto; }
	.program__link { min-height: 340px; }
	.story-grid { grid-template-columns: 1fr 1fr; }
	.news-list { grid-template-columns: 1fr; }
	.involve__grid { grid-template-columns: 1fr; }
	.involve__panel { min-height: 340px; }
	.detail__aside { position: static; }
	.map-embed { aspect-ratio: 4 / 3; }
	.section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.hero { min-height: 560px; }
	.hero__media::after { background: linear-gradient(0deg, rgba(27, 30, 75, .92), rgba(27, 30, 75, .5)); }
	.hero__body { padding-block: 3.5rem; }
	.btn-row .btn { width: 100%; }
	.stats { grid-template-columns: 1fr 1fr; }
	.story-grid, .values-grid, .team-grid, .metric-grid, .form__row { grid-template-columns: 1fr; }
	.stories .story-grid .story:first-child { grid-column: auto; grid-row: auto; }
	.news { grid-template-columns: 1fr; }
	.news__thumb { aspect-ratio: 16 / 9; }
	.partner-grid { grid-template-columns: repeat(2, 1fr); }
	.wordmark__text small { display: none; }
	.footer-bar__inner { flex-direction: column; }
	.frame--inset { width: 42%; }
}

/* ---------- Blessings ---------- */
.blessings { background: var(--bg-warm); }
.blessings__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.blessing { padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border-top: 5px solid var(--accent, var(--indigo)); }
.blessing--orange { --accent: var(--orange); } .blessing--blue { --accent: var(--blue); }
.blessing__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.5rem; }
.blessing__head h3 { margin: 0 0 .15em; font-size: 1.2rem; }
.blessing__head p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.45; }
.blessing__portrait { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; }
.blessing__portrait img, .blessing__portrait .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.blessing__letter { display: block; text-decoration: none; }
.blessing__letter img { display: block; width: auto; max-width: 100%; height: auto; max-height: 340px; margin-inline: auto; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(27, 30, 75, .1); transition: transform .4s var(--ease); }
.blessing__letter:hover img { transform: translateY(-4px); }
.blessing__letter .more { margin-top: 1rem; }
@media (max-width: 860px) { .blessings__grid { grid-template-columns: 1fr; } }

/* ---------- Gallery, video, lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.gallery__item { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.gallery__item[hidden] { display: none; }
.gallery__item a { display: block; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item a:hover img, .gallery__item a:focus-visible img { transform: scale(1.06); }
.video-band { background: var(--bg); }
.video-frame { max-width: 960px; margin: 0 auto; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 22px 50px rgba(27, 30, 75, .22); }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(15, 17, 45, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: var(--pink); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.story-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1.25rem; }
.story-grid[data-count="4"] .story:first-child, .stories .story-grid[data-count="4"] .story:first-child { grid-column: auto; grid-row: auto; }
.story-grid[data-count="4"] .story__media, .story-grid[data-count="4"] .story:first-child .story__media { aspect-ratio: 1 / 1; margin-bottom: 1rem; }
.story-grid[data-count="4"] .story__title { font-size: 1.15rem; }
.story-grid[data-count="4"] .story__body p:not(.tag):not(.story__person) { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .story-grid[data-count="4"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .story-grid[data-count="4"] { grid-template-columns: 1fr; } }
.story__media img { object-position: center 20%; }
.partner-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 860px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Button colours must beat generic link colours (visited / hover). */
a.btn--primary, a.btn--primary:visited { color: #fff; }
a.btn--accent, a.btn--accent:visited { color: var(--indigo-deep); }
a.btn--accent:hover, a.btn--accent:focus { color: #fff; }
a.btn--light, a.btn--light:visited { color: var(--indigo-dark); }
a.btn--ghost-light, a.btn--ghost-light:visited { color: #fff; }
a.btn--ghost-light:hover, a.btn--ghost-light:focus { color: var(--indigo-dark); }

/* ---------- Testimonials ---------- */
.voices { background: var(--bg-warm); }
.voices__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 0; }
.voice { display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: 1.75rem 1.5rem; background: #fff; border-top: 5px solid var(--accent, var(--indigo)); }
.voice--orange { --accent: var(--orange); } .voice--blue { --accent: var(--blue); } .voice--green { --accent: var(--green); } .voice--pink { --accent: var(--pink); }
.voice blockquote { position: relative; margin: 0 0 1.5rem; font: italic 400 1.05rem/1.6 var(--font-head); color: var(--text); }
.voice blockquote::before { content: "\201C"; display: block; margin-bottom: -.4rem; font: 700 3rem/1 var(--font-head); color: var(--accent, var(--indigo)); }
.voice figcaption { display: flex; align-items: center; gap: .85rem; font-weight: 700; }
.voice figcaption a { color: var(--indigo-dark); text-decoration: none; line-height: 1.3; }
.voice figcaption a:hover { color: var(--pink); }
.voice__photo { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; }
.voice__photo img, .voice__photo .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
@media (max-width: 1080px) { .voices__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .voices__grid { grid-template-columns: 1fr; } }

/* ---------- Program detail ---------- */
.program-detail { --accent: var(--indigo); }
.program-detail--blue { --accent: var(--blue); } .program-detail--orange { --accent: var(--orange); } .program-detail--green { --accent: var(--green); } .program-detail--pink { --accent: var(--pink); }
.pd-photo { position: relative; aspect-ratio: 4 / 3; margin: 0 0 1.25rem 1.25rem; box-shadow: -1.25rem 1.25rem 0 var(--accent); }
.pd-photo img, .pd-photo .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-overview .lead { color: var(--indigo-dark); }
.pd-overview .btn-row { margin-top: 1.75rem; }
.pd-metrics { padding-block: 0 var(--section-y); }
.pd-metrics .metric-grid { margin: 0 auto; }
.focus-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.focus { padding: 1.75rem 1.5rem; background: #fff; border-top: 5px solid var(--accent); }
.focus__num { display: block; margin-bottom: .75rem; font: 700 2.4rem/1 var(--font-head); color: var(--accent); }
.focus p { margin: 0; font-weight: 600; color: var(--indigo-dark); line-height: 1.5; }
.pd-activities .check-list { margin-top: 1rem; }
.pd-activities .check-list li { padding-bottom: .65rem; margin-bottom: .65rem; border-bottom: 1px solid var(--line); }
.pd-activities .check-list li::before { background: var(--accent); }
.pd-approach { padding-left: 1.4rem; border-left: 4px solid var(--accent); font: italic 400 1.35rem/1.55 var(--font-head); color: var(--indigo-dark); }
@media (max-width: 860px) { .pd-photo { margin-left: .75rem; box-shadow: -.75rem .75rem 0 var(--accent); } }

/* Menu links fill their row (base theme fixed them at 200px, which wrapped long names and shifted hover boxes). */
.main-navigation .sub-menu a, .main-navigation ul ul a { width: auto; white-space: nowrap; }
@media (max-width: 1180px) { .main-navigation .sub-menu a, .main-navigation ul ul a { white-space: normal; } }
.main-navigation .sub-menu a:focus { background: var(--bg); color: var(--indigo); outline-offset: -3px; }

/* ---------- Program results (Our Impact page) ---------- */
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.result { display: flex; flex-direction: column; background: #fff; border-top: 5px solid var(--accent, var(--indigo)); box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.result:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 18px 36px rgba(27, 30, 75, .12); }
.result--blue { --accent: var(--blue); } .result--orange { --accent: var(--orange); } .result--green { --accent: var(--green); } .result--pink { --accent: var(--pink); } .result--indigo { --accent: var(--indigo); }
.result__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.result__media img, .result__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.result:hover .result__media img { transform: scale(1.05); }
.result__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem 1.6rem 1.7rem; }
.result__num { margin: 0; font: 400 clamp(3rem, 5vw, 4.2rem)/1 Impact, "Arial Narrow", "Haettenschweiler", sans-serif; letter-spacing: .01em; color: var(--accent); }
.result__label { margin: .35rem 0 1rem; font-size: 1.05rem; color: var(--muted); }
.result__label--solo { margin-top: 0; min-height: 3.2rem; font-style: italic; }
.result__title { margin: 0 0 1rem; font-size: 1.35rem; }
.result__title a { color: var(--indigo-dark); text-decoration: none; }
.result__body .more { margin-top: auto; }
@media (max-width: 1000px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .result-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery page: children photo feature ---------- */
.gallery-feature { padding-top: var(--section-y); overflow: hidden; background: linear-gradient(180deg, #fff 0%, #EAF4FA 40%, #fff 100%); }
.gallery-feature__head { text-align: center; max-width: none; margin-bottom: 1.5rem; }
.gallery-feature__head .section-title { margin-bottom: 0; }
.gallery-feature__photo { position: relative; max-width: 1400px; margin: 0 auto; aspect-ratio: 2000 / 750; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%), linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%), linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%); mask-composite: intersect; }
.gallery-feature__photo img, .gallery-feature__photo .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 600px) { .gallery-feature__photo { aspect-ratio: 4 / 3; } .gallery-feature__photo img { object-position: 40% center; } }

.future-first .gallery-feature__head { max-width: 46rem; margin-inline: auto; }
.future-first .gallery-feature__head .section-intro { margin-bottom: 1.5rem; }
.future-first .btn-row { justify-content: center; }

@media (max-width: 860px) {
	.page-hero { align-items: flex-end; min-height: 340px; }
	.page-hero__media::after { background: linear-gradient(0deg, rgba(27, 30, 75, .96) 0%, rgba(30, 34, 86, .82) 55%, rgba(38, 42, 102, .55) 100%); }
	.page-hero__body > *:not(.breadcrumbs) { max-width: none; }
}

/* ---------- Responsive refinements: tablet and large screens ---------- */
@media (min-width: 601px) and (max-width: 860px) {
	.program-grid { grid-template-columns: repeat(2, 1fr); }
	.program-grid .program, .program-grid .program:nth-child(n) { grid-column: auto; }
	.program__link { min-height: 320px; }
	.involve__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
	.involve__panel { min-height: 380px; }
	.involve__body { padding: 1.25rem; }
}
@media (min-width: 1600px) {
	:root { --container: 1360px; }
	body { font-size: 1.125rem; }
}
@media (min-width: 2200px) {
	:root { --container: 1560px; }
}

/* Phones: impact numbers in an even two-column grid */
@media (max-width: 600px) {
	.stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem .75rem; }
	.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.stat__num { font-size: clamp(2.8rem, 15vw, 3.8rem); }
	.stat__label { margin-top: .5rem; font-size: 1rem; }
}

/* ---------- FAQ (details/summary, no JavaScript) ---------- */
.faq { max-width: 52rem; margin: 0 auto; text-align: left; }
.faq details { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); margin-bottom: .85rem; }
.faq summary { position: relative; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 700; color: var(--indigo-dark); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--pink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--muted); }

/* Footer bar: copyright, designer credit and legal links on one line */
.footer-bar__inner { align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 1rem 2rem; }
.footer-bar__inner > p { flex: 0 1 auto; }
.footer-credit { margin: 0; text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .72); }
.footer-credit a { font-weight: 700; color: var(--orange); }
.footer-credit a:hover { color: #fff; }
@media (max-width: 1100px) { .footer-bar__inner { flex-wrap: wrap; justify-content: center; text-align: center; } .footer-legal { justify-content: center; } }
