/* IFES Foundation theme — modern layer: alternating programme rows (D-36), split heroes,
   section polish and moderate motion (D-38). Loaded after main.css. */

/* Page hero: soft gradient, decorative ring, optional split image */
.page-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(226, 194, 122, .28), transparent 60%),
		linear-gradient(180deg, var(--ifes-green-50), #f6faf7);
}
.page-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	bottom: -160px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	border: 40px solid rgba(19, 112, 63, .06);
	pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero--split .page-hero__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) {
	.page-hero--split .page-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; }
}
.page-hero__media { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 48px rgba(11, 74, 43, .18); aspect-ratio: 4 / 3; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section polish */
.section--warm { background: linear-gradient(180deg, var(--paper-warm), #fff); }
.section--green {
	background:
		radial-gradient(900px 300px at 10% 0%, rgba(226, 194, 122, .18), transparent 60%),
		var(--ifes-green-900);
}
.entry-content .wp-block-list { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.entry-content .wp-block-list li { position: relative; padding-left: 30px; margin: 0; }
.entry-content .wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .45em;
	width: 14px;
	height: 14px;
	border-radius: 4px;
	background: var(--ifes-green-700);
	box-shadow: 0 0 0 4px var(--ifes-green-50);
}
.section--green .wp-block-list li::before { background: var(--ifes-gold-300); box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); }
.wp-block-button__link {
	border-radius: 999px;
	padding: 12px 26px;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(11, 74, 43, .18); }

/* Home hero accent line */
.ifes-hero::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--ifes-gold-600), var(--ifes-gold-300), var(--ifes-green-700));
	z-index: 2;
}

/* Alternating programme rows: image and text side by side, sides swap on each row */
.programme-rows { display: grid; gap: clamp(28px, 5vw, 56px); margin-top: 32px; }
.wp-block-media-text.programme-row {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow-1);
	grid-template-columns: 50% 1fr;
	transition: box-shadow .3s ease, transform .3s ease;
}
.wp-block-media-text.programme-row.has-media-on-the-right { grid-template-columns: 1fr 50%; }
.wp-block-media-text.programme-row:hover { box-shadow: 0 24px 48px rgba(11, 74, 43, .14); transform: translateY(-4px); }
.programme-row .wp-block-media-text__media { margin: 0; align-self: stretch; overflow: hidden; min-height: 300px; }
.programme-row .wp-block-media-text__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.programme-row:hover .wp-block-media-text__media img { transform: scale(1.04); }
.programme-row .wp-block-media-text__content { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.programme-row .programme-row__number { font-family: var(--font-head); font-size: 2.5rem; line-height: 1; color: var(--ifes-gold-600); margin: 0; font-weight: 600; }
.programme-row .wp-block-heading { margin: 0; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); }
.programme-row .wp-block-heading a {
	color: inherit;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	transition: background-size .3s ease;
}
.programme-row .wp-block-heading a:hover,
.programme-row .wp-block-heading a:focus-visible { background-size: 100% 2px; }
.programme-row p { margin: 0; color: var(--ink-600); }
.programme-row .programme-row__more a { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: var(--ifes-green-700); }
.programme-row .programme-row__more a::after { content: "\2192"; transition: transform .2s ease; }
.programme-row .programme-row__more a:hover::after { transform: translateX(4px); }
@media (max-width: 781px) {
	.wp-block-media-text.programme-row,
	.wp-block-media-text.programme-row.has-media-on-the-right { grid-template-columns: 100%; }
	.programme-row .wp-block-media-text__media { grid-row: 1; min-height: 0; aspect-ratio: 16 / 10; }
	.programme-row .wp-block-media-text__content { grid-row: 2; }
}

/* Media polish */
.wp-block-video video { border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .18); width: 100%; }
.entry-content .wp-block-image img { border-radius: 16px; }

/* Motion: entrance for heroes; scroll reveal is armed by motion.js (.motion-ready) */
@keyframes ifes-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}
.ifes-hero .wp-block-cover__inner-container > .wp-block-group > * { animation: ifes-rise .7s ease both; }
.ifes-hero .wp-block-cover__inner-container > .wp-block-group > *:nth-child(2) { animation-delay: .08s; }
.ifes-hero .wp-block-cover__inner-container > .wp-block-group > *:nth-child(3) { animation-delay: .16s; }
.ifes-hero .wp-block-cover__inner-container > .wp-block-group > *:nth-child(4) { animation-delay: .24s; }
.page-hero__text > *, .page-hero__media { animation: ifes-rise .6s ease both; }
.page-hero__media { animation-delay: .12s; }
.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.ifes-hero .wp-block-cover__inner-container > .wp-block-group > *,
	.page-hero__text > *,
	.page-hero__media { animation: none !important; }
	.motion-ready .reveal { opacity: 1 !important; transform: none !important; }
	.wp-block-media-text.programme-row:hover,
	.wp-block-button__link:hover,
	.programme-row:hover .wp-block-media-text__media img { transform: none; }
}

/* ---------------------------------------------------------------------------
   UX review, Priority 1 (UX-REVIEW-2026-11.md)
   --------------------------------------------------------------------------- */

/* 1. Primary action: "Get Involved" as a button (menu item class menu-button on
   wide screens; .header-cta beside the Menu button on phones and tablets). */
.header-cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-left: auto;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--ifes-green-900);
	color: #fff;
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
	white-space: nowrap;
}
.header-cta:hover, .header-cta:focus-visible { background: var(--ifes-green-700); color: #fff; }
@media (max-width: 359px) { .header-cta { display: none; } }
@media (min-width: 1024px) {
	.header-cta { display: none; }
	.primary-nav .menu-button { margin-left: 10px; }
	.primary-nav .menu-button > a,
	.primary-nav .menu-button > .menu-item__row > a {
		background: var(--ifes-green-900);
		color: #fff;
		border-radius: 999px;
		padding: 10px 22px;
		transition: background-color .2s ease, transform .2s ease;
	}
	.primary-nav .menu-button > a:hover,
	.primary-nav .menu-button.current-menu-item > a { background: var(--ifes-green-700); color: #fff; transform: translateY(-1px); }
}

/* 2. Home hero overlay: see facelift.css §9 (shared with the page heroes). */

/* 3. Small portraits in a split hero are shown at their own size. */
.page-hero--portrait .page-hero__media { aspect-ratio: auto; justify-self: start; }
@media (min-width: 1000px) {
	.page-hero--portrait .page-hero__inner { grid-template-columns: minmax(0, 1fr) auto; }
	.page-hero--portrait .page-hero__media { justify-self: end; }
}
.page-hero--portrait .page-hero__media img { width: auto; max-width: 100%; height: auto; }

/* Card images stay in their 16:9 frame whatever the photo's shape. */
.card__media { overflow: hidden; }
.course-cta { display: grid; gap: 16px; justify-items: start; }

/* 4. Training overview: heading, "at a glance" panel, and the course list
   (catalogue rows: photo, number, name, summary, tags, button). */
.courses-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.courses-head h2 { margin: 0; }
.courses-head p { margin: 0; color: var(--ink-600); }

.course-glance { margin: 0 0 28px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); }
.course-glance__title { margin: 0 0 14px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ifes-gold-700); }
.course-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; }
.course-facts > div { padding: 10px 18px 10px 0; }
@media (min-width: 900px) {
	.course-facts > div { padding: 4px 18px; border-left: 1px solid var(--line); }
	.course-facts > div:first-child { padding-left: 0; border-left: 0; }
}
.course-facts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-600); }
.course-facts dd { margin: 4px 0 0; font-weight: 600; line-height: 1.4; color: var(--ifes-green-900); }

.course-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.course-row {
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-1);
	transition: box-shadow .25s ease, border-color .25s ease;
}
.course-row:hover { border-color: #c5d6cb; box-shadow: 0 14px 32px rgba(11, 74, 43, .1); }
.course-row__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ifes-green-50); }
.course-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.course-row:hover .course-row__media img { transform: scale(1.04); }
.course-row__body { padding: 20px 22px 4px; }
.course-row__index { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ifes-gold-700); }
.course-row__title { margin: 0 0 6px; font-size: 1.3rem; }
.course-row__title a { color: inherit; text-decoration: none; }
.course-row__title a:hover { color: var(--ifes-green-700); text-decoration: underline; }
.course-row__summary { margin: 0 0 12px; color: var(--ink-600); }
.course-row__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.course-row__tags li { padding: 4px 10px; border-radius: 999px; background: var(--ifes-green-50); color: var(--ifes-green-900); font-size: .82rem; font-weight: 600; }
.course-row__action { padding: 16px 22px 22px; }
@media (min-width: 900px) {
	.course-row { grid-template-columns: 260px minmax(0, 1fr) auto; align-items: center; }
	.course-row__media { aspect-ratio: auto; height: 100%; min-height: 170px; }
	.course-row__body { padding: 22px 8px 22px 28px; }
	.course-row__action { padding: 22px 28px; }
}
.course-row__action .btn { white-space: nowrap; }

/* Board of Trustees ([ifes_trustees], dashboard: Trustees). */
.entry-content .trustee-grid,
.trustee-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
	align-items: start; /* An expanded biography does not stretch its neighbours. */
	max-width: var(--container) !important;
	margin: 32px auto;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) { .entry-content .trustee-grid, .trustee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .entry-content .trustee-grid, .trustee-grid { grid-template-columns: repeat(3, 1fr); } }
.trustee-grid .trustee-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: var(--shadow-1);
	transition: box-shadow .3s ease, transform .3s ease;
}
.entry-content .trustee-grid .trustee-card::before { content: none; }
.trustee-card:hover { box-shadow: 0 20px 40px rgba(11, 74, 43, .12); transform: translateY(-3px); }
.trustee-card__photo {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: linear-gradient(160deg, var(--ifes-green-50), #dfeee4);
}
.trustee-card__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, var(--ifes-gold-600), var(--ifes-gold-300), var(--ifes-green-700)); }
.trustee-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; transition: transform .6s ease; }
.trustee-card:hover .trustee-card__photo img { transform: scale(1.03); }
.trustee-card__initials { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-head); font-size: 3.5rem; font-weight: 600; color: var(--ifes-green-700); }
.trustee-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.trustee-card__name { margin: 0; font-size: 1.3rem; }
.trustee-card__role { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ifes-gold-700); }
.trustee-card__bio { position: relative; color: var(--ink-600); }
.trustee-card__bio p { margin: 0 0 .75em; }
.trustee-card__bio p:last-child { margin-bottom: 0; }
.trustee-card__bio.is-collapsed { max-height: 7.2em; overflow: hidden; }
.trustee-card__bio.is-collapsed::after { content: ""; position: absolute; inset: auto 0 0; height: 2.6em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.trustee-card__toggle {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-top: 4px;
	padding: 0 16px;
	border: 1.5px solid var(--ifes-green-700);
	border-radius: 999px;
	background: transparent;
	color: var(--ifes-green-900);
	font: inherit;
	font-weight: 700;
	font-size: .95rem;
	cursor: pointer;
}
.trustee-card__toggle::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.trustee-card__toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.trustee-card__toggle:hover { background: var(--ifes-green-50); }
.trustee-card__toggle[hidden] { display: none; }
.course-cta h2, .course-cta p { margin: 0; }

/* 5. Get Involved: ways to help as cards. */
.ways-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ways-grid { grid-template-columns: repeat(2, 1fr); } }
.way-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(24px, 3vw, 36px);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: var(--shadow-1);
	transition: box-shadow .3s ease, transform .3s ease;
}
.way-card:hover { box-shadow: 0 20px 40px rgba(11, 74, 43, .12); transform: translateY(-3px); }
.way-card::before {
	content: "";
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--ifes-green-50) center / 28px no-repeat;
}
.way-card--partner::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313703f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 17l2 2a1 1 0 0 0 3-3'/%3E%3Cpath d='M14 14l2.5 2.5a1 1 0 0 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4'/%3E%3Cpath d='M21 3l1 11h-2'/%3E%3Cpath d='M3 3L2 14l6.5 6.5a1 1 0 1 0 3-3'/%3E%3Cpath d='M3 4h8'/%3E%3C/svg%3E"); }
.way-card--skills::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313703f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }
.way-card--support::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313703f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7z'/%3E%3C/svg%3E"); }
.way-card--organisations::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313703f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4'/%3E%3Cpath d='M8 6h.01M16 6h.01M12 6h.01M12 10h.01M12 14h.01M16 10h.01M16 14h.01M8 10h.01M8 14h.01'/%3E%3C/svg%3E"); }
.way-card h2 { margin: 0; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.way-card p { margin: 0; color: var(--ink-600); }
.way-card .way-card__link { margin-top: auto; padding-top: 8px; }
.way-card .way-card__link a { font-weight: 700; text-decoration: none; color: var(--ifes-green-700); }
.way-card .way-card__link a::after { content: " \2192"; }
.way-card .way-card__link a:hover { text-decoration: underline; }

/* 6. Contact: form and details side by side. */
.contact-layout { gap: clamp(24px, 4vw, 56px) !important; align-items: flex-start; }
.contact-aside > .wp-block-group {
	padding: 28px;
	background: var(--paper-warm);
	border: 1px solid var(--line);
	border-radius: 20px;
}
.contact-aside > * + * { margin-top: 24px; }
.contact-aside h2 { font-size: 1.35rem; }
@media (min-width: 782px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); } }

/* 7. Founder: milestones timeline. */
.entry-content .wp-block-list.timeline { gap: 0; }
.entry-content .wp-block-list.timeline li { padding: 0 0 22px 28px; border-left: 2px solid var(--ifes-green-50); margin-left: 7px; }
.entry-content .wp-block-list.timeline li::before { left: -9px; top: .3em; border-radius: 50%; }
.entry-content .wp-block-list.timeline li:last-child { padding-bottom: 0; }
.timeline strong { display: block; font-family: var(--font-head); color: var(--ifes-green-900); font-size: 1.1rem; }

/* 9. Gallery album pages: back link between previous and next. */
.pagination .nav-links { justify-content: space-between; align-items: center; }
.pagination .nav-links__back { font-weight: 700; }

/* 10. Home: training heritage photo strip. */
.photo-strip { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 28px 0; }
@media (min-width: 782px) { .photo-strip { grid-template-columns: repeat(4, 1fr); } }
.photo-strip .wp-block-image { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; }
.photo-strip .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .5s ease; }
.photo-strip .wp-block-image a:hover img { transform: scale(1.05); }

/* Impact figures ([ifes_impact_stats], Settings → IFES Foundation). Wider than the text column. */
.entry-content .impact-stats,
.impact-stats {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, 1fr);
	max-width: var(--container) !important;
	margin: 28px auto;
	padding: 0;
	list-style: none;
}
@media (min-width: 700px) { .entry-content .impact-stats, .impact-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .entry-content .impact-stats, .impact-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.impact-stats .impact-stat {
	margin: 0;
	padding: 24px 16px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow-1);
}
.entry-content .impact-stats .impact-stat::before { content: none; }
.impact-stat__value { display: block; font-family: var(--font-head); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1.1; font-weight: 700; color: var(--ifes-green-900); }
.impact-stat__label { display: block; margin-top: 6px; color: var(--ink-600); font-weight: 600; }

/* Trainee stories ([ifes_stories], dashboard: Stories). */
.entry-content .story-grid,
.story-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
	max-width: var(--container) !important;
	margin: 28px auto;
	padding: 0;
	list-style: none;
}
@media (min-width: 760px) { .entry-content .story-grid, .story-grid { grid-template-columns: repeat(2, 1fr); } }
.story-grid .story-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: clamp(24px, 3vw, 32px);
	background: #fff;
	border: 1px solid var(--line);
	border-top: 4px solid var(--ifes-gold-600);
	border-radius: 18px;
	box-shadow: var(--shadow-1);
}
.entry-content .story-grid .story-card::before { content: none; }
.story-card__photo { margin: 0; }
.story-card__photo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.story-card__title { margin: 0; font-size: 1.3rem; }
.story-card__text p { margin: 0; color: var(--ink-600); }
.story-card__who { display: flex; align-items: center; gap: 12px; margin: auto 0 0; padding-top: 8px; }
.story-card__who > span:last-child { display: grid; }
.story-card__who a { font-size: .95rem; }
.story-card__initials {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--ifes-green-50);
	color: var(--ifes-green-900);
	font-family: var(--font-head);
	font-weight: 700;
}

/* News page: empty state and link to the 2018 industry archive (D-45). */
.news-empty { max-width: 640px; padding: 32px; background: var(--paper-warm); border: 1px solid var(--line); border-radius: 18px; }
.news-empty h2 { font-size: 1.5rem; }
.news-empty p { margin: 0; color: var(--ink-600); }
.news-archive-link { margin-top: 32px; max-width: 640px; }

/* Footer bottom row: copyright on the left; policy links as one line of fine print on the
   right, separated by dots; social icons (when entered) between them. */
.footer-bottom { padding-block: 20px; }
.footer-bottom__inner { align-items: center; gap: 12px 28px; }
.footer-bottom__inner > p { margin: 0; color: rgba(255, 255, 255, .78); }
.site-footer .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.footer-links li { display: flex; align-items: center; }
.footer-links li + li::before { content: "\00b7"; margin: 0 12px; color: var(--ifes-gold-300); font-weight: 700; }
.site-footer .footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; padding-block: 6px; }
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible,
.site-footer .footer-links .current-menu-item > a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-links a:focus-visible { outline-color: var(--ifes-gold-300); }
@media (max-width: 767px) {
	.footer-bottom__inner { flex-direction: column; align-items: flex-start; }
	/* Lines may wrap on phones, so spacing replaces the dots (no dot at a line start). */
	.site-footer .footer-links { column-gap: 22px; }
	.footer-links li + li::before { content: none; }
}

/* Footer social profiles (Settings → IFES Foundation). */
.site-footer .social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); transition: background-color .2s ease; }
.social-links a:hover, .social-links a:focus-visible { background: var(--ifes-gold-600); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.trustee-card:hover,
	.trustee-card:hover .trustee-card__photo img,
	.course-row:hover .course-row__media img,
	.way-card:hover,
	.photo-strip .wp-block-image a:hover img,
	.primary-nav .menu-button > a:hover { transform: none; }
}

/* Enquiry form (Contact Form 7, form 630) */
.ifes-form { display: grid; gap: 4px; max-width: 680px; }
.ifes-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.ifes-form .req, .ifes-form .opt { font-weight: 400; color: var(--ink-600); font-size: .9em; }
.ifes-form .ifes-consent { margin: 8px 0 12px; }
.ifes-form .ifes-consent .wpcf7-list-item { margin: 0; }
.ifes-form .ifes-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.ifes-form .ifes-consent input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--ifes-green-700); }
.ifes-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-s); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--ifes-green-700); background: var(--ifes-green-50); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: #b3261e; background: #fdecea; }
