/*
 * CDS main stylesheet.
 * No framework — native CSS Grid/Flexbox + custom properties. See
 * README.md for the reasoning. Organized:
 *   1. Design tokens
 *   2. Reset / base
 *   3. Layout utilities
 *   4. Site chrome (alert, toolbar, header/nav, footer)
 *   5. Homepage sections
 *   6. Components reused across sections (buttons, blobs, cards, pills)
 *   7. Animations
 *   8. Responsive
 */

/* ---------- 1. Design tokens ---------- */
:root {
	/* Colours come from theme.json (single source of truth). The --cds-*
	   names are kept as aliases so existing rules keep working; the hex
	   fallbacks only matter if global styles ever fail to print. */
	--cds-navy: var(--wp--preset--color--navy, #1E2A5A);
	--cds-navy-deep: var(--wp--preset--color--navy-deep, #16224A);
	--cds-green: var(--wp--preset--color--green, #76C04D);
	--cds-green-light: var(--wp--preset--color--green-light, #94D172);
	--cds-green-pale: var(--wp--preset--color--green-pale, #DCEBCF);
	--cds-green-dark: var(--wp--preset--color--green-dark, #3E7A22);
	--cds-green-darker: var(--wp--preset--color--green-darker, #1F3A12);
	--cds-blue: var(--wp--preset--color--blue, #3E6FD0);
	--cds-blue-sky: var(--wp--preset--color--blue-sky, #7DB9EA);
	--cds-blue-pale: var(--wp--preset--color--blue-pale, #E3EFFA);
	--cds-blue-alert: var(--wp--custom--color--alert, #2F8FE0);
	--cds-beige: var(--wp--preset--color--beige, #EFE9DC);
	--cds-beige-2: var(--wp--preset--color--beige-2, #F7F4EC);
	--cds-border: var(--wp--custom--color--border, #D9D3C5);
	--cds-border-light: var(--wp--custom--color--border-light, #E7E2D6);
	--cds-border-2: var(--cds-border); /* merged into --cds-border */
	--cds-text: var(--wp--preset--color--ink, #22252E); /* slug "ink": a "text" slug would generate .has-text-color, which clashes with WP's own marker class */
	--cds-text-muted: var(--wp--preset--color--text-muted, #54596A);
	--cds-text-mute-2: var(--cds-text-muted); /* merged: one body/meta grey */
	--cds-white: var(--wp--preset--color--white, #FFFFFF);

	--cds-font-display: var(--wp--preset--font-family--display, 'Bitter', Georgia, serif);
	--cds-font-body: var(--wp--preset--font-family--body, 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif);

	--cds-container: 1224px;
	--cds-container-wide: 1360px;
	--cds-radius-lg: var(--wp--custom--radius--lg, 24px);
	--cds-radius-md: var(--wp--custom--radius--md, 20px);
	--cds-radius-sm: var(--wp--custom--radius--sm, 16px);
	--cds-gutter: 48px;
	--cds-section-pad-top: var(--wp--custom--section--padding-top, 96px);
	--cds-section-pad-bottom: var(--wp--custom--section--padding-bottom, 104px);
	--cds-shadow-card: var(--wp--custom--shadow--card, 0 22px 42px rgba(30,42,90,0.16));
	--cds-shadow-photo: var(--wp--custom--shadow--photo, 0 22px 46px rgba(30,42,90,0.16));
	--cds-blob-radius: 58% 42% 46% 54% / 46% 56% 44% 54%;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cds-white);
	color: var(--cds-text);
	font-family: var(--cds-font-body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, blockquote { margin: 0; }
::selection { background: rgba(118,192,77,0.35); }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}

/* ---------- 3. Layout utilities ---------- */
.cds-container {
	max-width: var(--cds-container);
	margin: 0 auto;
	padding: 0 var(--cds-gutter);
}
.cds-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 44px;
}
.cds-heading-xl { font-family: var(--cds-font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; color: var(--cds-navy); text-wrap: pretty; margin-bottom: 22px; }
.cds-heading-lg { font-family: var(--cds-font-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); color: var(--cds-navy); }
.cds-heading-lg--on-dark { color: var(--cds-white); }
.cds-heading-md { font-family: var(--cds-font-display); font-weight: 600; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; text-wrap: pretty; margin-bottom: 8px; }
.cds-heading-md--on-dark { color: var(--cds-white); }
.cds-heading-sm { font-family: var(--cds-font-display); font-weight: 600; font-size: 27px; margin-bottom: 14px; color: var(--cds-navy); }
.cds-heading-sm--on-green { color: var(--cds-navy-deep); }
.cds-body-lg { font-size: 18px; line-height: 1.75; color: var(--cds-text-muted); margin-bottom: 30px; }
.cds-kicker { font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cds-green-dark); margin: 0 0 18px; }
.cds-kicker--on-dark { color: var(--cds-green); font-size: 12px; letter-spacing: 0.16em; margin-bottom: 12px; }

.cds-link-underline { display: inline-block; font-size: 15px; font-weight: 600; color: var(--cds-navy); border-bottom: 1.5px solid var(--cds-green); padding-bottom: 3px; transition: color 0.2s ease; }
.cds-link-underline:hover { color: var(--cds-green-dark); }
.cds-link-underline--accent { color: var(--cds-green); border-bottom-color: currentColor; transition: transform 0.2s ease; }
.cds-link-underline--accent:hover { transform: translateX(4px); color: var(--cds-green); }

.cds-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cds-green-dark); background: rgba(118,192,77,0.2); padding: 6px 16px; border-radius: 999px; margin-bottom: 22px; }

.cds-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cds-white); color: var(--cds-navy); transition: transform 0.2s ease, background 0.2s ease; }
.cds-icon-btn:hover { transform: scale(1.08); background: var(--cds-green); }

.cds-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; padding: 16px 32px; border-radius: 999px; transition: transform 0.2s ease, background 0.2s ease; border: none; cursor: pointer; }
.cds-btn:hover { transform: scale(1.05); }
.cds-btn--primary { background: var(--cds-green-light); color: var(--cds-navy-deep); }
.cds-btn--ghost { background: var(--cds-white); color: var(--cds-navy); border: 1.5px solid var(--cds-border); }
.cds-btn--ghost:hover { background: var(--cds-beige-2); }
.cds-btn--outline-navy { background: transparent; color: var(--cds-navy); border: 1.5px solid var(--cds-navy); font-size: 15px; padding: 14px 30px; align-self: flex-start; }
.cds-btn--outline-navy:hover { background: var(--cds-beige); }
.cds-btn--navy { background: var(--cds-navy); color: var(--cds-white); font-size: 15px; padding: 14px 30px; }

.cds-blob { border-radius: 58% 42% 46% 54% / 46% 56% 44% 54%; animation: cdsBlobMorph 26s ease-in-out infinite; pointer-events: none; }
.cds-blob--bg { position: absolute; z-index: 0; }

/* ---------- 4. Site chrome ---------- */
.cds-alert {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	gap: 14px; padding: 18px var(--cds-gutter);
	background: var(--cds-blue-alert); color: var(--cds-white);
	font-size: 15px; text-align: center; flex-wrap: wrap;
}
.cds-alert__icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cds-white); color: var(--cds-green-dark); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.cds-alert__title { font-weight: 600; }
.cds-alert__body { color: rgba(255,255,255,0.88); }
.cds-alert__dismiss { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: rgba(255,255,255,0.8); font-size: 19px; line-height: 1; cursor: pointer; }
.cds-alert.is-dismissed { display: none; }

.cds-toolbar { background: var(--cds-beige); }
.cds-toolbar__menu { display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 10px var(--cds-gutter); flex-wrap: wrap; }
.cds-toolbar__menu a { font-size: 15px; font-weight: 500; color: var(--cds-text-muted); }
.cds-toolbar__menu a:hover { color: var(--cds-navy); }
.cds-toolbar__menu li:last-child > a,
.cds-toolbar__cta { font-weight: 600; color: var(--cds-navy); }

.cds-header { position: relative; background: var(--cds-white); z-index: 30; }
.cds-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px var(--cds-gutter); max-width: 1600px; margin: 0 auto; }
.cds-brand { flex-shrink: 0; }
.cds-brand__link { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.cds-brand__logo, .cds-brand img { display: block; width: 86px; height: 68px; object-fit: contain; flex-shrink: 0; }
.cds-brand__name { font-family: var(--cds-font-display); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--cds-navy); white-space: nowrap; }

.cds-nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.cds-nav__toggle-bar { width: 24px; height: 2px; background: var(--cds-navy); border-radius: 2px; }

.cds-nav__menu { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.cds-nav__menu > li { position: relative; padding: 12px 0; }
.cds-nav__menu > li > a { font-size: 17px; font-weight: 600; color: var(--cds-navy); white-space: nowrap; }
.cds-nav__menu > li:not(.menu-item-has-children) > a:hover { color: var(--cds-green); }
.cds-nav__parent { display: inline-flex; align-items: center; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 600; color: var(--cds-navy); white-space: nowrap; cursor: pointer; transition: color 0.2s ease; }
.cds-nav__parent:hover, .cds-nav__menu li.is-open > .cds-nav__parent { color: var(--cds-green-dark); }
.cds-nav__parent:focus-visible { outline: 3px solid var(--cds-green); outline-offset: 4px; border-radius: 4px; }
/* "You are here": the section you're in (or the page itself) gets a green underline. */
.cds-nav__menu > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .current-page-ancestor, .current_page_parent) > :is(a, .cds-nav__parent) { text-decoration: underline; text-decoration-color: var(--cds-green); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.cds-nav__menu .sub-menu {
	position: absolute; top: 100%; left: -20px; min-width: 240px;
	background: var(--cds-white); border-radius: 16px; padding: 12px;
	box-shadow: 0 22px 46px rgba(20,28,58,0.22);
	display: flex; flex-direction: column; gap: 4px;
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.cds-nav__menu li.menu-item-has-children:hover > .sub-menu,
.cds-nav__menu li.menu-item-has-children.is-open > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.cds-nav__menu .sub-menu a { display: block; font-size: 16px; padding: 12px 16px; border-radius: 10px; color: var(--cds-text-muted); white-space: nowrap; }
/* Section heading that links to an overview page (tablet/desktop). Its
   dropdown opens on hover, and on keyboard focus anywhere in the item. */
.cds-nav__parent-link { transition: color 0.2s ease; }
.cds-nav__menu > li > a.cds-nav__parent-link:hover,
.cds-nav__menu li.is-open > a.cds-nav__parent-link { color: var(--cds-green-dark); }
.cds-nav__menu li.menu-item-has-children:has(> .cds-nav__parent-link):focus-within:not(.is-dismissed) > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 781px) {
	/* The phone toggle and the menu's phone-only items ("mobile-only"
	   class in the menu editor, e.g. the overview link) hide here. */
	.cds-nav__menu .cds-nav__parent--toggle,
	.cds-nav__menu .mobile-only { display: none; }
}
/* The footer sitemap already links the section heading. */
.cds-footer__sitemap .mobile-only { display: none; }
.cds-nav__menu .sub-menu a:hover { background: var(--cds-beige); color: var(--cds-navy); }

/* Tablet header (781–1100px): the full nav still fits if the site name
   stacks on two lines and everything tightens a little. Below 781px the
   hamburger menu takes over. */
@media (min-width: 781px) and (max-width: 1100px) {
	.cds-header__inner { padding-left: 32px; padding-right: 32px; gap: 16px; }
	.cds-brand__link { gap: 12px; }
	.cds-brand__logo, .cds-brand img { width: 70px; height: 56px; }
	.cds-brand__name { font-size: 22px; line-height: 1.1; }
	.cds-brand__name-line { display: block; }
	.cds-nav__menu { gap: 8px 18px; flex-wrap: nowrap; }
	.cds-nav__menu > li > a, .cds-nav__parent { font-size: 16px; }
}
@media (min-width: 781px) and (max-width: 900px) {
	.cds-nav__menu { gap: 8px 14px; }
	.cds-nav__menu > li > a, .cds-nav__parent { font-size: 15px; }
}

.cds-footer { background: var(--cds-navy); color: rgba(255,255,255,0.78); padding: 80px var(--cds-gutter) 36px; }
.cds-footer__columns { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; padding-bottom: 48px; }
/* Footer sitemap: the Primary menu's <ul> dissolves into the grid, so each
   top-level item is its own column (heading = the item, links = sub-menu). */
.cds-footer__sitemap { display: contents; }
.cds-footer__sitemap > li > a { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cds-white); margin-bottom: 18px; transition: color 0.2s ease; }
.cds-footer__sitemap > li > a:hover { color: var(--cds-green); }
.cds-footer__sitemap-heading { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cds-white); margin-bottom: 18px; }
.cds-footer__sitemap .sub-menu { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.cds-footer__sitemap .sub-menu a { transition: color 0.2s ease; }
.cds-footer__sitemap .sub-menu a:hover,
.cds-footer__sitemap .current-menu-item > a { color: var(--cds-green); }
.cds-footer__heading { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cds-white); margin-bottom: 18px; }
.cds-footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.cds-footer__links a:hover { color: var(--cds-green); }
.cds-footer__brandbar { max-width: 1320px; margin: 0 auto; padding: 36px 0; border-top: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid oklch(0.98 0.01 80 / 0.14); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cds-footer__logo { width: 48px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.cds-footer__brandname { font-family: var(--cds-font-display); font-weight: 600; font-size: 21px; color: var(--cds-white); }
.cds-footer__contact { font-size: 14.5px; line-height: 1.7; }
.cds-footer__legal { max-width: 1320px; margin: 0 auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.55); }
.cds-footer__social { display: flex; align-items: center; gap: 14px; }
.cds-footer__social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.8); transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.cds-footer__social-icon:hover { color: var(--cds-green); border-color: var(--cds-green); transform: scale(1.08); }

/* ---------- 5 & 6. Homepage sections ---------- */

/* Hero */
.cds-hero { position: relative; background: var(--cds-white); overflow: hidden; }
.cds-hero__grid { max-width: var(--cds-container-wide); margin: 0 auto; padding: 32px var(--cds-gutter) 72px; display: grid; grid-template-columns: minmax(0,0.92fr) minmax(0,1.22fr); gap: 56px; align-items: center; }
.cds-hero__heading { font-family: var(--cds-font-display); font-weight: 600; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; color: var(--cds-navy); }
.cds-hero__word-window { height: 60px; overflow: hidden; margin-bottom: 22px; display: flex; align-items: center; }
.cds-hero__word {
	display: inline-block;
	font-family: var(--cds-font-display); font-weight: 700; font-size: clamp(34px, 4vw, 52px);
	color: var(--cds-green);
	transition: opacity 0.35s ease, transform 0.35s ease;
}
.cds-hero__word.is-changing { opacity: 0; transform: translateY(16px); }
.cds-hero__body { font-size: 18px; line-height: 1.7; color: var(--cds-text-muted); margin-bottom: 32px; max-width: 480px; }
.cds-hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.cds-hero__art { position: relative; height: 580px; }
.cds-blob--primary-bg { right: -5%; top: -5%; width: 96%; height: 104%; background: rgba(118,192,77,0.18); animation-duration: 26s; }
.cds-hero__photo--primary { position: absolute; right: 0; top: 0; width: 94%; height: 86%; overflow: hidden; border-radius: 56% 44% 52% 48% / 46% 52% 48% 54%; animation: cdsBlobMorph 30s ease-in-out infinite reverse; z-index: 1; }
.cds-hero__photo-inner { position: absolute; inset: 0; animation: cdsKenBurns 24s ease-in-out infinite alternate; }
.cds-hero__photo--primary img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

.cds-blob--secondary-bg { left: -19%; bottom: -3%; width: 60%; height: 56%; background: rgba(30,42,90,0.22); animation-duration: 24s; animation-direction: reverse; }
.cds-hero__photo--secondary { position: absolute; left: -14%; bottom: 1%; width: 54%; height: 52%; overflow: hidden; border-radius: 62% 38% 44% 56% / 52% 46% 54% 48%; animation: cdsBlobMorph 22s ease-in-out infinite; box-shadow: 0 20px 44px rgba(20,28,58,0.18); z-index: 1; }
.cds-hero__photo--secondary img { width: 100%; height: 100%; object-fit: cover; }

.cds-blob--tertiary-bg { right: 0; bottom: -8%; width: 46%; height: 44%; background: rgba(30,42,90,0.22); animation-duration: 29s; }
.cds-hero__photo--tertiary { position: absolute; right: 3%; bottom: -4%; width: 41%; height: 39%; overflow: hidden; border-radius: 44% 56% 60% 40% / 56% 44% 56% 44%; animation: cdsBlobMorph 27s ease-in-out infinite reverse; box-shadow: 0 18px 38px rgba(20,28,58,0.16); z-index: 1; }
.cds-hero__photo--tertiary img { width: 100%; height: 100%; object-fit: cover; }

/* Welcome + stats */
.cds-welcome { background: var(--cds-white); padding: 96px 0 136px; }
/* Pending design approval: widen to line up with the hero and give the
   stat cards more width (less height). Uncomment to enable.
.cds-welcome .cds-welcome__grid { max-width: var(--cds-container-wide); } */
.cds-welcome__grid { display: grid; grid-template-columns: minmax(0,0.82fr) minmax(0,1.18fr); gap: 72px; align-items: center; }
.cds-welcome__art { position: relative; }
.cds-welcome__blob-a { left: -9%; top: -13%; width: 118%; height: 126%; background: rgba(118,192,77,0.17); }
.cds-welcome__blob-b { right: -7%; bottom: -11%; width: 52%; height: 56%; background: rgba(30,42,90,0.10); animation-direction: reverse; animation-duration: 28s; }
.cds-stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.cds-stat-card { border-radius: 20px; padding: 34px 32px; }
.cds-stat-card__number { font-family: var(--cds-font-display); font-weight: 700; font-size: 36px; line-height: 1; margin-bottom: 16px; }
.cds-stat-card__label { font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; text-wrap: pretty; }
.cds-stat-card__desc { font-size: 15px; line-height: 1.6; }
.cds-stat-card--navy, .cds-stat-card.is-style-stat-navy { background: var(--cds-navy); color: var(--cds-white); }
.cds-stat-card--navy .cds-stat-card__number, .cds-stat-card.is-style-stat-navy .cds-stat-card__number { color: var(--cds-green); }
.cds-stat-card--navy .cds-stat-card__desc, .cds-stat-card.is-style-stat-navy .cds-stat-card__desc { color: rgba(255,255,255,0.74); }
.cds-stat-card--green, .cds-stat-card.is-style-stat-green { background: var(--cds-green); }
.cds-stat-card--green .cds-stat-card__number, .cds-stat-card.is-style-stat-green .cds-stat-card__number,
.cds-stat-card--green .cds-stat-card__label, .cds-stat-card.is-style-stat-green .cds-stat-card__label { color: var(--cds-navy-deep); }
.cds-stat-card--green .cds-stat-card__desc, .cds-stat-card.is-style-stat-green .cds-stat-card__desc { color: var(--cds-green-darker); }
.cds-stat-card--white, .cds-stat-card.is-style-stat-white { background: var(--cds-white); border: 1.5px solid var(--cds-border); }
.cds-stat-card--white .cds-stat-card__number, .cds-stat-card.is-style-stat-white .cds-stat-card__number,
.cds-stat-card--white .cds-stat-card__label, .cds-stat-card.is-style-stat-white .cds-stat-card__label { color: var(--cds-navy); }
.cds-stat-card--white .cds-stat-card__desc, .cds-stat-card.is-style-stat-white .cds-stat-card__desc { color: var(--cds-text-muted); }
.cds-stat-card--blue, .cds-stat-card.is-style-stat-blue { background: var(--cds-blue); }
.cds-stat-card--blue .cds-stat-card__number, .cds-stat-card.is-style-stat-blue .cds-stat-card__number,
.cds-stat-card--blue .cds-stat-card__label, .cds-stat-card.is-style-stat-blue .cds-stat-card__label,
.cds-stat-card--blue .cds-stat-card__desc, .cds-stat-card.is-style-stat-blue .cds-stat-card__desc { color: var(--cds-white); }

/* Welcome + Stats built from core blocks (Group/Heading/Paragraph).
   Cancel the block-layout top margins so our own spacing applies, and
   draw the decorative blobs as pseudo-elements (no empty blocks). */
.cds-welcome .is-layout-flow > *,
.cds-welcome.is-layout-flow > *,
.cds-divisions .is-layout-flow > *,
.cds-divisions.is-layout-flow > *,
.cds-events .is-layout-flow > *,
.cds-events.is-layout-flow > *,
.cds-photos.is-layout-flow > * { margin-block-start: 0; }
.cds-divisions.wp-block-group,
.cds-events.wp-block-group,
.cds-photos.wp-block-group { margin-block: 0; }
.cds-welcome.wp-block-group { margin-block: 0; }
.cds-welcome__link a, .cds-section-head__link a { display: inline-block; font-size: 15px; font-weight: 600; color: var(--cds-navy); text-decoration: none; border-bottom: 1.5px solid var(--cds-green); padding-bottom: 3px; transition: color 0.2s ease; }
.cds-welcome__link a:hover, .cds-section-head__link a:hover { color: var(--cds-green-dark); }
.cds-welcome__art.wp-block-group::before,
.cds-welcome__art.wp-block-group::after { content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 58% 42% 46% 54% / 46% 56% 44% 54%; animation: cdsBlobMorph 26s ease-in-out infinite; }
.cds-welcome__art.wp-block-group::before { left: -9%; top: -13%; width: 118%; height: 126%; background: rgba(118,192,77,0.17); }
.cds-welcome__art.wp-block-group::after { right: -7%; bottom: -11%; width: 52%; height: 56%; background: rgba(30,42,90,0.10); animation-direction: reverse; animation-duration: 28s; }

/* Divisions */
.cds-divisions { background: var(--cds-beige); padding: 96px 0 104px; }
.cds-divisions__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.cds-division-card { background: var(--cds-white); border-radius: var(--cds-radius-md); overflow: hidden; transition: transform 0.28s ease, box-shadow 0.28s ease; }
.cds-division-card:hover { transform: translateY(-8px); box-shadow: 0 22px 42px rgba(30,42,90,0.16); }
.cds-division-card__image { width: 100%; height: 230px; object-fit: cover; }
.cds-division-card__body { padding: 28px 28px 32px; }
.cds-division-card__name { font-family: var(--cds-font-display); font-weight: 600; font-size: 24px; margin-bottom: 5px; color: var(--cds-navy); }
.cds-division-card__grades { font-size: 16px; color: var(--cds-text-mute-2); margin-bottom: 16px; }
.cds-division-card__link { font-size: 14.5px; font-weight: 600; color: var(--cds-green-dark); display: inline-block; transition: transform 0.2s ease; }
.cds-division-card:hover .cds-division-card__link { transform: translateX(4px); }

/* Link tile (Group style): same look as the division cards. The title's
   link stretches over the whole tile on the site (not in the editor, so
   the tile's blocks stay clickable there). */
.wp-block-group.is-style-link-tile { position: relative; display: flex; flex-direction: column; background: var(--cds-white); border-radius: var(--cds-radius-md); overflow: hidden; transition: transform 0.28s ease, box-shadow 0.28s ease; }
.wp-block-group.is-style-link-tile > * { margin: 0; }
.wp-block-group.is-style-link-tile > .wp-block-image img { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 0 !important; }
.wp-block-group.is-style-link-tile > :not(.wp-block-image) { padding-inline: 28px; }
.wp-block-group.is-style-link-tile > :not(.wp-block-image):first-child,
.wp-block-group.is-style-link-tile > .wp-block-image + * { padding-top: 26px; }
.wp-block-group.is-style-link-tile > :last-child:not(.wp-block-image) { padding-bottom: 30px; }
.wp-block-group.is-style-link-tile > :where(h2, h3, h4) { font-family: var(--cds-font-display); font-weight: 600; font-size: 24px; line-height: 1.25; margin-bottom: 6px; color: var(--cds-navy); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-group.is-style-link-tile > :where(h2, h3, h4) a { color: inherit; text-decoration: none; }
.wp-block-group.is-style-link-tile > p { font-size: 16px; line-height: 1.6; color: var(--cds-text-mute-2, var(--cds-text-muted)); }
.wp-block-group.is-style-link-tile > p + p { padding-top: 14px; }
.wp-block-group.is-style-link-tile > p.cds-link-tile__more { margin-top: auto; font-size: 14.5px; font-weight: 600; color: var(--cds-green-dark); }
.wp-block-group.is-style-link-tile > p.cds-link-tile__more::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform 0.2s ease; }
.cds-page__content .wp-block-group.is-style-link-tile > :where(h2, h3, h4) a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.cds-page__content .wp-block-group.is-style-link-tile:hover { transform: translateY(-8px); box-shadow: 0 22px 42px rgba(30,42,90,0.16); }
.cds-page__content .wp-block-group.is-style-link-tile:hover > p.cds-link-tile__more::after { transform: translateX(4px); }
.cds-page__content .wp-block-group.is-style-link-tile:has(a:focus-visible) { outline: 3px solid var(--cds-green); outline-offset: 3px; }
.cds-page__content .wp-block-group.is-style-link-tile a:focus-visible { outline: none; }
/* CDS Image Card block: the whole card is the link. */
a.cds-image-card { display: block; height: 100%; color: inherit; text-decoration: none; }
a.cds-image-card:focus-visible { outline: 3px solid var(--cds-green-dark); outline-offset: 4px; }
.cds-image-card { height: 100%; }
.cds-image-card__media img { display: block; }
.cds-section-head.wp-block-group { margin-bottom: 44px; }

/* Spotlight */
.cds-spotlight { background: var(--cds-white); padding: 104px 0; }
.cds-spotlight__carousel { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(0,1fr); gap: 56px; align-items: center; }
.cds-spotlight__media { position: relative; }
.cds-spotlight__blob { left: -4%; top: -7%; width: 108%; height: 114%; background: rgba(118,192,77,0.18); }
.cds-spotlight__image { position: relative; width: 100%; height: 520px; object-fit: cover; border-radius: var(--cds-radius-md); z-index: 1; }
.cds-spotlight__quote { font-family: var(--cds-font-display); font-style: italic; font-weight: 500; font-size: 27px; line-height: 1.5; color: var(--cds-text); margin-bottom: 26px; text-wrap: pretty; }
.cds-spotlight__name { font-size: 17px; font-weight: 600; color: var(--cds-navy); }
.cds-spotlight__role { font-size: 14.5px; color: var(--cds-text-mute-2); margin: 4px 0 22px; }
.cds-spotlight__prose-heading { font-family: var(--cds-font-display); font-weight: 600; font-size: 27px; line-height: 1.3; color: var(--cds-navy); margin-bottom: 16px; text-wrap: pretty; }
.cds-spotlight__prose-body { font-size: 17px; line-height: 1.75; color: var(--cds-text-muted); margin-bottom: 22px; text-wrap: pretty; }
.cds-spotlight__story-quote { margin: 4px 0 26px; padding: 2px 0 2px 20px; border-left: 3px solid var(--cds-green); }
.cds-spotlight__story-quote blockquote { margin: 0; font-family: var(--cds-font-display); font-style: italic; font-weight: 500; font-size: 20px; line-height: 1.5; color: var(--cds-navy); text-wrap: pretty; }
.cds-spotlight__story-quote figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--cds-text-mute-2); }
.cds-spotlight__story-quote figcaption strong { font-weight: 600; color: var(--cds-navy); }
.cds-spotlight__link { margin-bottom: 34px; }
.cds-spotlight__controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.cds-carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--cds-border-2); background: transparent; cursor: pointer; font-size: 16px; color: var(--cds-text-muted); transition: background 0.2s ease; }
.cds-carousel-btn:hover { background: var(--cds-beige); }
.cds-spotlight__dots { display: flex; gap: 9px; }
.cds-spotlight__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cds-border-2); transition: background 0.2s ease; }
.cds-spotlight__dot.is-active { background: var(--cds-green); }
.cds-spotlight__image--empty { display: flex; align-items: center; justify-content: center; background: var(--cds-beige-2); color: var(--cds-text-muted); font-weight: 600; font-size: 15px; }
/* Crossfade (front end; main.js adds .is-fade): slides are stacked in one
   grid cell and fade between each other. Text panes share a cell too, so
   the arrows/dots stay put whatever the text length. Inactive slides are
   visibility:hidden once faded, so screen readers / Tab skip them. */
.cds-spotlight__carousel.is-fade .cds-spotlight__media { display: grid; }
.cds-spotlight__carousel.is-fade .cds-spotlight__media > [data-cds-spotlight-slide] { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0s linear 0.8s; }
.cds-spotlight__carousel.is-fade .cds-spotlight__content { display: grid; grid-template-columns: minmax(0, 1fr); }
.cds-spotlight__carousel.is-fade .cds-spotlight__pane { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
/* Slides share one cell sized to the longest; shorter slides (e.g. no
   eyebrow) sit centered in it instead of hugging the top. */
.cds-spotlight__carousel.is-fade .cds-spotlight__controls { grid-row: 2; }
.cds-spotlight__carousel.is-fade :is(.cds-spotlight__media > [data-cds-spotlight-slide], .cds-spotlight__pane).is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.cds-spotlight__carousel.is-fade .cds-spotlight__pane.is-active { transition: opacity 0.6s ease 0.15s, visibility 0s; }
@media (prefers-reduced-motion: reduce) {
	.cds-spotlight__carousel.is-fade :is(.cds-spotlight__media > [data-cds-spotlight-slide], .cds-spotlight__pane) { transition: none !important; }
}

/* Events + Listen — one navy band, two columns: "This Week" list on
   the left, the audio card on the right (comp 4-2 ?alt1). */
.cds-events { background: var(--cds-navy); padding: 96px 0; }
.cds-events__layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; }
.cds-events__heading { font-family: var(--cds-font-display); font-weight: 600; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; color: var(--cds-white); margin-bottom: 32px; }
.cds-events__list { display: flex; flex-direction: column; gap: 4px; }
.cds-event-row { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid oklch(0.98 0.01 80 / 0.14); }
.cds-event-row__date { width: 56px; flex-shrink: 0; text-align: center; }
.cds-event-row__day { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cds-green); }
.cds-event-row__num { display: block; font-family: 'Baloo 2', var(--cds-font-body); font-size: 26px; font-weight: 600; line-height: 1.1; color: oklch(0.98 0.01 80); }
.cds-event-row__body { flex: 1; min-width: 0; }
.cds-event-row__title { font-size: 18px; font-weight: 600; line-height: 1.35; color: oklch(0.98 0.01 80); margin-bottom: 2px; text-wrap: pretty; }
.cds-event-row__time { font-size: 14px; color: oklch(0.85 0.02 80); }
.cds-event-row__title a { color: inherit; transition: color 0.2s ease; }
.cds-event-row__title a:hover, .cds-event-row__title a:focus-visible { color: var(--cds-green); }
.cds-events__empty { padding: 18px 0; font-size: 16px; color: oklch(0.85 0.02 80); border-bottom: 1px solid oklch(0.98 0.01 80 / 0.14); }
.cds-events__link { font-size: 16px; margin-top: 30px; }
.cds-events__aside { display: flex; align-items: center; }

/* Listen / audio card (rendered inside .cds-events__aside) */
.cds-listen { position: relative; width: 100%; min-height: 420px; border-radius: var(--cds-radius-md); overflow: hidden; }
.cds-listen__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.cds-listen__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, oklch(0.16 0.04 250 / 0.88) 0%, oklch(0.16 0.04 250 / 0.45) 50%, oklch(0.16 0.04 250 / 0.1) 100%); }
.cds-listen__content { position: relative; min-height: 420px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; }
.cds-listen__kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cds-green); margin-bottom: 12px; }
.cds-listen__heading { font-family: var(--cds-font-display); font-weight: 600; font-size: 26px; line-height: 1.25; color: oklch(0.99 0.008 80); margin-bottom: 6px; text-wrap: pretty; }
.cds-listen__sub { font-size: 14px; color: oklch(0.85 0.02 80); margin-bottom: 24px; }
.cds-audio-player { display: flex; align-items: center; gap: 16px; background: oklch(0.99 0.008 80 / 0.14); border: 1px solid oklch(0.99 0.008 80 / 0.24); border-radius: 999px; padding: 10px 18px 10px 10px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cds-audio-player__toggle { width: 48px; height: 48px; border-radius: 50%; border: none; flex-shrink: 0; cursor: pointer; background: var(--cds-green); color: oklch(0.16 0.04 250); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.cds-audio-player__toggle:hover { transform: scale(1.07); }
.cds-audio-player__toggle:disabled { opacity: 0.5; cursor: not-allowed; }
.cds-audio-player__bars { flex: 1; display: flex; align-items: center; gap: 3px; height: 34px; }
.cds-audio-player__bar { flex: 1; border-radius: 2px; height: var(--cds-bar-h, 40%); background: rgba(255,255,255,0.35); transition: background 0.15s linear; }
.cds-audio-player__bar.is-played { background: var(--cds-green); }
.cds-audio-player__time { font-size: 13px; font-variant-numeric: tabular-nums; color: oklch(0.9 0.015 80); flex-shrink: 0; }

/* Testimonial */
.cds-testimonial { background: var(--cds-white); }
.cds-testimonial__inner { max-width: 1000px; margin: 0 auto; padding: 104px var(--cds-gutter) 96px; text-align: center; position: relative; }
.cds-testimonial__blob { left: 50%; top: 66px; width: 300px; height: 300px; margin-left: -150px; background: rgba(118,192,77,0.14); }
.cds-testimonial__content { position: relative; margin: 0; }
.cds-testimonial__mark { font-family: var(--cds-font-display); font-size: 72px; line-height: 0.4; color: var(--cds-green); margin-bottom: 22px; }
.cds-testimonial__quote { display: block; font-family: var(--cds-font-display); font-style: italic; font-weight: 500; font-size: 28px; line-height: 1.5; color: var(--cds-text); margin-bottom: 30px; text-wrap: pretty; }
.cds-testimonial__name { font-size: 16px; font-weight: 600; color: var(--cds-navy); }
.cds-testimonial__role { font-size: 14px; color: var(--cds-text-mute-2); margin-top: 3px; }
.cds-testimonial__name, .cds-testimonial__role { display: block; }
/* Speaker photo (testimonial featured image) beside the name. */
.cds-testimonial__person { display: flex; align-items: center; justify-content: center; gap: 22px; }
.cds-testimonial.has-avatar .cds-testimonial__who { text-align: left; }
.cds-testimonial__avatar { position: relative; flex-shrink: 0; width: 128px; height: 128px; }
.cds-testimonial__avatar-img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 24px rgba(30,42,90,0.18); }
/* Style: Pale blue. */
.cds-testimonial--tinted { background: var(--cds-blue-pale); }
.cds-testimonial--tinted .cds-testimonial__blob { background: rgba(125,185,234,0.22); }
.cds-testimonial--tinted .cds-testimonial__quote { font-size: clamp(22px, 2.3vw, 30px); }
/* Style: Over a photo. */
.cds-testimonial--photo { position: relative; overflow: hidden; background: var(--cds-navy); }
.cds-testimonial__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cds-testimonial__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,24,52,0.62) 0%, rgba(16,24,52,0.78) 100%); }
.cds-testimonial--photo .cds-testimonial__inner { padding-top: 128px; padding-bottom: 120px; }
.cds-testimonial--photo .cds-testimonial__blob { display: none; }
.cds-testimonial--photo .cds-testimonial__mark { font-size: 80px; margin-bottom: 26px; }
.cds-testimonial--photo .cds-testimonial__quote { color: var(--cds-white); font-size: clamp(22px, 2.5vw, 32px); margin-bottom: 36px; }
.cds-testimonial--photo .cds-testimonial__name { color: var(--cds-white); }
.cds-testimonial--photo .cds-testimonial__role { color: rgba(255,255,255,0.82); }
.cds-testimonial--photo .cds-testimonial__avatar::before { content: ""; position: absolute; inset: -8px; background: rgba(255,255,255,0.16); border-radius: var(--cds-blob-radius); animation: cdsBlobMorph 18s ease-in-out infinite; }
.cds-testimonial--photo .cds-testimonial__avatar-img { box-shadow: 0 0 24px rgba(255,255,255,0.18); }
/* Interior pages: the block butts against neighbouring sections. */
.cds-page__content > .cds-testimonial { margin-block: 0; }
@media (max-width: 780px) {
	.cds-testimonial__avatar { width: 88px; height: 88px; }
	.cds-testimonial__person { gap: 16px; }
	.cds-testimonial--photo .cds-testimonial__inner { padding-top: 88px; padding-bottom: 84px; }
}

/* Photos marquee */
.cds-photos { background: var(--cds-beige); padding: 88px 0 100px; width: 100%; }
.cds-photos__head { margin-bottom: 36px; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cds-photos__viewport { overflow: hidden; width: 100%; }
.cds-photos__track { display: flex; gap: 20px; width: max-content; padding: 0 20px; animation: cdsMarquee 60s linear infinite; }
.cds-photos__viewport:hover .cds-photos__track,
.cds-photos__viewport:focus-within .cds-photos__track { animation-play-state: paused; }
.cds-photos__social { display: flex; align-items: center; gap: 12px; }
.cds-photos__img { width: 250px; height: 250px; flex-shrink: 0; object-fit: cover; border-radius: var(--cds-radius-sm); }

/* Support + tour */
.cds-support-tour { background: var(--cds-white); padding: 100px 0; }
.cds-support-tour__grid { display: grid; grid-template-columns: minmax(0,0.78fr) minmax(0,1.22fr); gap: 36px; }
.cds-support-tour__grid-even { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.cds-support-card { position: relative; background: var(--cds-beige-2); border-radius: var(--cds-radius-lg); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cds-support-card__blob { right: -22%; top: -18%; width: 72%; height: 62%; background: rgba(30,42,90,0.08); }
.cds-support-card__body { position: relative; }
.cds-support-card__body p { font-size: 16px; line-height: 1.7; color: var(--cds-card-text, var(--cds-text-muted)); margin-bottom: 32px; }

.cds-tour-card { position: relative; border-radius: var(--cds-radius-lg); padding: 48px; background: var(--cds-green-light); overflow: hidden; min-height: 340px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: center; }
.cds-tour-card__body { position: relative; z-index: 2; }
.cds-tour-card__body p { font-size: 16px; line-height: 1.7; color: var(--cds-card-text, var(--cds-green-darker)); margin-bottom: 32px; }
.cds-tour-card__art { position: relative; height: 100%; min-height: 280px; }
.cds-tour-card__blob { right: -16%; top: -14%; width: 118%; height: 128%; background: rgba(255,255,255,0.34); }
.cds-tour-card__image { position: absolute; right: -8%; top: -6%; width: 104%; height: 112%; overflow: hidden; border-radius: 58% 42% 48% 52% / 46% 56% 44% 54%; animation: cdsBlobMorph 32s ease-in-out infinite reverse; }
.cds-tour-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 58%; }

/* Support + Tour built from core blocks (inc/support-tour.php).
   Either card's background can be changed in the editor; the blobs are
   pseudo-elements using a translucent tint *over* that background, so
   they always read as a darker/lighter shade of it. Palette colours
   below switch the tint (and text/buttons) for dark backgrounds. */
.cds-support-tour .is-layout-flow > *,
.cds-support-tour.is-layout-flow > * { margin-block-start: 0; }
.cds-support-tour.wp-block-group { margin-block: 0; }
.cds-support-card.wp-block-group::before,
.cds-tour-card__art.wp-block-group::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	border-radius: 58% 42% 46% 54% / 46% 56% 44% 54%;
	animation: cdsBlobMorph 26s ease-in-out infinite;
}
.cds-support-card.wp-block-group::before { right: -22%; top: -18%; width: 72%; height: 62%; background: var(--cds-blob-tint, rgba(30,42,90,0.08)); }
.cds-support-card.wp-block-group > * { position: relative; z-index: 1; }
.cds-tour-card__art.wp-block-group::before { right: -16%; top: -14%; width: 118%; height: 128%; background: var(--cds-blob-tint-light, rgba(255,255,255,0.34)); }
.cds-tour-card__image.wp-block-image { margin: 0; z-index: 1; }
.cds-tour-card__image.wp-block-image img { display: block; max-width: none; }
.cds-support-card .cds-heading-sm { color: var(--cds-card-heading, var(--cds-navy)); }
/* A linked card heading: underlined in the heading's own colour; on hover /
   focus the underline goes away (no colour change — green fails contrast
   on the light-green card). */
.cds-support-card :is(h2, h3, h4) a { color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cds-support-card :is(h2, h3, h4) a:is(:hover, :focus-visible) { color: inherit; text-decoration: none; }
.cds-tour-card .cds-heading-sm { color: var(--cds-card-heading, var(--cds-navy-deep)); }
.cds-support-card .wp-block-buttons,
.cds-tour-card .wp-block-buttons { margin: 0; }
.cds-support-card .wp-block-button__link,
.cds-tour-card .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 30px;
	font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease;
}
.cds-support-card .wp-block-button__link,
.cds-tour-card .wp-block-button__link { background: var(--cds-card-button-bg, var(--cds-navy)); color: var(--cds-card-button-fg, var(--cds-white)); border: 0; }
.cds-support-card .wp-block-button__link:hover,
.cds-tour-card .wp-block-button__link:hover { transform: scale(1.05); }

/* Dark backgrounds: light blobs, white text, inverted buttons. */
.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color,
.has-green-dark-background-color, .has-ink-background-color, .has-text-muted-background-color {
	--cds-blob-tint: rgba(255,255,255,0.10);
	--cds-blob-tint-light: rgba(255,255,255,0.14);
	--cds-card-heading: var(--cds-white);
	--cds-card-text: rgba(255,255,255,0.82);
	--cds-card-button: var(--cds-white);
	--cds-card-button-hover-bg: rgba(255,255,255,0.12);
	--cds-card-button-bg: var(--cds-white);
	--cds-card-button-fg: var(--cds-navy);
}
/* Light neutrals: a white blob wouldn't show, so tint with navy instead. */
.has-white-background-color, .has-beige-background-color, .has-beige-2-background-color {
	--cds-blob-tint-light: rgba(30,42,90,0.07);
	--cds-card-text: var(--cds-text-muted);
}
.has-green-background-color, .has-green-light-background-color {
	--cds-card-text: var(--cds-green-darker);
}

/* ---------- Interior pages (page.php) ---------- */
/* Header gets a hairline on interior pages (per sub-page comps). */
body:not(.home) .cds-header { border-bottom: 1px solid var(--cds-beige); }

/* Page header banner — template-parts/page-header.php. Colour comes from
   a variant class; "Rotate" swaps it at random on load. Blobs are
   pseudo-elements so the markup stays clean. */
.cds-page-header {
	--ph-bg: var(--cds-beige); --ph-title: var(--cds-navy); --ph-text: var(--cds-text-muted); --ph-muted: var(--cds-text-muted);
	--ph-blob-a: rgba(118,192,77,0.2); --ph-blob-b: rgba(30,42,90,0.1);
	position: relative; overflow: hidden; background: var(--ph-bg);
	padding: 64px var(--cds-gutter) 76px;
}
.cds-page-header--navy {
	--ph-bg: var(--cds-navy); --ph-title: var(--cds-white); --ph-text: rgba(255,255,255,0.85); --ph-muted: rgba(255,255,255,0.7);
	--ph-blob-a: rgba(118,192,77,0.22); --ph-blob-b: rgba(255,255,255,0.08);
}
.cds-page-header--green {
	--ph-bg: var(--cds-green-light); --ph-title: var(--cds-navy-deep); --ph-text: var(--cds-green-darker); --ph-muted: var(--cds-green-darker);
	--ph-blob-a: rgba(255,255,255,0.24); --ph-blob-b: rgba(30,42,90,0.14);
}
.cds-page-header::before,
.cds-page-header::after { content: ""; position: absolute; pointer-events: none; animation: cdsBlobMorph 26s ease-in-out infinite; }
.cds-page-header::before { right: -6%; top: -40%; width: 40%; height: 170%; background: var(--ph-blob-a); border-radius: 58% 42% 48% 52% / 46% 56% 44% 54%; }
.cds-page-header::after { right: 22%; bottom: -38%; width: 16%; height: 90%; background: var(--ph-blob-b); border-radius: 52% 48% 60% 40% / 44% 56% 44% 56%; animation-duration: 21s; animation-direction: reverse; }
.cds-page-header__inner { position: relative; z-index: 1; max-width: var(--cds-container); margin: 0 auto; }
.cds-breadcrumb { margin-bottom: 18px; }
.cds-breadcrumb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--ph-muted); }
.cds-breadcrumb__item + .cds-breadcrumb__item::before { content: "/"; margin-right: 10px; }
.cds-breadcrumb a { color: var(--ph-title); font-weight: 500; transition: opacity 0.2s ease; }
.cds-breadcrumb a:hover { opacity: 0.75; text-decoration: underline; text-underline-offset: 3px; }
.cds-page-header__title { font-family: var(--cds-font-display); font-weight: 600; font-size: var(--wp--preset--font-size--huge, 54px); line-height: 1.1; color: var(--ph-title); margin-bottom: 14px; text-wrap: balance; }
.cds-page-header__intro { font-size: var(--wp--preset--font-size--large, 18px); line-height: 1.65; color: var(--ph-text); max-width: 620px; text-wrap: pretty; }

/* Page content (page.php, single.php): WordPress constrained layout.
   Loose blocks sit in a ~760px reading column; "Wide" = the 1224px page
   column; "Full" = edge to edge. Full-width sections reset the column to
   1224px for their contents, so section patterns look the same as ever.
   The editor gets the same widths (body.cds-editor-reading, set by
   assets/js/editor-banner.js). */
.cds-page__content,
.cds-editor-reading { --wp--style--global--content-size: 760px; --wp--style--global--wide-size: var(--cds-container); }
:is(.cds-page__content, .cds-editor-reading) .alignfull { --wp--style--global--content-size: var(--cds-container); --wp--style--global--wide-size: var(--cds-container); }
/* The editor writes the theme.json widths onto its root container as fixed
   values, so point them back at the variables. */
.cds-editor-reading .block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: var(--wp--style--global--content-size); }
.cds-editor-reading .block-editor-block-list__layout.is-root-container > .alignwide { max-width: var(--wp--style--global--wide-size); }
.cds-page__content { font-size: var(--wp--preset--font-size--medium, 17px); line-height: 1.7; color: var(--cds-text-muted); }

/* Vertical rhythm: sections butt together; loose content keeps its distance. */
.cds-page__content > .alignfull { margin-block: 0; }
.cds-page__content > :not(.alignfull):first-child { margin-top: var(--cds-section-pad-top); }
.cds-page__content > :not(.alignfull):last-child { margin-bottom: var(--cds-section-pad-bottom); }
.cds-page__content > .alignfull + :not(.alignfull) { margin-top: var(--cds-section-pad-top); }
.cds-page__content > :not(.alignfull) + .alignfull { margin-top: var(--cds-section-pad-bottom); }
.cds-page__content > .alignwide,
.cds-page__content > .alignwide + :not(.alignfull) { margin-top: 48px; }
:is(.cds-page__content, .cds-editor-reading .is-root-container) > :is(h2, h3, h4).wp-block-heading:not(:first-child) { margin-top: 1.7em; }
:is(.cds-page__content, .cds-editor-reading .is-root-container) > :is(h2, h3, h4).wp-block-heading + * { margin-top: 14px; }

/* Links and lists (also in the editor). */
:is(.cds-page__content, .editor-styles-wrapper) :where(p, li, td, figcaption) a:not(.wp-block-button__link) { color: var(--cds-navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cds-green); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color 0.2s ease; }
:is(.cds-page__content, .editor-styles-wrapper) :where(p, li, td, figcaption) a:not(.wp-block-button__link):hover { color: var(--cds-green-dark); }
:is(.cds-page__content, .editor-styles-wrapper) ul.wp-block-list { list-style: none; padding-left: 0; }
:is(.cds-page__content, .editor-styles-wrapper) ul.wp-block-list > li { position: relative; padding-left: 22px; }
:is(.cds-page__content, .editor-styles-wrapper) ul.wp-block-list > li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--cds-green); }
:is(.cds-page__content, .editor-styles-wrapper) ol.wp-block-list { list-style: decimal; padding-left: 1.5em; }
:is(.cds-page__content, .editor-styles-wrapper) ol.wp-block-list > li::marker { color: var(--cds-navy); font-weight: 700; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-list li + li { margin-top: 0.5em; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-list .wp-block-list { margin-top: 0.5em; }

/* Link list (List style): mini table of contents. One link per item; the
   whole row is clickable. */
:is(.cds-page__content, .editor-styles-wrapper) ul.wp-block-list.is-style-link-list { --cds-divider: rgba(30,42,90,0.14); margin: 0; padding: 0; border-top: 1px solid var(--cds-divider); }
:is(.cds-page__content, .editor-styles-wrapper) ul.wp-block-list.is-style-link-list > li { margin: 0; padding: 0; border-bottom: 1px solid var(--cds-divider); }
:is(.cds-page__content, .editor-styles-wrapper) ul.wp-block-list.is-style-link-list > li::before { content: none; }
:is(.cds-page__content, .editor-styles-wrapper) ul.wp-block-list.is-style-link-list > li > a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 17px 4px; font-family: var(--cds-font-display); font-weight: 600; font-size: 21px; line-height: 1.3;
	color: var(--cds-navy); text-decoration: none; transition: color 0.2s ease;
}
:is(.cds-page__content, .editor-styles-wrapper) ul.wp-block-list.is-style-link-list > li > a::after { content: "\2192"; flex: 0 0 auto; font-family: var(--cds-font-body, inherit); color: var(--cds-green-dark); transition: transform 0.2s ease; }
:is(.cds-page__content, .editor-styles-wrapper) ul.wp-block-list.is-style-link-list > li > a:is(:hover, :focus-visible) { color: var(--cds-green-dark); }
:is(.cds-page__content, .editor-styles-wrapper) ul.wp-block-list.is-style-link-list > li > a:is(:hover, :focus-visible)::after { transform: translateX(4px); }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color) ul.wp-block-list.is-style-link-list { --cds-divider: rgba(255,255,255,0.2); }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color) ul.wp-block-list.is-style-link-list > li > a { color: var(--cds-white); }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color) ul.wp-block-list.is-style-link-list > li > a::after { color: var(--cds-green); }

/* Quote + pull quote. */
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-quote { margin-inline: 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--cds-green); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-quote p { font-family: var(--cds-font-display); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--cds-navy); }
:is(.cds-page__content, .editor-styles-wrapper) :is(.wp-block-quote, .wp-block-pullquote) cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; font-weight: 600; color: var(--cds-text-muted); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-pullquote { margin-block: 48px; padding: 36px 0; border-top: 4px solid var(--cds-green); border-bottom: 4px solid var(--cds-green); text-align: center; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-pullquote blockquote { margin: 0; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-pullquote p { font-family: var(--cds-font-display); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; color: var(--cds-navy); }

/* Images, captions, galleries, video. Plain images get soft corners;
   images with a CDS style keep theirs. */
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-image:not([class*="is-style-"]) img { border-radius: var(--cds-radius-sm); }
:is(.cds-page__content, .editor-styles-wrapper) :is(.wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-video) figcaption,
:is(.cds-page__content, .editor-styles-wrapper) .wp-element-caption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--cds-text-muted); text-align: left; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-gallery.has-nested-images { gap: 16px; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--cds-radius-sm); }
.wp-block-gallery.has-nested-images.is-style-captions-below { align-items: flex-start; }
/* Every photo keeps its column width, so a short last row sits left
   instead of stretching. */
.wp-block-gallery.has-nested-images.is-style-captions-below figure.wp-block-image:not(#individual-image) { justify-content: flex-start; flex-grow: 0; }
.wp-block-gallery.has-nested-images.is-style-captions-below figure.wp-block-image:has(figcaption)::before { content: none; display: none; }
.wp-block-gallery.has-nested-images.is-style-captions-below figure.wp-block-image figcaption {
	position: static; width: auto; max-height: none; overflow: visible;
	margin: 10px 0 0; padding: 0; background: none; text-shadow: none;
	font-size: 14px; line-height: 1.5; color: var(--cds-text-muted); text-align: left;
}
/* "Crop images to fit": every photo the same shape, so captions of
   different lengths don't make the photos different heights. */
.wp-block-gallery.has-nested-images.is-style-captions-below.is-cropped figure.wp-block-image:not(#individual-image) img { flex: 0 0 auto; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-gallery.has-nested-images.is-style-captions-below.is-cropped figure.wp-block-image:not(#individual-image) :is(> div, > a) { flex: 0 0 auto; }
:is(.cds-page__content, .editor-styles-wrapper) :is(.wp-block-embed__wrapper iframe, .wp-block-video video) { border-radius: var(--cds-radius-sm); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-media-text__media img { border-radius: var(--cds-radius-md); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-media-text.has-background { border-radius: var(--cds-radius-lg); overflow: hidden; }

/* Columns outside sections. */
.cds-page__content > .wp-block-columns { column-gap: clamp(28px, 4vw, 48px); row-gap: 32px; }

/* Table: hairlines, navy header; "Stripes" style = beige light rows. */
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-table :is(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--cds-border-light); text-align: left; vertical-align: top; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-table thead { border-bottom: 0; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-table thead th { border-bottom: 2px solid var(--cds-navy); font-weight: 700; color: var(--cds-navy); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-table td { color: var(--cds-text); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-table.is-style-stripes { border-bottom: 0; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--cds-beige-2); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-table.is-style-stripes :is(th, td) { border-bottom: 0; }

/* Separator: default = hairline; "Wide line" = full column; "Dots". */
:is(.cds-page__content, .editor-styles-wrapper) hr.wp-block-separator:not(.is-style-accent):not(.is-style-dots) { border: 0; border-top: 1px solid var(--cds-border); opacity: 1; }
:is(.cds-page__content, .editor-styles-wrapper) hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots):not(.is-style-accent) { width: 120px; margin-inline: auto; }
:is(.cds-page__content, .editor-styles-wrapper) hr.wp-block-separator.is-style-dots::before { color: var(--cds-green); letter-spacing: 1.5em; font-size: 22px; }
.cds-page__content > hr.wp-block-separator { margin-block: 48px; }

/* File download (e.g. a PDF): a tidy row with a pill button. */
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 22px; background: var(--cds-beige-2); border-radius: var(--cds-radius-sm); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-file > a:not(.wp-block-file__button) { font-weight: 600; color: var(--cds-navy); text-decoration: none; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-file > a:not(.wp-block-file__button)::before { content: "PDF"; display: inline-block; margin-right: 12px; padding: 3px 7px; border-radius: 6px; background: var(--cds-navy); color: var(--cds-white); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; vertical-align: 2px; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-file > a:not(.wp-block-file__button):not([href$=".pdf"]):not([href$=".PDF"])::before { content: "FILE"; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-file .wp-block-file__button { margin: 0; padding: 10px 20px; border-radius: 999px; background: var(--cds-navy); color: var(--cds-white); font-size: 15px; font-weight: 600; text-decoration: none; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-file .wp-block-file__button:hover { background: var(--cds-navy-deep); }

/* Details (accordion): a stack reads as one list. */
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-details { border-top: 1px solid var(--cds-border); border-bottom: 1px solid var(--cds-border); padding: 0; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-details + .wp-block-details { margin-top: 0; border-top: 0; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-details summary { position: relative; padding: 20px 44px 20px 0; list-style: none; cursor: pointer; font-family: var(--cds-font-display); font-weight: 600; font-size: 20px; line-height: 1.35; color: var(--cds-navy); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-details summary::-webkit-details-marker { display: none; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-details summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2.5px solid var(--cds-green-dark); border-bottom: 2.5px solid var(--cds-green-dark); transform: rotate(45deg); transition: transform 0.2s ease; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-details summary:focus-visible { outline: 3px solid var(--cds-green); outline-offset: 2px; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-details > :not(summary) { margin: 0 0 20px; }

/* Section = Group block with the "Section" style. */
.wp-block-group.is-style-section { padding-top: var(--cds-section-pad-top); padding-bottom: var(--cds-section-pad-bottom); color: var(--cds-text-muted); }
.is-style-section .wp-block-heading + .is-style-lead,
.is-style-section .is-style-lead + .is-style-lead { margin-top: 14px; }
.is-style-section .is-style-lead + :not(.is-style-lead) { margin-top: 40px; }

/* Lead paragraph (18px). The constrained layout forces auto side margins on
   direct children, so the ~640px measure is made with right padding
   (keeps it left-aligned with the heading). */
/* Lead measure ≈640px, left-aligned. Constrained layout forces auto side
   margins, so the measure is right padding. Percent padding is measured
   against the parent (the full section), not the paragraph, so cap it at
   the content size the paragraph itself is limited to. */
p.is-style-lead { font-size: var(--wp--preset--font-size--large, 18px); line-height: 1.65; color: var(--cds-text-muted); padding-right: max(0px, calc(min(100%, var(--wp--style--global--content-size, 100%)) - 640px)); text-wrap: pretty; }
/* Loose on a page the reading column is already narrow: no right inset. */
:is(.cds-page__content, .cds-editor-reading .is-root-container) > p.is-style-lead { padding-right: 0; }

/* Sections on dark backgrounds invert headings, text and links. */
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color, .has-ink-background-color, .has-text-muted-background-color) {
	color: rgba(255,255,255,0.86);
}
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color, .has-ink-background-color, .has-text-muted-background-color) :where(h1, h2, h3, h4, h5, h6) { color: var(--cds-white); }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color, .has-ink-background-color, .has-text-muted-background-color) :where(p.is-style-lead) { color: rgba(255,255,255,0.82); }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color, .has-ink-background-color, .has-text-muted-background-color) :where(p, li) a:not(.wp-block-button__link) { color: var(--cds-green-light); text-decoration-color: currentColor; }

/* Columns inside sections: design gutters (48–64px). */
.is-style-section .wp-block-columns { column-gap: clamp(32px, 5vw, 64px); row-gap: 48px; }
.is-style-section > * + .wp-block-columns { margin-top: 44px; }

/* Buttons in page content (core Buttons). Colours come from the block
   (palette); default = green light / navy-deep from theme.json. */
.cds-page__content .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; font-size: 16px; font-weight: 600; line-height: 1.2; border-radius: 999px; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease; }
.cds-page__content .wp-block-button__link:hover { transform: scale(1.05); }
.cds-page__content .wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid currentColor; padding: 14.5px 28.5px; background: transparent; color: var(--cds-navy); }
.cds-page__content .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--cds-beige-2); }
.cds-page__content .wp-block-buttons { gap: 14px; }

/* Eyebrow paragraph ("Option 1"). */
p.is-style-eyebrow { font-family: var(--cds-font-display); font-weight: 700; font-size: 16px; color: var(--cds-green-dark); margin-bottom: 10px; }

/* Details line (paragraph style): facts such as times · grades · price. */
p.is-style-details { font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--cds-navy); }

/* Program card (group style): one camp / class / clinic. Lighter than the
   Card style so a long list of them stays easy to scan. */
.wp-block-group.is-style-program-card { display: flex; flex-direction: column; background: var(--cds-white); border: 1px solid rgba(30,42,90,0.1); border-radius: var(--cds-radius-md); padding: 26px 28px 28px; }
.wp-block-group.is-style-program-card.has-background { border-color: transparent; }
.wp-block-group.is-style-program-card > * { margin-block: 0; }
.wp-block-group.is-style-program-card > p.is-style-eyebrow { font-size: 15px; margin-bottom: 8px; }
.wp-block-group.is-style-program-card > :where(h2, h3, h4) { font-size: 22px; line-height: 1.3; margin-bottom: 8px; color: var(--cds-navy); }
.wp-block-group.is-style-program-card > p.is-style-details { margin-bottom: 12px; }
.wp-block-group.is-style-program-card > p:not(.is-style-eyebrow, .is-style-details) { font-size: 16px; line-height: 1.65; color: var(--cds-text-muted); }
.wp-block-group.is-style-program-card > p:not(.is-style-eyebrow, .is-style-details) + p { margin-top: 10px; }
.wp-block-group.is-style-program-card > .wp-block-buttons { margin-top: auto; padding-top: 18px; }

/* Card group style. */
.wp-block-group.is-style-card {
	position: relative; overflow: hidden; border-radius: var(--cds-radius-lg);
	padding: 44px 42px 46px; display: flex; flex-direction: column;
	color: var(--cds-card-text, var(--cds-text-muted));
}
.wp-block-group.is-style-card:not(.has-background) { background: var(--cds-beige-2); }
.wp-block-group.is-style-card::before { content: ""; position: absolute; right: -14%; top: -26%; width: 52%; height: 62%; border-radius: var(--cds-blob-radius); background: var(--cds-card-blob, rgba(118,192,77,0.18)); animation: cdsBlobMorph 24s ease-in-out infinite; pointer-events: none; }
.wp-block-group.is-style-card > * { position: relative; z-index: 1; margin-block: 0; }
.wp-block-group.is-style-card > :where(h2, h3, h4) { margin-bottom: 14px; color: var(--cds-card-heading, var(--cds-navy)); }
.wp-block-group.is-style-card > p:not(.is-style-eyebrow) { font-size: 17.5px; line-height: 1.7; margin-bottom: 30px; }
.wp-block-group.is-style-card > p:not(.is-style-eyebrow):last-of-type { flex: 1; }
.wp-block-group.is-style-card > .wp-block-buttons { margin-top: auto; }
/* Every other card in a row uses the navy accent (as in the comps). */
.wp-block-group.is-style-card:nth-child(even) { --cds-card-blob: rgba(30,42,90,0.08); }
.wp-block-group.is-style-card:nth-child(even) > .is-style-eyebrow { color: var(--cds-navy); }
.wp-block-group.is-style-card:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color) { --cds-card-blob: rgba(255,255,255,0.10); --cds-card-heading: var(--cds-white); --cds-card-text: rgba(255,255,255,0.84); }
.wp-block-group.is-style-card:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color) > .is-style-eyebrow { color: var(--cds-green-light); }
.wp-block-group.is-style-card:is(.has-green-background-color, .has-green-light-background-color) { --cds-card-blob: rgba(255,255,255,0.24); --cds-card-text: var(--cds-green-darker); --cds-card-heading: var(--cds-navy-deep); }
.wp-block-group.is-style-card:is(.has-green-background-color, .has-green-light-background-color) > .is-style-eyebrow { color: var(--cds-navy-deep); }

/* Top rule (columns / groups). */
.is-style-rule-top { border-top: 4px solid var(--cds-green); padding-top: 22px; }
.is-style-rule-top > :where(h2, h3, h4) { margin-bottom: 12px; }
.is-style-rule-top > * + * { margin-top: 0; }
.is-style-rule-top > p { font-size: 16.5px; line-height: 1.7; }
.is-style-rule-top .wp-block-list { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16.5px; line-height: 1.7; }
.is-style-rule-top .wp-block-list li { position: relative; padding-left: 20px; margin: 0; }
.is-style-rule-top .wp-block-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--cds-green); }
.is-style-rule-top .wp-block-list li + li { margin-top: 0; }
/* FAQ: a narrow stack of top-rule groups. */
.cds-faq > .is-style-rule-top + .is-style-rule-top { margin-top: 40px; }
.cds-faq .is-style-rule-top > :where(h3) { font-size: 21px; line-height: 1.35; text-wrap: pretty; }
.cds-faq .is-style-rule-top > p { color: var(--cds-text-muted); line-height: 1.65; }
.is-style-section > .has-text-align-center + .cds-faq { margin-top: 48px; }

/* Photo treatments (core Image block styles). Set the shape with the
   Image block's own Aspect ratio control. */
.wp-block-image.is-style-blob,
.wp-block-image.is-style-blob-backdrop { position: relative; isolation: isolate; }
.wp-block-image.is-style-blob img,
.wp-block-image.is-style-blob-backdrop img,
.wp-block-image.is-style-soft img { width: 100%; object-fit: cover; }
.wp-block-image.is-style-blob::before,
.wp-block-image.is-style-blob-backdrop::before { content: ""; position: absolute; z-index: -1; pointer-events: none; animation: cdsBlobMorph 26s ease-in-out infinite; }
.wp-block-image.is-style-blob::before { left: -5%; top: -5%; width: 100%; height: 104%; background: var(--cds-image-blob, rgba(118,192,77,0.24)); border-radius: 58% 42% 48% 52% / 46% 56% 44% 54%; }
.wp-block-image.is-style-blob img { border-radius: 56% 44% 52% 48% / 46% 52% 48% 54%; animation: cdsBlobMorph 30s ease-in-out infinite reverse; }
.wp-block-image.is-style-blob-backdrop::before { left: -6%; top: -12%; width: 70%; height: 90%; background: var(--cds-image-blob, rgba(118,192,77,0.24)); border-radius: 56% 44% 52% 48% / 44% 54% 46% 56%; animation-duration: 25s; }
.wp-block-image.is-style-blob-backdrop img { border-radius: var(--cds-radius-lg); box-shadow: var(--cds-shadow-photo); }
.wp-block-image.is-style-soft img { border-radius: var(--cds-radius-md); }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color) { --cds-image-blob: rgba(118,192,77,0.22); --cds-image-blob-2: rgba(255,255,255,0.10); }
/* Blobs poke out past the column; keep the page from scrolling sideways. */
.cds-page { overflow-x: clip; }

/* Photo cluster (Group style, exactly 3 Image blocks): large blob photo
   top-right + two smaller overlapping blob photos along the bottom, each
   with its own soft backdrop blob (figure::before). Square box that
   scales with its column. Comp: Elementary › Community and Culture. */
.wp-block-group.is-style-photo-cluster { position: relative; isolation: isolate; width: 100%; max-width: 620px; aspect-ratio: 1 / 1; margin-inline: auto; padding: 0; }
.is-style-photo-cluster > .wp-block-image { position: absolute; margin: 0; }
.is-style-photo-cluster > .wp-block-image > img,
.is-style-photo-cluster > .wp-block-image img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; aspect-ratio: auto !important; }
.is-style-photo-cluster > .wp-block-image figcaption { display: none; }
.is-style-photo-cluster > .wp-block-image::before { content: ""; position: absolute; z-index: -1; pointer-events: none; animation: cdsBlobMorph 26s ease-in-out infinite; }
/* 1: large */
.is-style-photo-cluster > .wp-block-image:nth-of-type(1) { z-index: 1; right: 0; top: 0; width: 92%; height: 84%; }
.is-style-photo-cluster > .wp-block-image:nth-of-type(1) img { border-radius: 56% 44% 52% 48% / 46% 52% 48% 54%; animation: cdsBlobMorph 30s ease-in-out infinite reverse; object-position: 20% 50%; }
.is-style-photo-cluster > .wp-block-image:nth-of-type(1)::before { left: 1%; top: -6%; width: 104%; height: 124%; background: var(--cds-cluster-blob, rgba(118,192,77,0.24)); border-radius: 58% 42% 48% 52% / 46% 56% 44% 54%; }
/* 2: small, bottom left */
.is-style-photo-cluster > .wp-block-image:nth-of-type(2) { z-index: 2; left: -2%; bottom: 1%; width: 54%; height: 50%; }
.is-style-photo-cluster > .wp-block-image:nth-of-type(2) img { border-radius: 62% 38% 44% 56% / 52% 46% 54% 48%; animation: cdsBlobMorph 22s ease-in-out infinite; box-shadow: 0 20px 44px rgba(0,0,0,0.3); }
.is-style-photo-cluster > .wp-block-image:nth-of-type(2)::before { left: -7%; top: 0; width: 111%; height: 108%; background: var(--cds-cluster-blob-2, rgba(150,156,170,0.28)); border-radius: 60% 40% 46% 54% / 50% 48% 52% 50%; animation-duration: 24s; animation-direction: reverse; }
/* 3: small, bottom right */
.is-style-photo-cluster > .wp-block-image:nth-of-type(3) { z-index: 3; right: 1%; bottom: -6%; width: 49%; height: 47%; }
.is-style-photo-cluster > .wp-block-image:nth-of-type(3) img { border-radius: 44% 56% 60% 40% / 56% 44% 56% 44%; animation: cdsBlobMorph 27s ease-in-out infinite reverse; box-shadow: 0 18px 38px rgba(0,0,0,0.28); }
.is-style-photo-cluster > .wp-block-image:nth-of-type(3)::before { left: -4%; top: -2%; width: 110%; height: 111%; background: var(--cds-cluster-blob-2, rgba(150,156,170,0.28)); border-radius: 46% 54% 58% 42% / 54% 46% 54% 46%; animation-duration: 29s; }
.is-style-photo-cluster > .wp-block-image:nth-of-type(n+4) { display: none; }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color) { --cds-cluster-blob: rgba(118,192,77,0.22); }
.is-style-section:is(.has-white-background-color, .has-beige-background-color, .has-beige-2-background-color, .has-blue-pale-background-color, .has-green-pale-background-color) { --cds-cluster-blob-2: rgba(30,42,90,0.12); }
@media (max-width: 780px) {
	.wp-block-group.is-style-photo-cluster { max-width: 440px; margin-bottom: 24px; }
}

/* Divided list (Group style): each child separated by a hairline. */
.wp-block-group.is-style-divided { --cds-divider: rgba(30,42,90,0.14); }
.wp-block-group.is-style-divided > * { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--cds-divider); }
.wp-block-group.is-style-divided > :first-child { padding-top: 0; }
.wp-block-group.is-style-divided > :last-child { padding-bottom: 0; border-bottom: 0; }
.wp-block-group.is-style-divided > * > :where(h3, h4) { margin-bottom: 8px; }
.wp-block-group.is-style-divided > * > * + * { margin-top: 0; }
.wp-block-group.is-style-divided > * > p.is-style-arrow-link { margin-top: 14px; }
.wp-block-group.is-style-divided > * > p:not(.is-style-arrow-link) { font-size: 16.5px; line-height: 1.7; }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color) .is-style-divided { --cds-divider: rgba(255,255,255,0.18); }

/* Arrow link (Paragraph style). */
p.is-style-arrow-link { font-size: 15px; font-weight: 700; margin-top: 14px; }
:is(.cds-page__content, .editor-styles-wrapper) p.is-style-arrow-link a:not(.wp-block-button__link) { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 1.5px solid var(--cds-green); color: var(--cds-navy); font-weight: 700; text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease; }
:is(.cds-page__content, .editor-styles-wrapper) p.is-style-arrow-link a:not(.wp-block-button__link)::after { content: "→"; transition: transform 0.2s ease; }
:is(.cds-page__content, .editor-styles-wrapper) p.is-style-arrow-link a:not(.wp-block-button__link):is(:hover, :focus-visible) { color: var(--cds-green-dark); }
:is(.cds-page__content, .editor-styles-wrapper) p.is-style-arrow-link a:not(.wp-block-button__link):is(:hover, :focus-visible)::after { transform: translateX(4px); }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color) p.is-style-arrow-link a:not(.wp-block-button__link) { color: var(--cds-white); }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color) p.is-style-arrow-link a:not(.wp-block-button__link):is(:hover, :focus-visible) { color: var(--cds-green-light); }

/* Statement (Paragraph style): large Bitter sentence (division intro). */
p.is-style-statement { font-family: var(--cds-font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; color: var(--cds-navy); text-wrap: pretty; }
p.is-style-statement + p.is-style-arrow-link { margin-top: 30px; font-size: 16px; }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color) p.is-style-statement { color: var(--cds-white); }

/* Media card (Group style): photo, heading, text. */
/* Card grid: WP's grid layout can't take separate row/column gaps (it
   puts both into one calc), so the pattern sets 40px and rows get 56px here. */
.wp-block-group.cds-card-grid { row-gap: 56px; }
.wp-block-group.is-style-media-card > * { margin-block: 0; }
.wp-block-group.is-style-media-card > .wp-block-image { margin-bottom: 22px; }
.wp-block-group.is-style-media-card > :where(h3, h4) { margin-bottom: 10px; }
.wp-block-group.is-style-media-card > p { font-size: 16.5px; line-height: 1.7; }

/* CTA banner (Group style, flex row). Default green light; text/blob
   adapt to dark and light-neutral backgrounds. */
.wp-block-group.is-style-cta-banner {
	--cta-heading: var(--cds-navy-deep); --cta-text: var(--cds-green-darker); --cta-blob: rgba(255,255,255,0.22);
	position: relative; overflow: hidden; isolation: isolate; border-radius: var(--cds-radius-lg); padding: 56px; gap: 24px 32px;
}
.wp-block-group.is-style-cta-banner:not(.has-background) { background: var(--cds-green-light); }
.wp-block-group.is-style-cta-banner::before { content: ""; position: absolute; z-index: -1; right: -6%; top: -50%; width: 38%; height: 200%; background: var(--cta-blob); border-radius: 56% 44% 50% 50% / 46% 54% 46% 54%; animation: cdsBlobMorph 28s ease-in-out infinite; pointer-events: none; }
.wp-block-group.is-style-cta-banner > .wp-block-group { flex: 1 1 360px; max-width: 620px; }
.wp-block-group.is-style-cta-banner > .wp-block-group > * { margin-block: 0; }
.wp-block-group.is-style-cta-banner :where(h2, h3) { color: var(--cta-heading); }
.wp-block-group.is-style-cta-banner > .wp-block-group > :where(h2, h3) { margin-bottom: 10px; }
.wp-block-group.is-style-cta-banner p { font-size: 17px; line-height: 1.65; color: var(--cta-text); }
.wp-block-group.is-style-cta-banner:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color) { --cta-heading: var(--cds-white); --cta-text: rgba(255,255,255,0.84); --cta-blob: rgba(255,255,255,0.10); }
.wp-block-group.is-style-cta-banner:is(.has-white-background-color, .has-beige-background-color, .has-beige-2-background-color, .has-blue-pale-background-color, .has-green-pale-background-color) { --cta-heading: var(--cds-navy); --cta-text: var(--cds-text-muted); --cta-blob: rgba(30,42,90,0.07); }

/* Section header row with a button on the right (Day in the Life). */
.is-style-section > .wp-block-columns + .cds-timeline { margin-top: 44px; }

@media (max-width: 780px) {
	.wp-block-group.is-style-cta-banner { padding: 36px 28px; }
	.wp-block-buttons.cds-buttons-end { justify-content: flex-start; }
}

/* Announcement: date/time line under the title. */
p.cds-event-when { font-weight: 600; }
.wp-block-heading + p.cds-event-when { margin-top: 14px; }
p.cds-event-when + p { margin-top: 20px; }
.wp-block-column > p + .wp-block-buttons { margin-top: 32px; }

/* Rounded + two blobs (Image style): green top-right, navy bottom-left. */
.wp-block-image.is-style-blob-pair { position: relative; isolation: isolate; }
.wp-block-image.is-style-blob-pair::before,
.wp-block-image.is-style-blob-pair::after { content: ""; position: absolute; z-index: -1; pointer-events: none; animation: cdsBlobMorph 24s ease-in-out infinite; }
.wp-block-image.is-style-blob-pair::before { right: -6%; top: -8%; width: 76%; height: 80%; background: var(--cds-image-blob, rgba(118,192,77,0.24)); border-radius: 58% 42% 48% 52% / 46% 56% 44% 54%; }
.wp-block-image.is-style-blob-pair::after { left: -6%; bottom: -8%; width: 46%; height: 50%; background: var(--cds-image-blob-2, rgba(30,42,90,0.14)); border-radius: 52% 48% 60% 40% / 44% 56% 44% 56%; animation-duration: 28s; animation-direction: reverse; }
.wp-block-image.is-style-blob-pair img { width: 100%; object-fit: cover; border-radius: var(--cds-radius-md); }

/* Accent bar (Separator style). */
hr.wp-block-separator.is-style-accent { width: 120px; max-width: 120px; height: 4px; margin-inline: auto !important; border: 0; border-radius: 2px; background: var(--cds-green); opacity: 1; }
/* Between two full-width sections the bar sits on the seam; elsewhere it
   takes normal spacing. */
.cds-page__content > .alignfull + hr.wp-block-separator.is-style-accent { margin-block: 0; }
.cds-page__content > .alignfull + hr.wp-block-separator.is-style-accent + .alignfull { margin-top: 0; }

/* Tilted cover (Image style): Harmony magazine cover. */
.wp-block-image.is-style-tilted { position: relative; isolation: isolate; max-width: 380px; margin-inline: auto; }
.wp-block-image.is-style-tilted::before { content: ""; position: absolute; z-index: -1; left: -12%; top: -8%; width: 124%; height: 116%; background: rgba(118,192,77,0.2); border-radius: 58% 42% 46% 54% / 48% 54% 46% 52%; animation: cdsBlobMorph 24s ease-in-out infinite; pointer-events: none; }
.wp-block-image.is-style-tilted img { width: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 30px 60px rgba(30,42,90,0.28); transform: rotate(-2.5deg); }

/* Button styles matching the homepage hero (core Button block).
   Arrow: hero "Schedule a Tour" — green pill + arrow that nudges on hover
   (follows the block's own colour settings if set). Light: hero "Now
   Accepting Applications" — white pill, beige border. Also on the homepage
   and in the editor. */
.wp-block-button:is(.is-style-arrow, .is-style-light) .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; font-size: 16px; font-weight: 600; line-height: 1.2; border-radius: 999px; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease; }
.wp-block-button:is(.is-style-arrow, .is-style-light) .wp-block-button__link:hover { transform: scale(1.05); }
.wp-block-button.is-style-arrow .wp-block-button__link:not(.has-background) { background: var(--cds-green-light); }
.wp-block-button.is-style-arrow .wp-block-button__link:not(.has-text-color) { color: var(--cds-navy-deep); }
.wp-block-button.is-style-arrow .wp-block-button__link::after { content: "\2192"; transition: transform 0.2s ease; }
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button.is-style-light .wp-block-button__link { padding: 14.5px 30.5px; border: 1.5px solid var(--cds-border); }
.wp-block-button.is-style-light .wp-block-button__link:not(.has-background) { background: var(--cds-white); }
.wp-block-button.is-style-light .wp-block-button__link:not(.has-text-color) { color: var(--cds-navy); }
.wp-block-button.is-style-light .wp-block-button__link:not(.has-background):hover { background: var(--cds-beige-2); }

/* Aligned images (Image block Align left / centre / right), in page
   content and the editor. WordPress floats left/right images to the edge of
   the full-width content wrapper; pull them in to the reading column (or the
   1224px column inside full-width sections). Without a width set in the
   Image block they float at min(44%, 360px); with a width set, that wins.
   Phones: no floats, image centred. Works with every Image style. */
:is(.cds-page__content, .cds-page__content .is-layout-constrained, .cds-editor-reading .is-root-container, .cds-editor-reading .is-layout-constrained) > .alignleft { margin-inline-start: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)); }
:is(.cds-page__content, .cds-page__content .is-layout-constrained, .cds-editor-reading .is-root-container, .cds-editor-reading .is-layout-constrained) > .alignright { margin-inline-end: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-image:is(.alignleft, .alignright, .aligncenter) { margin-top: 0.4em; margin-bottom: 1.5em; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-image.alignleft { margin-inline-end: 2.5em; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-image.alignright { margin-inline-start: 2.5em; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-image:is(.alignleft, .alignright):not(:has(img[style*="width"])) { width: min(44%, 360px); }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-image:is(.alignleft, .alignright, .aligncenter) img { max-width: 100%; height: auto; }
:is(.cds-page__content, .editor-styles-wrapper) .wp-block-image:is(.alignleft, .alignright):not(:has(img[style*="width"])) img { width: 100%; }
/* Text after a float stays beside it; headings, sections and wide blocks clear it. */
.cds-page__content > :is(h2, .alignwide, .alignfull, .wp-block-columns) { clear: both; }

/* Aligned blob (Image style): rounded photo with one soft blob poking out
   on the outer side (left for Align left, right for Align right, top-left
   otherwise), so it sits cleanly beside wrapping text. */
.wp-block-image.is-style-blob-aligned { position: relative; isolation: isolate; }
.wp-block-image.is-style-blob-aligned img { display: block; object-fit: cover; border-radius: var(--cds-radius-md); }
.wp-block-image.is-style-blob-aligned:not(:has(img[style*="width"])) img { width: 100%; }
.wp-block-image.is-style-blob-aligned::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -8%; top: -10%; width: 64%; height: 74%; background: var(--cds-image-blob, rgba(118,192,77,0.24)); border-radius: 56% 44% 52% 48% / 44% 54% 46% 56%; animation: cdsBlobMorph 25s ease-in-out infinite; }
.wp-block-image.is-style-blob-aligned.alignright::before { left: auto; right: -8%; border-radius: 44% 56% 48% 52% / 54% 44% 56% 46%; }
.wp-block-image.is-style-blob-aligned > figcaption { margin-top: 12px; }

@media (max-width: 600px) {
	:is(.cds-page__content, .editor-styles-wrapper) .wp-block-image:is(.alignleft, .alignright) { float: none; margin-inline: auto; }
	:is(.cds-page__content, .editor-styles-wrapper) .wp-block-image:is(.alignleft, .alignright):not(:has(img[style*="width"])) { width: min(100%, 420px); }
	:is(.cds-page__content, .cds-page__content .is-layout-constrained, .cds-editor-reading .is-root-container, .cds-editor-reading .is-layout-constrained) > :is(.alignleft, .alignright) { margin-inline: auto; }
}

/* Post card (Group style inside a Query Loop post template). The title
   link is stretched over the card, so the whole card is clickable. */
/* Row gap only: WordPress sizes grid columns assuming its own column gap
   (24px), so a wider column gap pushes 3-across down to 2. */
.wp-block-post-template:has(.is-style-post-card) { row-gap: 28px; }
.wp-block-group.is-style-post-card { position: relative; display: flex; flex-direction: column; height: 100%; margin: 0; background: var(--cds-white); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 18px rgba(30,42,90,0.06); transition: transform 0.28s ease, box-shadow 0.28s ease; }
.wp-block-group.is-style-post-card:hover,
.wp-block-group.is-style-post-card:focus-within { transform: translateY(-8px); box-shadow: var(--cds-shadow-card); }
.is-style-post-card > * { margin-block: 0; }
.is-style-post-card .wp-block-post-featured-image { margin: 0; }
.is-style-post-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.is-style-post-card > .wp-block-group { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.is-style-post-card > .wp-block-group > * { margin-block: 0; }
.is-style-post-card .wp-block-post-date { font-size: 14px; color: var(--cds-text-muted); margin-bottom: 10px; }
.is-style-post-card .wp-block-post-title { font-size: 23px; line-height: 1.3; margin-bottom: 10px; text-wrap: pretty; }
.is-style-post-card .wp-block-post-title a { color: var(--cds-navy); text-decoration: none; }
.is-style-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.is-style-post-card .wp-block-post-title a:focus-visible { outline: none; }
.wp-block-group.is-style-post-card:has(.wp-block-post-title a:focus-visible) { outline: 3px solid var(--cds-green-dark); outline-offset: 4px; }
.is-style-post-card .wp-block-post-excerpt { flex: 1; margin-bottom: 20px; }
.is-style-post-card .wp-block-post-excerpt__excerpt { font-size: 15.5px; line-height: 1.65; color: var(--cds-text-muted); margin: 0; }
.is-style-post-card .wp-block-read-more { position: relative; z-index: 2; align-self: flex-start; font-size: 15px; font-weight: 600; color: var(--cds-navy); text-decoration: none; border-bottom: 1.5px solid var(--cds-green); padding-bottom: 2px; }
.is-style-post-card .wp-block-read-more::after { content: " →"; }
.is-style-post-card .wp-block-read-more:hover { color: var(--cds-green-dark); }
/* The cards are <li>s, so the content-link underline rule (li a) also
   matches; the card's own green border is the underline. */
:is(.cds-page__content, .editor-styles-wrapper) .is-style-post-card a.wp-block-read-more { text-decoration: none; }
.is-style-section > .wp-block-columns + .wp-block-query { margin-top: 72px; }

/* Right-aligned header links drop to the left on phones. */
@media (max-width: 780px) {
	.is-style-section .has-text-align-right.is-style-arrow-link { text-align: left; }
}

/* ---------- Posts, listings, search, 404 ---------- */
.cds-page-header__meta { margin-top: 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--ph-muted); }

/* Single post: narrower reading column; wide/full blocks still break out. */
.cds-single__content > .cds-single__image { margin-top: var(--cds-section-pad-top); margin-bottom: 0; }
.cds-single__image img { display: block; width: 100%; height: auto; border-radius: var(--cds-radius-md); }
.cds-single__image figcaption { margin-top: 10px; font-size: 14px; color: var(--cds-text-muted); }
.cds-single__content > p,
.cds-single__content > .wp-block-list { font-size: 18px; line-height: 1.75; }
.cds-single__content > .wp-block-heading { margin-top: 1.6em; }
.cds-single__content > :where(h2) { font-size: var(--wp--preset--font-size--xx-large); }
.cds-single__content > :where(h3) { font-size: var(--wp--preset--font-size--x-large); }
.cds-single__content > .wp-block-image img { border-radius: var(--cds-radius-sm); }
.cds-single__content > .wp-block-quote { border-left: 4px solid var(--cds-green); padding-left: 24px; font-family: var(--cds-font-display); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--cds-text); }

/* Previous / next post. */
.cds-post-nav { margin-top: 64px !important; margin-bottom: var(--cds-section-pad-bottom) !important; padding-top: 28px; border-top: 1px solid var(--cds-border-light); }
.cds-post-nav .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cds-post-nav .nav-next { grid-column: 2; text-align: right; }
.cds-post-nav a { display: flex; flex-direction: column; gap: 4px; text-decoration: none !important; }
.cds-post-nav__label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cds-green-dark); }
.cds-post-nav__title { font-family: var(--cds-font-display); font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--cds-navy); }
.cds-post-nav a:hover .cds-post-nav__title { color: var(--cds-green-dark); }

/* Listings (blog, archives, search) + 404. */
.cds-listing__body { padding-top: var(--cds-section-pad-top); padding-bottom: var(--cds-section-pad-bottom); }
.cds-card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 28px; }
.cds-card-list .wp-block-post-title { font-family: var(--cds-font-display); font-weight: 600; }
.cds-listing__empty { font-size: 18px; color: var(--cds-text-muted); }
.cds-listing__search { max-width: 620px; margin-bottom: 48px; }
.cds-404 .cds-listing__search { margin-bottom: 28px; }
.cds-pagination { margin-top: 56px; }
.cds-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cds-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--cds-border); font-weight: 600; color: var(--cds-navy); }
.cds-pagination .page-numbers.current { background: var(--cds-navy); border-color: var(--cds-navy); color: var(--cds-white); }
.cds-pagination a.page-numbers:hover { background: var(--cds-beige-2); }
.cds-pagination .dots { border: 0; }

/* Search form (get_search_form). */
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; height: 52px; padding: 0 20px; font: inherit; font-size: 16px; color: var(--cds-text); background: var(--cds-white); border: 1.5px solid var(--cds-border); border-radius: 999px; }
.search-form .search-field:focus { outline: 3px solid var(--cds-green); outline-offset: 1px; border-color: var(--cds-green-dark); }
.search-form .search-submit { height: 52px; padding: 0 26px; font: inherit; font-size: 16px; font-weight: 600; color: var(--cds-white); background: var(--cds-navy); border: 0; border-radius: 999px; cursor: pointer; transition: transform 0.2s ease; }
.search-form .search-submit:hover { transform: scale(1.05); }

@media (max-width: 600px) {
	.cds-post-nav .nav-links { grid-template-columns: 1fr; }
	.cds-post-nav .nav-next { grid-column: 1; text-align: left; }
	.search-form { flex-direction: column; }
}

/* Editor banner preview (assets/js/editor-banner.js adds the body classes). */
/* "Rotate" previews as Beige. */
.cds-editor-banner { --ph-bg: var(--cds-beige); --ph-title: var(--cds-navy); --ph-text: var(--cds-text-muted); }
.cds-editor-banner--navy { --ph-bg: var(--cds-navy); --ph-title: var(--cds-white); --ph-text: rgba(255,255,255,0.85); }
.cds-editor-banner--green { --ph-bg: var(--cds-green-light); --ph-title: var(--cds-navy-deep); --ph-text: var(--cds-green-darker); }
.cds-editor-banner :is(.editor-visual-editor__post-title-wrapper, .edit-post-visual-editor__post-title-wrapper) {
	position: relative; overflow: hidden; margin: 0 !important; padding: 56px 48px 64px !important; background: var(--ph-bg);
}
.cds-editor-banner :is(.editor-visual-editor__post-title-wrapper, .edit-post-visual-editor__post-title-wrapper)::before {
	content: ""; position: absolute; right: -6%; top: -40%; width: 40%; height: 170%; border-radius: 58% 42% 48% 52% / 46% 56% 44% 54%;
	background: rgba(118,192,77,0.2); pointer-events: none;
}
.cds-editor-banner :is(.editor-visual-editor__post-title-wrapper, .edit-post-visual-editor__post-title-wrapper)::after {
	content: var(--cds-editor-intro, ""); position: relative; display: block; max-width: 620px; margin: 14px 0 0; font-family: var(--cds-font-body); font-size: 18px; line-height: 1.65; color: var(--ph-text);
}
.cds-editor-banner .editor-post-title { position: relative; margin: 0 !important; font-family: var(--cds-font-display); font-weight: 600; font-size: var(--wp--preset--font-size--huge, 54px); line-height: 1.1; color: var(--ph-title); }

/* ---------- 7. Animations ---------- */
@keyframes cdsFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cdsKenBurns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes cdsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cdsBlobMorph {
	0%, 100% { border-radius: 62% 38% 46% 54% / 54% 44% 56% 46%; }
	33%      { border-radius: 44% 56% 62% 38% / 42% 62% 38% 58%; }
	66%      { border-radius: 55% 45% 38% 62% / 62% 38% 62% 38%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cds-welcome__art.wp-block-group::before, .cds-welcome__art.wp-block-group::after,
	.cds-blob, .cds-hero__photo-inner, .cds-hero__photo--primary, .cds-hero__photo--secondary,
	.cds-support-card.wp-block-group::before, .cds-tour-card__art.wp-block-group::before,
	.cds-hero__photo--tertiary, .cds-tour-card__image, .cds-photos__track,
	.cds-page-header::before, .cds-page-header::after,
	.wp-block-group.is-style-card::before, .wp-block-image.is-style-blob::before,
	.wp-block-image.is-style-blob img, .wp-block-image.is-style-blob-backdrop::before,
	.cds-testimonial--photo .cds-testimonial__avatar::before,
	.is-style-photo-cluster > .wp-block-image::before, .is-style-photo-cluster > .wp-block-image img,
	.wp-block-group.is-style-cta-banner::before, .wp-block-image.is-style-tilted::before,
	.wp-block-image.is-style-blob-pair::before, .wp-block-image.is-style-blob-pair::after,
	.wp-block-image.is-style-blob-aligned::before {
		animation: none !important;
	}
}

/* ---------- 8. Responsive ---------- */
@media (max-width: 1080px) {
	.cds-hero__grid,
	.cds-welcome__grid,
	.cds-spotlight__carousel,
	.cds-support-tour__grid { grid-template-columns: 1fr; }
	/* Art on its own row: keep the desktop composition's proportions
	   (≈680×580) at a capped width instead of stretching it full-width. */
	.cds-hero__art { order: -1; width: 100%; max-width: 620px; height: auto; aspect-ratio: 680 / 580; margin: 0 auto; }
	.cds-divisions__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.cds-events__layout { grid-template-columns: 1fr; gap: 48px; }
	.cds-stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.cds-footer__columns { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 780px) {
	/* Hero art on phones: just the large photo, big, with the green blob
	   behind it. The two small photos (and their navy blobs) are hidden so
	   nothing gets shrunk down to thumbnails. */
	.cds-hero__grid { gap: 32px; }
	.cds-hero__art { max-width: 480px; aspect-ratio: 6 / 5; padding: 0; }
	.cds-hero__photo--secondary, .cds-hero__photo--tertiary,
	.cds-blob--secondary-bg, .cds-blob--tertiary-bg { display: none; }
	.cds-blob--primary-bg { left: 0; right: 0; top: 0; bottom: 0; width: 100%; height: 100%; }
	.cds-hero__photo--primary { top: 5%; right: 4%; bottom: auto; left: auto; width: 92%; height: 90%; }
	/* Stat cards stack into a tall column on phones: keep the two blobs
	   round (green behind the top cards, navy behind the bottom) instead of
	   stretching them down the whole column. */
	.cds-welcome__art.wp-block-group::before { left: -10%; top: -3%; width: 116%; height: auto; aspect-ratio: 1; }
	.cds-welcome__art.wp-block-group::after { right: -8%; bottom: -3%; width: 84%; height: auto; aspect-ratio: 1; }

	/* Phones: less vertical space around sections. Content sections
	   (Section style) use the variables; the homepage blocks have their
	   own padding, so each is tightened here too. */
	:root { --cds-gutter: 24px; --cds-section-pad-top: 56px; --cds-section-pad-bottom: 64px; }
	.cds-hero__grid { padding-bottom: 40px; }
	.wp-block-group.cds-announcement-section { padding-block: 24px; }
	.cds-welcome { padding: 56px 0 72px; }
	.cds-divisions { padding: 64px 0 72px; }
	.cds-spotlight { padding: 64px 0; }
	.cds-photos { padding: 56px 0 64px; }
	.cds-support-tour { padding: 64px 0; }

	/* Phone-only spacing classes (Advanced › Additional CSS class) for a
	   section that still has too much space: mobile-tight = 32px top and
	   bottom; mobile-pt-0 / mobile-pb-0 / mobile-py-0 remove it. */
	.mobile-tight { padding-top: 32px !important; padding-bottom: 32px !important; }
	.mobile-pt-0, .mobile-py-0 { padding-top: 0 !important; }
	.mobile-pb-0, .mobile-py-0 { padding-bottom: 0 !important; }
	body { --wp--style--root--padding-left: 24px; --wp--style--root--padding-right: 24px; }
	.cds-page-header { padding-top: 44px; padding-bottom: 52px; }
	.cds-page-header::before { width: 60%; right: -20%; }
	.cds-page-header::after { right: 30%; width: 26%; }
	.wp-block-group.is-style-card { padding: 34px 28px 36px; }

	/* Toolbar links stay on one line on phones. */
	.cds-toolbar__menu { justify-content: center; flex-wrap: nowrap; gap: clamp(10px, 3.6vw, 20px); padding-left: 16px; padding-right: 16px; }
	.cds-toolbar__menu li { flex: 0 0 auto; }
	.cds-toolbar__menu a { font-size: clamp(13px, 3.7vw, 15px); white-space: nowrap; }

	.cds-nav__toggle { display: inline-flex; }
	/* The open menu hangs from the header (full width, inside the gutters),
	   not from the 40px toggle button. */
	.cds-nav { position: static; }
	.cds-nav__menu {
		display: none;
		position: absolute; top: calc(100% - 6px); right: var(--cds-gutter); left: var(--cds-gutter); z-index: 40;
		background: var(--cds-white); border-radius: 16px;
		box-shadow: 0 22px 46px rgba(20,28,58,0.18);
		padding: 12px; flex-direction: column; align-items: stretch; gap: 0;
	}
	.cds-nav.is-open .cds-nav__menu { display: flex; }
	.cds-nav__menu > li { padding: 4px 0; }
	.cds-nav__menu .sub-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 12px; }
	.cds-nav__menu li.is-open > .sub-menu { display: flex; }
	.cds-nav__menu > li > a.cds-nav__parent-link { display: none; }
	.cds-nav__parent { width: 100%; justify-content: space-between; padding: 6px 4px; }
	/* Caret on section headings that open a sub-menu; flips when open. */
	.cds-nav__parent::after {
		content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin: 0 6px 4px 12px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
		transform: rotate(45deg); transition: transform 0.2s ease, margin 0.2s ease;
	}
	.cds-nav__parent[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -4px; }
	.cds-nav__menu > li > a { display: block; padding: 6px 4px; }
	.cds-nav__menu .sub-menu a { white-space: normal; }

	.cds-divisions__grid,
	.cds-stats-grid,
	.cds-tour-card { grid-template-columns: 1fr; }
	.cds-footer__columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.cds-support-tour__grid { gap: 24px; }
	.cds-events { padding: 56px 0; }
	.cds-brand__link { gap: 10px; }
	.cds-brand__logo, .cds-brand img { width: 56px; height: 44px; }
	.cds-brand__name { font-size: 18px; }
	.cds-listen, .cds-listen__content { min-height: 380px; }
	.cds-listen__content { padding: 28px 24px; }
	.cds-audio-player { gap: 12px; }
}

/* ==========================================================================
   Split rows (patterns cds/split-photo-left / -right): core Columns with a
   Blob image in one column, heading + text in the other.
   ========================================================================== */
.wp-block-columns.cds-split { column-gap: clamp(40px, 6vw, 80px); row-gap: 40px; align-items: center; }
.wp-block-columns.cds-split > .wp-block-column > .wp-block-image { margin: 0; }
.wp-block-columns.cds-split > .wp-block-column > .wp-block-heading { margin-top: 0; margin-bottom: 20px; }
.wp-block-columns.cds-split > .wp-block-column > p { max-width: 560px; }
.wp-block-columns.cds-split > .wp-block-column > p + p { margin-top: 1em; }
.wp-block-columns.cds-split > .wp-block-column > * + .wp-block-quote,
.wp-block-columns.cds-split > .wp-block-column > * + .wp-block-buttons,
.wp-block-columns.cds-split > .wp-block-column > * + .is-style-arrow-link { margin-top: 36px; }
/* Photo on the right: its big blob moves to the right and turns navy-tinted. */
.wp-block-columns.cds-split.is-photo-right .wp-block-image.is-style-blob::before { left: auto; right: -5%; background: var(--cds-image-blob-right, rgba(30,42,90,0.12)); }
@media (max-width: 781px) {
	.wp-block-columns.cds-split > .wp-block-column > p { max-width: none; }
}

/* ==========================================================================
   Quote styles (core Quote block): "Top rule" and "Card".
   Optional small round photo = an Image block inside the quote; it sits
   beside the citation. In the citation, bold text = the name (navy),
   the rest is muted (e.g. "· parent").
   ========================================================================== */
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card) { position: relative; margin-inline: 0; border: 0; padding: 0; }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card) p { margin: 0; font-family: var(--cds-font-display); font-style: italic; font-weight: 500; line-height: 1.55; color: var(--cds-navy); text-wrap: pretty; }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card) p + p { margin-top: 0.8em; }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card) cite { display: block; margin: 20px 0 0; font-size: 15px; font-style: normal; font-weight: 400; line-height: 1.4; color: var(--cds-text-muted); }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card) cite strong { font-weight: 600; color: var(--cds-navy); }

/* With a photo: photo + citation share a row under the quote. */
.wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card):has(> .wp-block-image) { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card):has(> .wp-block-image) > :not(.wp-block-image):not(cite) { grid-column: 1 / -1; }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card) > .wp-block-image { grid-column: 1; position: relative; isolation: isolate; width: 72px; height: 72px; margin: 20px 0 0; }
.wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card) > .wp-block-image::before { content: ""; position: absolute; z-index: -1; inset: -6px; background: rgba(118,192,77,0.28); border-radius: 58% 42% 48% 52% / 46% 56% 44% 54%; animation: cdsBlobMorph 18s ease-in-out infinite; pointer-events: none; }
.wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card) > .wp-block-image img { display: block; width: 72px !important; height: 72px !important; aspect-ratio: 1 !important; object-fit: cover; border-radius: 50%; }
.wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card) > .wp-block-image figcaption { display: none; }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card):has(> .wp-block-image) cite { grid-column: 2; margin-top: 20px; }

/* Top rule: sits inside a text column. */
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote.is-style-quote-rule { max-width: 560px; padding-top: 22px; border-top: 3px solid var(--cds-green); }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote.is-style-quote-rule p { font-size: 24px; }

/* Card: beige rounded panel, large green quote mark on the left. */
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote.is-style-quote-card { overflow: hidden; padding: 56px 120px 56px 168px; border-radius: 28px; background: var(--cds-beige-2, #F7F4EC); }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote.is-style-quote-card p { font-size: clamp(20px, 2vw, 24px); }
.wp-block-quote.is-style-quote-card::before { content: "\201C"; position: absolute; left: 64px; top: 56px; font-family: var(--cds-font-display); font-style: normal; font-size: 96px; line-height: 0.8; color: var(--cds-green); }
/* On a beige / beige-2 section the card turns white so it still reads as a card. */
.is-style-section:is(.has-beige-background-color, .has-beige-2-background-color) .wp-block-quote.is-style-quote-card { background: var(--cds-white); }

/* Dark sections: Top rule quote inverts; the Card keeps its light panel. */
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color) .wp-block-quote.is-style-quote-rule :is(p, cite strong) { color: var(--cds-white); }
.is-style-section:is(.has-navy-background-color, .has-navy-deep-background-color, .has-blue-background-color, .has-green-dark-background-color, .has-green-darker-background-color) .wp-block-quote.is-style-quote-rule cite { color: rgba(255,255,255,0.75); }

@media (max-width: 700px) {
	:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-quote.is-style-quote-card { padding: 84px 28px 36px; border-radius: 22px; }
	.wp-block-quote.is-style-quote-card::before { left: 28px; top: 30px; font-size: 80px; }
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-quote:is(.is-style-quote-rule, .is-style-quote-card) > .wp-block-image::before { animation: none; }
}

/* ==========================================================================
   Link card (Group style "Link card", pattern cds/link-card): white rounded
   card — small image, green label, a line of text with an arrow. The link
   in the card is stretched over the whole card (front end only, so the
   text stays editable in the editor). Lifts on hover.
   ========================================================================== */
.wp-block-group.is-style-link-card { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 22px; max-width: 520px; padding: 16px 24px 16px 16px; border-radius: 20px; background: var(--cds-white); box-shadow: 0 14px 32px rgba(30,42,90,0.10); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.wp-block-group.is-style-link-card:hover,
.wp-block-group.is-style-link-card:focus-within { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(30,42,90,0.16); }
.wp-block-group.is-style-link-card > .wp-block-image { flex: none; width: 72px; margin: 0; }
.wp-block-group.is-style-link-card > .wp-block-image img { display: block; width: 72px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.wp-block-group.is-style-link-card > .wp-block-group { flex: 1 1 auto; min-width: 0; gap: 6px; }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-group.is-style-link-card p { margin: 0; max-width: none; }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-group.is-style-link-card p.is-style-eyebrow { font-family: var(--cds-font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cds-green-dark); }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-group.is-style-link-card p:not(.is-style-eyebrow) { font-family: var(--cds-font-display); font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--cds-navy); text-wrap: pretty; }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-group.is-style-link-card p:not(.is-style-eyebrow) a { color: inherit; font-weight: inherit; text-decoration: none; transition: color 0.2s ease; }
:is(.cds-page__content, .editor-styles-wrapper, body) .wp-block-group.is-style-link-card p:not(.is-style-eyebrow) a::after { content: " \2192"; }
.wp-block-group.is-style-link-card:hover p:not(.is-style-eyebrow) a { color: var(--cds-green-dark); }
/* Whole card clickable (not in the editor). */
body:not(.editor-styles-wrapper) .wp-block-group.is-style-link-card p:not(.is-style-eyebrow) a::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.wp-block-group.is-style-link-card a:focus-visible { outline: none; }
.wp-block-group.is-style-link-card:has(a:focus-visible) { outline: 3px solid var(--cds-green-dark); outline-offset: 3px; }
/* In a split row, a little space above the card. */
.wp-block-columns.cds-split > .wp-block-column > * + .wp-block-group.is-style-link-card { margin-top: 36px; }
@media (max-width: 480px) {
	.wp-block-group.is-style-link-card { gap: 16px; padding: 14px 18px 14px 14px; }
	.wp-block-group.is-style-link-card > .wp-block-image,
	.wp-block-group.is-style-link-card > .wp-block-image img { width: 60px; }
}

/* "View more stories" under a Query Loop of post cards (pattern cds/harmony). */
.wp-block-buttons.cds-post-cards__more { margin-top: 48px; }

/* External-link icon on menu items that open another site in a new tab. */
.cds-ext-icon { display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.4em; vertical-align: 0.05em; opacity: 0.75; flex: none; }

/* Utility class "text-body-width" (Advanced › Additional CSS class): keeps a
   block to a comfortable 680px measure, centred in its column/section; on
   narrower screens it simply fills the width. */
.text-body-width { max-width: 680px !important; margin-left: auto !important; margin-right: auto !important; padding-right: 0; }

/* Margin utilities, Bootstrap-style (Advanced › Additional CSS class).
 mt- top, mb- bottom, my- both. Steps follow the theme spacing scale:
 0 = none, 1 = XS 12px, 2 = S 24px, 3 = M 40px, 4 = L ~56px, 5 = XL ~96px.
 e.g. "mt-0" removes a heading's top margin. !important so they win over
 block-layout and component spacing, like Bootstrap's. */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.mt-1 { margin-top: var(--wp--preset--spacing--20, 12px) !important; }
.mb-1 { margin-bottom: var(--wp--preset--spacing--20, 12px) !important; }
.my-1 { margin-top: var(--wp--preset--spacing--20, 12px) !important; margin-bottom: var(--wp--preset--spacing--20, 12px) !important; }
.mt-2 { margin-top: var(--wp--preset--spacing--30, 24px) !important; }
.mb-2 { margin-bottom: var(--wp--preset--spacing--30, 24px) !important; }
.my-2 { margin-top: var(--wp--preset--spacing--30, 24px) !important; margin-bottom: var(--wp--preset--spacing--30, 24px) !important; }
.mt-3 { margin-top: var(--wp--preset--spacing--40, 40px) !important; }
.mb-3 { margin-bottom: var(--wp--preset--spacing--40, 40px) !important; }
.my-3 { margin-top: var(--wp--preset--spacing--40, 40px) !important; margin-bottom: var(--wp--preset--spacing--40, 40px) !important; }
.mt-4 { margin-top: var(--wp--preset--spacing--50, clamp(40px, 5vw, 56px)) !important; }
.mb-4 { margin-bottom: var(--wp--preset--spacing--50, clamp(40px, 5vw, 56px)) !important; }
.my-4 { margin-top: var(--wp--preset--spacing--50, clamp(40px, 5vw, 56px)) !important; margin-bottom: var(--wp--preset--spacing--50, clamp(40px, 5vw, 56px)) !important; }
.mt-5 { margin-top: var(--wp--preset--spacing--60, clamp(56px, 7vw, 96px)) !important; }
.mb-5 { margin-bottom: var(--wp--preset--spacing--60, clamp(56px, 7vw, 96px)) !important; }
.my-5 { margin-top: var(--wp--preset--spacing--60, clamp(56px, 7vw, 96px)) !important; margin-bottom: var(--wp--preset--spacing--60, clamp(56px, 7vw, 96px)) !important; }

/* ==========================================================================
   Announcement card (Group style "Announcement", pattern cds/home-announcement):
   rounded navy card — heading, line and button on the left; a photo filling
   the right side with a curved left edge, clipped by the card's corners.
   Phones: photo on top (curved bottom edge), text below.
   ========================================================================== */
.cds-announcement-section { padding-block: clamp(40px, 6vw, 72px); }
.wp-block-group.is-style-announcement { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 268px; padding: 0; border-radius: 28px; overflow: hidden; isolation: isolate; color: var(--cds-white); }
.wp-block-group.is-style-announcement > .cds-announcement__text { position: relative; z-index: 1; padding: 44px 24px 44px clamp(32px, 4.5vw, 56px); }
:is(.cds-front, .cds-page__content, .editor-styles-wrapper, body) .wp-block-group.is-style-announcement .cds-announcement__text :is(h2, h3) { margin: 0 0 12px; font-family: var(--cds-font-display); font-weight: 600; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; color: inherit; }
:is(.cds-front, .cds-page__content, .editor-styles-wrapper, body) .wp-block-group.is-style-announcement .cds-announcement__text p { margin: 0; max-width: 420px; padding: 0; font-size: 18px; line-height: 1.75; color: inherit; opacity: 0.92; }
.wp-block-group.is-style-announcement .cds-announcement__text .wp-block-buttons { margin-top: 24px; }
.wp-block-group.is-style-announcement > .wp-block-image { position: relative; align-self: stretch; margin: 0; min-height: 268px; }
.wp-block-group.is-style-announcement > .wp-block-image img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 50% 0 0 50% / 64% 0 0 64%; }
/* Light card colours: navy text. */
.wp-block-group.is-style-announcement:is(.has-white-background-color, .has-beige-background-color, .has-beige-2-background-color, .has-green-light-background-color, .has-green-pale-background-color, .has-blue-pale-background-color, .has-blue-sky-background-color) { color: var(--cds-navy); }
@media (max-width: 781px) {
	.wp-block-group.is-style-announcement { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
	.wp-block-group.is-style-announcement > .wp-block-image { order: -1; min-height: 220px; }
	.wp-block-group.is-style-announcement > .wp-block-image img { border-radius: 0 0 50% 50% / 0 0 22% 22%; }
	.wp-block-group.is-style-announcement > .cds-announcement__text { padding: 28px 28px 36px; }
}
