/* Site chrome: header, navigation, donate band, footer, shared bits (chips, share links).
   Section styles live with each block (blocks-src/<block>/style.css). */

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: var(--c-cream);
}
.site-header__bar {
	display: flex;
	align-items: stretch;
	height: var(--header-h);
}
.site-header__bar { position: relative; }
.site-header__logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 calc(2 * var(--u));
	color: var(--c-forest);
}
.site-header__logo svg { width: calc(310 * var(--u)); height: auto; }
.site-header__actions { margin-left: auto; }
.site-header__actions { display: flex; flex: 0 0 auto; }
.site-header__btn { min-width: calc(200 * var(--u)); min-height: 100%; padding: 0 calc(24 * var(--u)); }
.site-header__burger { display: none; }

/* Desktop navigation: centred on the page, as designed. */
@media (min-width: 1025px) {
	.site-nav { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; }
}
.site-nav__top, .site-nav__actions, .sub-menu__back { display: none; }
.site-nav__menu {
	display: flex;
	align-items: stretch;
	gap: calc(94 * var(--u));
	margin: 0; padding: 0;
	list-style: none;
}
.site-nav__menu > li { position: relative; display: flex; align-items: center; }
.site-nav__menu > li > a {
	display: flex; align-items: center;
	height: 100%;
	font-family: var(--f-sans);
	font-size: max(12px, calc(16 * var(--u)));
	font-weight: 500;
	letter-spacing: .02em;
	white-space: nowrap;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-forest);
}
.site-nav__menu > li > a:hover,
.site-nav__menu > .current-menu-item > a,
.site-nav__menu > .current-menu-ancestor > a { color: var(--c-red-text); }
.submenu-toggle {
	display: flex; align-items: center; justify-content: center;
	width: max(24px, calc(24 * var(--u))); height: 100%;
	margin-left: calc(2 * var(--u)); padding: 0;
	background: none; border: 0; color: var(--c-forest);
}
.submenu-toggle svg { width: max(9px, calc(11 * var(--u))); transition: transform .2s var(--ease); }
.site-nav__menu > li.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: calc(-24 * var(--u));
	min-width: calc(465 * var(--u));
	margin: 0;
	padding: calc(30 * var(--u)) calc(32 * var(--u)) calc(40 * var(--u));
	list-style: none;
	background: var(--c-sand);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.site-nav__menu > li:hover > .sub-menu,
.site-nav__menu > li:focus-within > .sub-menu,
.site-nav__menu > li.is-open > .sub-menu {
	opacity: 1; visibility: visible; transform: none;
	transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.site-nav .sub-menu a {
	display: inline-block;
	padding: calc(8 * var(--u)) 0;
	font-family: var(--f-serif);
	font-style: italic;
	font-size: max(16px, calc(20 * var(--u)));
	line-height: 1.35;
	text-decoration: none;
	color: var(--c-forest);
	background: linear-gradient(var(--c-red), var(--c-red)) left calc(100% - 6px) / 0 1px no-repeat;
	transition: background-size .2s var(--ease);
}
.site-nav .sub-menu a:hover,
.site-nav .sub-menu .current-menu-item > a { background-size: 100% 1px; }
/* Add the CSS class "menu-cta" to a menu item to show it as "SUBMIT A CASE →". */
.site-nav .sub-menu .menu-cta { margin-top: calc(14 * var(--u)); }
.site-nav .sub-menu .menu-cta a {
	font-family: var(--f-sans); font-style: normal; text-transform: uppercase; letter-spacing: .02em;
	font-size: max(13px, calc(16 * var(--u))); font-weight: 500; color: var(--c-red-text); background: none;
}
.site-nav .sub-menu .menu-cta a::after { content: " \2192"; }

/* The last menu items open their dropdown to the left, so it never runs off the right edge. */
@media (min-width: 1025px) {
	.site-nav__menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: calc(-24 * var(--u)); }
}

/* Narrow desktops: tighten before switching to the phone menu. */
@media (max-width: 1180px) and (min-width: 1025px) {
	.site-header__logo svg { width: 190px; }
	.site-header__btn { min-width: 0; padding: 0 18px; }
}

/* Phones and tablets: burger + full-screen panel. */
@media (max-width: 1024px) {
	:root { --header-h: 92px; }
	.site-header__bar { align-items: center; justify-content: space-between; padding: 0 20px 0 10px; }
	.site-header__logo { padding: 0; }
	.site-header__logo svg { width: 194px; }
	.site-header__actions { display: none; }
	.site-header__burger {
		display: flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--c-forest);
	}

	.site-nav {
		position: fixed;
		inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0;
		z-index: 200;
		display: flex; flex-direction: column;
		background: var(--c-sand);
		overflow-y: auto;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .28s var(--ease), visibility 0s linear .28s;
	}
	.nav-open .site-nav { transform: none; visibility: visible; transition: transform .28s var(--ease); }
	.nav-open { overflow: hidden; }

	.site-nav__top { display: flex; justify-content: flex-end; align-items: center; flex: 0 0 auto; height: 92px; padding: 0 22px; }
	.site-nav__close { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: var(--c-forest); }

	.site-nav__menu { display: block; flex: 1 0 auto; max-width: none; padding: 30px 26px; }
	.site-nav__menu > li { position: static; display: flex; justify-content: space-between; }
	.site-nav__menu > li > a { height: auto; padding: 30px 0; font-size: 18px; letter-spacing: 0; }
	.submenu-toggle { width: 60px; margin: 0; }
	.submenu-toggle svg { transform: rotate(-90deg); width: 11px; }
	.site-nav__menu > li.is-open > .submenu-toggle svg { transform: rotate(-90deg); }

	/* Submenu = its own panel sliding over the menu */
	.site-nav .sub-menu {
		position: fixed;
		inset: calc(var(--wp-admin--admin-bar--height, 0px) + 92px) 0 0 0;
		z-index: 2;
		min-width: 0;
		padding: 20px 28px 40px;
		border-top: 1px solid rgba(28, 56, 48, .25);
		overflow-y: auto;
		transform: translateX(100%);
		opacity: 1;
		transition: transform .25s var(--ease), visibility 0s linear .25s;
	}
	.site-nav__menu > li:hover > .sub-menu,
	.site-nav__menu > li:focus-within > .sub-menu { opacity: 1; visibility: hidden; transform: translateX(100%); }
	.site-nav__menu > li.is-open > .sub-menu { visibility: visible; transform: none; transition: transform .25s var(--ease); }
	.sub-menu__back { display: block; margin-bottom: 36px; }
	.sub-menu__back button { display: flex; padding: 8px 0; border: 0; background: none; color: rgba(28, 56, 48, .45); }
	.site-nav .sub-menu a { padding: 11px 0; font-size: 20px; }
	.site-nav .sub-menu .menu-cta a { font-size: 16px; }

	.site-nav__actions { display: flex; flex-direction: column; gap: 12px; padding: 0 12px 18px; }
	.site-nav__actions .btn { width: 100%; min-height: 110px; font-size: 18px; letter-spacing: 0; }
}

/* ---------- Donate band ---------- */
.donate-band {
	display: flex; align-items: center; justify-content: center;
	padding: calc(110 * var(--u)) var(--gutter);
	background-color: var(--c-tan);
	background-size: cover;
	background-position: center;
}
.donate-band__form { display: flex; justify-content: center; width: auto; max-width: none; }
.donate-band__form .btn { min-width: max(220px, calc(340 * var(--u))); min-height: max(56px, calc(80 * var(--u))); font-size: max(16px, calc(20 * var(--u))); }
.donate-band__form .btn:hover { background: var(--c-forest); color: var(--c-cream); }
@media (max-width: 781px) {
	.donate-band { min-height: 0; padding: 48px 20px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-forest); color: var(--c-cream); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--c-tan); }
.site-footer__inner {
	width: auto;
	max-width: none;
	padding: calc(56 * var(--u)) calc(40 * var(--u)) calc(44 * var(--u)) calc(60 * var(--u));
}
.site-footer__cols {
	display: grid;
	grid-template-columns: 504fr 546fr 560fr 207fr;
	gap: calc(40 * var(--u));
}
.site-footer__col { padding-left: calc(13 * var(--u)); border-left: 1px solid rgba(201, 163, 120, .35); }
.site-footer__heading { margin: 0 0 calc(22 * var(--u)); font-family: var(--f-sans); font-size: max(13px, calc(17 * var(--u))); font-weight: 500; color: var(--c-cream); }
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { font-size: max(15px, calc(18 * var(--u))); line-height: 2.1; }

.site-footer__newsletter { margin-top: calc(110 * var(--u)); padding-left: calc(13 * var(--u)); }
.site-footer__newsletter-title {
	margin: 0 0 calc(18 * var(--u));
	font-style: italic; font-weight: 300;
	font-size: calc(60 * var(--u));
	color: var(--c-tan);
}
/* Gravity Forms newsletter: underline input + tan JOIN button, as designed. */
.newsletter-form .gform_wrapper.gravity-theme .gform_fields { display: block; }
.newsletter-form .gfield_label, .newsletter-form .gform_required_legend { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.newsletter-form input[type="email"], .newsletter-form input[type="text"] {
	min-height: max(46px, calc(56 * var(--u))); padding: 0;
	background: transparent; color: var(--c-tan);
	border-bottom: 1px solid var(--c-tan);
}
.newsletter-form ::placeholder { color: var(--c-tan); opacity: 1; }
.newsletter-form .gform_footer { margin-top: calc(20 * var(--u)) !important; padding: 0 !important; }
.newsletter-form input[type="submit"], .newsletter-form button[type="submit"] {
	min-height: var(--btn-h); min-width: calc(174 * var(--u)); padding: 0 calc(40 * var(--u));
	border: 0; background: var(--c-tan); color: var(--c-forest);
	font-family: var(--f-sans); font-size: var(--t-label); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}

.site-footer__legal { padding-left: calc(13 * var(--u)); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: calc(24 * var(--u)); }
.site-footer__legal-list { display: flex; flex-wrap: wrap; gap: 12px calc(78 * var(--u)); margin: 0 0 calc(10 * var(--u)); padding: 0; list-style: none; font-size: max(12px, calc(15 * var(--u))); font-weight: 400; }
.site-footer__mark img { width: calc(122 * var(--u)); max-width: none; height: auto; }

@media (max-width: 781px) {
	.site-footer__inner { padding: 48px 20px 32px; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
	.site-footer__newsletter { margin-top: 56px; }
	.site-footer__newsletter-title { font-size: 40px; }
	.site-footer__legal { flex-direction: column-reverse; align-items: flex-start; }
	.site-footer__legal-list { flex-direction: column; gap: 10px; }
	.site-footer__mark img { width: 90px; }
}

/* ---------- Shared bits ---------- */
.status-chip {
	display: inline-flex; align-items: center;
	min-height: calc(44 * var(--u)); padding: 0 calc(16 * var(--u));
	font-family: var(--f-serif); font-style: italic; font-size: max(14px, calc(18 * var(--u)));
	background: var(--c-ongoing); color: var(--c-forest);
}
.status-chip--won { background: var(--c-won); color: var(--c-cream); }
.status-chip--won-so-far { background: #C8D6BE; color: var(--c-forest); }
.status-chip--concluded { background: var(--c-concluded); color: var(--c-forest); }

/* Small square + italic label above cards, e.g. "■ Free Speech". */
.right-chip {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--f-serif); font-style: italic; font-size: max(13px, calc(16 * var(--u)));
	color: var(--c-red-text); text-decoration: none;
}
.right-chip::before { content: ""; width: .55em; height: .55em; background: var(--c-red); }

.share-links { display: flex; gap: calc(24 * var(--u)); margin: 0; padding: 0; list-style: none; }
.share-links a { display: flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; color: var(--c-red-text); }
.share-links svg { height: max(14px, calc(16 * var(--u))); width: auto; }

.site-main { display: block; }
.site-main > .entry-content > :where(:not(.ccf-section):not(.alignfull)) { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }

/* ---------- Page hero (block + single templates) ---------- */
.page-hero { padding: 0 !important; }
.page-hero__title { margin: 0; font-size: var(--t-h1); font-weight: 300; line-height: 1.1; overflow-wrap: anywhere; }
.page-hero--split .page-hero__title { font-size: var(--t-display); }
@media (min-width: 782px) { .page-hero--split.page-hero--forest .page-hero__media { align-self: start; height: 82%; } }
.page-hero__eyebrow { margin: 0 0 calc(12 * var(--u)); font-style: italic; font-size: max(15px, calc(22 * var(--u))); color: var(--c-red-text); }
.page-hero__intro { max-width: calc(760 * var(--u)); margin: calc(26 * var(--u)) 0 0; font-style: italic; font-size: max(15px, calc(18 * var(--u))); line-height: 1.6; }
.page-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: calc(16 * var(--u)) calc(24 * var(--u)); margin-top: calc(56 * var(--u)); font-family: var(--f-sans); font-size: max(12px, calc(14 * var(--u))); text-transform: uppercase; letter-spacing: .02em; }
.page-hero__meta .sep { width: 1px; height: 1em; background: currentColor; opacity: .6; }
.page-hero__meta a { color: inherit; text-decoration: none; }
.page-hero__actions { margin-top: calc(48 * var(--u)); }
.page-hero__media { position: relative; overflow: hidden; background: var(--c-sand); }
.page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Colours */
.page-hero--forest .page-hero__panel { background: var(--c-forest); color: var(--c-cream); }
.page-hero--red .page-hero__panel { background: var(--c-red); color: var(--c-cream); }
.page-hero--sand .page-hero__panel { background: var(--c-sand); color: var(--c-forest); }
.page-hero--cream .page-hero__panel { background: var(--c-cream); color: var(--c-forest); }
.page-hero--maroon .page-hero__panel { background: var(--c-maroon) url(../images/pattern-maroon.svg) center / cover; color: var(--c-cream); }
.page-hero--deep .page-hero__panel { background: var(--c-maroon-deep) url(../images/pattern-deep.svg) center / cover; color: var(--c-cream); }

/* Split: coloured panel left, image right */
.page-hero--split .page-hero__inner { display: grid; grid-template-columns: 1fr; min-height: calc(524 * var(--u)); }
.page-hero--split .page-hero__inner.has-image { grid-template-columns: minmax(0, 1228fr) minmax(0, 692fr); }
.page-hero--red.page-hero--split .page-hero__inner.has-image { grid-template-columns: minmax(0, 950fr) minmax(0, 970fr); }
.page-hero--split .page-hero__panel { display: flex; align-items: center; }
.page-hero--split .page-hero__content { padding: calc(80 * var(--u)) calc(80 * var(--u)) calc(80 * var(--u)) calc(193 * var(--u)); }

/* Feature: patterned strip, dark box overlapping, image right (stories and cases) */
.page-hero--feature .page-hero__inner { position: relative; display: grid; grid-template-columns: 925fr 995fr; min-height: calc(580 * var(--u)); }
.page-hero--feature .page-hero__panel { grid-column: 1; position: relative; z-index: 1; display: flex; align-items: flex-end; padding: calc(60 * var(--u)) 0 0 calc(109 * var(--u)); background: var(--c-maroon) url(../images/pattern-maroon.svg) left center / cover; margin-bottom: calc(56 * var(--u)); }
.page-hero--feature .page-hero__content { width: min(calc(1038 * var(--u)), calc(100vw - 109 * var(--u) - var(--gutter))); max-width: none; margin-right: calc(-230 * var(--u)); padding: calc(78 * var(--u)) calc(80 * var(--u)) calc(52 * var(--u)) calc(80 * var(--u)); background: var(--c-forest); color: var(--c-cream); }
.page-hero--feature .page-hero__media { grid-column: 2; }
.page-hero--feature .page-hero__inner:not(.has-image) { grid-template-columns: 1fr; }
.page-hero--feature .page-hero__inner:not(.has-image) .page-hero__content { margin-right: 0; }

/* Banner and heading-only */
.page-hero--banner .page-hero__content { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding: calc(96 * var(--u)) 0 calc(120 * var(--u)) calc(121 * var(--u)); }
.page-hero--plain .page-hero__content { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding: calc(150 * var(--u)) 0 calc(110 * var(--u)) calc(121 * var(--u)); }
.page-hero--plain.page-hero--forest .page-hero__title { color: var(--c-tan); }
.page-hero--banner .page-hero__title { font-size: var(--t-display); }
.page-hero--banner:has(+ .learn-search--overlap) .page-hero__content { padding-bottom: calc(260 * var(--u)); }
.page-hero--banner:has(+ .criteria--overlap) .page-hero__content { padding-bottom: calc(150 * var(--u)); }

@media (max-width: 781px) {
	.page-hero--split .page-hero__inner.has-image,
	.page-hero--red.page-hero--split .page-hero__inner.has-image,
	.page-hero--feature .page-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.page-hero__media { order: -1; aspect-ratio: 3 / 2; }
	.page-hero--split .page-hero__content { padding: 40px 20px 48px; }
	.page-hero--feature .page-hero__panel { grid-column: 1; padding: 0; margin: 0; background: var(--c-forest); }
	.page-hero--feature .page-hero__content { width: 100%; margin: 0; padding: 36px 20px 40px; }
	.page-hero--feature .page-hero__media { grid-column: 1; }
	.page-hero--banner .page-hero__content, .page-hero--plain .page-hero__content { padding: 56px 0; }
}

/* ---------- Case card ---------- */
.case-card { position: relative; display: flex; flex-direction: column; }
.case-card__right { margin-bottom: calc(14 * var(--u)); }
.case-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 496 / 307; background: var(--c-sand); }
.case-card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(10 * var(--u)); background: var(--c-red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.case-card:hover .case-card__media::after, .case-card:focus-within .case-card__media::after { transform: scaleX(1); }
.case-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case-card:hover .case-card__img { transform: scale(1.03); }
.case-card__media .status-chip { position: absolute; left: 0; bottom: 0; z-index: 1; }
.case-card__title { margin: calc(22 * var(--u)) 0 0; font-size: max(22px, calc(36 * var(--u))); font-weight: 300; line-height: 1.17; }
.case-card__title a { text-decoration: none; }
.case-card:hover .case-card__title a { text-decoration: underline; text-decoration-color: var(--c-red); text-decoration-thickness: 1px; text-underline-offset: .2em; color: inherit; }
.case-card__text { margin: calc(40 * var(--u)) 0 0; font-family: var(--f-sans); font-size: max(14px, calc(16 * var(--u))); line-height: 1.5; }
.case-card--compact .case-card__title { font-size: max(20px, calc(32 * var(--u))); }

/* Red centred section heading ("Featured Wins", "Who we are"). */
.section-title { margin: 0 0 calc(80 * var(--u)); text-align: center; font-size: var(--t-h2); font-weight: 300; color: var(--c-red); }
.section-title--left { text-align: left; }

/* ---------- Call to action band ---------- */
.cta-banner__box {
	--arrow: calc(56 * var(--u));
	position: relative; display: grid; grid-template-columns: 1fr auto; align-items: stretch;
	min-height: calc(228 * var(--u)); margin: 0 calc(121 * var(--u));
	background: var(--c-forest); color: var(--c-cream); overflow: hidden;
}
.cta-banner__text { display: flex; align-items: center; gap: calc(60 * var(--u)); padding: calc(40 * var(--u)) calc(60 * var(--u)) calc(40 * var(--u)) calc(78 * var(--u)); }
.cta-banner__heading { flex: 0 0 auto; max-width: calc(260 * var(--u)); margin: 0; font-style: italic; font-weight: 300; font-size: max(22px, calc(36 * var(--u))); color: var(--c-tan); line-height: 1.15; }
.cta-banner__body { margin: 0; max-width: calc(640 * var(--u)); font-style: italic; font-size: max(15px, calc(18 * var(--u))); line-height: 1.55; }
.cta-banner__action { position: relative; display: flex; align-items: center; padding: calc(30 * var(--u)) calc(80 * var(--u)) calc(30 * var(--u)) calc(110 * var(--u)); background: var(--c-red); }
.cta-banner__action::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--arrow); background: var(--c-forest); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.cta-banner__box--maroon .cta-banner__action { background: var(--c-maroon); }
.cta-banner__box--maroon .btn:hover { background: var(--c-cream); color: var(--c-forest); }
.cta-banner__box--red .btn:hover { background: var(--c-forest); color: var(--c-cream); }
@media (max-width: 781px) {
	.cta-banner__box { grid-template-columns: 1fr; margin: 0; }
	.cta-banner__text { flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 20px; }
	.cta-banner__heading { max-width: none; }
	.cta-banner__action { padding: 24px 20px; }
	.cta-banner__action::before { display: none; }
	.cta-banner__action .btn { width: 100%; }
}

/* Filter chip (case explorer, learn filters). */
.chip {
	display: inline-flex; align-items: center; min-height: max(32px, calc(40 * var(--u))); padding: 0 calc(18 * var(--u));
	border: 1px solid var(--c-red); background: transparent; color: var(--c-red-text);
	font-family: var(--f-serif); font-style: italic; font-size: max(13px, calc(16 * var(--u))); cursor: pointer;
}
.chip:hover { background: rgba(255, 41, 31, .08); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--c-red); color: var(--c-on-red); }

/* Progress ring */
.ring { position: relative; width: calc(320 * var(--u)); min-width: 160px; max-width: 100%; aspect-ratio: 1; }
@media (max-width: 781px) { .ring { width: 220px !important; } .ring__value { font-size: 44px; } }
.ring svg { width: 100%; height: 100%; }
.ring__value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: calc(72 * var(--u)); font-weight: 300; }

/* ---------- Resource card ---------- */
.resource-card { position: relative; display: flex; flex-direction: column; }
.resource-card__format { margin-bottom: calc(14 * var(--u)); }
.resource-card__media { display: block; aspect-ratio: 496 / 307; overflow: hidden; background: var(--c-forest-deep); }
.resource-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.resource-card:hover .resource-card__media img { transform: scale(1.03); }
.resource-card__title { margin: calc(26 * var(--u)) 0 0; font-size: max(22px, calc(36 * var(--u))); font-weight: 300; line-height: 1.2; }
.resource-card__title a { text-decoration: none; }
.resource-card__title a:hover { text-decoration: underline; text-decoration-color: var(--c-red); }
.resource-card__text { margin: calc(40 * var(--u)) 0 0; font-family: var(--f-sans); font-size: max(14px, calc(16 * var(--u))); line-height: 1.5; }
.has-forest-background-color .right-chip { color: var(--c-red-light); }

/* ---------- For Media box ---------- */
.media-box { padding: calc(28 * var(--u)) calc(30 * var(--u)); background-size: cover; background-position: center; }
.media-box__inner { padding: calc(20 * var(--u)) calc(20 * var(--u)) calc(24 * var(--u)); background: var(--c-sand); }
.media-box__title { margin: 0 0 calc(56 * var(--u)); font-style: italic; font-weight: 400; font-size: max(14px, calc(18 * var(--u))); color: var(--c-red-text); }
.media-box__phone { margin: 0 0 calc(24 * var(--u)); font-family: var(--f-sans); font-size: max(14px, calc(17 * var(--u))); }
.media-box__phone a { text-decoration: none; }
.media-box__actions { display: grid; gap: calc(16 * var(--u)); }
.media-box__actions .btn { width: 100%; min-width: 0; font-size: max(13px, calc(13 * var(--u))); }
.media-box .btn--outline { box-shadow: inset 0 0 0 1px var(--c-forest); }

/* ---------- Gravity Forms in the CCF style (.ccf-form wrapper) ---------- */
.ccf-form .gform_wrapper.gravity-theme .gform_fields { grid-column-gap: calc(14 * var(--u)); grid-row-gap: calc(14 * var(--u)); }
.ccf-form .gfield_label, .ccf-form .gform_required_legend { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ccf-form .gfield--type-radio .gfield_label, .ccf-form .gfield--type-checkbox .gfield_label, .ccf-form legend.gfield_label { position: static !important; width: auto; height: auto; clip: auto; margin-bottom: calc(14 * var(--u)); font-style: italic; font-weight: 400; font-size: max(15px, calc(18 * var(--u))) !important; color: var(--c-red-text); }
.ccf-form legend.gfield_label .gfield_required, .ccf-form .gfield_label .gfield_required { display: none; }
.ccf-form input[type="text"], .ccf-form input[type="email"], .ccf-form input[type="tel"], .ccf-form input[type="url"], .ccf-form input[type="number"], .ccf-form select, .ccf-form textarea { min-height: max(50px, calc(80 * var(--u))); padding: 0 calc(14 * var(--u)) !important; border: 0 !important; background: var(--c-white); font-size: max(15px, calc(18 * var(--u))) !important; }
.ccf-form textarea { min-height: max(170px, calc(276 * var(--u))) !important; padding-top: calc(16 * var(--u)) !important; }
.ccf-form .gform_footer { margin-top: calc(14 * var(--u)) !important; padding: 0 !important; }
.ccf-form .gform_footer input[type="submit"], .ccf-form .gform_footer button { width: 100%; min-height: max(52px, calc(80 * var(--u))); border: 0; background: var(--c-red); color: var(--c-on-red); font-family: var(--f-sans); font-weight: 600; font-size: var(--t-label); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.ccf-form .gform_footer input[type="submit"]:hover { background: var(--c-forest); color: var(--c-cream); }
/* Radio field with the CSS class "ccf-tabs": choices look like the enquiry tabs. */
.ccf-form .ccf-tabs .gfield_radio { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: calc(10 * var(--u)); }
.ccf-form .ccf-tabs .gchoice { position: relative; margin: 0; }
.ccf-form .ccf-tabs input[type="radio"] { position: absolute; opacity: 0; }
.ccf-form .ccf-tabs label { display: flex !important; align-items: center; justify-content: center; min-height: max(44px, calc(62 * var(--u))); margin: 0 !important; padding: 0 12px; border: 1px solid var(--c-forest); font-family: var(--f-sans); font-size: max(13px, calc(14 * var(--u))) !important; text-transform: uppercase; text-align: center; cursor: pointer; max-width: none !important; }
.ccf-form .ccf-tabs input:checked + label { border-color: transparent; background: #FFD4D2; color: var(--c-red-text); }
.ccf-form .ccf-tabs input:focus-visible + label { outline: 2px solid var(--c-red); outline-offset: 2px; }
.ccf-form .gform_validation_errors { border-radius: 0 !important; }
.ccf-form .gform_confirmation_message { padding: 24px; background: #C8D6BE; }

/* ---------- Prose (text sections, story and case bodies) ---------- */
.prose { font-size: var(--t-body); overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-family: var(--f-sans); font-size: max(17px, calc(22 * var(--u))); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.prose h3 { margin-top: 1.6em; font-size: max(20px, calc(28 * var(--u))); }
.prose p, .prose li { line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose a { color: var(--c-red-text); }
.prose blockquote, .prose .wp-block-quote { margin: 1.6em 0; padding: 0; border: 0; font-style: italic; font-size: max(20px, calc(32 * var(--u))); line-height: 1.35; color: var(--c-maroon); }
.prose blockquote cite { display: block; margin-top: .6em; font-style: normal; font-family: var(--f-sans); font-size: 14px; color: var(--c-forest); }
.prose img { height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: .5em; font-family: var(--f-sans); font-size: 14px; }
.prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--f-sans); font-size: 15px; }
.prose td, .prose th { padding: 10px; border-bottom: 1px solid var(--c-line); text-align: left; }
.prose::after { content: ""; display: table; clear: both; }

/* ---------- Case, story and campaign pages ---------- */
.case-page__lead-band { padding: calc(80 * var(--u)) 0 calc(40 * var(--u)); }
.case-page__lead { margin: 0; font-size: max(20px, calc(36 * var(--u))); font-weight: 300; line-height: 1.3; }
.case-page__lead-band .case-page__lead { padding: 0 calc(121 * var(--u)); }
.case-page__grid { display: grid; grid-template-columns: calc(370 * var(--u)) 1fr; gap: calc(62 * var(--u)); padding: calc(110 * var(--u)) calc(121 * var(--u)) calc(60 * var(--u)); }
.case-page--summary .case-page__grid { padding-top: calc(60 * var(--u)); }
.case-page__main { min-width: 0; }
.case-page__main > * + * { margin-top: calc(80 * var(--u)); }
.case-page--living .case-page__lead { color: var(--c-forest); }
.case-page__body { font-family: var(--f-sans); font-size: max(15px, calc(16 * var(--u))); }
.case-page__body h2 { font-family: var(--f-sans); }

.case-side { display: flex; flex-direction: column; gap: calc(22 * var(--u)); align-self: start; position: sticky; top: calc(var(--header-h) + 24px + var(--wp-admin--admin-bar--height, 0px)); }
.case-side__label { margin: calc(10 * var(--u)) 0 0; font-style: italic; font-weight: 400; font-size: max(14px, calc(18 * var(--u))); color: var(--c-red-text); }
.case-side__text { margin: 0 0 calc(10 * var(--u)); font-family: var(--f-sans); font-size: max(13px, calc(14 * var(--u))); line-height: 1.5; }
.case-side__buttons { display: grid; gap: calc(12 * var(--u)); }
.case-side__buttons .btn { width: 100%; min-width: 0; }
.case-side__card { display: grid; gap: calc(40 * var(--u)); padding: calc(28 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)); background: var(--c-maroon); }
.case-side__quote { margin: 0; color: var(--c-tan); font-style: italic; font-size: max(20px, calc(32 * var(--u))); line-height: 1.2; }
.case-side__quote p { margin: 0; }
.case-side__quote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--c-cream); }
.case-side__card .btn:hover { background: var(--c-cream); color: var(--c-forest); }
.case-side__media { padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(16 * var(--u)); background: var(--c-sand); }
.case-side__media-title { margin: 0 0 calc(18 * var(--u)); font-style: italic; font-size: max(13px, calc(16 * var(--u))); }
.case-side__media-link { display: inline-flex; align-items: center; gap: 10px; min-height: 24px; font-family: var(--f-sans); font-size: max(13px, calc(14 * var(--u))); font-weight: 500; text-transform: uppercase; text-decoration: none; }
.case-side__share .share-links { margin-top: calc(14 * var(--u)); }

.case-docs { padding: calc(30 * var(--u)) calc(30 * var(--u)) calc(40 * var(--u)); background: var(--c-white); }
.case-docs__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(46 * var(--u)); margin: 0; padding: 0; list-style: none; }
.case-docs__list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(26 * var(--u)); padding: calc(22 * var(--u)) 0; border-bottom: 1px solid var(--c-line); font-family: var(--f-sans); font-size: max(13px, calc(15 * var(--u))); text-decoration: none; }
.case-docs__list a > svg:last-child { color: var(--c-red); }
.case-docs__list a:hover span { text-decoration: underline; }

.case-stages__list { position: relative; display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 0 0 calc(18 * var(--u)); list-style: none; }
.case-stages__list::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-forest); opacity: .3; }
.case-stages__item { position: relative; display: grid; gap: 6px; justify-items: start; }
.case-stages__item.is-done::after { content: ""; position: absolute; left: 0; bottom: calc(-18 * var(--u) - 4px); width: 10px; height: 10px; background: var(--c-forest); }
.case-stages__chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--c-forest); font-style: italic; font-size: max(13px, calc(16 * var(--u))); }
.case-stages__item.is-done .case-stages__chip { background: var(--c-forest); color: var(--c-cream); }
.case-stages__date { font-family: var(--f-sans); font-size: 12px; }
.case-page__cta .container { width: 100%; }
.case-page__cta .cta-banner__box { margin: 0; }

@media (max-width: 1024px) {
	.case-page__grid { grid-template-columns: 1fr; padding: 40px 0; }
	.case-side { position: static; order: 2; }
	.case-page__lead-band .case-page__lead { padding: 0; }
}
@media (max-width: 600px) { .case-docs__list { grid-template-columns: 1fr; } }
.story-toc ul { margin: 0 0 calc(80 * var(--u)); padding: 0; list-style: none; }
.story-toc a { display: block; padding: calc(3 * var(--u)) 0; font-family: var(--f-sans); font-size: max(12px, calc(14 * var(--u))); font-weight: 500; text-transform: uppercase; text-decoration: none; color: var(--c-red-text); }
.story-toc a:hover { text-decoration: underline; }
.story-body { font-family: var(--f-sans); font-size: max(15px, calc(16 * var(--u))); }
.story-body > p:first-of-type { font-family: var(--f-serif); font-size: max(20px, calc(36 * var(--u))); font-weight: 300; line-height: 1.3; }
.story-body .ccf-section { margin-left: 0; margin-right: 0; }
.story-body .ccf-section .container { width: 100%; }
.story-body .ccf-section [class$="__box"] { margin-left: 0; margin-right: 0; }
.story-source { margin-top: 2em; }
.campaign-page__grid { display: grid; grid-template-columns: 1fr calc(530 * var(--u)); gap: calc(60 * var(--u)); align-items: start; padding: calc(40 * var(--u)) calc(121 * var(--u)) calc(100 * var(--u)) calc(185 * var(--u)); }
.campaign-page__main { padding-top: calc(40 * var(--u)); font-family: var(--f-sans); font-size: max(14px, calc(16 * var(--u))); }
.campaign-page__main h2:first-child { margin-top: 0; }
.campaign-page__summary { font-family: var(--f-serif); font-style: italic; font-size: max(16px, calc(20 * var(--u))); }
.campaign-card { position: sticky; top: calc(var(--header-h) + 24px + var(--wp-admin--admin-bar--height, 0px)); display: grid; gap: calc(20 * var(--u)); justify-items: center; padding: calc(64 * var(--u)) calc(100 * var(--u)) calc(70 * var(--u)); background: var(--c-white); }
.campaign-card .ring { width: calc(320 * var(--u)); }
.campaign-card__amount { margin: 0 0 calc(40 * var(--u)); font-family: var(--f-sans); font-size: max(13px, calc(16 * var(--u))); }
.campaign-card__amount strong { font-weight: 600; }
.campaign-card__donate { width: 100%; }
.campaign-card__share { width: 100%; padding: calc(16 * var(--u)) 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.campaign-card .ccf-form { width: 100%; }
.campaign-card .ccf-form input[type="text"], .campaign-card .ccf-form input[type="email"] { background: #F6F4F1; }
.petition-page__to { font-style: italic; }
@media (max-width: 1024px) { .campaign-page__grid { grid-template-columns: 1fr; padding: 40px 0; } .campaign-card { position: static; padding: 32px 20px; } }

/* ---------- Archives, search, plain pages ---------- */
.archive-page__inner { padding: calc(80 * var(--u)) calc(121 * var(--u)) calc(100 * var(--u)); }
.archive-page__search { max-width: calc(900 * var(--u) + 2 * var(--gutter)); padding-top: calc(60 * var(--u)); }
.archive-page__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(64 * var(--u)) calc(44 * var(--u)); }
.news-card__cat { margin-top: calc(18 * var(--u)); }
.archive-page__empty { font-style: italic; }
.page-prose { padding-top: calc(80 * var(--u)); padding-bottom: calc(100 * var(--u)); }
.ccf-pagination { margin-top: calc(80 * var(--u)); }
.ccf-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ccf-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-red); font-family: var(--f-sans); font-size: 14px; text-decoration: none; color: var(--c-red-text); }
.ccf-pagination .page-numbers.current { background: var(--c-red); color: var(--c-on-red); }
.ccf-pagination .page-numbers.dots { border: 0; }
@media (max-width: 1024px) { .archive-page__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .archive-page__inner { padding: 48px 0; } }
@media (max-width: 600px) { .archive-page__grid { grid-template-columns: 1fr; } }
.page-hero__meta .status-chip { text-transform: none; letter-spacing: 0; }
.page-hero__meta a { display: inline-flex; align-items: center; gap: 8px; }

/* Embeds in imported story content (old YouTube iframes have fixed widths). */
.prose iframe, .story__body iframe, .entry-content iframe, .wp-block-embed iframe { max-width: 100%; }
iframe.youtube-player, .prose iframe[src*="youtube"], .story__body iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.wp-block-embed__wrapper { position: relative; }

/* Jetpack newsletter pop-up is not part of the design (turn it off in Jetpack > Newsletter too). */
.jetpack-subscription-modal { display: none !important; }

/* ---------- Wider than the design (1920px) ----------
   The layout stays exactly as drawn at 1920 and sits centred. Colour panels carry their colour
   out to the screen edges (box-shadow, clipped to the outer side); photos stop at the 1920 frame. */
@media (min-width: 1921px) {
	html { overflow-x: clip; }
	.site-header__bar { max-width: 1920px; margin-inline: auto; }
	.site-main > .entry-content > *, .site-main > .page-hero, .site-main > section, body > .page-hero, .site-header + .page-hero { max-width: 1920px; margin-inline: auto; }

	/* Whole-section colours */
	.ccf-section.has-forest-background-color { box-shadow: 0 0 0 100vmax var(--c-forest); clip-path: inset(0 -100vmax); }
	.ccf-section.has-forest-deep-background-color { box-shadow: 0 0 0 100vmax var(--c-forest-deep); clip-path: inset(0 -100vmax); }
	.ccf-section.has-maroon-background-color { box-shadow: 0 0 0 100vmax var(--c-maroon); clip-path: inset(0 -100vmax); }
	.ccf-section.has-sand-background-color { box-shadow: 0 0 0 100vmax var(--c-sand); clip-path: inset(0 -100vmax); }
	.ccf-section.has-tan-background-color { box-shadow: 0 0 0 100vmax var(--c-tan); clip-path: inset(0 -100vmax); }
	.ccf-section.has-black-background-color { box-shadow: 0 0 0 100vmax var(--c-black); clip-path: inset(0 -100vmax); }
	.ccf-section.has-white-background-color { box-shadow: 0 0 0 100vmax var(--c-white); clip-path: inset(0 -100vmax); }
	.map-banner { box-shadow: 0 0 0 100vmax var(--c-forest); clip-path: inset(0 -100vmax); }

	/* Split compositions: the colour side bleeds outwards, the photo side stops at the frame. */
	.page-hero__panel { --bleed: transparent; }
	.hero-slide__panel { --bleed: var(--c-forest); }
	.page-hero--forest .page-hero__panel, .hero-slide--forest .hero-slide__panel { --bleed: var(--c-forest); }
	.page-hero--red .page-hero__panel, .hero-slide--red .hero-slide__panel { --bleed: var(--c-red); }
	.page-hero--sand .page-hero__panel, .hero-slide--sand .hero-slide__panel { --bleed: var(--c-sand); }
	.page-hero--cream .page-hero__panel, .hero-slide--cream .hero-slide__panel { --bleed: var(--c-cream); }
	.page-hero--maroon .page-hero__panel, .hero-slide--maroon .hero-slide__panel, .promise__side, .page-hero--feature .page-hero__panel { --bleed: var(--c-maroon); }
	.page-hero--deep .page-hero__panel, .hero-slide--deep .hero-slide__panel { --bleed: var(--c-maroon-deep); }
	.page-hero--split .page-hero__panel { box-shadow: 0 0 0 100vmax var(--bleed); clip-path: inset(0 0 0 -100vmax); }
	/* Feature hero: the dark box overlaps the photo, so the maroon strip bleeds from the row behind it. */
	.page-hero--feature .page-hero__inner { box-shadow: 0 0 0 100vmax var(--c-maroon); clip-path: polygon(-100vmax 0, 100% 0, 100% 100%, 0 100%, 0 calc(100% - 56 * var(--u)), -100vmax calc(100% - 56 * var(--u))); }
	.page-hero--banner .page-hero__panel, .page-hero--plain .page-hero__panel { box-shadow: 0 0 0 100vmax var(--bleed); clip-path: inset(0 -100vmax); }
	.hero-slide__panel, .promise__side { box-shadow: 0 0 0 100vmax var(--bleed); clip-path: inset(0 -100vmax 0 0); }
}

/* ---------- LearnDash courses (learndash-single.php) ---------- */
.page-hero--forest .page-hero__eyebrow,
.page-hero--deep .page-hero__eyebrow,
.page-hero--maroon .page-hero__eyebrow { color: var(--c-red-light); }
.page-hero__eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ld-page { padding: calc(80 * var(--u)) 0 calc(120 * var(--u)); }
.ld-page__inner { max-width: calc(1200 * var(--u) + 2 * var(--gutter, 20px)); }
.ld-page__body { max-width: none; }
.ld-page .learndash-wrapper,
.ld-page .learndash-wrapper * { font-family: var(--f-serif); }
.ld-page .learndash-wrapper .ld-section-heading h2,
.ld-page .learndash-wrapper .ld-course-status-label,
.ld-page .learndash-wrapper .ld-button,
.ld-page .learndash-wrapper .ld-expand-button,
.ld-page .learndash-wrapper .ld-item-components,
.ld-page .learndash-wrapper .ld-status,
.ld-page .learndash-wrapper .ld-tabs-navigation .ld-tab { font-family: var(--f-sans); letter-spacing: .02em; }
.ld-page .learndash-wrapper .ld-section-heading h2 { font-size: max(16px, calc(20 * var(--u))); font-weight: 600; text-transform: uppercase; color: var(--c-forest); }
.ld-page .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled,
.ld-page .learndash-wrapper .ld-course-status { background: var(--c-sand); border-radius: 0; }
.ld-page .learndash-wrapper .ld-course-status-price { color: var(--c-forest); }
.ld-page .learndash-wrapper .ld-status { border-radius: 0; }
.ld-page .learndash-wrapper .ld-status-waiting { background: var(--c-tan) !important; color: var(--c-forest) !important; }
.ld-page .learndash-wrapper .ld-status-complete,
.ld-page .learndash-wrapper .ld-status-progress { background: var(--c-won) !important; color: var(--c-cream) !important; }
.ld-page .learndash-wrapper .ld-button,
.ld-page .learndash-wrapper a.ld-button,
.ld-page .learndash-wrapper .ld-content-action .ld-button,
.ld-page .learndash-wrapper .wpProQuiz_content .wpProQuiz_button,
.ld-page .learndash-wrapper .wpProQuiz_content input[type="button"],
.ld-page .learndash-wrapper .btn-join,
.ld-page .learndash-wrapper #btn-join { background: var(--c-red) !important; color: var(--c-on-red) !important; border: 0 !important; border-radius: 0 !important; font-family: var(--f-sans); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; min-height: 44px; padding: 12px 24px !important; }
.ld-page .learndash-wrapper .ld-button:hover,
.ld-page .learndash-wrapper .wpProQuiz_content .wpProQuiz_button:hover { background: var(--c-forest) !important; color: var(--c-cream) !important; opacity: 1; }
.ld-page .learndash-wrapper .ld-expand-button,
.ld-page .learndash-wrapper .ld-primary-color,
.ld-page .learndash-wrapper .ld-item-list .ld-item-list-item a.ld-item-name:hover,
.ld-page .learndash-wrapper .ld-item-list-item .ld-item-title { color: var(--c-forest) !important; }
.ld-page .learndash-wrapper .ld-expand-button .ld-icon,
.ld-page .learndash-wrapper .ld-primary-background { background-color: var(--c-forest) !important; color: var(--c-cream) !important; }
.ld-page .learndash-wrapper .ld-item-list .ld-item-list-item { border-radius: 0; border-color: var(--c-line); }
.ld-page .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name { font-size: max(16px, calc(19 * var(--u))); }
.ld-page .learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage { background: var(--c-red) !important; }
.ld-page .learndash-wrapper .ld-alert { border-radius: 0; }
.ld-page .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label { border-radius: 0; }
.ld-page .learndash-wrapper .ld-video,
.ld-page .learndash-wrapper iframe[src*="youtube"] { max-width: 100%; }
@media (max-width: 781px) {
	.ld-page { padding: 40px 0 64px; }
	.ld-page .learndash-wrapper .ld-course-status { padding: 16px; }
}

/* ---------- Motion and feedback ----------
 * Small, quick transitions so every interactive element responds, plus a gentle fade-up as
 * sections come into view. Everything here switches off under "reduce motion" (base.css and
 * the media queries below). Content is never hidden without JavaScript: the reveal styles
 * only apply once site.js adds .has-motion to <html>.
 */

/* Every link, button, tab and field eases its colour changes (zero specificity, so any
   component's own transition still wins). */
:where(a, button, summary, [role="tab"], input, select, textarea, .chip, .page-numbers) {
	transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), text-decoration-color .2s var(--ease), opacity .2s var(--ease);
}
:focus-visible { transition: outline-offset .15s var(--ease); }

/* Buttons: a small press, so a tap is felt. */
.btn, .wp-block-button__link, .gform_button, .faq-tabs__tab { transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .12s var(--ease); }
.btn:active, .wp-block-button__link:active, .gform_button:active, .faq-tabs__tab:active { transform: translateY(1px) scale(.985); }

/* Links in text: the underline warms to red on hover. */
.prose a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.prose a:hover { text-decoration-color: var(--c-red); text-decoration-thickness: 2px; }

/* Form fields: a soft red ring on focus instead of a hard jump. */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea { transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):focus, select:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--c-red); }

/* Header gains a hairline shadow once the page scrolls under it. */
.site-header { transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(28, 56, 48, .08), 0 8px 24px -12px rgba(28, 56, 48, .25); }

/* Cards: titles and arrows respond with the image zoom. */
.case-card__title, .news-card__title, .resource-card__title { transition: color .2s var(--ease); }
.case-card:hover .case-card__title, .news-card:hover .news-card__title, .resource-card:hover .resource-card__title { color: var(--c-red-text); }
.case-card:hover .case-card__img, .news-card:hover .news-card__media img, .resource-card:hover .resource-card__media img { transform: scale(1.03); }

/* Shown-again content fades in: FAQ answers, tab panels, filtered case rows, Learn results. */
@keyframes ccf-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ccf-fade { from { opacity: 0; } to { opacity: 1; } }
.faq[open] .faq__a { animation: ccf-fade-up .3s var(--ease) both; }
.faq-tabs [role="tabpanel"]:not([hidden]) { animation: ccf-fade .3s var(--ease) both; }
.case-explorer__card { animation: ccf-fade-up .35s var(--ease) both; }

/* FAQ: open and close smoothly where the browser supports animating to auto height. */
@supports (interpolate-size: allow-keywords) {
	.faq { interpolate-size: allow-keywords; }
	.faq::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s var(--ease) allow-discrete; }
	.faq[open]::details-content { block-size: auto; }
}

/* Team bio window: eases in over a fading backdrop. */
@keyframes ccf-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.team-dialog[open] { animation: ccf-pop .25s var(--ease) both; }
.team-dialog[open]::backdrop { animation: ccf-fade .25s var(--ease) both; }

/* Sections fade up as they scroll into view (not the first section or heroes). */
.has-motion .js-reveal { transform: translateY(28px); transition: transform .7s var(--ease); }
.has-motion .js-reveal.is-in { transform: none; }
/* Reveal moves sections only: text keeps full contrast for scanners and readers that never scroll. */
@media print { .has-motion .js-reveal { opacity: 1 !important; transform: none !important; } }

/* Page to page: a quick cross-fade in browsers that support it (Chrome, Edge, Safari 18.2+). */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
	html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
	.has-motion .js-reveal { opacity: 1; transform: none; }
	.btn:active, .wp-block-button__link:active, .gform_button:active, .faq-tabs__tab:active { transform: none; }
}
/* LearnDash: readable status labels on sand, and 24px minimum touch targets. */
.ld-page .learndash-wrapper .ld-course-status-label { color: var(--c-forest) !important; opacity: 1; }
.ld-page .learndash-wrapper .ld-expand-button,
.ld-page .learndash-wrapper .ld-item-list-item-expanded .ld-expand-button,
.ld-page .learndash-wrapper .ld-table-list-header a,
.ld-page .learndash-wrapper .ld-pagination a { min-height: 24px; min-width: 24px; display: inline-flex; align-items: center; }

/* ---------- Search results (search.php, inc/search.php) ---------- */
.search-page__top { max-width: calc(1040 * var(--u) + 2 * var(--gutter)); padding-top: calc(60 * var(--u)); }
.search-page__types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: calc(28 * var(--u)); }
.search-page__types .chip { text-decoration: none; }
.search-page__inner { max-width: calc(1040 * var(--u) + 2 * var(--gutter)); padding-top: calc(48 * var(--u)); padding-bottom: calc(110 * var(--u)); }
.search-page--learn .search-page__inner { max-width: none; padding-left: calc(121 * var(--u)); padding-right: calc(121 * var(--u)); }
.search-page__count { margin: 0 0 calc(32 * var(--u)); font-family: var(--f-sans); font-size: var(--t-label); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--c-forest); }
.search-results { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.search-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(36 * var(--u)); padding: calc(36 * var(--u)) 0; border-bottom: 1px solid var(--c-line); }
.search-result.has-image { grid-template-columns: calc(260 * var(--u)) minmax(0, 1fr); }
.search-result__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-sand); }
.search-result__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.search-result:hover .search-result__media img { transform: scale(1.03); }
.search-result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--f-sans); font-size: max(12px, calc(13 * var(--u))); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--c-red-text); }
.search-result__meta time { color: var(--c-forest); opacity: .8; }
.search-result__meta .sep { width: 1px; height: 12px; background: var(--c-line); }
.search-result__meta .status-chip { margin: 0; }
.search-result__title { margin: 0 0 10px; font-size: max(20px, calc(28 * var(--u))); font-weight: 400; line-height: 1.2; }
.search-result__title a { text-decoration: none; }
.search-result__title a:hover { text-decoration: underline; text-decoration-color: var(--c-red); text-underline-offset: .15em; }
.search-result__excerpt { margin: 0; max-width: 68ch; font-size: max(15px, calc(17 * var(--u))); line-height: 1.55; color: var(--c-forest); }
.search-result__excerpt mark, .search-result__excerpt strong, .search-result__excerpt .relevanssi-query-term { background: rgba(201, 163, 120, .45); color: inherit; font-weight: inherit; padding: 0 .1em; }
.search-empty { max-width: 680px; padding: calc(20 * var(--u)) 0 calc(20 * var(--u)); }
.search-empty__dym { margin: 0 0 16px; font-style: italic; }
.search-empty__dym a { color: var(--c-red-text); font-weight: 600; }
.search-empty__title { margin: 0 0 12px; font-size: max(24px, calc(36 * var(--u))); font-weight: 300; }
.search-empty__text { margin: 0 0 20px; }
.search-empty__links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 781px) {
	.search-page__top, .search-page__inner { padding-top: 32px; }
	.search-page--learn .search-page__inner { padding-left: 0; padding-right: 0; }
	.search-page__types { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
	.search-page__types .chip { flex: 0 0 auto; }
	.search-result.has-image { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
	.search-result { padding: 20px 0; }
	.search-result__excerpt { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Polish pass (design review, 23 Oct) ---------- */
/* Footer column toggles: plain headings on desktop, folding sections on phones. */
.site-footer__toggle { all: unset; display: flex; align-items: center; justify-content: space-between; width: 100%; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.site-footer__toggle:disabled { cursor: default; }
.site-footer__toggle:disabled .site-footer__sign { display: none; }
.site-footer__toggle:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }
.site-footer__sign { position: relative; width: 12px; height: 12px; }
.site-footer__sign::before, .site-footer__sign::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .2s var(--ease); }
.site-footer__sign::after { transform: rotate(90deg); }
.site-footer__col.is-open .site-footer__sign::after { transform: rotate(0); }
@media (max-width: 781px) {
	.site-footer__cols { grid-template-columns: 1fr; gap: 0; }
	.site-footer__col { padding-left: 0; border-left: 0; }
	.site-footer__heading { margin: 0; }
	.site-footer__toggle { min-height: 44px; cursor: pointer; }
	.site-footer__col:not(.is-open) .site-footer__links { display: none; }
	.site-footer__col.is-open .site-footer__links { padding: 4px 0 20px; animation: ccf-fade-up .25s var(--ease) both; }
	.site-footer__links li { line-height: 1.9; }
	.site-footer__legal { flex-direction: row; align-items: flex-end; justify-content: space-between; }
	.site-footer__legal-list { flex-direction: column; gap: 6px; font-size: 12px; }
	.site-footer__mark img { width: 84px; }
}

/* Stats: the light, large-optical-size Literata draws "+" as a hairline; standard optical size fixes it. */
.stats__number { font-optical-sizing: none; }

/* Long words in hero titles wrap only when they truly don't fit (no mid-word splits). */
.page-hero__title { overflow-wrap: break-word; }
.featured-wins__title { overflow-wrap: break-word; hyphens: manual; }

/* What We Fight For: rules between Rights and dividers between cards, as designed. */
.case-explorer__group { margin-bottom: 0; padding: calc(90 * var(--u)) 0 calc(100 * var(--u)); border-top: 1px solid var(--c-line); }
.case-explorer__filters + .case-explorer__group, .case-explorer__group:first-of-type { border-top: 0; padding-top: 0; }
.case-explorer__title { margin-bottom: calc(44 * var(--u)); }
.case-explorer__stance { margin: calc(-24 * var(--u)) 0 calc(60 * var(--u)); font-size: max(16px, calc(20 * var(--u))); }
.case-explorer__grid > .case-explorer__card { padding-left: calc(18 * var(--u)); border-left: 1px solid var(--c-line); }
.case-explorer__list { padding-left: calc(24 * var(--u)); border-left: 1px solid var(--c-line); }
.case-explorer__list .case-row + .case-row { padding-top: calc(28 * var(--u)); border-top: 1px solid var(--c-line); }
.case-explorer__more { margin-top: calc(40 * var(--u)); }

/* Case page: the story reads in the large serif of the design; sidebar sections ruled. */
/* Living case (Case Study – Living Case frame): the whole story in 34px regular serif, 50px leading. */
.case-page--living .case-page__lead, .case-page--living .case-page__body { font-family: var(--f-serif); font-size: max(18px, calc(34 * var(--u))); font-weight: 400; line-height: 1.47; max-width: calc(1165 * var(--u)); color: var(--c-forest); }
.case-page--living .case-page__body h2, .case-page--living .case-page__body h3 { font-family: var(--f-serif); font-weight: 400; }
.case-page--living .case-page__main > .case-page__lead + .case-page__body { margin-top: calc(24 * var(--u)); }
.case-page__body a { font-weight: 400; }
/* Summary (Case Study – Summary frame): 36px regular serif lead full width, story in 16px sans with plain sans subheads. */
.case-page--summary .case-page__lead { font-size: max(20px, calc(36 * var(--u))); font-weight: 400; line-height: 1.39; color: var(--c-forest); }
.case-page--summary .case-page__body { font-family: var(--f-sans); font-size: max(15px, calc(16 * var(--u))); font-weight: 400; line-height: 1.4; max-width: calc(1000 * var(--u)); color: var(--c-forest); }
.case-page--summary .case-page__body h2, .case-page--summary .case-page__body h3, .case-page--summary .case-page__body h4 { margin: 1.4em 0 1em; font-family: var(--f-sans); font-size: 1em; font-weight: 400; line-height: 1.4; }
.case-page--summary .case-side__share { padding-bottom: calc(16 * var(--u)); border-bottom: 1px solid var(--c-line); }
.case-page--living .case-side__label { padding-top: calc(16 * var(--u)); border-top: 1px solid var(--c-line); }
.case-page--living .case-side__label:first-child { margin-top: 0; }
.case-side__share { padding-top: calc(16 * var(--u)); border-top: 1px solid var(--c-line); }

/* Learn: tighter rhythm between the search box, the modes and Start here, as designed. */
.learn-search + .learn-modes { padding-top: calc(36 * var(--u)) !important; }
.learn-modes + .start-here { padding-top: calc(70 * var(--u)) !important; }

/* What We Do map: heading wraps over two lines beside the map. */
.map-banner__heading { max-width: calc(420 * var(--u)); }

/* Buttons never wrap their label (FAQ "Contact us", panels). */
.subscribe-panel .btn, .cta-banner .btn, .inline-form .btn { white-space: nowrap; }

/* Act: empty state while there are no open petitions. */
.featured-petition--empty .featured-petition__inner { grid-template-columns: minmax(0, 1fr); }
.featured-petition--empty .featured-petition__title { font-size: var(--t-h1); }
.featured-petition--empty .btn { margin-top: calc(36 * var(--u)); }
.featured-petition--empty + .wide-image, .live-bar + .wide-image { margin-top: calc(60 * var(--u)); }

/* Donation form box: calm placeholder while the secure form loads. */
.donation-form iframe, .donation-form__embed { background: var(--c-white); }

/* Submit a case: narrower form, as designed. */
.form-section .ccf-form { max-width: calc(620 * var(--u) + 0px); margin-inline: auto; }

/* ---------- Phones: type scale for card and list headings ----------
 * Below 782px the design unit is 1px, so headings sized for 1920 stayed at desktop size.
 * These set the phone sizes from the mobile design.
 */
@media (max-width: 781px) {
	body .case-card__title { font-size: 24px; }
	body .case-card--compact .case-card__title { font-size: 22px; }
	body .case-row__title { font-size: 20px; line-height: 1.2; }
	body .case-row { grid-template-columns: minmax(0, 1fr) 96px; }
	body .case-explorer__group { padding: 48px 0 56px; }
	body .case-explorer__grid > .case-explorer__card { padding-left: 0; border-left: 0; }
	body .case-explorer__list { padding-left: 0; border-left: 0; }
	body .case-explorer__list .case-row + .case-row { padding-top: 20px; }
	body .featured-wins__title { font-size: 22px; }
	body .start-here__title { font-size: 24px; }
	body .start-here__item-title { font-size: 20px; }
	body .team-card__name { font-size: 18px; }
	body .team-card__cred { display: block; font-size: 12px; }
	body .faq__q { font-size: 19px; padding: 20px 0; }
	body .search-result__title { font-size: 20px; }
	body .news-card__title, body .resource-card__title { font-size: 22px; }
	body .listen-subscribe__title { font-size: 24px; }
	body .subscribe-panel__heading { font-size: 24px; }
	body .hero-slide__intro { font-size: 16px; }
	body .page-hero--feature .page-hero__title, body .page-hero--split .page-hero__title { font-size: 34px; }
	body .page-hero--banner .page-hero__title { font-size: 38px; }
	body .page-hero__intro { font-size: 16px; }
	body .case-page .case-page__lead { font-size: 22px; }
	body .case-page--living .case-page__lead { font-size: 20px; }
	body .case-page--living .case-page__body { font-size: 19px; }
	body .case-page--summary .case-page__body { font-size: 16px; }
	body .story-body > p:first-of-type { font-size: 22px; }
	body .featured-petition--empty .featured-petition__title { font-size: 32px; }

	/* Press logos: one swipeable row. */
	body .logos__row { flex-wrap: nowrap; justify-content: flex-start; gap: 28px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -20px; padding: 4px 20px 12px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	body .logos__row::-webkit-scrollbar { display: none; }
	body .logos__item { flex: 0 0 auto; scroll-snap-align: start; }

	/* Stats: one per row, big number with its label beside it. */
	body .stats__item { flex: 1 1 100%; display: flex; align-items: baseline; gap: 14px; padding: 18px 20px; }
	body .stats__number { font-size: 56px; }
	body .stats__label { margin: 0; font-size: 22px; }
	body .stats__inner.has-heading { grid-template-columns: minmax(0, 1fr); }
	body .stats__item { min-width: 0; flex-wrap: wrap; }
	body .stats__number { font-size: clamp(40px, 13vw, 56px); }
	body .stats__label { min-width: 0; }

	/* Featured Wins: swipe one win at a time. */
	body .featured-wins__list { grid-auto-flow: column; grid-auto-columns: 84%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
	body .featured-wins__list::-webkit-scrollbar { display: none; }
	body .featured-wins__item { grid-template-columns: minmax(0, 1fr); gap: 16px; scroll-snap-align: start; }
	body .featured-wins__thumb { aspect-ratio: 16 / 10; }

	/* Learn modes: title over its line, icon to the right. */
	body .learn-mode { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 16px 18px; }
	body .learn-mode__title { grid-column: 1; font-size: 22px; }
	body .learn-mode__text { grid-column: 1; margin-top: 2px; }
	body .learn-mode__icon { grid-column: 2; grid-row: 1 / span 2; }
}
/* Footer sign-up reads at the designed size; case explorer heading spacing wins over the block sheet. */
.site-footer .newsletter-form input[type="email"], .site-footer .newsletter-form input[type="text"] { font-size: max(16px, calc(20 * var(--u))) !important; }
.case-explorer .case-explorer__title { margin-bottom: calc(44 * var(--u)); }
.case-explorer .case-explorer__filters { margin-bottom: calc(90 * var(--u)); }
.case-explorer .case-explorer__stance { margin: calc(-24 * var(--u)) 0 calc(60 * var(--u)); font-size: max(16px, calc(20 * var(--u))); }

/* Form fields: Gravity Forms' own sheet is more specific, so these sizes need the stronger selector. */
body .ccf-form .gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="hidden"]), body .ccf-form .gform_wrapper select { min-height: max(50px, calc(80 * var(--u))) !important; line-height: 1.3 !important; }
body .ccf-form .gform_wrapper textarea { min-height: max(170px, calc(276 * var(--u))) !important; }
@media (max-width: 781px) {
	body .featured-story__title { font-size: 30px; line-height: 1.15; }
	body .featured-story__intro { font-size: 15px; }
	body .ccf-form .ccf-tabs label { min-height: 48px; }
}
@media (max-width: 781px) {
	body .ccf-form .gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="hidden"]), body .ccf-form .gform_wrapper select { min-height: 52px !important; }
	body .ccf-form .gform_wrapper textarea { min-height: 170px !important; }
	body .ccf-form .gform_footer input[type="submit"] { min-height: 52px; }
}
@media (max-width: 781px) {
	body .featured-wins__list, body .logos__row { scroll-padding-inline: 20px; }
}
.search-page--learn .learn-search { padding-top: calc(56 * var(--u)); }
@media (max-width: 781px) { .search-page--learn .learn-search { padding-top: 28px; } }

/* ---------- Tablets (782–1100px): sections that need room stack before their text gets crushed ---------- */
@media (min-width: 782px) and (max-width: 1100px) {
	body .featured-wins__grid { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 48px; }
	body .featured-wins__item { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
	body .featured-wins__title { font-size: 26px; }
	body .featured-wins__map { max-width: 640px; margin-inline: auto; }

	body .case-explorer__feature { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	body .case-explorer__list { padding-left: 0; border-left: 0; }
	body .case-row { grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; }
	body .case-row__title { font-size: 24px; }

	body .start-here__inner { padding: 0; }
	body .start-here__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	body .start-here__item { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
	body .start-here__item-title { font-size: 24px; }

	body .learn-modes__inner { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 24px; }
	body .learn-modes__heading { max-width: none; }

	body .cta-banner__box { grid-template-columns: minmax(0, 1fr); margin: 0; }
	body .cta-banner__text { flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 36px; }
	body .cta-banner__heading { max-width: none; }
	body .cta-banner__action { padding: 24px 36px; }
	body .cta-banner__action::before { display: none; }

	body .map-banner { min-height: 0; }
	body .map-banner__media { position: relative; aspect-ratio: 16 / 9; }
	body .map-banner__text { width: auto; padding: 40px 36px 32px; }

	body .case-cards__grid { padding: 0; }
}
@media (min-width: 782px) and (max-width: 1100px) {
	body .board-list__inner { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 32px; }
}
@media (min-width: 782px) and (max-width: 1100px) {
	body .listen-subscribe__grid { grid-template-columns: minmax(0, 1fr); padding: 0; }
}
/* "Submit a case" closes the What We Fight For menu as a red arrow link, as designed. */
.site-nav .sub-menu > li > a[href*="submit-a-case"] { display: inline-flex; align-items: center; gap: .5em; margin-top: 6px; font-family: var(--f-sans); font-style: normal; font-size: max(13px, calc(15 * var(--u))); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--c-red-text); }
.site-nav .sub-menu > li > a[href*="submit-a-case"]::after { content: "\2192"; transition: transform .2s var(--ease); }
.site-nav .sub-menu > li > a[href*="submit-a-case"]:hover::after { transform: translateX(4px); }
.ld-page .learndash-wrapper .ld-status, .ld-page .learndash-wrapper .ld-course-status .ld-status { font-size: 12px !important; }
/* Buttons placed in page content keep button colours (not the red text-link colour). */
.prose .wp-block-button__link, .prose a.btn { color: var(--c-on-red); text-decoration: none; }
.prose .wp-block-button__link:hover, .prose a.btn:hover { color: var(--c-cream); }

/* ---------- Round 6 design fidelity (23 Oct): rules, dividers and weights from the frames ---------- */
/* Home: "As seen in" label and the full-width rule under the press logos (Homepage frame). */
body .logos__heading { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: max(14px, calc(20 * var(--u))); letter-spacing: 0; text-transform: none; color: rgba(28, 56, 48, .72); }
body .ccf-section.logos { border-bottom: 1px solid var(--c-line); }
/* Card and row titles are Literata regular in the frames, not light. */
body .case-card__title, body .news-card__title, body .featured-wins__title, body .start-here__title, body .start-here__item-title, body .case-row__title { font-weight: 400; }
/* Case cards keep the forest title on hover; the red underline and image bar carry the state. */
body .case-card:hover .case-card__title { color: inherit; }
@media (min-width: 1025px) {
	/* Case cards: hairline between columns, content 20px after the rule (Homepage, Related Cases, Submit a Case). */
	body .case-cards__grid { column-gap: calc(40 * var(--u)); }
	body .case-cards__grid > .case-card:not(:nth-child(3n+1)) { padding-left: calc(20 * var(--u)); border-left: 1px solid var(--c-line); }
	/* Top Stories: hairline between columns (News frame). */
	body .news-grid__grid.has-media { column-gap: calc(22 * var(--u)); }
	body .news-grid__grid.has-media > :not(:nth-child(3n+1)) { padding-left: calc(22 * var(--u)); border-left: 1px solid var(--c-line); }
}
@media (min-width: 1101px) {
	/* Featured Wins: rules between wins and a vertical rule before the map. */
	body .featured-wins__grid { column-gap: calc(22 * var(--u)); }
	body .featured-wins__list { gap: 0; padding-right: calc(38 * var(--u)); border-right: 1px solid var(--c-line); }
	body .featured-wins__item { padding: calc(24 * var(--u)) 0; }
	body .featured-wins__item:first-child { padding-top: 0; }
	body .featured-wins__item + .featured-wins__item { border-top: 1px solid var(--c-line); }
}
@media (min-width: 782px) {
	/* What we do features: bigger icon and the frame's vertical rhythm. */
	body .feature__icon { height: calc(110 * var(--u)); margin-bottom: calc(88 * var(--u)); }
	body .feature__title { margin-bottom: calc(44 * var(--u)); }
	body .feature__text { max-width: calc(300 * var(--u)); }
	/* Learn modes: hairline before each mode, icon at full size, rule under the row. */
	body .learn-modes__heading { font-weight: 400; color: var(--c-red); }
	body .learn-mode::before { content: ""; position: absolute; top: calc(-4 * var(--u)); bottom: calc(-4 * var(--u)); left: calc(-20 * var(--u)); width: 1px; background: var(--c-line); }
	body .learn-mode__icon { height: calc(76 * var(--u)); padding-top: 0; margin-top: auto; }
	body .learn-modes { padding-bottom: calc(28 * var(--u)) !important; border-bottom: 1px solid var(--c-line); }
	/* Start here: vertical rule between the feature and the list, rule above each row. */
	body .start-here__grid { column-gap: calc(20 * var(--u)); }
	body .start-here__list { gap: 0; padding-left: calc(20 * var(--u)); border-left: 1px solid var(--c-line); }
	body .start-here__item { padding: calc(18 * var(--u)) 0; border-top: 1px solid var(--c-line); }
	/* Contact: rule before the side column; bold labels in the contact list; tab sizing. */
	body .contact-panel__side { position: relative; }
	body .contact-panel__side::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-30 * var(--u)); width: 1px; background: var(--c-line); }
	body .ccf-form .ccf-tabs label { min-height: calc(80 * var(--u)); font-weight: 600; font-size: max(13px, calc(16 * var(--u))) !important; }
	/* Story: vertical rule between the sidebar and the story (Blog frame). */
	body .story-page .case-page__grid { column-gap: calc(42 * var(--u)); }
	body .story-page .case-page__main { padding-left: calc(20 * var(--u)); border-left: 1px solid var(--c-line); }
}
body .contact-box__list { font-size: max(14px, calc(18 * var(--u))); }
body .contact-box__list dt { font-weight: 600; }
body .ccf-form .ccf-tabs .gfield_label, body .ccf-form legend.gfield_label { font-weight: 400 !important; color: var(--c-forest) !important; font-size: max(16px, calc(20 * var(--u))) !important; }
/* Team: thin light-red rule under each photo (What We Do frame). */
body .team-card__media { border-bottom: 2px solid rgba(255, 41, 31, .6); }
/* FAQs: hairline between questions (FAQS frame). */
body .faq { border-bottom: 1px solid var(--c-line); }
@media (min-width: 782px) {
	/* Feature hero (case and story pages): fixed-height panel 60px under the header, title above the meta row. */
	body .page-hero--feature .page-hero__content { display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(464 * var(--u)); padding-bottom: calc(45 * var(--u)); }
	body .page-hero--feature .page-hero__meta { margin-top: calc(91 * var(--u)); }
	body .page-hero--feature .page-hero__intro + .page-hero__meta { margin-top: calc(56 * var(--u)); }
	/* Case pages use the display size for the hero title (Living Case and Summary frames). */
	body.single-case .page-hero--feature .page-hero__title { font-size: var(--t-display); }
}

/* ---------- Live search panel (assets/js/live-search.js) ---------- */
.live-search-anchor { position: relative; }
.live-search { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: min(70vh, 640px); overflow-y: auto; overscroll-behavior: contain; background: var(--c-white); border: 1px solid var(--c-line); box-shadow: 0 18px 40px -12px rgba(21, 42, 37, .28); text-align: left; animation: ccf-fade-up .18s var(--ease) both; }
.live-search[hidden] { display: none; }
.live-search__inner { padding: 6px 0; }
.live-search__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px 14px; border-bottom: 1px solid var(--c-line); }
.live-search__label { margin-right: 4px; font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(28, 56, 48, .7); }
.live-search__word { min-height: 32px; padding: 0 12px; border: 1px solid var(--c-line); background: var(--c-cream); font-family: var(--f-serif); font-size: 15px; color: var(--c-forest); cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.live-search__word:hover, .live-search__word.is-active { border-color: var(--c-tan); background: var(--c-sand); }
.live-search__results { margin: 0; padding: 0; list-style: none; }
.live-search__results li + li { border-top: 1px solid var(--c-line); }
.live-search__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 18px; text-decoration: none; color: var(--c-forest); transition: background-color .15s var(--ease); }
.live-search__item.has-thumb { grid-template-columns: 96px minmax(0, 1fr); }
.live-search__item:hover, .live-search__item.is-active { background: var(--c-cream); }
.live-search__item:hover .live-search__title, .live-search__item.is-active .live-search__title { text-decoration: underline; text-decoration-color: var(--c-red); text-underline-offset: .18em; }
.live-search__thumb { display: block; width: 96px; height: 64px; object-fit: cover; background: var(--c-sand); }
.live-search__body { display: grid; gap: 4px; min-width: 0; }
.live-search__meta { font-family: var(--f-serif); font-style: italic; font-size: 14px; color: var(--c-red-text); }
.live-search__title { font-size: 19px; line-height: 1.25; }
.live-search__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--f-sans); font-size: 14px; line-height: 1.45; color: rgba(28, 56, 48, .85); }
.live-search__excerpt mark { background: rgba(201, 163, 120, .45); color: inherit; padding: 0 .1em; }
.live-search__all { display: flex; margin: 0; padding: 14px 18px; border-top: 1px solid var(--c-line); background: var(--c-cream); }
.live-search__all.is-active, .live-search__all:hover { background: var(--c-sand); }
.live-search__none, .live-search__dym { margin: 0; padding: 16px 18px; font-family: var(--f-sans); font-size: 15px; }
.live-search__dym { padding-top: 0; }
.is-searching input[type="search"] { background-image: linear-gradient(90deg, transparent, rgba(201, 163, 120, .35), transparent); background-size: 40% 2px; background-repeat: no-repeat; background-position: -40% 100%; animation: ccf-search-bar 1s linear infinite; }
@keyframes ccf-search-bar { to { background-position: 140% 100%; } }
@media (prefers-reduced-motion: reduce) { .live-search { animation: none; } .is-searching input[type="search"] { animation: none; } }
@media (max-width: 781px) {
	.live-search { max-height: 60vh; }
	.live-search__item.has-thumb { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
	.live-search__thumb { width: 72px; height: 48px; }
	.live-search__title { font-size: 17px; }
}
/* Native search clear button clashes with the design (blue cross); Escape clears instead. */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* Library: link to every resource under the cards. */
.resource-cards__more { margin: calc(56 * var(--u)) 0 0; text-align: center; }
.resource-cards__more .link-arrow { color: inherit; }
/* Search: sort switch beside the count. */
.search-page__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.search-page__sort { display: flex; gap: 16px; margin: 0; font-family: var(--f-sans); font-size: max(12px, calc(13 * var(--u))); text-transform: uppercase; letter-spacing: .03em; }
.search-page__sort a { color: inherit; text-decoration: none; }
.search-page__sort a[aria-current] { color: var(--c-red-text); text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 781px) {
	body .case-explorer__group { padding: 36px 0 40px; }
	body .case-row__title { text-wrap: pretty; }
}
/* What We Fight For: the block's own 130px group margin was stacking on top of the group padding. */
body .case-explorer__group { margin-bottom: 0; }
body .case-explorer__group:last-of-type { padding-bottom: calc(60 * var(--u)); }
body .case-explorer + .subscribe-panel { padding-top: calc(80 * var(--u)) !important; }

/* Petitions: closed (archived) petitions */
body .petition-card.is-closed .petition-card__chip { background: var(--c-sand, #E8D9C9); }
body .campaign-card__closed { margin: 0 0 20px; font-size: 17px; line-height: 1.5; }

/* CTA band on phones: long button labels wrap instead of widening the band past the screen */
@media (max-width: 781px) {
	body .cta-banner__box { grid-template-columns: minmax(0, 1fr); }
	body .cta-banner .btn { white-space: normal; text-align: center; }
}

/* Campaign (fundraising) page: card details, "Make your gift" section with the Bloomerang form */
body .campaign-card__amount em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
body .campaign-card__amount--big strong { display: block; font-family: var(--f-serif); font-weight: 400; font-size: max(32px, calc(56 * var(--u))); line-height: 1.1; }
body .campaign-card .campaign-card__amount { margin-bottom: 0; text-align: center; }
body .campaign-card__meta { margin: calc(-8 * var(--u)) 0 calc(24 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: max(14px, calc(16 * var(--u))); color: rgba(28, 56, 48, .8); text-align: center; }
body .campaign-card__donate { margin-top: calc(16 * var(--u)); }
body .campaign-page__links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: calc(40 * var(--u)); }
body .campaign-give { padding: calc(100 * var(--u)) 0 calc(120 * var(--u)); background: var(--c-white); scroll-margin-top: calc(var(--header-h, 130px) + 16px); }
body .campaign-give__inner { display: grid; justify-items: center; text-align: center; }
body .campaign-give__title { margin: 0; font-size: var(--t-h2); font-weight: 300; color: var(--c-red-text, #B8150D); }
body .campaign-give__note { margin: 12px 0 calc(40 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: max(15px, calc(18 * var(--u))); }
body .campaign-give__form { width: 100%; max-width: 630px; min-height: 420px; }
body .campaign-give__loading { margin: 40px 0; font-family: var(--f-serif); font-style: italic; color: rgba(28, 56, 48, .75); }
@media (max-width: 1024px) {
	body .campaign-page__grid { display: flex; flex-direction: column; }
	body .campaign-card { order: -1; width: 100%; }
}
@media (max-width: 781px) {
	body .campaign-give { padding: 56px 0 64px; }
	body .campaign-card .ring { width: 200px; }
}

/* Campaign card: deadline, amount buttons, ended state */
body .campaign-card__deadline { display: flex; justify-content: space-between; gap: 12px; width: 100%; margin: 0; padding: 12px 16px; background: var(--c-cream, #F0EDE8); font-family: var(--f-serif); font-style: italic; font-size: max(14px, calc(16 * var(--u))); }
body .campaign-card__deadline strong { font-family: var(--f-sans); font-style: normal; font-weight: 600; color: var(--c-red-text); white-space: nowrap; }
body .campaign-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
body .campaign-amounts__btn { display: flex; align-items: center; justify-content: center; min-height: 56px; border: 1px solid var(--c-forest); font-family: var(--f-sans); font-weight: 600; font-size: max(16px, calc(18 * var(--u))); color: var(--c-forest); text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
body .campaign-amounts__btn:hover, body .campaign-amounts__btn:focus-visible { background: var(--c-cream, #F0EDE8); }
body .campaign-amounts__btn.is-chosen { border-color: var(--c-red); background: #FFD4D2; color: var(--c-red-text); }
body .campaign-card .campaign-amounts + .campaign-card__donate { margin-top: 0; background: transparent; border: 1px solid var(--c-forest); color: var(--c-forest); }
body .campaign-card .campaign-amounts + .campaign-card__donate:hover { background: var(--c-forest); color: var(--c-cream); }
body .campaign-card__ended { margin: 0; font-family: var(--f-serif); font-size: max(16px, calc(18 * var(--u))); line-height: 1.5; text-align: center; }
body .campaign-give__chosen { margin: 0 0 24px; font-family: var(--f-sans); font-weight: 600; }
body .campaign-give__chosen a { margin-left: 8px; font-weight: 400; color: var(--c-red-text); }

/* Petition form: newsletter notice under the fields */
body .ccf-form__notice { margin: 4px 0 0; font-family: var(--f-serif); font-style: italic; font-size: 13px; line-height: 1.45; color: rgba(28, 56, 48, .8); }

/* Campaign card: recent gifts (amounts only) */
body .campaign-recent { width: 100%; padding: 12px 0; border-top: 1px solid var(--c-line); }
body .campaign-recent__title { margin: 0 0 8px; font-family: var(--f-serif); font-style: italic; color: var(--c-red-text); font-size: max(14px, calc(16 * var(--u))); }
body .campaign-recent__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-family: var(--f-sans); font-size: max(14px, calc(15 * var(--u))); }
body .campaign-recent__list li { display: flex; justify-content: space-between; gap: 12px; }
body .campaign-recent__list time { color: rgba(28, 56, 48, .7); white-space: nowrap; }

/* Petition call to action (red box above the sign-up form, as on CCF's earlier petitions). */
.petition-cta { margin: 0 0 calc(24 * var(--u)); padding: max(20px, calc(30 * var(--u))); background: var(--c-red-text); color: var(--c-cream); }
.petition-cta__heading { margin: 0 0 12px; font-size: max(22px, calc(30 * var(--u))); font-weight: 400; line-height: 1.15; color: inherit; }
.petition-cta__text { margin: 0; font-family: var(--f-sans); font-size: max(15px, calc(17 * var(--u))); line-height: 1.5; }
.petition-cta__count { margin: 0 0 16px; font-family: var(--f-sans); font-weight: 600; }

/* Markers on the theme's Canada maps (inc/map-places.php). */
.map-plane { position: relative; }
.map-marker { position: absolute; transform: translate(-50%, -50%); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.map-marker--num { display: grid; place-items: center; width: max(26px, calc(36 * var(--u))); height: max(26px, calc(36 * var(--u))); border: 2px solid var(--c-cream); border-radius: 50%; background: var(--c-red); color: var(--c-cream); font-family: var(--f-sans); font-size: max(13px, calc(16 * var(--u))); font-weight: 700; line-height: 1; }
.map-marker--dot { width: var(--d, 12px); height: var(--d, 12px); border: 2px solid rgba(244, 237, 225, .9); border-radius: 50%; background: rgba(255, 41, 31, .85); box-shadow: 0 0 0 4px rgba(255, 41, 31, .18); }
.map-marker--faint { opacity: .45; box-shadow: none; pointer-events: none; }

/* ---------- Courses: a cleaner, more "lecture series" look (Russell, 6 Nov) ---------- */
/* Course page: free courses don't need a Price column; the enrol bar reads as one strip. */
.ld-page .learndash-wrapper .ld-course-status-segment.ld-course-status-seg-price { display: none; }
.ld-page .learndash-wrapper .ld-course-status { padding: max(18px, calc(28 * var(--u))) max(20px, calc(36 * var(--u))); border-left: 4px solid var(--c-red); }
.ld-page .learndash-wrapper .ld-course-status-label { font-size: 12px; letter-spacing: .08em; }
/* Lesson list: numbered lessons, roomier rows, quiz line under each. */
.ld-page--courses .learndash-wrapper .ld-item-list-items { counter-reset: ld-lesson; }
.ld-page--courses .learndash-wrapper .ld-item-list-items > .ld-item-list-item { counter-increment: ld-lesson; margin-bottom: 12px; background: #fff; border: 1px solid var(--c-line); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.ld-page--courses .learndash-wrapper .ld-item-list-items > .ld-item-list-item:hover { border-color: var(--c-red); box-shadow: 0 6px 24px rgba(28, 58, 50, .08); }
.ld-page--courses .learndash-wrapper .ld-item-list-items > .ld-item-list-item .ld-item-list-item-preview { padding: max(16px, calc(24 * var(--u))) max(16px, calc(28 * var(--u))); }
.ld-page--courses .learndash-wrapper .ld-item-list-items > .ld-item-list-item .ld-item-name { align-items: center; }
.ld-page--courses .learndash-wrapper .ld-item-list-items > .ld-item-list-item .ld-item-title::before { content: "Lesson " counter(ld-lesson); display: block; margin-bottom: 4px; font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-red-text); }
.ld-page--courses .learndash-wrapper .ld-item-list-items > .ld-item-list-item .ld-status-icon { flex: none; width: 34px; height: 34px; margin-right: 18px; }
.ld-page .learndash-wrapper .ld-section-heading { margin-top: calc(48 * var(--u)); }

/* Lesson and quiz pages: video first and large, course outline beside it. */
.ld-page--outline .ld-page__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, calc(340 * var(--u))); gap: calc(56 * var(--u)); align-items: start; }
.ld-page--lessons .ld-tab-content iframe[src*="youtube"], .ld-page--lessons .ld-tab-content iframe[src*="vimeo"],
.ld-page--topic .ld-tab-content iframe[src*="youtube"], .ld-page--topic .ld-tab-content iframe[src*="vimeo"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0 0 calc(28 * var(--u)); background: #000; box-shadow: 0 18px 50px rgba(28, 58, 50, .25); }
.ld-page--outline .ld-tab-content h3 { font-size: max(22px, calc(30 * var(--u))); font-weight: 300; line-height: 1.2; }
.ld-page--outline .ld-tab-content h4 { margin-top: 1.5em; padding: 14px 18px; border-left: 4px solid var(--c-red); background: var(--c-sand); font-family: var(--f-sans); font-size: max(14px, calc(16 * var(--u))); font-weight: 600; }
.ld-outline { position: sticky; top: calc(var(--header-h, 100px) + 24px); padding: max(20px, calc(28 * var(--u))); background: var(--c-forest); color: var(--c-cream); }
.ld-outline__eyebrow { margin: 0 0 6px; font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-tan); }
.ld-outline__title { margin: 0 0 18px; font-size: max(20px, calc(24 * var(--u))); font-weight: 300; line-height: 1.2; }
.ld-outline__title a { color: inherit; text-decoration: none; }
.ld-outline__title a:hover { text-decoration: underline; }
.ld-outline__progress { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--f-sans); font-size: 13px; }
.ld-outline__bar { flex: 1; height: 6px; background: rgba(244, 237, 225, .2); }
.ld-outline__bar span { display: block; height: 100%; background: var(--c-red); }
.ld-outline__list { margin: 0; padding: 0; list-style: none; }
.ld-outline__item a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(244, 237, 225, .15); color: var(--c-cream); text-decoration: none; font-size: max(15px, calc(16 * var(--u))); line-height: 1.35; }
.ld-outline__item a:hover .ld-outline__name { text-decoration: underline; }
.ld-outline__num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(244, 237, 225, .5); border-radius: 50%; font-family: var(--f-sans); font-size: 13px; font-weight: 600; }
.ld-outline__item.is-done .ld-outline__num { border-color: var(--c-won); background: var(--c-won); }
.ld-outline__item.is-current a { color: #fff; font-weight: 600; }
.ld-outline__item.is-current .ld-outline__num { border-color: var(--c-red); background: var(--c-red); color: var(--c-forest); }
@media (max-width: 1024px) {
	.ld-page--outline .ld-page__inner { grid-template-columns: minmax(0, 1fr); }
	.ld-outline { position: static; }
}

/* ---------- Forms with visible labels (Submit a case, Figma 6 Nov) ---------- */
.ccf-form .ccf-form--labels .gfield:not(.hidden_label):not(.gfield--type-radio) > .gfield_label { position: static !important; width: auto; height: auto; clip: auto; overflow: visible; display: block; margin: 0 0 8px; font-family: var(--f-sans); font-style: normal; font-weight: 400; font-size: max(14px, calc(16 * var(--u))) !important; color: var(--c-forest); }
/* Yes / No: question on the left, choices on the right. */
.ccf-form .ccf-form--labels .ccf-yesno { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; border: 0; padding: 0; }
.ccf-form .ccf-form--labels .ccf-yesno legend.gfield_label { float: left; margin: 0 !important; font-family: var(--f-sans); font-style: normal; font-size: max(14px, calc(16 * var(--u))) !important; color: var(--c-forest) !important; }
.ccf-form .ccf-form--labels .ccf-yesno .ginput_container_radio { grid-column: 2; margin: 0 !important; }
.ccf-form .ccf-form--labels .ccf-yesno .gfield_radio { display: flex !important; gap: 22px; }
.ccf-form .ccf-form--labels .ccf-yesno .gchoice { display: flex; align-items: center; gap: 8px; margin: 0; }
.ccf-form .ccf-form--labels .ccf-yesno .gchoice input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: var(--c-forest); }
.ccf-form .ccf-form--labels .ccf-yesno .gchoice label { margin: 0; font-family: var(--f-sans); font-size: max(14px, calc(16 * var(--u))); }
.ccf-form .ccf-form--labels .ccf-detail { margin-top: 10px !important; }
.form-section__note strong { font-weight: 700; }
@media (max-width: 600px) {
	.ccf-form .ccf-form--labels .ccf-yesno { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
	.ccf-form .ccf-form--labels .ccf-yesno .ginput_container_radio { grid-column: 1; }
}
.ccf-form .ccf-form--labels .gfield_label .gfield_required { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body .ccf-form .gform_wrapper .ccf-form--labels textarea, body .ccf-form .gform_wrapper .ccf-form--labels textarea.large { min-height: 0 !important; height: max(110px, calc(135 * var(--u))) !important; }
.ccf-form .ccf-form--labels .ccf-yesno { padding-bottom: 6px !important; }

/* Simple pages (donation): logo only, short footer. */
.site-header--simple .site-header__bar { justify-content: flex-start; }
.site-footer--simple .site-footer__legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* Learner account screens (/account/login/, /account/register/). */
.account-page__inner { max-width: 560px; padding-top: calc(72 * var(--u)); padding-bottom: calc(110 * var(--u)); }
.account-form { background: #fff; border-top: 6px solid var(--c-red); padding: clamp(24px, 4vw, 44px); }
.account-form p { margin: 0 0 18px; }
.account-form__field label { display: block; margin-bottom: 6px; font-family: var(--f-sans); font-weight: 600; font-size: 15px; }
.account-form__field input { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--c-forest); border-radius: 0; background: #fff; color: var(--c-forest); font: inherit; font-family: var(--f-sans); font-size: 16px; }
.account-form__field input:focus-visible { outline: 3px solid var(--c-red); outline-offset: 2px; }
.account-form__check label { font-family: var(--f-sans); font-size: 15px; }
.account-form__actions .btn { width: 100%; min-height: 56px; }
.account-form__links, .account-form__help { font-family: var(--f-sans); font-size: 15px; }
.account-form__links a { color: var(--c-forest); text-decoration: underline; }
.account-form__help { color: #4a4a4a; margin-bottom: 0; }
.account-form__notice { padding: 14px 16px; font-family: var(--f-sans); font-size: 15px; font-weight: 500; }
.account-form__notice--error { background: #FDECEA; border-left: 4px solid #B8150D; color: #7A0E08; }
.account-form__notice--success { background: #E7F0EA; border-left: 4px solid var(--c-forest); color: var(--c-forest); }
.account-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
