/* ==========================================================================
   Fonts
   NOTE: Orange Squash is loaded here from a DEMO/trial font file for local
   dev preview only — the client is purchasing the real licence. Swap
   assets/fonts/OrangeSquash-Demo.otf for the licensed webfont files (woff2)
   before this theme goes anywhere near production. It is used on the
   hero headlines, eyebrows, quotes and subheadings; everything else is Poppins.

   Font Awesome: the theme also loads the client's actual Font Awesome Pro
   Kit script (kit.fontawesome.com, see functions.php) — that's the real
   production licence. The @font-face rules below self-host a handful of
   exact-codepoint glyphs from the client's desktop OTF license as the
   rendering path the templates use today (verified byte-for-byte against
   the codepoints in the Figma export); the Kit is there to switch to
   proper `wfa-solid wfa-{name}` SVG icons later without a licensing gap.
   ========================================================================== */
@font-face {
	font-family: 'Orange Squash';
	src: url('../fonts/OrangeSquash-Demo.otf') format('opentype');
	font-weight: 400 800;
	font-display: swap;
}
@font-face {
	font-family: 'Font Awesome 6 Pro Light';
	src: url('../fonts/fontawesome/fa-pro-light.otf') format('opentype');
	font-weight: 300;
	font-display: block;
}
@font-face {
	font-family: 'Font Awesome 6 Pro';
	src: url('../fonts/fontawesome/fa-pro-regular.otf') format('opentype');
	font-weight: 400;
	font-display: block;
}
@font-face {
	font-family: 'Font Awesome 6 Pro Solid';
	src: url('../fonts/fontawesome/fa-pro-solid.otf') format('opentype');
	font-weight: 900;
	font-display: block;
}
@font-face {
	font-family: 'Font Awesome 6 Sharp Solid';
	src: url('../fonts/fontawesome/fa-sharp-solid.otf') format('opentype');
	font-weight: 900;
	font-display: block;
}
@font-face {
	font-family: 'Font Awesome 6 Brands';
	src: url('../fonts/fontawesome/fa-brands.otf') format('opentype');
	font-weight: 400;
	font-display: block;
}

/* ==========================================================================
   Wren Autoimmune UK — design tokens
   ========================================================================== */
:root {
	--teal: #127075;
	--teal-deep: #0a4548;
	--coral: #f2ae9c;
	--coral-dark: #e2917c;
	--coral-soft: #f8d5c9;
	--coral-light: color-mix(in srgb, var(--coral) 50%, #fff); /* button hover */
	--mint-pale: #eafbf6;
	--mint-mid: #c6eee5;
	--mint-bright: #46dbb8;
	--mint-cyan: #79f1d2;
	--mint-green: #75cdb0;
	--pink-pale: #fef7f5;
	--cream: #ffffff;
	--ink: #173e42;
	--ink-soft: #164f51;

	--font-display: 'Orange Squash', 'Poppins', Georgia, serif;
	--font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--wrap: 1600px;
	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--radius-sm: 12px;
	--radius-btn: 999px;
	--radius-md: 24px;
	--radius-lg: 32px;
	--radius-pill: 999px;

	--section-pad: clamp(3rem, 6vw, 6rem);
}

/* ==========================================================================
   Font Awesome icon glyphs — used via <i class="wfa wfa-{name}"></i>,
   matched to the exact codepoints/weights read from the Figma file.
   ========================================================================== */
.wfa { display: inline-block; font-style: normal; line-height: 1; }
.wfa-light { font-family: 'Font Awesome 6 Pro Light'; font-weight: 300; }
.wfa-regular { font-family: 'Font Awesome 6 Pro'; font-weight: 400; }
.wfa-solid { font-family: 'Font Awesome 6 Pro Solid'; font-weight: 900; }
.wfa-sharp-solid { font-family: 'Font Awesome 6 Sharp Solid'; font-weight: 900; }
.wfa-brands { font-family: 'Font Awesome 6 Brands'; font-weight: 400; }
/* Codepoints below are copied verbatim from the Figma export's own glyph
   characters — not guessed from Font Awesome's icon-name docs — so the class
   name is a "what it's used for" label, not a claim about the icon's name. */
.wfa-step-apply::before { content: '\f737'; }      /* process step 1 */
.wfa-step-invited::before { content: '\f058'; }     /* process step 2 */
.wfa-step-training::before { content: '\e53d'; }    /* process step 3 */
.wfa-step-volunteer::before { content: '\f086'; }   /* process step 4 + contact-card icon */
.wfa-quote::before { content: '\f10d'; }
.wfa-chevron-down::before { content: '\f107'; }
.wfa-circle-info::before { content: '\f05a'; }      /* field info tooltip icon */
.wfa-play::before { content: '\f04b'; }
.wfa-envelope::before { content: '\f0e0'; }         /* footer email */
.wfa-donate::before { content: '\f4be'; }
.wfa-instagram::before { content: '\f16d'; }
.wfa-facebook::before { content: '\f09a'; }
.wfa-linkedin::before { content: '\f0e1'; }
.wfa-x-twitter::before { content: '\e61b'; }
.wfa-box-support::before { content: '\f086'; }      /* "How can we support you" box 1 */
.wfa-box-volunteer::before { content: '\f4bc'; }    /* box 3 */
.wfa-box-fundraise::before { content: '\e5ff'; }    /* box 4 */
.wfa-stat-1::before { content: '\f0c0'; }           /* 138 volunteers */
.wfa-stat-2::before { content: '\f086'; }           /* 4572 sessions + 25 partners */
.wfa-stat-3::before { content: '\f4c3'; }           /* 10,696 individuals */
.wfa-arrow-right::before { content: '\f061'; }      /* "Find out more" links */
.wfa-chevron-left::before { content: '\f053'; }      /* testimonial slider arrow */
.wfa-chevron-right::before { content: '\f054'; }     /* testimonial slider arrow */

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* 115% root = every rem-based font size and spacing on the site is 15% larger. */
html { scroll-behavior: smooth; font-size: 115%; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--cream);
	line-height: 1.65;
	font-size: 1rem;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.55em;
	color: var(--teal);
	text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4vw + 1rem, 3.9rem); }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.9rem); }
h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
/* Orange Squash is reserved for the hero display headline only — every
   other heading in the Figma file (including big section titles) is set in
   Poppins SemiBold, not the display face. */
.hero__heading { font-family: var(--font-display); font-weight: 400; margin-bottom: 0.3em; }
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 1rem; left: 1rem; z-index: 9999;
	background: var(--teal); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-sm);
}

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; position: relative; overflow: hidden; }
.section--space-extra { padding-bottom: calc(var(--section-pad) * 1.7); }
.section--space-none { padding-bottom: 0; }
.section--space-top-extra { padding-top: calc(var(--section-pad) * 1.7); }
.section--space-top-none { padding-top: 0; }

.bg-white { background: var(--cream); }
.bg-teal  { background: var(--teal); color: #fff; }
.bg-teal h1, .bg-teal h2, .bg-teal h3 { color: #fff; }
.bg-mint  { background: var(--mint-pale); }
.bg-mint-mid { background: var(--mint-mid); }
.bg-pink  { background: var(--pink-pale); }
.bg-coral { background: var(--coral); }

/* Section right after a hero always reads as a clean white seam against the
   hero's wave (no near-white/pink mismatch); the section after that gets a
   light mint tint so the page has clear alternating rhythm instead of two
   near-identical pale sections back to back. */
/*.hero + .bg-mint, .hero + .bg-pink { background: var(--cream); }
.hero + * + section.bg-white { background: var(--mint-pale); }*/

.eyebrow {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.3rem;
	line-height: 1.25;
	letter-spacing: normal;
	text-transform: none;
	color: var(--mint-green);
	margin: 0 0 .6em;
}
/* Figma isn't fully consistent on eyebrow colour per background — these are
   the colours confirmed on white/mint/teal/coral sections respectively. */
.eyebrow--coral { color: var(--coral); }
/* Long eyebrows wrap sooner in left-aligned text blocks; centred heads stay centred. */
.text-image__content .eyebrow, .hero__content .eyebrow, .video-text__content .eyebrow { max-width: 42ch; }
.bg-mint .eyebrow, .bg-mint-mid .eyebrow { color: var(--teal); }
.bg-teal .eyebrow { color: var(--coral); }
.bg-coral .eyebrow { color: var(--teal-deep); }
/* Coral sections: mid teal headings and deep teal body, lighter than the old near-black. */
.bg-coral h1, .bg-coral h2, .bg-coral h3, .bg-coral h4 { color: var(--teal-deep); }
.bg-coral, .bg-coral p { color: var(--teal-deep); }

.section-heading { margin-bottom: 2rem; }
.section-heading--center { text-align: center; }

.prose p { color: var(--ink-soft); }
.bg-teal .prose p { color: rgba(255,255,255,.9); }
.prose--narrow { max-width: 760px; margin-inline: auto; }
.prose__quote, .prose p.prose__quote {
	font-family: var(--font-display); font-size: 1.3rem; font-weight: 400;
	color: var(--teal); border-left: 3px solid var(--coral); padding-left: 1.2rem; margin: 1.6rem 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .85rem 1.6rem;
	border-radius: var(--radius-btn);
	font-weight: 600;
	font-size: 1.1rem;
	transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

/* Primary / light: solid fill by design, border matches fill, deepens on hover. */
.btn--primary { background: var(--coral); color: var(--teal-deep); border: 1.5px solid var(--coral); }
.btn--primary:hover { background: var(--coral-light); border-color: var(--coral-light); color: var(--teal-deep); }
.btn--light { background: var(--mint-mid); color: var(--teal-deep); border: 1.5px solid var(--mint-mid); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--teal-deep); }

/* Secondary: bright border, transparent interior — fills solid with that
   same colour on hover, flipping text for contrast. */
.btn--secondary { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn--secondary:hover { background: var(--teal); color: #fff; }
.bg-teal .btn--secondary, .bg-coral .btn--secondary { border-color: #fff; color: #fff; }
.bg-teal .btn--secondary:hover, .bg-coral .btn--secondary:hover { background: #fff; color: var(--teal); }

.btn--dark { background: var(--teal); color: #fff; border: 1.5px solid var(--teal); }
.btn--dark:hover { background: var(--teal); border-color: var(--teal); }

/* Header nav "Donate" pill — exact spec read from the Figma file: glass
   mint tint, bright mint border, 8px radius (not a pill despite the name). */
.nav-donate-btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .8rem 1.3rem;
	border-radius: var(--radius-btn);
	border: 2px solid var(--mint-bright);
	background: rgba(70, 219, 184, .14);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: var(--ink);
	font-weight: 600;
	font-size: 1.1rem;
	transition: background-color .15s ease;
}
.nav-donate-btn:hover { background: var(--mint-bright); }
.nav-donate-btn .wfa { font-size: 1.1rem; }
.btn--small { padding: .55rem 1.1rem; font-size: .85rem; }
.btn__icon { font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* ==========================================================================
   Notice bar (above the header; scrolls away, header stays sticky)
   ========================================================================== */
.notice-bar { background: var(--mint-mid); color: var(--ink); }
.notice-bar--teal { background: var(--teal); color: #fff; }
.notice-bar--coral { background: var(--coral); color: var(--ink); }
.notice-bar--pink { background: var(--pink-pale); color: var(--ink); }
.notice-bar--text-light { color: #fff; }
.notice-bar--teal .notice-bar__link:hover,
.notice-bar--text-light .notice-bar__link:hover { color: var(--mint-cyan); }
.notice-bar__inner { padding-block: .7rem; text-align: center; }
.notice-bar__text { margin: 0; font-size: .85rem; line-height: 1.4; font-weight: 500; letter-spacing: -0.2px }
.notice-bar__link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-left: .35em; white-space: nowrap; }
.notice-bar__link:hover { color: var(--teal); }
@media (max-width: 600px) { .notice-bar__text { font-size: .75rem; letter-spacing: -0.2px } }

/* ==========================================================================
   Header
   ========================================================================== */
/* Sticky, but slides out of view while scrolling down and back in on the
   first scroll up (classes toggled in main.js). Offset by the admin bar
   height WordPress exposes, so logged-in editors see it too. */
.site-header {
	background: #fff; position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
	transition: transform .3s ease, box-shadow .3s ease;
}
.site-header--shadow,
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens, so don't leave a gap for it. */
	.admin-bar .site-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.site-header { transition: none; }
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	padding-block: 1.1rem; gap: 1.5rem;
}
.site-logo__text {
	font-family: var(--font-heading); font-style: italic; font-weight: 500;
	font-size: 1.35rem; line-height: 1.05; color: var(--teal);
}
.site-logo__text strong { font-style: normal; font-weight: 600; display: block; }
.site-logo__mark { height: 55px; width: auto; display: block; }
.site-logo__mark--footer { height: 72px; margin-bottom: 1.2rem; }
.primary-nav__list { display: flex; gap: 1.8rem; }
.primary-nav__list > li { position: relative; display: flex; align-items: center; white-space: nowrap; }
.site-logo { flex-shrink: 0; }
@media (max-width: 1360px) {
	.primary-nav__list { gap: 1.2rem; }
	.primary-nav__list a { font-size: .9rem; }
}
.primary-nav__list a {
	font-weight: 600; font-size: 1rem; color: var(--teal);
	padding: .4rem 0; border-bottom: 2px solid transparent;
}
.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current-menu-ancestor > a { color: var(--coral-dark); border-color: var(--coral); }
.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.mobile-nav { display: none; }

/* Nav submenus — desktop dropdown (hover/focus/click), shared markup with mobile accordion below. */
.submenu-toggle {
	display: inline-flex; align-items: center; justify-content: flex-end;
	width: 1rem; height: 1.5rem; margin-left: .1rem; padding: 0;
	background: none; border: 0; color: var(--teal); font-size: .8rem;
	cursor: pointer; line-height: 1;
}
.submenu-toggle i { display: block; transition: transform .2s ease; }
.menu-item-has-children:hover .submenu-toggle i,
.menu-item-has-children:focus-within .submenu-toggle i,
.menu-item-has-children.submenu-open .submenu-toggle i { transform: rotate(180deg); }

/* Invisible strip bridging the trigger and the dropdown below it — a plain
   generated-content box on the <li> itself (not on .sub-menu), so it keeps
   :hover continuous across the visual gap without the dropdown box needing
   any transparent border/padding trickery of its own. */
.primary-nav__list .menu-item-has-children::after {
	content: ''; position: absolute; top: 100%; left: 0; right: 0; height: .7rem;
}

.primary-nav__list .sub-menu {
	position: absolute; top: 100%; left: 50%; margin-top: .7rem;
	min-width: 230px; background: var(--coral-soft);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(18,54,56,.16); padding: .5rem;
	opacity: 0; visibility: hidden; pointer-events: none;
	transform: translate(-50%, 6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
	z-index: 60;
}
.primary-nav__list .menu-item-has-children:hover > .sub-menu,
.primary-nav__list .menu-item-has-children:focus-within > .sub-menu,
.primary-nav__list .menu-item-has-children.submenu-open > .sub-menu {
	opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.primary-nav__list .sub-menu li { display: block; }
.primary-nav__list .sub-menu a {
	display: block; padding: .6rem .9rem; border-radius: 8px; border-bottom: 0;
	font-size: .9rem; white-space: nowrap; color: var(--teal);
	transition: background-color .15s ease, color .15s ease;
}
.primary-nav__list .sub-menu .current-menu-item > a { background: var(--coral); color: var(--teal-deep); }
.primary-nav__list .sub-menu a:hover { background: var(--coral); color: var(--teal-deep); }

/* ==========================================================================
   Blobs & wave divider
   ========================================================================== */
.blob { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
.blob--mint { width: 62%; aspect-ratio: 1; background: var(--mint-mid); top: -6%; right: 2%; opacity: .9; }
.blob--coral { width: 44%; aspect-ratio: 1; background: var(--coral); bottom: -10%; right: 10%; }
.blob--outline { width: 72%; aspect-ratio: 1; border: 0; background: var(--mint-mid); bottom: -18%; left: -14%; opacity: .7; }
.bg-coral .blob--outline { background: rgba(255,255,255,.4); }
.blob--large { width: 46%; aspect-ratio: 1; }
.blob--coral-soft { background: var(--coral-soft); top: -14%; left: -8%; opacity: .6; }
.blob-frame { position: relative; }
.blob-frame::before {
	content: ''; position: absolute; inset: -6%; background: var(--coral-soft);
	border-radius: 50%; z-index: 0;
}
.blob-frame img, .blob-frame :is(img) { position: relative; z-index: 1; border-radius: var(--radius-lg); }

.wave-divider { display: block; width: 100%; height: 40px; position: relative; margin-top: -1px; margin-bottom: -1px; }
.wave-divider--top { position: absolute; top: 0; left: 0; margin-top: 0; transform: rotate(180deg); }
/* Breathing room between a wave and the content next to it. A top wave sits
   over the section's own padding, so that padding grows to clear it. */
:root { --wave-gap: 30px; }
.section:has(> .wave-divider--top) { padding-top: max(calc(var(--section-pad) + var(--wave-gap)), calc(40px + var(--wave-gap))); }
.fill-white { fill: var(--cream); }
.fill-mint { fill: var(--mint-pale); }
.fill-pink { fill: var(--pink-pale); }
.fill-coral { fill: var(--coral); }
.fill-teal { fill: var(--teal); }

/* ==========================================================================
   Hero
   ========================================================================== */
/* --hero-bg follows the hero's Background setting; the photo fade and the
   curve beside split photos use it too, so they always blend in. */
.hero { --hero-bg: var(--teal); background: var(--hero-bg); color: #fff; padding-top: clamp(1.75rem, 2.75vw, 2.75rem); padding-bottom: 0; position: relative; }
.hero.bg-white { --hero-bg: var(--cream); }
.hero.bg-mint { --hero-bg: var(--mint-pale); }
.hero.bg-mint-mid { --hero-bg: var(--mint-mid); }
.hero.bg-pink { --hero-bg: var(--pink-pale); }
.hero.bg-coral { --hero-bg: var(--coral); }
.hero:not(.bg-teal) { color: var(--ink); }
.hero:not(.bg-teal) .hero__heading, .hero:not(.bg-teal) .hero__subheading { color: var(--teal-deep); }
.hero__inner {
	display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem;
	padding-bottom: calc(clamp(1.75rem, 2.75vw, 2.75rem) + var(--wave-gap));
	position: relative; z-index: 1;
}
.hero--bg .hero__inner,
.hero--split-bleed .hero__inner { grid-template-columns: 1fr; text-align: left; }
.hero--bg .hero__inner { padding-bottom: calc(clamp(2rem, 4vw, 3rem) + var(--wave-gap)); min-height: 380px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero--bg .hero__content { max-width: 640px; }
.hero__heading { color: #fff; }
.hero__subheading { font-size: 0.9rem; color: #fff; max-width: 46ch; line-height: 1.5em; }
.hero--split-bleed .hero__content { max-width: 560px; }
.hero__media { position: relative; }
.hero__media-image { display: block; width: 100%; height: auto; }
.hero__media--icon { display: flex; align-items: center; justify-content: center; }
.hero__icon-image { position: relative; z-index: 1; width: 70%; }

/* Icon hero — shorter than the default hero, with the icon graphic floating
   large enough to spill past the section bottom, cropped by the wave. */
.hero--icon { overflow: hidden; }
.hero--icon .hero__inner { padding-bottom: calc(clamp(1.5rem, 3vw, 2.5rem) + var(--wave-gap)); }
.hero--icon .hero__media--icon { position: relative; min-height: 300px; justify-content: center; }
.hero--icon .hero__icon-image { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 55%; }
.hero--bg { position: relative; overflow: hidden; }
.hero__bg-photo { position: absolute; inset: 0; z-index: 0; }
.hero__bg-photo::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(100deg, var(--hero-bg) 0%, color-mix(in srgb, var(--hero-bg) 92%, transparent) 30%, color-mix(in srgb, var(--hero-bg) 55%, transparent) 55%, color-mix(in srgb, var(--hero-bg) 15%, transparent) 78%, transparent 100%);
}
.hero__bg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Split-bleed hero (Get Support, Fundraise) — photo bleeds to the browser
   edge, full hero height, cut by the bottom wave (image sits behind the
   in-flow wave SVG), with a slight rounded curve where it meets the text
   panel (an ellipse peeking in from the teal side). */
.hero--split-bleed { overflow: hidden; }
.hero__media--bleed { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; z-index: 0; }
.hero__media--bleed .hero__media-image { width: 100%; height: 100%; object-fit: cover; }
.single-post .hero__media--bleed .hero__media-image,
.single-story .hero__media--bleed .hero__media-image { object-position: 50% 20%; }
.hero__media--bleed::before {
	content: '';
	position: absolute; z-index: 1; top: 50%; left: 0;
	width: 70px; height: 135%;
	background: var(--hero-bg);
	border-radius: 50%;
	transform: translate(-78%, -50%);
}

/* ==========================================================================
   Highlight boxes
   ========================================================================== */
.highlight-boxes__heading { font-size: 1.6875rem; font-weight: 600; color: var(--ink-soft); text-align: center; letter-spacing: -.01em; }
.highlight-boxes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 1.5rem; }
.highlight-box {
	display: flex; align-items: center; justify-content: center; gap: .8rem;
	border: 2px solid var(--coral); border-radius: var(--radius-btn);
	background: rgba(242, 174, 156, .1);
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	padding: 1.4rem 1.3rem; font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: var(--ink);
	transition: background-color .2s ease, color .2s ease;
}
.highlight-box:hover { background: var(--coral); color: var(--teal-deep); }
.highlight-box__icon { color: var(--coral); font-size: 1.9rem; transition: color .35s ease; }
.highlight-box:hover .highlight-box__icon { color: #fff; }

/* ==========================================================================
   Text + image
   ========================================================================== */
.text-image { position: relative; overflow: hidden; }
.text-image__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.text-image--left .text-image__media { order: 1; }
.text-image--left .text-image__content { order: 2; }
.text-image--right .text-image__media { order: 2; }
.text-image--right .text-image__content { order: 1; }
.text-image__media { position: relative; }

/* Blob protrudes from the bottom corner behind the image (base .blob--outline
   bottom/left bleed), sized to the section — on whichever side the image is:
   left when image_position=left, right when =right. */
.text-image .blob--outline {
	width: 30vw; max-width: 460px; min-width: 260px;
}
.text-image--right .blob--outline { left: auto; right: -14%; }
.text-image__subheading { font-family: var(--font-display); font-weight: 400; text-transform: none; letter-spacing: normal; font-size: 1.55rem; line-height: 1.25; color: var(--coral-dark); margin-top: .3rem; }
.bg-teal .text-image__subheading { color: var(--coral); }
.bg-coral .text-image__subheading { color: var(--teal); }
.text-image__image { position: relative; z-index: 1; border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.text-image__image--flat { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.photo-collage { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.photo-collage img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; }
.photo-collage__item--0 { grid-column: span 2; grid-row: span 2; aspect-ratio: 1.4; }

/* ==========================================================================
   Three cards
   ========================================================================== */
.three-cards__head { max-width: 620px; margin-bottom: 2rem; }
.three-cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.three-cards__grid--two { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-inline: auto; }
.three-cards__grid--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .three-cards__grid--four { grid-template-columns: repeat(2, 1fr); } }
.three-cards__blob { width: 360px; top: 6%; right: -110px; opacity: .55; }
.bg-teal .three-cards__blob { background: rgba(255,255,255,.08); opacity: 1; }
.three-cards > .wrap { position: relative; z-index: 1; }
.card { position: relative; background: rgba(242,174,156,.1); border: 2px solid var(--coral); border-radius: var(--radius-md); overflow: hidden; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card:hover { background: rgba(242,174,156,.15); box-shadow: 0 12px 30px rgba(18,112,117,.12); transform: scale(1.02); }
.card__media img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.card__media--logo { background: #fff; padding: 1.5rem; }
.card__media--logo img { object-fit: contain; }
.card__body { padding: 1.8rem 1.8rem 2.1rem; }
.card__body h3 { color: var(--teal); }
.card__body p { color: var(--ink-soft); font-size: .95rem; }
.card__link { color: var(--teal); font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 6px; }
.card__link::after { content: ''; position: absolute; inset: 0; }
.card__link i { padding-right: 6px; }
.upcoming-events__date { color: var(--coral-dark); font-weight: 600; font-size: .85rem !important; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }

/* Teal variant — outlined, transparent cards with white text (e.g. "We offer
   a range of autoimmune support"). */
.bg-teal .three-cards__head { text-align: center; max-width: 800px; margin: 0 auto 2rem; }
.bg-teal .three-cards__head h2 { color: #fff; }
.bg-teal .card { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.35); }
.bg-teal .card:hover { background: rgba(255,255,255,.15); box-shadow: none; border-color: rgba(255,255,255,.6); }
.bg-teal .card__body h3 { color: #fff; font-weight: 600; }
.bg-teal .card__body p { color: #fff; }
.bg-teal .card__link { color: var(--mint-cyan); }

/* News archive grid — reuses .card/.three-cards__grid from Three cards. */
.news-grid { padding-top: var(--section-pad); }
.news-grid__title { color: var(--teal); text-decoration: none; }
.news-grid__title:hover { text-decoration: underline; }
.news-grid .pagination,
.news-grid .nav-links { display: flex; justify-content: center; gap: .6rem; margin-top: 2.5rem; }
.news-grid .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: var(--radius-btn); border: 1.5px solid var(--coral); color: var(--teal); font-weight: 600; text-decoration: none; }
.news-grid .page-numbers.current { background: var(--coral); }
.news-grid .page-numbers:hover:not(.current) { background: rgba(242,174,156,.15); }

/* ==========================================================================
   Process steps
   ========================================================================== */
.process-steps__head { text-align: center; max-width: 620px; margin: 0 auto 2.2rem; }
.process-steps__grid { display: grid; grid-template-columns: repeat(var(--step-count, 3), 1fr); gap: 1.2rem; }
.process-step {
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	border-radius: var(--radius-md); padding: 1.6rem 1.4rem; text-align: center;
}
.process-step__icon { display: inline-flex; color: var(--coral); margin-bottom: .8rem; font-size: 2.6rem; }
.process-step h3 { font-size: 1.35rem; color: #fff; margin-bottom: .5em; }
.process-step p { font-size: .95rem; color: #fff; margin: 0; }
/* Light backgrounds: solid cards with dark text instead of the glassy teal look. */
.process-steps:not(.bg-teal) .process-step { background: #fff; border-color: rgba(18,112,117,.15); backdrop-filter: none; -webkit-backdrop-filter: none; }
.process-steps.bg-white .process-step { background: var(--mint-pale); }
.process-steps:not(.bg-teal) .process-step h3 { color: var(--teal); }
.process-steps:not(.bg-teal) .process-step p { color: var(--ink-soft); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats__grid { display: grid; grid-template-columns: repeat(var(--stat-count, 4), 1fr); gap: 1.5rem; text-align: center; }
.stat__icon { display: block; margin-bottom: .5rem; font-size: 2.3rem; }
.stat:nth-child(odd) .stat__icon { color: var(--mint-bright); }
.stat:nth-child(even) .stat__icon { color: var(--coral); }
.stat__number { display: block; font-family: var(--font-heading); font-size: clamp(2.4rem, 4vw, 4rem); letter-spacing: -1px; color: var(--ink); font-weight: 600; }
.stat__label { color: var(--ink-soft); font-size: .9rem; }
.bg-teal .stat__number { color: #fff; }
.bg-teal .stat__label { color: rgba(255,255,255,.85); }
/* Readable text on the darker backgrounds for the remaining components. */
.bg-teal .highlight-box { color: #fff; }
.bg-coral .highlight-box { border-color: #fff; background: rgba(255,255,255,.2); }
.bg-coral .highlight-box:hover { background: var(--teal); color: #fff; }
.bg-teal .team-card__role { color: rgba(255,255,255,.8); }

/* ==========================================================================
   Logos
   ========================================================================== */
.logos-section__head { text-align: center; max-width: 750px; margin: 0 auto 2.2rem; }
.logos-section__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.4rem 3rem; }
.logos-section__more { margin-top: 2.4rem; text-align: center; }
.logos-section__item img { max-height: 110px; max-width: 200px; width: auto; height: auto; }

/* Scrolling logo loop. The track holds two identical sets and slides left by
   one set's width, then repeats, so the motion never visibly resets. Slow and
   linear to keep it calm; pauses on hover or keyboard focus; edges fade out. */
.logo-marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	        mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee__track { display: flex; width: max-content; animation: logo-marquee var(--marquee-duration, 60s) linear infinite; }
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__set { display: flex; align-items: center; gap: 4rem; padding-right: 4rem; }
.logo-marquee .logos-section__item { flex: none; display: flex; align-items: center; height: 90px; }
.logo-marquee .logos-section__item img { max-width: none; max-height: 72px; height: auto; object-fit: contain; }
@keyframes logo-marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) {
	.logo-marquee__set { gap: 2.5rem; padding-right: 2.5rem; }
	.logo-marquee .logos-section__item img { max-height: 54px; }
}
/* No motion for people who've asked for less: show the logos as a scrollable strip instead. */
@media (prefers-reduced-motion: reduce) {
	.logo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.logo-marquee__track { animation: none; }
	.logo-marquee__set[aria-hidden="true"] { display: none; }
}

/* Logo grid — uniform white tiles so mismatched logo shapes still line up. */
.logo-grid__head { text-align: center; max-width: 750px; margin: 0 auto 2.2rem; }
/* Flex rather than grid so an incomplete last row sits centred. */
.logo-grid__list {
	--logo-cols: 4; --logo-gap: 1.5rem;
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: var(--logo-gap);
}
.logo-grid__list > li { flex: 0 0 calc((100% - (var(--logo-cols) - 1) * var(--logo-gap)) / var(--logo-cols)); }
.logo-grid__tile {
	display: flex; align-items: center; justify-content: center;
	height: 160px; padding: 1.25rem; background: #fff;
	border: 1px solid rgba(18,112,117,.12); border-radius: var(--radius-md);
	transition: box-shadow .2s ease, transform .2s ease;
}
.bg-white .logo-grid__tile { border: 2px solid rgba(18,112,117,.5); }
a.logo-grid__tile:hover, a.logo-grid__tile:focus-visible { box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
/* Width is set per logo inline (see wren_logo_width()); this caps height. */
.logo-grid__tile img { max-width: 100%; max-height: 80px; height: auto; object-fit: contain; }
.logo-grid__name { font-weight: 600; color: var(--teal); text-align: center; line-height: 1.3; }

/* Image links — portrait photo tiles with the title over a dark fade. */
.image-links__heading { text-align: center; margin-bottom: 2.2rem; }
.image-links__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.image-link {
	position: relative; display: flex; align-items: flex-end; justify-content: center;
	aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-md); background: var(--teal);
}
.image-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.image-link::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(to bottom, rgba(10,69,72,0), rgba(10,69,72,.85)); }
.image-link__title {
	position: relative; z-index: 1; padding: 1.5rem 1.2rem; text-align: center;
	font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem; line-height: 1.25; color: #fff;
}
.image-link__title .wfa { font-size: .9em; margin-left: .3rem; transition: transform .2s ease; }
.image-link:hover img, .image-link:focus-visible img { transform: scale(1.04); }
.image-link:hover .wfa, .image-link:focus-visible .wfa { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
	.image-link img, .image-link .wfa, .logo-grid__tile { transition: none; }
}
@media (max-width: 1024px) {
	.logo-grid__list { --logo-cols: 3; }
	.image-links__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.logo-grid__list { --logo-cols: 2; --logo-gap: 1rem; }
	.logo-grid__tile { height: 120px; padding: 1rem; }
	.logo-grid__tile img { max-height: 60px; }
	.image-links__grid { gap: 1rem; }
	.image-link__title { font-size: 1.05rem; padding: 1rem .8rem; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { overflow: visible; } /* arrows sit outside the card */
.testimonial-carousel { position: relative; margin-top: 1.6rem; }
.testimonial-carousel__track { position: relative; min-height: 360px; max-width: 1100px; margin-inline: auto; }
.testimonial-card {
	display: grid; grid-template-columns: 1fr; align-items: stretch;
	background: rgba(242,174,156,.1); border: 1.5px solid var(--coral); border-radius: var(--radius-lg);
	position: absolute; inset: 0; opacity: 0; pointer-events: none;
	min-height: 300px; height: 100%;
	transition: opacity .6s ease;
}
.testimonial-card.is-active { opacity: 1; pointer-events: auto; }
.testimonial-card__text { height: 100%; box-sizing: border-box; padding: clamp(2rem, 4vw, 3.2rem); padding-top: 3.5rem; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-inline: clamp(2rem, 9vw, 8rem); border-radius: var(--radius-lg); }
.testimonial-card__text p { font-family: var(--font-display); font-size: 1.55rem; color: var(--teal); line-height: 1.4; }
.testimonial-card__name { margin-top: .6rem; font-weight: 600; color: var(--coral-dark); letter-spacing: .04em; font-size: 1rem !important; text-transform: uppercase; }
/* Offsets in em so the marks stay tucked on the card corners at any size. */
.quote-mark { font-size: 5rem; color: var(--coral); line-height: 1; }
.quote-mark--top { position: absolute; top: -.45em; left: -.3em; }
.quote-mark--bottom { transform: rotate(180deg); }
.testimonial-carousel__quote-close { position: absolute; z-index: 2; right: -.3em; bottom: -.45em; }
.testimonial-carousel__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 30px; }
.testimonial-carousel__dot { width: 26px; height: 5px; border-radius: var(--radius-pill); background: var(--mint-mid); }
.testimonial-carousel__dot.is-active { background: var(--teal); }

.testimonial-carousel__arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border-radius: 50%;
	background: #fff; color: var(--teal); border: 1.5px solid var(--teal);
	display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
	opacity: 0; transition: opacity .2s ease, background-color .2s ease, color .2s ease;
	z-index: 3;
}
.testimonial-carousel:hover .testimonial-carousel__arrow { opacity: 1; }
.testimonial-carousel__arrow:hover { background: var(--teal); color: var(--cream); }
.testimonial-carousel__arrow--prev { left: -52px; }
.testimonial-carousel__arrow--next { right: -52px; }
@media (max-width: 1540px) {
	.testimonial-carousel__arrow--prev { left: 12px; }
	.testimonial-carousel__arrow--next { right: 12px; }
}
@media (max-width: 1300px) {
	.testimonial-carousel__arrow--prev { left: -8px; }
	.testimonial-carousel__arrow--next { right: -8px; }
}

/* ==========================================================================
   Video + text
   ========================================================================== */
.video-text__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.video-text__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--teal-deep); }
.video-text__media img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: relative; width: 100%; height: 100%; display: block; }
.video-play__icon {
	position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
	background: rgba(255,255,255,.92); border-radius: 50%; color: var(--teal);
	display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

/* ==========================================================================
   Donate CTA
   ========================================================================== */
.donate-cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.donate-cta h2 { color: var(--teal-deep); }
.donate-cta p { color: var(--teal-deep); }
.donate-widget { background: rgba(255,255,255,.5); border-radius: var(--radius-lg); padding: clamp(30px, 3vw, 40px); }
.donate-widget__toggle { display: flex; gap: .6rem; margin-bottom: 1rem; }
.donate-widget__toggle button { flex: 1; padding: .7rem; border: 1.5px solid var(--teal); border-radius: var(--radius-pill); font-weight: 600; color: var(--teal); }
.donate-widget__toggle button.is-active { background: var(--teal); color: #fff; }
.donate-widget__amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.donate-amount { padding: .7rem; border: 1.5px solid rgba(18,54,56,.25); border-radius: var(--radius-sm); font-weight: 600; background: rgba(255,255,255,.6); }
.donate-amount.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }
.donate-widget__custom { display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: var(--radius-sm); padding: .5rem .9rem; margin-bottom: 1rem; }
.donate-widget__custom input { border: none; background: none; font-size: 1.1rem; font-weight: 600; width: 100%; }
.donate-widget__custom input:focus { outline: none; }
.donate-widget__submit { display: flex; justify-content: center; width: 100%; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
/* Self-contained CTA strip — normal section spacing (not an overlapping
   floating card) so it drops in cleanly anywhere in the page flow: mid-page,
   at the bottom of a page, or before the footer. */
.newsletter { position: relative; padding: 0 } /* colour comes from its Background setting */
.bg-teal .newsletter__card h2 { color: #fff; }
.newsletter__card {
	padding: 2.2rem 2.8rem; max-width: 1400px; margin: 0 auto;
	display: flex; flex-wrap: initial; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
}
.newsletter__card h2 { margin: 0; color: var(--teal); font-size: 1.8rem; flex: 1 1 auto; }
.newsletter__form { display: flex; gap: .6rem; flex: 0 1 420px; min-width: 260px; }
.newsletter__form input { flex: 1; min-width: 0; border: none; border-radius: var(--radius-sm); padding: .8rem 1.2rem; font: inherit; }
.newsletter__form input:focus { outline: 2px solid var(--teal); }

/* ==========================================================================
   FAQ + contact
   ========================================================================== */
.faq-contact__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.contact-card { background: var(--coral); border-radius: var(--radius-lg); padding: 2rem; position: relative; overflow: hidden; }
.contact-card h3, .contact-card p { color: var(--teal); position: relative; z-index: 1; }
.contact-card__icon { color: #fff; display: block; font-size: 3.2rem; font-weight: 300; margin-bottom: 1rem; position: relative; z-index: 1; }
.contact-card .btn { position: relative; z-index: 1; }
.faq__list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { background: #fff; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; transition: border-color .2s ease; }
.faq-item:hover, .faq-item.is-open, .faq-item:has(.faq-item__question:focus-visible) { border-color: var(--coral); }
.bg-white .faq-item { background: var(--pink-pale); }
.faq-item__question {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	padding: 1.65rem 1.95rem; font-weight: 600; font-size: 1.1rem; text-align: left; color: var(--teal);
}
/* Open/close animates the answer's real height (grid row 0fr → 1fr), so
   opening and closing ease at the same pace with no pause or snap. */
.faq-item__chevron { transition: transform .4s cubic-bezier(.4, 0, .2, 1); color: var(--coral-dark);font-weight: 600; }
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.4, 0, .2, 1); }
.faq-item.is-open .faq-item__answer { grid-template-rows: 1fr; }
.faq-item__inner { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .3s ease; }
.faq-item.is-open .faq-item__inner { opacity: 1; transition-delay: .1s; }
.faq-item__answer p { padding: 0 1.95rem 1.65rem; margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) {
	.faq-item__answer, .faq-item__inner, .faq-item__chevron { transition: none; }
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-banner { position: relative; overflow: hidden; }
.cta-banner::before, .cta-banner::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.22); pointer-events: none; }
.cta-banner::before { width: 300px; height: 300px; top: -170px; left: 6%; }
.cta-banner::after { width: 190px; height: 190px; bottom: -110px; right: 22%; }
.bg-mint.cta-banner::before, .bg-mint.cta-banner::after { background: var(--mint-mid); }
.cta-banner__inner { position: relative; z-index: 1; }
.cta-banner h2 { margin: 0; color: var(--teal-deep); }
.bg-teal.cta-banner h2 { color: #fff; }
.cta-banner .btn { background: #fff; color: var(--teal-deep); border-color: #fff; }
.cta-banner .btn:hover { background: var(--mint-pale); border-color: var(--mint-pale); }

/* ==========================================================================
   Team grid & featured person
   ========================================================================== */
.team-grid__department { margin-top: 2.6rem; margin-bottom: 2.6rem;font-size:1.8rem;}
.team-grid__department:first-of-type { margin-top: 0; }
.team-grid__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 170px)); gap: 1.6rem; }
.team-card__photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; margin-bottom: .9rem; background: var(--mint-mid); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__placeholder { display: block; width: 100%; height: 100%; }
.team-card h3 { margin-bottom: .1em; font-size: 1.05rem; }
.team-card__role { color: var(--ink-soft); font-size: .88rem; margin-bottom: .4em; }
/* Four-column variant (e.g. trustees): larger 4:5 portraits. */
.team-grid--four .team-grid__grid { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.6rem; }
.team-grid--four .team-card__photo { aspect-ratio: 4 / 5; }
.team-grid--four .team-card h3 { font-size: 1.2rem; }
@media (max-width: 1024px) { .team-grid--four .team-grid__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .team-grid--four .team-grid__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; } }

.featured-person__inner, .team-bio__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.featured-person__photo img, .team-bio__photo img { width: 100%; aspect-ratio: .85; object-fit: cover; }

/* ==========================================================================
   Gravity Forms section (multi-step application form)
   ========================================================================== */
.gravity-form-section { position: relative; overflow: hidden; padding-top: clamp(4rem, 6vw, 5rem); }
.gravity-form-section__inner { position: relative; max-width: 720px; }
.gravity-form-section__head { position: relative; z-index: 1; }
.gravity-form-section__head h1 { max-width: 18ch; }
.gravity-form-section__form { position: relative; z-index: 1; margin-top: 2rem; }

/* Split variant — side image + heading/form, e.g. Contact Us. */
.gravity-form-section--split { padding-bottom: clamp(4rem, 8vw, 7rem); }
.gravity-form-section--split .gravity-form-section__inner { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: stretch; }
.gravity-form-section--split .gravity-form-section__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.gravity-form-section--split .gravity-form-section__content h1 { max-width: 18ch; }
.gravity-form-section--split .gravity-form-section__form { margin-top: 1.6rem; }

/* Decorative blobs bleed to the true browser edge — one coral, upper left,
   one light mint, lower right (matches Figma). */
.gravity-form-section .blob--coral-soft { top: -8%; left: 0; transform: translateX(-45%); width: 420px; }
.gravity-form-section .blob--mint { top: 620px; right: 0; left: auto; transform: translateX(45%); width: 320px; }

.gform_wrapper.gravity-theme,
.gravity-form-section .gform_wrapper { font-family: var(--font-body); }
.gravity-form-section .gfield_label { font-weight: 600; color: var(--teal); font-family: var(--font-body); }
.gravity-form-section .gfield_required { font-style: normal !important; color: var(--coral) !important; font-weight: 600 !important; }
.gravity-form-section input[type=text],
.gravity-form-section input[type=email],
.gravity-form-section input[type=tel],
.gravity-form-section input[type=number],
.gravity-form-section select,
.gravity-form-section textarea {
	width: 100% !important;
	box-sizing: border-box !important;
	border: 1.5px solid rgba(18,54,56,.2) !important;
	border-radius: var(--radius-sm) !important;
	padding: .8rem 1rem !important;
	font-family: var(--font-body) !important;
}
.gravity-form-section textarea { height: 8rem !important; }
.gravity-form-section .gform_button,
.gravity-form-section .gform_next_button,
.gravity-form-section .gform_previous_button {
	background: var(--coral) !important; color: var(--teal-deep) !important;
	border: 1.5px solid var(--coral) !important; border-radius: var(--radius-btn) !important;
	padding: .85rem 1.6rem !important; font-weight: 600 !important; font-size: .95rem !important;
	font-family: var(--font-body) !important; transition: transform .15s ease, background-color .15s ease !important;
}
.gravity-form-section .gform_button:hover,
.gravity-form-section .gform_next_button:hover { background: var(--coral-light) !important; border-color: var(--coral-light) !important; transform: translateY(-2px); }
.gravity-form-section .gform_previous_button { background: transparent !important; border: 1.5px solid var(--teal) !important; color: var(--teal) !important; }
.gravity-form-section .gform_previous_button:hover { background: var(--teal) !important; color: #fff !important; }
.gravity-form-section .gf_progressbar_wrapper .gf_progressbar_percentage { background: var(--teal) !important; }
.gravity-form-section .gf_step_number { background: transparent !important; border-color: rgba(18,112,117,.35) !important; color: rgba(18,112,117,.6) !important; }
.gravity-form-section .gf_step_active .gf_step_number { background: var(--mint-mid) !important; border-color: var(--mint-mid) !important; color: var(--teal) !important; }
.gravity-form-section .gf_step_active .gf_step_label { color: var(--teal) !important; }
.gravity-form-section .gf_step_completed .gf_step_number::before { background: var(--teal) !important; border-color: var(--teal) !important; }
.gravity-form-section .gfield_radio { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.gravity-form-section .ginput_container_radio label { font-weight: 500; }

/* Enhanced UI (Chosen) multi-select — e.g. autoimmune diagnosis picker */
.gravity-form-section .chosen-container { width: 100% !important; font-family: var(--font-body); }
.gravity-form-section .chosen-container .chosen-choices {
	border: 1.5px solid rgba(18,54,56,.2) !important; border-radius: var(--radius-sm) !important;
	padding: .5rem .6rem; background: #fff; min-height: 3.1rem; box-shadow: none;
}
.gravity-form-section .chosen-container-active .chosen-choices { border-color: var(--coral) !important; }
.gravity-form-section .chosen-container .chosen-choices li.search-field input[type=text] {
	font-family: var(--font-body) !important; font-size: 1rem; padding: .3rem .2rem; height: auto;
}
.gravity-form-section .chosen-container .chosen-choices li.search-choice {
	background: rgba(242,174,156,.15); border: 1.5px solid var(--coral); color: var(--teal);
	border-radius: var(--radius-pill); padding: .3rem 1.8rem .3rem .8rem; font-weight: 600; font-size: .88rem;
}
.gravity-form-section .chosen-container .chosen-drop {
	border: 1.5px solid var(--coral); border-radius: var(--radius-sm); box-shadow: 0 12px 30px rgba(18,112,117,.15);
	margin-top: .4rem;
}
.gravity-form-section .chosen-container .chosen-results li.highlighted { background: var(--coral); color: var(--teal-deep); }
.gravity-form-section .chosen-container .chosen-results li.result-selected { display: none; }

/* Statement above the autoimmune disease list */
.disease-statement { display: flex; gap: .8rem; margin-bottom: 1.2rem; padding: clamp(24px, 2.5vw, 32px); background: var(--mint-pale); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); color: var(--ink); font-size: .95rem; line-height: 1.5; }
.disease-statement .wfa { color: var(--teal); font-size: 1.2rem; line-height: 1.3; }
.disease-statement p { margin: 0 0 .6em; }
.disease-statement p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Team bio single
   ========================================================================== */
.team-bio__content .btn { margin-top: 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--teal); color: rgba(255,255,255,.85); position: relative; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding: clamp(3rem, 6vw, 5rem) var(--gutter) 3rem; }
.site-footer .site-logo__text { color: #fff; }
.site-footer__email { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; color: #fff; font-weight: 500; }
.site-footer__email:hover, .site-footer__email:focus-visible { color: var(--mint-cyan); text-decoration: underline; }
.social-links { display: flex; gap: .7rem; margin: 1.3rem 0 2rem 0; }
.social-links__item {
	width: 43px; height: 43px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.2rem;
}
.social-links__item:hover { background: #fff; color: var(--teal); }
.footer-badges { display: flex; align-items: center; gap: 1.6rem; }
.footer-badge { height: 58px; width: auto; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 1.15rem; margin-bottom: 1rem; }
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a:hover { color: #fff; }
.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,.15); padding: 1.3rem var(--gutter);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
	font-size: .9rem; color: rgba(255,255,255,.7);
}
.site-footer__credit-link:hover { color: #fff; }

/* ==========================================================================
   Story card (shared by the stories slider and stories feed)
   ========================================================================== */
.story-card { display: block; text-decoration: none; color: inherit; }
.story-card__media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: .85; margin-bottom: .9rem; background: var(--mint-mid); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.story-card:hover .story-card__media img { transform: scale(1.04); }
.story-card__quote { font-size: 1.2rem; font-style: normal; color: var(--ink-soft); margin-bottom: .5rem; }
.story-card__name { font-weight: 600; color: var(--coral-dark); margin-bottom: .1em; }
.story-card__caption { font-size: .9rem; color: var(--ink-soft); }

/* ==========================================================================
   Stories slider (horizontal scroll-snap carousel)
   ========================================================================== */
.stories-slider__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.stories-slider__controls { display: flex; align-items: center; gap: 1rem; }
.stories-slider__view-all { font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.stories-slider__arrow {
	width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto;
	background: var(--teal); color: #fff; border: 0;
	display: flex; align-items: center; justify-content: center; font-size: 1rem;
	transition: background-color .2s ease, color .2s ease;
}
.stories-slider__arrow:hover { background: var(--teal-deep); }
.stories-slider__track {
	display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x proximity;
	padding-bottom: .5rem; scrollbar-width: none;
	/* scroll-padding (not just padding) tells the snap algorithm this inset
	   is safe space, otherwise scroll-snap-align:start on the first card
	   auto-scrolls past the lead-in padding on load. */
	padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
	padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
	scroll-padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
	scroll-padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
}
.stories-slider__track::-webkit-scrollbar { display: none; }
.stories-slider__track .story-card { flex: 0 0 auto; width: 300px; scroll-snap-align: start; }

/* ==========================================================================
   Stories feed (filterable grid)
   ========================================================================== */
.stories-feed__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.6rem 0 2.4rem; }
.stories-feed__filter {
	padding: .5rem 1.1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--coral);
	background: transparent; color: var(--teal); font-weight: 600; font-size: .88rem;
	transition: background-color .2s ease, color .2s ease;
}
.stories-feed__filter:hover { background: rgba(242,174,156,.15); }
.stories-feed__filter.is-active { background: var(--coral); color: var(--teal-deep); }
.stories-feed__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem 1.4rem; }
.stories-feed__grid .story-card[hidden] { display: none; }
.stories-feed__empty { text-align: center; color: var(--ink-soft); margin-top: 2rem; }

/* ==========================================================================
   Donate tiers (big coral circles + amount)
   ========================================================================== */
.donate-tiers__head { max-width: 640px; margin: 0 auto 2.4rem; text-align: center; }
.donate-tiers__head p { color: var(--ink-soft); }
.donate-tiers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.4rem; }
.donate-tier { text-align: center; }
.donate-tier__circle {
	width: 130px; height: 130px; margin: 0 auto 1.2rem; border-radius: 50%;
	background: var(--coral); display: flex; align-items: center; justify-content: center;
}
.donate-tier__circle span { font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; color: var(--teal-deep); }
.donate-tier__description { color: var(--ink-soft); font-size: .95rem; max-width: 22ch; margin: 0 auto; }
.bg-teal .donate-tier__description,
.bg-coral .donate-tier__description { color: rgba(255,255,255,.9); }

/* ==========================================================================
   Scroll-reveal (JS toggles .is-visible; no-op if reduced motion)
   ========================================================================== */
/* Element-level reveals. main.js tags elements with [data-reveal] (and a
   --reveal-delay for staggered grids), then adds .is-revealed on scroll.
   Nothing is hidden unless JS ran and motion is allowed (html.has-motion). */
@media (prefers-reduced-motion: no-preference) {
	.has-motion [data-reveal] {
		opacity: 0; transform: translateY(28px);
		transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
		transition-delay: var(--reveal-delay, 0s);
	}
	.has-motion [data-reveal="right"] { transform: translateX(48px); }
	.has-motion [data-reveal].is-revealed { opacity: 1; transform: none; }

	/* Plain fade (hero photos). */
	.has-motion [data-reveal="fade"] { transform: none; transition: opacity 1.1s ease; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.highlight-boxes__grid { grid-template-columns: repeat(2, 1fr); }
	.stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
	.three-cards__grid { grid-template-columns: repeat(2, 1fr); }
	.process-steps__grid { grid-template-columns: repeat(2, 1fr); }
	.stories-feed__grid { grid-template-columns: repeat(3, 1fr); }
	.donate-tiers__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Header switches to the mobile menu below 1100px (the larger type needs the room). */
@media (max-width: 1100px) {
	.primary-nav { display: none; }
	.site-header__actions .nav-donate-btn { display: none; }
	.nav-toggle { display: inline-flex; }
	.mobile-nav {
		display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem;
		background: #fff; border-top: 1px solid rgba(18,54,56,.08);
		/* The header is sticky, so a long menu must scroll inside itself. */
		max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain;
	}
	.mobile-nav:not(.is-open) { display: none; }
	.mobile-nav__list { display: flex; flex-direction: column; gap: 1rem; }
	.mobile-nav__list a { font-weight: 600; font-size: 1.05rem; }

	.mobile-nav__list .menu-item-has-children { flex-wrap: wrap; }
	.mobile-nav__list .submenu-toggle { width: 2.2rem; height: 2.2rem; font-size: .8rem; margin-left: auto; }
	.mobile-nav__list .sub-menu {
		flex: 0 0 100%; max-height: 0; overflow: hidden;
		transition: max-height .25s ease; padding-left: 1rem;
	}
	.mobile-nav__list .menu-item-has-children.submenu-open > .sub-menu { max-height: 400px; margin-top: .8rem; }
	.mobile-nav__list .sub-menu li + li { margin-top: .7rem; }
	.mobile-nav__list .sub-menu a { font-weight: 600; font-size: .95rem; }
}

@media (max-width: 860px) {
	.hero__inner, .hero--bg .hero__inner { grid-template-columns: 1fr; text-align: center; }
	.hero__content { order: 1; }
	.hero__media { order: 2; max-width: 420px; margin: 0 auto; }
	.btn-row { justify-content: center; }

	.hero--split-bleed .hero__content { max-width: none; }
	.hero--split-bleed .hero__media--bleed { position: static; width: 100%; height: 260px; }
	.hero--split-bleed .hero__media--bleed .hero__media-image { height: 100%; }
	.hero__media--bleed::before { display: none; }

	.hero--icon .hero__inner { padding-bottom: calc(clamp(2rem, 5vw, 3rem) + var(--wave-gap)); }
	.hero--icon .hero__media--icon { position: static; min-height: 0; }
	.hero--icon .hero__icon-image { position: static; transform: none; width: 70%; margin: 0 auto; }

	.text-image__inner,
	.text-image--left .text-image__inner,
	.video-text__inner,
	.donate-cta__inner,
	.faq-contact__inner,
	.featured-person__inner,
	.team-bio__inner,
	.gravity-form-section--split .gravity-form-section__inner {
		grid-template-columns: 1fr;
	}
	.text-image--left .text-image__media,
	.text-image--left .text-image__content,
	.text-image--right .text-image__media,
	.text-image--right .text-image__content { order: initial; }


	.site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
	.highlight-boxes__grid,
	.stats__grid,
	.three-cards__grid,
	.process-steps__grid { grid-template-columns: 1fr; }
	.stories-feed__grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem .9rem; }
	.stories-slider__track .story-card { width: 230px; }
	.stories-slider__head { align-items: flex-start; }
	.donate-widget__amounts { grid-template-columns: repeat(3, 1fr); }
	.newsletter__card { flex-direction: column; flex-wrap: wrap; align-items: stretch; text-align: center; padding: 1.8rem; }
	.newsletter__card h2 { white-space: normal; }
	.newsletter__form { max-width: none; flex-basis: auto; min-width: 0; width: 100%; }
	.site-footer__top { grid-template-columns: 1fr; }
	.cta-banner__inner { flex-direction: column; align-items: flex-start; }
	.testimonial-card__text { padding: 3.5rem 1.5rem 2rem; }
	/* Smaller marks, pulled in so they don't push past the screen edge. */
	.quote-mark { font-size: 4.25rem; }
	.quote-mark--top { left: -.15em; }
	.testimonial-carousel__quote-close { right: -.15em; }
	.testimonial-card__text p { font-size: 1.15rem; }
	.team-grid__grid { grid-template-columns: repeat(2, 1fr); }
	h1 { font-size: 2rem; }
}

/* ==========================================================================
   Design refresh (Nov 2026): punchier, rounder, roomier
   ========================================================================== */
/* Rounder media everywhere. */
.text-image__image, .video-text__media, .card, .featured-person__photo img,
.team-bio__photo img, .gravity-form-section--split .gravity-form-section__media img { border-radius: var(--radius-lg); }
.photo-collage img { border-radius: var(--radius-md); }
.story-card__media, .team-card__photo, .image-link { border-radius: var(--radius-lg); }

/* Buttons: pill shaped, a little chunkier, with a soft lift on hover. */
.btn { padding: .9rem 1.8rem; font-weight: 600; box-shadow: 0 0 0 rgba(10,69,72,0); transition: transform .2s ease, box-shadow .2s ease, background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(10,69,72,.16); }
.nav-donate-btn { border-radius: var(--radius-pill); }

/* Cards: softer fill, bigger lift. */
.card { border-width: 2px; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(18,112,117,.14); }
.highlight-box { border-radius: var(--radius-md); padding: 1.6rem 1.4rem; }
.highlight-box:hover { transform: translateY(-4px); }
.highlight-box { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.process-step { border-radius: var(--radius-lg); padding: 2rem 1.6rem; }
.process-step__icon { width: 4.2rem; height: 4.2rem; align-items: center; justify-content: center; border-radius: 50%; background: rgba(242,174,156,.18); font-size: 2rem; }

/* Bigger, bolder stats. */
.stat__number { font-weight: 600; }

/* FAQ and form fields a touch rounder. */
.faq-item { border-radius: var(--radius-md); }
.contact-card { border-radius: var(--radius-lg); }
.newsletter__form input { border-radius: var(--radius-pill); padding-inline: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
	.btn, .card, .highlight-box { transition: none; }
	.btn:hover, .card:hover, .highlight-box:hover { transform: none; }
}

/* Bulleted lists inside text blocks: coral tick badges, roomy and readable. */
.prose ul { display: grid; gap: .8rem; margin: 1.4rem 0 1.6rem; }
.prose ul li { position: relative; padding-left: 2.6rem; font-weight: 600; font-size: 1.1rem; color: var(--teal-deep); line-height: 1.4; min-height: 1.8rem; display: flex; align-items: center; }
.prose ul li::before {
	content: '\f00c'; font-family: 'Font Awesome 6 Pro Solid'; font-weight: 900; font-size: .8rem;
	position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--coral); color: var(--teal-deep);
	display: flex; align-items: center; justify-content: center;
}
.bg-teal .prose ul li { color: #fff; }

/* Card icons (Font Awesome Pro solid codepoints). */
.wfa-ic-listen::before { content: '\f2a2'; }
.wfa-ic-chat::before { content: '\f086'; }
.wfa-ic-care::before { content: '\f4be'; }
.wfa-ic-wellbeing::before { content: '\f5bb'; }
.wfa-ic-idea::before { content: '\f0eb'; }
.wfa-ic-people::before { content: '\f0c0'; }
.wfa-ic-run::before { content: '\f70c'; }
.wfa-ic-celebrate::before { content: '\f1fd'; }
.wfa-ic-gift::before { content: '\f06b'; }
.wfa-ic-calendar::before { content: '\f073'; }
.wfa-ic-work::before { content: '\f0b1'; }
.wfa-ic-star::before { content: '\f005'; }
.wfa-ic-trophy::before { content: '\f091'; }
.wfa-ic-grow::before { content: '\f4d8'; }
.wfa-ic-money::before { content: '\f154'; }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 4.2rem; height: 4.2rem; margin: 1.8rem 1.8rem 0; border-radius: 50%;
	background: var(--coral); color: var(--teal-deep); font-size: 1.7rem;
}
.bg-teal .card__icon { background: var(--coral); color: var(--teal-deep); }
.card:has(.card__icon) .card__body { padding-top: 1.2rem; }

/* ==========================================================================
   Video testimonials slider
   ========================================================================== */
.video-testimonials__head { max-width: 760px; margin-bottom: 2.2rem; }
.video-testimonial { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.video-testimonial[hidden] { display: none; }
.video-testimonial.is-active { animation: vts-in .6s ease both; }
@keyframes vts-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.video-testimonial__media { position: relative; aspect-ratio: 9 / 16; max-height: 78vh; border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-deep); box-shadow: 0 24px 50px rgba(10,69,72,.18); }
.video-testimonial__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-testimonial__play {
	position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
	background: var(--coral); color: var(--teal-deep); font-size: 1.6rem; padding-left: .25rem;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 10px rgba(242,174,156,.35); transition: transform .2s ease, box-shadow .2s ease;
}
.video-testimonial__play:hover { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(242,174,156,.3); }
.video-testimonial.is-playing .video-testimonial__play { opacity: 0; pointer-events: none; }
.video-testimonial__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin-bottom: 1rem; }
.video-testimonial__name { font-weight: 600; color: var(--coral-dark); text-transform: uppercase; letter-spacing: .06em; }
.video-testimonial__role { color: var(--ink-soft); }
.video-testimonial__quote { margin: 0 0 2rem; }
.video-testimonial__quote p { font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.8rem); line-height: 1.2; color: var(--teal); margin: 0; }
.bg-teal .video-testimonial__quote p { color: #fff; }
.video-testimonials__controls { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.4rem; }
.video-testimonials__progress { flex: 1; height: 4px; border-radius: 4px; background: var(--mint-mid); overflow: hidden; }
.video-testimonials__progress-fill { display: block; height: 100%; background: var(--teal); border-radius: 4px; transition: width .4s ease, margin-left .4s ease; }
.video-testimonials__buttons { display: flex; gap: .6rem; }
.video-testimonials__arrow {
	width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal);
	display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease;
}
.video-testimonials__arrow:hover { background: var(--teal); color: #fff; }
@media (max-width: 860px) {
	.video-testimonial { grid-template-columns: 1fr; }
	.video-testimonial__media { max-width: 360px; width: 100%; margin-inline: auto; }
	.video-testimonial__text { text-align: center; }
	.video-testimonial__meta { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .video-testimonial.is-active { animation: none; } }

/* Icon hero (Volunteer): the hands illustration sits on the bottom edge of
   the hero, tucked under the wave, instead of floating mid-panel. */
@media (min-width: 861px) {
	.hero--icon .hero__inner { align-items: end; padding-bottom: 0; }
	.hero--icon .hero__content { align-self: center; padding-bottom: calc(clamp(1.25rem, 2vw, 2rem) + var(--wave-gap) + 40px); }
	.hero--icon .hero__media--icon { min-height: 0; align-self: end; }
	.hero--icon .hero__icon-image { position: relative; top: auto; left: auto; transform: none; width: min(85%, 560px); margin: 0 auto -24px; display: block; }
	.hero--icon > .wave-divider { position: relative; z-index: 2; margin-top: -40px; }
}
/* With a photo, the icon badge overlaps the bottom edge of the image. */
.card__media + .card__icon { position: relative; z-index: 1; margin-top: -2.1rem; box-shadow: 0 0 0 5px #fff; }
.bg-teal .card__media + .card__icon { box-shadow: 0 0 0 5px var(--teal); }

/* Team slider (About page) */
.team-slide { flex: 0 0 auto; width: 260px; scroll-snap-align: start; }
.team-slide__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--mint-mid); margin-bottom: .9rem; }
.team-slide__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.team-slide:hover .team-slide__photo img { transform: scale(1.04); }
.team-slide__name { font-weight: 600; color: var(--teal); margin: 0; font-size: 1.1rem; }
.team-slide__role { color: var(--ink-soft); font-size: .9rem; margin: .1rem 0 0; }
@media (max-width: 600px) { .team-slide { width: 210px; } }

/* Team page: bigger portraits, names and breathing room. */
.team-grid__grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2.6rem 2rem; }
.team-grid__department { font-size: clamp(1.6rem, 1.5vw + 1rem, 2.1rem); margin-top: 4rem; margin-bottom: 1.6rem; }
.team-card__photo { margin-bottom: 1rem; }
.team-card h3 { font-size: 1.25rem; }
.team-card__role { font-size: .95rem; }
@media (max-width: 600px) { .team-grid__grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; } }

/* Minimal hero: compact band for pages with no hero photo (Partners, Trustees). */
.hero--minimal .hero__inner { grid-template-columns: 1fr; padding-bottom: calc(clamp(1.25rem, 2vw, 2rem) + var(--wave-gap)); padding-top: 0; }
.hero--minimal { padding-top: clamp(1.75rem, 3vw, 2.75rem); }
.hero--minimal .hero__content { max-width: 820px; }
.hero--minimal .hero__heading { font-size: clamp(2.2rem, 3.5vw + 1rem, 3.4rem); }

/* Stories: squarer, wider cards so photos aren't cropped tight. */
.story-card__media { aspect-ratio: 1; }
.stories-feed__grid { grid-template-columns: repeat(3, 1fr); gap: 2.4rem 1.8rem; }
.stories-slider__track .story-card { width: 340px; }
.story-card__quote { font-family: var(--font-display); font-size: 1.3rem; color: var(--teal); line-height: 1.3; }
@media (max-width: 1024px) { .stories-feed__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stories-feed__grid { grid-template-columns: 1fr; } .stories-slider__track .story-card { width: 260px; } }

/* ==========================================================================
   Forms: larger, roomier, accessible, custom dropdown arrow, no blue focus
   ========================================================================== */
.gravity-form-section .gform_wrapper.gravity-theme .gform_fields { row-gap: 1.8rem !important; }
.gravity-form-section .gfield_label, .gravity-form-section .gform-field-label--type-sub { font-size: 1.05rem !important; color: var(--teal-deep) !important; }
.gravity-form-section legend.gfield_label { margin-bottom: .6rem !important; }
.gravity-form-section .gfield_description, .gravity-form-section .gform-field-label--type-sub { color: var(--ink-soft) !important; }
.gravity-form-section input[type=text],
.gravity-form-section input[type=email],
.gravity-form-section input[type=tel],
.gravity-form-section input[type=number],
.gravity-form-section select,
.gravity-form-section textarea {
	font-size: 1.05rem !important; padding: 1rem 1.2rem !important; min-height: 3.4rem;
	border: 2px solid rgba(18,112,117,.35) !important; border-radius: var(--radius-md) !important;
	background-color: #fff !important; color: var(--ink) !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.gravity-form-section select {
	-webkit-appearance: none !important; appearance: none !important; cursor: pointer;
	padding-right: 3.2rem !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%23127075' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: right 1.2rem center !important; background-size: 16px 10px !important;
}
.gravity-form-section select::-ms-expand { display: none; }
/* Replace the browser's blue focus glow with a clear coral ring. */
.gravity-form-section input:focus, .gravity-form-section select:focus, .gravity-form-section textarea:focus {
	outline: none !important; border-color: var(--coral-dark) !important; box-shadow: 0 0 0 4px rgba(242,174,156,.45) !important;
}
.gravity-form-section select option:checked { background: var(--coral-soft); color: var(--teal-deep); }
.gravity-form-section input[type=radio], .gravity-form-section input[type=checkbox] { accent-color: var(--teal); width: 1.25rem; height: 1.25rem; }
.gravity-form-section .ginput_container_radio label, .gravity-form-section .ginput_container_checkbox label { font-size: 1.05rem; }
.gravity-form-section .gfield_radio { gap: .8rem 2rem; }
.gravity-form-section .gform_button, .gravity-form-section .gform_next_button, .gravity-form-section .gform_previous_button {
	border-radius: var(--radius-pill) !important; padding: 1rem 2rem !important; font-size: 1.05rem !important; font-weight: 600 !important;
}
.gravity-form-section .gform_button:focus-visible, .gravity-form-section .gform_next_button:focus-visible, .gravity-form-section .gform_previous_button:focus-visible { outline: 3px solid var(--teal) !important; outline-offset: 3px; }
.gravity-form-section .gfield_validation_message, .gravity-form-section .validation_message { color: #a3362a !important; background: #fdf1ee !important; border-color: #e2917c !important; }
.gravity-form-section__inner { max-width: 820px; }

/* Newsletter strip with the Gravity Forms sign-up: email and button on one line. */
.newsletter__form .gform_wrapper { margin: 0 !important; width: 100%; }
.newsletter__form .gform_wrapper form { display: flex; gap: .6rem; align-items: flex-start; }
.newsletter__form .gform_wrapper .gform_body { flex: 1; min-width: 0; }
.newsletter__form .gform_wrapper .gform_fields { display: block !important; }
.newsletter__form .gform_wrapper input[type=email] {
	width: 100%; border: 2px solid transparent; border-radius: var(--radius-pill); padding: .85rem 1.4rem; font: inherit; background: #fff;
}
.newsletter__form .gform_wrapper input[type=email]:focus { outline: none; border-color: var(--coral-dark); box-shadow: 0 0 0 4px rgba(242,174,156,.45); }
.newsletter__form .gform_wrapper .gform_footer { margin: 0 !important; padding: 0 !important; }
.newsletter__form .gform_wrapper .gform_button {
	background: var(--teal); color: #fff; border: 0; border-radius: var(--radius-pill); padding: .9rem 1.8rem; font-weight: 600; cursor: pointer;
}
.newsletter__form .gform_wrapper .gform_button:hover { background: var(--teal-deep); }
.newsletter__form .gform_confirmation_message { font-weight: 600; color: var(--teal-deep); }
@media (max-width: 600px) { .newsletter__form .gform_wrapper form { flex-direction: column; align-items: stretch; } }

/* Video hero: the video fills the whole hero behind the text, on a loop. */
.hero--video { position: relative; overflow: hidden; }
.hero--video .hero__inner { grid-template-columns: 1fr; min-height: min(64vh, 640px); align-content: center; }
.hero--video .hero__content { max-width: 700px; }
.hero__bg-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--teal-deep); container-type: size; }
.hero__bg-video-poster, .hero__bg-video-file { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Cover-fit a 16:9 iframe at any hero size. */
.hero__bg-video-frame {
	position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
	width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
	transform: translate(-50%, -50%);
}
/* Readability: teal wash from the left behind the heading. */
.hero__bg-video::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(10,69,72,.85) 0%, rgba(10,69,72,.6) 40%, rgba(10,69,72,.15) 75%, rgba(10,69,72,0) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero__bg-video-frame, .hero__bg-video-file { display: none; } }

/* Text + image "Constrain image": show the whole graphic, no cropping. */
.text-image__image--contain { object-fit: contain; background: transparent; }

/* Hero titles ~3vw (plus a rem floor so they hold up on laptops), and more
   room for the text beside split photos. */
.hero__heading, .hero--minimal .hero__heading { font-size: clamp(2.3rem, 3vw + 1rem, 4.6rem); }
@media (min-width: 861px) {
	.hero--split-bleed .hero__content { max-width: min(780px, calc(56vw - var(--gutter) - 3rem)); }
}

/* Notice boxes (e.g. "It looks like Wren might not be able to…" in forms):
   roomy 30-40px padding, scaling with the screen. */
.wren-notice { background: #fdf1ee; border-radius: var(--radius-md); padding: clamp(30px, 3vw, 40px); color: var(--teal-deep); }
.wren-notice strong { display: block; font-size: 1.1rem; margin-bottom: .5rem; color: var(--teal-deep); }
.wren-notice p { margin: 0; }
.contact-card { padding: clamp(30px, 3vw, 40px); }
.gravity-form-section .gform_validation_errors { padding: clamp(24px, 2.5vw, 32px) !important; border-radius: var(--radius-md) !important; }

/* --------------------------------------------------------------------------
   Amends 16 Nov
   -------------------------------------------------------------------------- */
/* Image + text titles a touch smaller than the global h2. */
.text-image h2 { font-size: clamp(1.8rem, 2.2vw + 1rem, 2.9rem); }

/* Home hero illustration a little smaller so the hero sits shorter. */
@media (min-width: 861px) {
	.hero--split .hero__media { max-width: 520px; justify-self: end; width: 100%; }
}

/* The scroll-reveal transition replaced the box's own hover transition, so
   the coral fill snapped on instantly; keep both. */
@media (prefers-reduced-motion: no-preference) {
	.has-motion .highlight-box[data-reveal] {
		transition: opacity .7s ease var(--reveal-delay, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s), background-color .35s ease, color .35s ease;
	}
}

/* Wave seam: a hairline of the photo/teal could peek under the wave at some
   widths (sub-pixel rounding). Paint the hero's last few pixels in the wave's
   own colour, under the wave and over everything else. */
.hero:has(> .wave-divider) { --wave-fill: var(--cream); }
.hero:has(> .fill-mint) { --wave-fill: var(--mint-pale); }
.hero:has(> .fill-pink) { --wave-fill: var(--pink-pale); }
.hero:has(> .fill-coral) { --wave-fill: var(--coral); }
.hero:has(> .fill-teal) { --wave-fill: var(--teal); }
.hero > .wave-divider { z-index: 3; }
.hero:has(> .wave-divider)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--wave-fill); z-index: 2; pointer-events: none; }

/* News cards with no real photo: logo on a warm beige panel. */
.card__media--placeholder { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background: #f5ede1; }
.card__media--placeholder img { width: 52%; height: auto; aspect-ratio: auto; object-fit: contain; }
.card__media--placeholder a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.news-grid .card__media img { object-position: 50% 25%; }
/* Photos inside news/story articles. */
.prose figure { margin: 2rem 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }

/* --------------------------------------------------------------------------
   Amends 16 Nov (round 2)
   -------------------------------------------------------------------------- */
/* Cards: no drop shadow on hover; fill and border deepen to a richer coral.
   The scroll-reveal transition used to override the card's own, so state it
   with both. */
.card, .card:hover { box-shadow: none; }
.card:hover { background: rgba(242,174,156,.3); border-color: var(--coral-dark); }
.bg-pink .card:hover { background: rgba(242,174,156,.35); }
.bg-teal .card:hover { box-shadow: none; }
.card { transition: background-color .35s ease, border-color .35s ease, transform .35s ease; }
@media (prefers-reduced-motion: no-preference) {
	.has-motion .card[data-reveal] {
		transition: opacity .7s ease var(--reveal-delay, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s), background-color .35s ease, border-color .35s ease;
	}
}

/* Stats: bigger icons and numbers. */
.stat__icon { font-size: 3rem; }
.stat__number { font-size: clamp(3rem, 5.5vw, 5rem); line-height: 1.1; }

/* Testimonials: bigger quote; the track grows to fit the longest slide
   (slides stack in one grid cell rather than being absolutely positioned). */
.testimonials .section-heading { font-size: clamp(1.7rem, 1.8vw + 1rem, 2.5rem); }
.testimonial-carousel__track { display: grid; min-height: 0; }
.testimonial-card { position: relative; inset: auto; grid-area: 1 / 1; height: auto; min-height: 300px; }
.testimonial-carousel__track > .quote-mark { grid-area: 1 / 1; align-self: end; justify-self: end; }
.testimonial-card__text p { font-size: 2rem; }
@media (max-width: 600px) { .testimonial-card__text p { font-size: 1.3rem; } }
/* Poppins option for the quote, switched off for now:
.testimonial-card__text p:not(.testimonial-card__name) { font-family: var(--font-body); font-weight: 500; }
*/

/* Process steps on light sections: teal icon disc, white icon (coral tints
   clash with the mint cards). Teal sections keep their coral icons. */
.process-steps:not(.bg-teal) .process-step__icon { background: var(--teal); color: #fff; }

/* FAQs: faint coral outline that goes full strength on hover / open. */
.faq-item { border: 2px solid rgba(242,174,156,.25); }
.faq-item:hover, .faq-item.is-open, .faq-item:has(.faq-item__question:focus-visible) { border-color: var(--coral); }
.faq-item__answer a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-item__answer a:hover { color: var(--coral-dark); }
.contact-card h3 { font-size: 1.6rem; }
@media (min-width: 1025px) { .faq-contact__inner { grid-template-columns: 1.2fr .8fr; } }

/* Nav: the dropdown arrow turns coral with its link on hover / active. */
.primary-nav__list .menu-item-has-children:hover > .submenu-toggle,
.primary-nav__list .menu-item-has-children:focus-within > .submenu-toggle,
.primary-nav__list .current-menu-item > .submenu-toggle,
.primary-nav__list .current-menu-ancestor > .submenu-toggle,
.primary-nav__list .current-menu-parent > .submenu-toggle { color: var(--coral-dark); }

/* CTA banner titles a size down. */
.cta-banner h2 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.3rem); }

/* CTA banner, minimal style: a compact rounded box that sits inside the
   section above it (give that section "no space below"). */
.cta-banner--minimal { padding-top: 0; }
.cta-banner--minimal::before, .cta-banner--minimal::after { display: none; }
.cta-banner--minimal .cta-banner__inner {
	max-width: 880px; margin-inline: auto; padding: clamp(1.4rem, 2.5vw, 2rem) clamp(1.6rem, 3vw, 2.6rem);
	border-radius: var(--radius-lg); background: var(--coral);
}
.cta-banner--minimal h2 { font-size: clamp(1.25rem, .8vw + 1rem, 1.7rem); }
.cta-banner--minimal.bg-coral .cta-banner__inner { background: #fff; }

/* Gravity Forms: application form type bump (16-18px) and teal step markers. */
.gravity-form-section .gform_wrapper.gravity-theme { font-size: 1.05rem; }
.gravity-form-section .gform_wrapper.gravity-theme .gfield_description,
.gravity-form-section .gform_wrapper.gravity-theme .gfield_checkbox label,
.gravity-form-section .gform_wrapper.gravity-theme .gfield_radio label,
.gravity-form-section .gform_wrapper.gravity-theme .gform-field-label--type-inline,
.gravity-form-section .gform_wrapper.gravity-theme input,
.gravity-form-section .gform_wrapper.gravity-theme select,
.gravity-form-section .gform_wrapper.gravity-theme textarea { font-size: 1.05rem !important; }
.gravity-form-section .gform_wrapper.gravity-theme .gfield_label { font-size: 1.15rem !important; }
.gravity-form-section .gform_wrapper.gravity-theme .gf_step_label { font-size: 1.05rem; }
.gravity-form-section .gform_wrapper.gravity-theme .gf_step_number { border: 2px solid var(--teal) !important; color: var(--teal) !important; }
.gravity-form-section .gform_wrapper.gravity-theme .gf_step_active .gf_step_number { background: var(--teal) !important; border-color: var(--teal) !important; color: #fff !important; }
.gravity-form-section .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number::before { background: var(--teal) !important; border-color: var(--teal) !important; }
.gravity-form-section .gform_wrapper.gravity-theme .gf_step_completed .gf_step_number::after { color: #fff !important; }
.gravity-form-section__head h1 { max-width: 26ch; font-size: clamp(2rem, 2.6vw + .9rem, 3.5rem); }

/* Chosen multi-select (e.g. "Which event are you interested in?"): undo the
   generic text-input styling on its search box, and give the options list
   the site's type and colours. */
.gravity-form-section .chosen-container { font-size: 1.05rem; }
.gravity-form-section .chosen-container .chosen-choices { padding: .45rem .7rem !important; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; background-image: none !important; }
.gravity-form-section .chosen-container .chosen-choices li.search-field input[type=text] {
	border: 0 !important; box-shadow: none !important; padding: .35rem .2rem !important; margin: 0 !important;
	width: auto !important; min-width: 10rem; height: auto !important; border-radius: 0 !important; background: transparent !important; color: var(--ink);
}
.gravity-form-section .chosen-container .chosen-choices li.search-choice { margin: 0 !important; line-height: 1.3; }
.gravity-form-section .chosen-container .chosen-choices li.search-choice .search-choice-close { top: 50%; transform: translateY(-50%); right: .55rem; }
.gravity-form-section .chosen-container .chosen-drop { border-top: 1.5px solid var(--coral) !important; overflow: hidden; }
.gravity-form-section .chosen-container .chosen-results { margin: 0; padding: .35rem; max-height: 280px; color: var(--ink); }
.gravity-form-section .chosen-container .chosen-results li { padding: .7rem .9rem; border-radius: 8px; font-size: 1.05rem; line-height: 1.3; }
.gravity-form-section .chosen-container .chosen-results li.highlighted { background: var(--coral) !important; background-image: none !important; color: var(--teal-deep) !important; }
.gravity-form-section .chosen-container .chosen-results li.no-results { background: var(--pink-pale); }

/* Standard hero height on inner pages (Home keeps its own). */
@media (min-width: 861px) {
	.hero:not(.hero--split):not(.hero--video) { min-height: 500px; display: flex; flex-direction: column; }
	.hero:not(.hero--split):not(.hero--video) > .hero__inner { flex: 1 0 auto; align-content: center; min-height: 0; width: 100%; }
	.hero--bg .hero__inner { justify-content: center; }
	.hero:not(.hero--split):not(.hero--video) > .wave-divider { flex: none; }
}

/* Process step headings on a light background break less awkwardly. */
.process-steps__head h2, .text-image__content h2 { text-wrap: balance; }

/* Three cards, two-column option: full container width. */
.three-cards__grid--two { max-width: none; }
.three-cards__grid--six { grid-template-columns: repeat(3, 1fr); }

/* Video testimonials: centred heading, narrower slide, larger and squarer
   video (4:5), Vimeo iframes filling the frame. */
.video-testimonials__head { margin-inline: auto; text-align: center; }
.video-testimonials .wrap { max-width: 1240px; }
.video-testimonial { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.video-testimonial__media { aspect-ratio: 4 / 5; max-height: 80vh; }
.video-testimonial__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-testimonial__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-testimonials__head h2 { font-size: clamp(1.7rem, 1.8vw + 1rem, 2.5rem); }

/* Newsletter strip at the top of the footer, with a popup form. */
.footer-newsletter { border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-newsletter__inner { display: flex; align-items: center; justify-content: center; gap: 1.2rem 2rem; flex-wrap: wrap; padding-block: 2rem; text-align: center; }
.footer-newsletter__title { margin: 0; color: #fff; font-size: clamp(1.25rem, .9vw + 1rem, 1.7rem); }
.newsletter-modal { border: 0; padding: 0; border-radius: var(--radius-lg); background: #f5ede1; color: var(--ink); width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 30px 80px rgba(10,69,72,.35); }
.newsletter-modal::backdrop { background: rgba(10,69,72,.55); backdrop-filter: blur(2px); }
.newsletter-modal__inner { padding: clamp(1.8rem, 4vw, 2.8rem); }
.newsletter-modal__title { margin: 0 2.5rem 1.2rem 0; color: var(--teal); font-size: clamp(1.6rem, 1.2vw + 1rem, 2.1rem); }
.newsletter-modal__close { position: absolute; top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(18,112,117,.1); color: var(--teal); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.newsletter-modal__close:hover { background: var(--teal); color: #fff; }
.newsletter-modal .gform_wrapper.gravity-theme { margin: 0; font-family: var(--font-body); }
.newsletter-modal .gform_wrapper.gravity-theme .gfield_label { color: var(--teal-deep); font-weight: 600; font-size: 1rem; }
.newsletter-modal .gform_wrapper.gravity-theme input[type=text],
.newsletter-modal .gform_wrapper.gravity-theme input[type=email] { width: 100%; border: 1.5px solid rgba(18,54,56,.2); border-radius: var(--radius-sm); padding: .8rem 1rem; font: inherit; font-size: 1rem; background: #fff; }
.newsletter-modal .gform_wrapper.gravity-theme input:focus { outline: none; border-color: var(--coral-dark); box-shadow: 0 0 0 4px rgba(242,174,156,.45); }
.newsletter-modal .gform_wrapper.gravity-theme .ginput_container_consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; line-height: 1.45; }
.newsletter-modal .gform_wrapper.gravity-theme .ginput_container_consent input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--teal); flex: none; }
.newsletter-modal .gform_wrapper.gravity-theme .gfield_description { font-size: .88rem; color: var(--ink-soft); }
.newsletter-modal .gform_wrapper.gravity-theme .gfield_description a, .newsletter-modal .gform_wrapper.gravity-theme .ginput_container_consent a { color: var(--teal); }
.newsletter-modal .gform_wrapper.gravity-theme .gform_footer { padding-bottom: 0; margin-top: 1.2rem; }
.newsletter-modal .gform_wrapper.gravity-theme .gform_button { background: var(--coral); color: var(--teal-deep); border: 1.5px solid var(--coral); border-radius: var(--radius-btn); padding: .85rem 1.8rem; font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s ease; }
.newsletter-modal .gform_wrapper.gravity-theme .gform_button:hover { background: var(--coral-light); border-color: var(--coral-light); }
.newsletter-modal .gform_confirmation_message { font-weight: 600; color: var(--teal-deep); font-size: 1.1rem; }
.footer-newsletter__title { font-size: clamp(1.15rem, .55vw + .85rem, 1.45rem); }
@media (min-width: 1000px) { .footer-newsletter__inner { flex-wrap: nowrap; } .footer-newsletter__inner .btn { flex: none; } }
.newsletter-modal .gform_wrapper.gravity-theme .gfield--type-consent .gfield_description { border: 0; padding: .4rem 0 0 1.7rem; }
/* Inner-page heroes: content is centred in the 500px band, so trim the
   padding that used to set their height (long titles still fit). */
@media (min-width: 861px) {
	.hero:not(.hero--split):not(.hero--video) { padding-top: 1.5rem; }
	.hero:not(.hero--split):not(.hero--video):not(.hero--icon) > .hero__inner { padding-bottom: calc(1.5rem + var(--wave-gap)); }
	.hero--icon .hero__content { padding-bottom: calc(1rem + var(--wave-gap) + 40px); }
}
/* Application forms: pin to 17px body / 18px labels (rem scales up on wide screens). */
.gravity-form-section .gform_wrapper.gravity-theme,
.gravity-form-section .gform_wrapper.gravity-theme .gfield_description,
.gravity-form-section .gform_wrapper.gravity-theme .gfield_checkbox label,
.gravity-form-section .gform_wrapper.gravity-theme .gfield_radio label,
.gravity-form-section .gform_wrapper.gravity-theme .gform-field-label--type-inline,
.gravity-form-section .gform_wrapper.gravity-theme .gform-field-label--type-sub,
.gravity-form-section .gform_wrapper.gravity-theme .gf_step_label,
.gravity-form-section .gform_wrapper.gravity-theme input,
.gravity-form-section .gform_wrapper.gravity-theme select,
.gravity-form-section .gform_wrapper.gravity-theme textarea,
.gravity-form-section .chosen-container,
.gravity-form-section .chosen-container .chosen-results li { font-size: 17px !important; }
.gravity-form-section .gform_wrapper.gravity-theme .gfield_label { font-size: 18px !important; }
.cta-banner--minimal { padding-top: clamp(1.5rem, 3vw, 2.75rem); }
.cta-banner--minimal h2, .bg-teal.cta-banner--minimal h2 { color: var(--teal-deep); }
.gravity-form-section .chosen-container .chosen-results li { padding: .7rem .9rem !important; line-height: 1.35 !important; }
.gravity-form-section .chosen-container .chosen-drop { border-radius: var(--radius-sm) !important; margin-top: .4rem !important; }
/* Long image+text headings step down a size so they stay within ~3 lines. */
.text-image h2.text-image__heading--long { font-size: clamp(1.7rem, 1.6vw + 1rem, 2.5rem); }
.process-steps__head { max-width: 900px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Amends 16 Nov (round 3)
   -------------------------------------------------------------------------- */
/* Stats a touch smaller again. */
.stat__number { font-size: clamp(2.7rem, 5vw, 4.5rem); }

/* Newsletter popup on the light coral. */
.newsletter-modal { background: var(--coral-light); }

/* Donate tiers: bigger circles and figures; donate button under the intro. */
.donate-tier__circle { width: 150px; height: 150px; }
.donate-tier__circle span { font-size: 2.75rem; }
.donate-tiers__btn { margin-top: .6rem; }
.three-cards__more { text-align: center; margin-top: 2.4rem; }

/* Nav: colour fades teal to coral; underline grows left to right. */
.primary-nav__list a { position: relative; border-bottom: 0; transition: color .25s ease; }
.primary-nav__list > li > a::after {
	content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
	background: var(--coral); transform: scaleX(0); transform-origin: left center;
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.primary-nav__list > li > a:hover::after,
.primary-nav__list > li:hover > a::after,
.primary-nav__list > .current-menu-item > a::after,
.primary-nav__list > .current-menu-ancestor > a::after { transform: scaleX(1); }
.primary-nav__list > li:hover > a { color: var(--coral-dark); }
.submenu-toggle { transition: color .25s ease; }
@media (prefers-reduced-motion: reduce) { .primary-nav__list > li > a::after { transition: none; } }
/* Dropdown a shade lighter. */
.primary-nav__list .sub-menu { background: color-mix(in srgb, var(--coral-soft) 55%, #fff); }
.primary-nav__list .sub-menu a:hover,
.primary-nav__list .sub-menu .current-menu-item > a { background: var(--coral-light); }

/* Header Donate button: same type size as the nav links. */
.nav-donate-btn { font-size: 1rem; }
@media (max-width: 1360px) { .nav-donate-btn { font-size: .9rem; } }

/* Heroes: the wave and its gap sit under the text, so nudge content down to
   look optically centred. */
.hero { padding-top: calc(clamp(1.75rem, 2.75vw, 2.75rem) + 25px); }
@media (min-width: 861px) {
	.hero:not(.hero--split):not(.hero--video) { padding-top: calc(1.5rem + 25px); }
}

/* Heroes with no image: wider, centred text. */
.hero--no-media .hero__inner { grid-template-columns: 1fr; }
.hero--no-media .hero__content { max-width: 980px; margin-inline: auto; text-align: center; }
.hero--no-media .hero__subheading { margin-inline: auto; max-width: 62ch; }
.hero--no-media .btn-row { justify-content: center; }

/* CTA banner: text ~75% wide, button right, circles pinned to the top-left
   and bottom-right corners, a little shorter. */
.cta-banner:not(.cta-banner--minimal) { padding-block: clamp(2.4rem, 4vw, 3.6rem); }
.cta-banner:not(.cta-banner--minimal) .cta-banner__inner { flex-wrap: nowrap; align-items: center; }
.cta-banner:not(.cta-banner--minimal) h2 { flex: 0 1 75%; max-width: 75%; }
.cta-banner:not(.cta-banner--minimal) .cta-banner__inner .btn { flex: none; margin-left: auto; }
.cta-banner::before { width: 260px; height: 260px; top: -130px; left: -80px; }
.cta-banner::after { width: 200px; height: 200px; bottom: -100px; right: -60px; top: auto; }
@media (max-width: 860px) {
	.cta-banner:not(.cta-banner--minimal) .cta-banner__inner { flex-wrap: wrap; }
	.cta-banner:not(.cta-banner--minimal) h2 { max-width: none; flex-basis: 100%; }
	.cta-banner:not(.cta-banner--minimal) .cta-banner__inner .btn { margin-left: 0; }
}

/* Image + text, "stretch image": image fills the text column's height. */
@media (min-width: 861px) {
	.text-image--stretch .text-image__inner { align-items: stretch; }
	.text-image--stretch .text-image__media { display: flex; }
	.text-image--stretch .text-image__image { height: 100%; aspect-ratio: auto; min-height: 360px; }
}
/* Image + text with a video in place of the image. */
.text-image__video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-deep); z-index: 1; }
.text-image__video img { width: 100%; height: 100%; object-fit: cover; }
.text-image__media iframe { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 9; height: auto !important; border-radius: var(--radius-lg); }

/* Accordions inside text (<details>), styled like the FAQs. */
.prose details { background: #fff; border: 2px solid rgba(242,174,156,.25); border-radius: var(--radius-md); margin: .7rem 0; transition: border-color .2s ease; }
.prose details:hover, .prose details[open] { border-color: var(--coral); }
.prose summary { cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.3rem; font-weight: 600; color: var(--teal-deep); position: relative; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: '\f078'; font-family: 'Font Awesome 6 Pro'; font-weight: 400; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--coral-dark); transition: transform .3s ease; }
.prose details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.prose details > p { padding: 0 1.3rem 1.1rem; margin: 0; }

/* Team slider: ~4.5 across, a little taller. */
.team-slide { width: clamp(240px, 21vw, 330px); }
.team-slide__photo { aspect-ratio: 3 / 4; }

/* Text pages (policies): wider column, a size smaller, more air before headings,
   ordinary bullets and tidy tables. */
.rich-text .prose--narrow { max-width: 920px; }
.rich-text .prose { font-size: .95rem; }
.rich-text .prose p, .rich-text .prose li { font-size: inherit; }
.rich-text .prose :is(h2, h3, h4) { margin-top: 2.2em; }
.rich-text .prose > :first-child { margin-top: 0; }
.rich-text .prose h2 { font-size: clamp(1.6rem, 1.2vw + 1rem, 2.2rem); }
.rich-text .prose h3 { font-size: 1.3rem; }
.rich-text .prose ul { display: block; margin: .8rem 0 1.4rem; padding-left: 1.3rem; list-style: disc; }
.rich-text .prose ul li { display: list-item; padding-left: .3rem; margin-bottom: .45rem; font-weight: 400; font-size: inherit; color: var(--ink-soft); min-height: 0; }
.rich-text .prose ul li::before { content: none; display: none; }
.rich-text .prose ul li::marker { color: var(--coral-dark); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0 2rem; font-size: .9rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid rgba(18,112,117,.15); }
.prose thead th { background: var(--mint-pale); color: var(--teal-deep); font-weight: 600; border-bottom: 2px solid var(--teal); }
.prose tbody tr:nth-child(even) td { background: rgba(234,251,246,.5); }
@media (max-width: 700px) { .prose table { display: block; overflow-x: auto; } }
@media (min-width: 861px) {
	.hero:not(.hero--split):not(.hero--video) { padding-top: calc(1.5rem + 50px); }
}
/* Hero balance: equal visual space above and below the text (the wave eats
   ~20px of the bottom). */
.hero--split { padding-top: calc(clamp(1.75rem, 2.75vw, 2.75rem) + 37px); }
.hero--split > .hero__inner { padding-bottom: calc(clamp(1.75rem, 2.75vw, 2.75rem) + 18px); }
@media (min-width: 861px) {
	.hero:not(.hero--split):not(.hero--video) { padding-top: calc(1rem + 40px); }
	.hero:not(.hero--split):not(.hero--video):not(.hero--icon) > .hero__inner { padding-bottom: calc(1rem + 20px); }
}

/* Logo slider: keep the moving track on its own layer (no re-raster jolt),
   and let JS ease it to a stop on hover instead of a hard CSS pause. */
.logo-marquee__track { will-change: transform; backface-visibility: hidden; transform: translateZ(0); }
.logo-marquee.is-js:hover .logo-marquee__track,
.logo-marquee.is-js:focus-within .logo-marquee__track { animation-play-state: running; }
.wfa-pause::before { content: '\f04c'; }
.contact-card__icon { margin-bottom: 1.5rem; }

/* Rich text, full width: an intro that lines up with the grid below it. */
.rich-text .prose--full { max-width: var(--wrap); }
.rich-text .prose--full > p { max-width: 70ch; }
.single-post .hero__media--bleed .hero__media-image--placeholder { object-position: center; }

/* Home hero illustration back up to size (~30% larger). */
@media (min-width: 861px) {
	.hero--split .hero__media { max-width: 680px; }
}

/* Buttons: 1rem text. */
.btn { font-size: 1rem; }
/* Nav dropdown: hover / current item on full coral. */
.primary-nav__list .sub-menu a:hover,
.primary-nav__list .sub-menu .current-menu-item > a { background: var(--coral); color: var(--teal-deep); }
/* Home hero: give the illustration a wider column so it can grow. */
@media (min-width: 861px) {
	.hero--split .hero__inner { grid-template-columns: 1fr 1.15fr; gap: 2.5rem; }
	.hero--split .hero__media { max-width: 700px; }
}

/* Image + text video: no button padding (it showed as a dark ring); poster
   and player fill the text column's height, cropped to cover. */
.text-image__video { padding: 0; border: 0; cursor: pointer; }
.text-image__video img { display: block; border-radius: 0; }
.text-image--video .text-image__media { display: flex; }
.text-image__video-frame { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-deep); container-type: size; }
.text-image__video-frame iframe {
	position: absolute; top: 50%; left: 50%; border: 0; border-radius: 0 !important;
	width: max(100%, 177.78cqh) !important; height: max(100%, 56.25cqw) !important; aspect-ratio: auto;
	transform: translate(-50%, -50%);
}
@media (min-width: 861px) {
	.text-image--video .text-image__video,
	.text-image--video .text-image__video-frame { aspect-ratio: auto; height: 100%; min-height: 360px; }
}
.text-image__video-toggle {
	position: absolute; left: 1rem; bottom: 1rem; z-index: 2; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0;
	background: rgba(255,255,255,.9); color: var(--teal); font-size: 1.1rem; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(10,69,72,.25);
	opacity: 0; transition: opacity .25s ease, transform .2s ease;
}
.text-image__video-frame:hover .text-image__video-toggle,
.text-image__video-frame.is-paused .text-image__video-toggle,
.text-image__video-toggle:focus-visible { opacity: 1; }
.text-image__video-toggle:hover { transform: scale(1.06); }

/* Top waves rise into the section above, filled with this section's colour
   (z-index lifts them over the previous section's shapes). */
.wave-divider--rise { top: -39px; height: 40px; z-index: 2; }
.bg-white > .wave-divider--rise { fill: var(--cream); }
.bg-mint > .wave-divider--rise { fill: var(--mint-pale); }
.bg-mint-mid > .wave-divider--rise { fill: var(--mint-mid); }
.bg-pink > .wave-divider--rise { fill: var(--pink-pale); }
.bg-coral > .wave-divider--rise { fill: var(--coral); }
.bg-teal > .wave-divider--rise { fill: var(--teal); }
/* The wave now sits above the section, so its top padding no longer needs to clear it. */
.section:has(> .wave-divider--rise) { padding-top: calc(var(--section-pad) + var(--wave-gap)); overflow: visible; }
/* Page titles inside rich text (e.g. Meet our Trustees): section-heading size, not hero size. */
.rich-text .prose h1 { font-size: clamp(2rem, 1.8vw + 1rem, 2.9rem); margin-bottom: .5em; }
/* Team members with no photo: the Wren logo placeholder, shown whole on teal. */
.team-card__photo .team-card__placeholder-img,
.team-slide__photo img[src*="news-placeholder"] { object-fit: contain; background: var(--teal); }
/* Icon blocks on light sections: coral icon on the full teal disc. */
.process-steps:not(.bg-teal) .process-step__icon { color: var(--coral); }
/* Testimonial names hidden for now (remove this rule to show them again). */
.testimonial-card__name { display: none; }

/* Three cards, "three columns": cards keep a third of the width and centre,
   so two cards don't stretch across the whole page. */
.three-cards__grid--three { display: flex; flex-wrap: wrap; justify-content: center; }
.three-cards__grid--three > .card { flex: 0 1 calc((100% - 2 * 1.6rem) / 3); }
@media (max-width: 1024px) { .three-cards__grid--three > .card { flex-basis: calc((100% - 1.6rem) / 2); } }
@media (max-width: 600px) { .three-cards__grid--three > .card { flex-basis: 100%; } }

/* News items in the stories feed / slider: teal title, a size up. */
.story-card[data-story-type="news"] .story-card__name { color: var(--teal); font-size: 1.2rem; line-height: 1.4em; margin-bottom: 12px; display: block; }
/* Story cards (not news): name in coral, a touch smaller. */
.story-card:not([data-story-type="news"]) .story-card__name { color: var(--coral); font-size: .9rem; }
.story-card__media { margin-bottom: 1.4rem; }
/* Story cards: name sits close to the caption below it. */
.story-card:not([data-story-type="news"]) .story-card__name { line-height: 1.25; margin-bottom: .2rem; }
.story-card__caption { line-height: 1.4; }

/* --------------------------------------------------------------------------
   Final amends 17 Nov
   -------------------------------------------------------------------------- */
/* Heaviest weight on the site is now 600 (Poppins 700/900 no longer loaded). */
b, strong { font-weight: 600; }

/* Footer newsletter sign-up line: medium weight. */
.footer-newsletter__title { font-weight: 600; }

/* Video play buttons ~50% larger. */
.video-play__icon { width: 96px; height: 96px; font-size: 1.65rem; padding-left: .2rem; }

/* Three cards: optional centred heading block. */
.three-cards__head--center { text-align: center; max-width: 900px; margin-inline: auto; }

/* Stories feed: short intro under the title (used when the page has no hero). */
.stories-feed__intro { text-align: center; max-width: 62ch; margin: -1rem auto 0; color: var(--ink-soft); }
.stories-feed h1.section-heading { font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem); }

/* CTA banner, "button only" style: one centred coral button, no box, no shapes.
   Give it the same background as the section above. */
.cta-banner.cta-banner--button { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: var(--section-pad); margin-top: -2px; } /* -2px closes the half-pixel seam with the section above */
.cta-banner--button::before, .cta-banner--button::after { display: none; }
.cta-banner--button .cta-banner__inner { justify-content: center; }
.cta-banner.cta-banner--button .cta-banner__inner .btn { margin: 0 auto; background: var(--coral); border-color: var(--coral); color: var(--teal-deep); }
.cta-banner.cta-banner--button .cta-banner__inner .btn:hover { background: var(--coral-light); border-color: var(--coral-light); }

@media (max-width: 860px) {
	/* Split-bleed heroes (Get Support etc.): photo flush to the top with a soft
	   curve into the panel, then the text with proper breathing room. */
	.hero.hero--split-bleed { padding-top: 0; }
	.hero--split-bleed .hero__media--bleed { position: relative; height: 240px; overflow: visible; }
	.hero--split-bleed .hero__media--bleed::after {
		content: ''; position: absolute; z-index: 1; left: -15%; right: -15%; bottom: -36px; height: 64px;
		background: var(--hero-bg); border-radius: 50%;
	}
	.hero--split-bleed .hero__inner { padding-top: 1.25rem; }
	.hero--split-bleed .btn-row { justify-content: flex-start; }

	/* Icon hero (Volunteer): the illustration sits on the bottom edge, large,
	   rising out of the wave, as on desktop. */
	.hero--icon .hero__inner { padding-bottom: 0; }
	.hero--icon .hero__media--icon { margin-top: 1.5rem; max-width: none; }
	.hero--icon .hero__icon-image { position: relative; top: auto; left: auto; transform: none; width: min(88%, 420px); margin: 0 auto -24px; display: block; }
	.hero--icon > .wave-divider { position: relative; z-index: 2; margin-top: -40px; }
}
@media (max-width: 600px) {
	.hero__heading, .hero--minimal .hero__heading { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
}

/* Hero/section seam: hero heights often land on half pixels (115% root size),
   so the browser blends the hero's last pixel row with its teal background,
   leaving a faint line under the wave. The section after a hero overlaps that
   row, above the hero's wave and photo layers, in its own (matching) colour. */
.hero + section { margin-top: -2px; z-index: 4; }

/* Footer: less space above the logo and columns. */
.site-footer__top { padding-top: clamp(2rem, 3.5vw, 3rem); }

/* Video testimonials on phones/tablets: video full width, text stacked below
   (an earlier two-column rule was applying at every width). */
@media (max-width: 860px) {
	.video-testimonial { grid-template-columns: 1fr; gap: 1.6rem; }
	.video-testimonial__media { max-width: none; width: 100%; max-height: none; aspect-ratio: 4 / 5; }
	.video-testimonial__text { text-align: center; }
	.video-testimonial__meta { justify-content: center; }
	.video-testimonial__quote p { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
	.video-testimonials__controls { margin-top: 1.6rem; }
}

/* Footer newsletter line: two lines on phones. */
@media (max-width: 600px) {
	.footer-newsletter__title { font-size: .9rem; line-height: 1.4; text-wrap: balance; }
}

/* Centred heroes on phones/tablets: centre the intro text block too. */
@media (max-width: 860px) {
	.hero:not(.hero--split-bleed) .hero__subheading { margin-inline: auto; }
}

/* Photo-background heroes (About) on phones/tablets: the text is centred over
   the whole photo, so tint it evenly instead of fading left to right. */
@media (max-width: 860px) {
	.hero__bg-photo::after { background: color-mix(in srgb, var(--hero-bg) 80%, transparent); }
}

/* Eyebrows a touch smaller. */
.eyebrow { font-size: 1.15rem; }

/* Video play buttons (e.g. Home "What is listening support?"): white, with a
   soft see-through ring like the video testimonial buttons; grows on hover. */
.video-play__icon {
	background: #fff; color: var(--teal);
	box-shadow: 0 0 0 12px rgba(255,255,255,.35);
	transition: transform .2s ease, box-shadow .2s ease;
}
.video-play:hover .video-play__icon,
.video-play:focus-visible .video-play__icon { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(255,255,255,.3); }
@media (prefers-reduced-motion: reduce) { .video-play__icon { transition: none; } }

/* --------------------------------------------------------------------------
   Home hero slider (split hero with "Extra slides"), 18 Nov
   -------------------------------------------------------------------------- */
/* Slides stack in one grid cell, so the hero takes the tallest slide's height. */
.hero__slides { display: grid; position: relative; z-index: 1; }
.hero__slides > .hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.hero__slides > .hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
/* The bottom padding moves from the slides to the shared dots row underneath. */
.hero__slider { position: relative; z-index: 1; }
.hero--split .hero__slides > .hero__inner { padding-bottom: 0; }
.hero__dots-wrap { padding-top: 1.75rem; padding-bottom: calc(clamp(1.75rem, 2.75vw, 2.75rem) + 18px); }
.hero__slide { align-items: center; }
.hero__media--photo .hero__media-image { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.hero__dots { display: flex; align-items: center; gap: .6rem; }
.hero__dot { width: 26px; height: 13px; padding: 0; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .35s ease, background-color .25s ease; }
.hero__dot:hover, .hero__dot.is-active { background: #fff; }
.hero__dot.is-active { width: 52px; }
.hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 860px) {
	.hero__dots { justify-content: center; }
	/* Stacked on phones: start each slide at the top so a shorter slide's spare
	   space sits at the bottom, not between its text and photo. */
	.hero__slides > .hero__slide { align-content: start; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
	.hero__slides > .hero__slide, .hero__slides > .hero__slide.is-active, .hero__dot { transition: none; }
}

/* Home: newsletter band in coral (the Home CTA banner is hidden). */
.footer-newsletter--coral { border-bottom: 0; }
.footer-newsletter--coral .footer-newsletter__title { color: var(--teal-deep); }
.footer-newsletter--coral .footer-newsletter__inner { padding-block: clamp(2.4rem, 4vw, 3.6rem); }
/* Upcoming events: portrait posters show from the top so the title stays in view. */
.card__media--portrait img { object-position: 50% 0; }

/* Quotes inside text blocks (e.g. Kate's story on Our story): coral rule,
   with the speaker underneath. Quote marks are part of the text itself. */
.prose blockquote { position: relative; margin: 0; padding: .2rem 0 .2rem 1.6rem; border-left: 4px solid var(--coral); color: var(--teal-deep); }
.prose blockquote p { position: relative; }
.prose blockquote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; font-size: .95rem; color: var(--teal); }
.bg-teal .prose blockquote { color: #fff; }
.bg-teal .prose blockquote cite { color: var(--coral); }

/* --------------------------------------------------------------------------
   Mobile menu refresh, 18 Nov: bigger rows, chevrons on the right, X when
   open, and a quick open/close with items dropping in one by one.
   -------------------------------------------------------------------------- */
/* Menu icon: the three lines turn into an X while the menu is open. */
.nav-toggle { position: relative; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span:not(.screen-reader-text) { transition: transform .25s cubic-bezier(.2, .7, .2, 1), opacity .15s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
	.mobile-nav { gap: 0; padding: .5rem 1.5rem 1.5rem; }
	.mobile-nav__list { gap: 0; }
	/* Each top-level item is a full-width row: link on the left, chevron on the right. */
	.mobile-nav__list > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(18, 54, 56, .1); }
	.mobile-nav__list > li > a { flex: 1; padding: .9rem 0; font-size: 1.2rem; }
	.mobile-nav__list .submenu-toggle { width: 44px; height: 44px; margin-left: auto; justify-content: center; font-size: .9rem; }
	/* Only the open state turns the chevron (taps leave :hover/:focus stuck on touch screens). */
	.mobile-nav__list .menu-item-has-children:not(.submenu-open) > .submenu-toggle i { transform: none; }
	.mobile-nav__list .sub-menu { padding-left: 1rem; transition: max-height .28s cubic-bezier(.2, .7, .2, 1); }
	.mobile-nav__list .menu-item-has-children.submenu-open > .sub-menu { max-height: 520px; margin-top: 0; padding-bottom: .6rem; }
	.mobile-nav__list .sub-menu li + li { margin-top: 0; }
	.mobile-nav__list .sub-menu a { display: block; padding: .6rem 0; font-size: 1.02rem; }
	.mobile-nav > .btn { margin-top: 1.4rem; justify-content: center; text-align: center; }

	/* Opening: rows and the Donate button drop in, staggered by --i (set in main.js). */
	.mobile-nav.is-entering .mobile-nav__list > li,
	.mobile-nav.is-entering > .btn { animation: mobile-nav-item-in .26s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 30ms + 30ms); }
}
@keyframes mobile-nav-item-in {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.nav-toggle span:not(.screen-reader-text), .mobile-nav__list .sub-menu { transition: none; }
	.mobile-nav.is-entering .mobile-nav__list > li, .mobile-nav.is-entering > .btn { animation: none; }
}

/* Mobile menu, 18 Nov (2): no dividers; open submenus match the desktop
   dropdown (pale coral panel, coral hover/current item). */
@media (max-width: 1100px) {
	.mobile-nav__list > li { border-bottom: 0; }
	.mobile-nav__list .sub-menu {
		padding: 0 .5rem; border-radius: 14px;
		background: color-mix(in srgb, var(--coral-soft) 55%, #fff);
		transition: max-height .28s cubic-bezier(.2, .7, .2, 1), padding .28s cubic-bezier(.2, .7, .2, 1), margin .28s cubic-bezier(.2, .7, .2, 1);
	}
	.mobile-nav__list .menu-item-has-children.submenu-open > .sub-menu { padding: .5rem; padding-bottom: .5rem; margin-bottom: .6rem; }
	.mobile-nav__list .sub-menu a {
		padding: .7rem .9rem; border-radius: 8px; color: var(--teal);
		transition: background-color .15s ease, color .15s ease;
	}
	.mobile-nav__list .sub-menu a:hover,
	.mobile-nav__list .sub-menu a:active,
	.mobile-nav__list .sub-menu .current-menu-item > a { background: var(--coral); color: var(--teal-deep); }
}
@media (prefers-reduced-motion: reduce) {
	.mobile-nav__list .sub-menu, .mobile-nav__list .sub-menu a { transition: none; }
}
/* Menu button a little bigger: 28px lines, 3px thick, 48px tap area. The X
   offsets are line height + gap (3px + 6px). */
.nav-toggle { width: 48px; height: 48px; gap: 6px; margin-right: -.4rem; }
.nav-toggle span:not(.screen-reader-text) { width: 28px; height: 3px; border-radius: 3px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Nav colours, 18 Nov: top-level links teal (mobile now matches desktop);
   submenu links a darker teal (#0d5a5e, 6.7:1 on the pale coral panel) on
   desktop and mobile. Hover / current item stay dark teal on full coral. */
.primary-nav__list .sub-menu a { color: #0d5a5e; }
@media (max-width: 1100px) {
	.mobile-nav__list > li > a,
	.mobile-nav__list > li > .submenu-toggle { color: var(--teal); }
	.mobile-nav__list .sub-menu a { color: #0d5a5e; }
}

/* Hero slider photo slides (e.g. awards): a soft coral circle behind the
   photo, protruding from the bottom right. */
.hero__media--photo { position: relative; isolation: isolate; }
.hero__media--photo .hero__media-image { position: relative; z-index: 1; }
.hero__media--photo::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	width: 62%; aspect-ratio: 1; right: -18%; bottom: -16%;
	border-radius: 50%; background: rgba(198, 238, 229, .6); /* mint #c6eee5 at 60% */
}
/* The circle can reach past the screen edge; clip sideways only (no scrollbar, vertical overflow untouched). */
.hero--split { overflow-x: clip; }

/* News stories: the opening paragraph is a larger intro (lead). Only when the
   story starts with a paragraph, so job adverts that open with a heading and
   a bold salary line are left alone. */
.single-post article .prose > p:first-child { font-size: clamp(1.15rem, .5vw + 1rem, 1.35rem); line-height: 1.55; }

/* Home, "We offer a range of autoimmune support": light coral circle in place of mint. */
.home .three-cards.bg-pink .three-cards__blob { background: var(--coral-soft); opacity: 1; }

/* Thank-you pages (form confirmations): the Apply for support section style,
   sized for a short message. */
.thank-you-section { min-height: clamp(440px, 62vh, 640px); display: flex; align-items: center; padding-block: clamp(4rem, 7vw, 6rem); }
.thank-you-section .gravity-form-section__inner { width: 100%; }
.thank-you-section .blob--mint { top: auto; bottom: -12%; }
.thank-you-section__content .prose { margin-top: 1.2rem; font-size: 1.1rem; }
.thank-you-section__content .btn-row { margin-top: 2rem; }
.thank-you-section__content .btn-row { justify-content: flex-start; }

/* CookieYes banner: Wren teal (#127075) in place of CookieYes blue.
   CookieYes sets its colours as inline styles, so !important is needed. */

/* Filled buttons: Accept All, Save My Preferences */
.cky-btn-accept,
.cky-btn-preferences {
	background-color: #127075 !important;
	border-color: #127075 !important;
	color: #ffffff !important;
}

/* Outline buttons: Customise, Reject All */
.cky-btn-customize,
.cky-btn-reject {
	background-color: transparent !important;
	border-color: #127075 !important;
	color: #127075 !important;
}

/* Floating "cookie settings" button (bottom left, after a choice is made) */
.cky-btn-revisit-wrapper {
	background-color: #127075 !important;
}

/* "Show more" links in the preferences panel */
.cky-show-desc-btn {
	color: #127075 !important;
}

/* Toggle switches when switched on */
.cky-switch input[type="checkbox"]:checked {
	background-color: #127075 !important;
}

/* Form page heading smaller on phones. */
@media (max-width: 600px) {
	.gravity-form-section__head h1 { font-size: 1.75rem; }
	.disease-statement {font-size: 0.75rem;}
	.gravity-form-section .chosen-container .chosen-choices li.search-choice {font-size: 0.75rem !important;}
}

/* "* indicates required fields": kept for accessibility, but small and quiet. */
.gravity-form-section .gform_required_legend { font-size: .85rem !important; color: var(--ink-soft); margin-bottom: .4rem; }
.gravity-form-section .gform_required_legend p { margin: 0; }

/* Disease list statement: full teal border instead of a left-edge stripe. */
.disease-statement { border: 2px solid var(--teal); border-radius: var(--radius-md); }

/* Focus: one solid 3px coral border (2px border + 1px inset), no pale halo. */
.gravity-form-section input:focus,
.gravity-form-section select:focus,
.gravity-form-section textarea:focus {
	border-color: var(--coral-dark) !important; box-shadow: inset 0 0 0 1px var(--coral-dark) !important;
}
.gravity-form-section .chosen-container .chosen-choices { border: 2px solid rgba(18,112,117,.35) !important; border-radius: var(--radius-md) !important; }
.gravity-form-section .chosen-container-active .chosen-choices { border-color: var(--coral-dark) !important; box-shadow: inset 0 0 0 1px var(--coral-dark) !important; }
.gravity-form-section .chosen-container .chosen-choices li.search-field input[type=text]:focus { box-shadow: none !important; }

/* Selected diagnoses (Chosen chips): teal outline, light teal tint, roomier. */
.gravity-form-section .chosen-container .chosen-choices { gap: .5rem !important; padding: .6rem .8rem !important; }
.gravity-form-section .chosen-container .chosen-choices li.search-choice {
	background: rgba(18,112,117,.08) !important; background-image: none !important; box-shadow: none !important;
	border: 1.5px solid var(--teal) !important; border-radius: var(--radius-pill) !important;
	color: var(--teal-deep) !important; font-family: var(--font-body) !important; font-weight: 500 !important; font-size: .95rem !important;
	line-height: 1.3 !important; padding: .45rem 2.1rem .45rem .95rem !important; margin: 0 !important; max-width: 100%;
}
.gravity-form-section .chosen-container .chosen-choices li.search-choice span { word-break: normal; }
.gravity-form-section .chosen-container .chosen-choices li.search-choice .search-choice-close {
	top: 50% !important; right: .7rem !important; transform: translateY(-50%); opacity: .7;
}
.gravity-form-section .chosen-container .chosen-choices li.search-choice .search-choice-close:hover { opacity: 1; }
