/*
Theme Name: The Long Walk of Freedom
Theme URI: https://example.org/
Author: The Long Walk of Freedom
Description: A theme for The Long Walk of Freedom, a refugee-led charity providing dignified education for Sudanese children in refugee camps. Homepage sections, donation areas and charity details are all editable in Appearance → Customize → Charity homepage.
Version: 1.5.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: long-walk-of-freedom
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready, rtl-language-support
*/

/*
  VOICE   hopeful and honest: the hard truth told plainly, held inside dawn colours
  IDEA    a long walk at first light, ending at a rising sun
  PICTURE a hand-drawn sun rising over a dotted footpath in the banner
  COLOUR  dawn sky, apricot and sage for hope; deep indigo where we tell the truth; marigold to act
  TYPE    Young Serif headings, Nunito Sans text, Kalam for handwritten field notes
*/

/* ---------- Tokens ---------- */
:root {
	--indigo: #25306b;
	--indigo-deep: #1c2552;
	--ink: #20253d;
	--ink-soft: #4d5470;
	--leaf: #2e6a57;
	--marigold: #f2a93b;
	--marigold-soft: #f8c978;
	--paper: #fffcf7;
	--white: #ffffff;
	--sky: #e3eef5;
	--sky-deep: #c9ddea;
	--apricot: #fbe4d0;
	--sage: #e1ede2;
	--rule: #dcdcd4;

	--font-display: "Young Serif", Georgia, "Times New Roman", serif;
	--font-body: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--font-hand: "Kalam", "Segoe Print", "Comic Neue", cursive;

	--wrap: 76rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(4rem, 9vw, 7rem);
	--radius: 18px;
	--radius-small: 10px;
	--wave: 28px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--paper);
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.005em;
	margin: 0 0 0.6em;
	color: var(--indigo);
	text-wrap: balance;
}
p { margin: 0 0 1em; }

a { color: var(--leaf); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section-pad { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	padding: 0.75rem 1rem; background: var(--marigold); color: var(--ink); font-weight: 700; border-radius: var(--radius-small);
}
.skip-link:focus { top: 1rem; }

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

/* Soft wavy top edge for sections, drawn in the section's own colour */
.stat, .name, .journey, .donate, .stories, .talks, .site-footer, .newsletter, .donate-page { position: relative; }
.stat::before, .name::before, .journey::before, .donate::before, .stories::before, .talks::before, .site-footer::before, .newsletter::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--wave) * -1 + 1px);
	height: var(--wave);
	background: inherit;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C160 8 320 6 520 18S880 38 1080 22 1340 6 1440 14V40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C160 8 320 6 520 18S880 38 1080 22 1340 6 1440 14V40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	pointer-events: none;
}
.journey::before, .talks::before, .stories::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V16C220 4 420 10 640 22S1060 36 1260 18 1400 10 1440 12V40Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V16C220 4 420 10 640 22S1060 36 1260 18 1400 10 1440 12V40Z'/%3E%3C/svg%3E");
}

/* Wavy bottom edge where a coloured page header meets the page */
.page-head::after, .donate-page::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: var(--wave);
	background: var(--paper);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C160 8 320 6 520 18S880 38 1080 22 1340 6 1440 14V40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C160 8 320 6 520 18S880 38 1080 22 1340 6 1440 14V40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	pointer-events: none;
}

/* ---------- Buttons ---------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.65rem 1.35rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button-large { padding: 0.85rem 1.7rem; font-size: 1.0625rem; }

.button-donate { background: var(--marigold); color: var(--ink); }
.button-donate:hover { background: var(--marigold-soft); color: var(--ink); }

.button-ghost { border-color: var(--indigo); color: var(--indigo); background: rgba(255, 255, 255, 0.4); }
.button-ghost:hover { background: var(--white); color: var(--indigo); }

.button-dark { background: var(--indigo); color: var(--white); }
.button-dark:hover { background: var(--indigo-deep); color: var(--white); }

.text-link { font-weight: 800; color: var(--indigo); }

/* ---------- Header ---------- */
.site-header { background: var(--sky); color: var(--indigo); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.25rem; }

.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--indigo); text-decoration: none; }
.wordmark-mark { width: 5.2rem; height: 2.85rem; flex: none; overflow: visible; }

/* The logo's sun shines on hover or keyboard focus */
.logo-glow { opacity: 0; transform-box: view-box; transform-origin: 68px 31px; transform: scale(0.6); transition: opacity 0.35s ease, transform 0.5s ease; }
.logo-rays { transform-box: view-box; transform-origin: 68px 34px; transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.logo-sun { transition: fill 0.3s ease; }
.wordmark:hover .logo-glow, .wordmark:focus-visible .logo-glow { opacity: 1; transform: scale(1); }
.wordmark:hover .logo-rays, .wordmark:focus-visible .logo-rays { transform: scale(1.2); animation: tlwf-shine 1.6s ease-in-out 0.4s infinite; }
.wordmark:hover .logo-sun, .wordmark:focus-visible .logo-sun { fill: #f7b955; }
@keyframes tlwf-shine {
	0%, 100% { transform: scale(1.2) rotate(0deg); }
	50% { transform: scale(1.32) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
	.logo-glow, .logo-rays, .logo-sun { transition: none; }
	.wordmark:hover .logo-rays, .wordmark:focus-visible .logo-rays { animation: none; transform: none; }
}
.wordmark-text { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.05; max-width: 11ch; }
.custom-logo { max-height: 3.75rem; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-nav li { position: relative; }
.site-nav a:not(.button) {
	color: var(--indigo);
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem;
	padding-block: 0.35rem;
	background-image: linear-gradient(var(--marigold), var(--marigold));
	background-size: 0 3px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.2s ease;
}
.site-nav a:not(.button):hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { background-size: 100% 3px; }

.site-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: -1rem; min-width: 14rem;
	flex-direction: column; gap: 0; padding: 0.5rem 0; background: var(--white);
	border-radius: var(--radius-small); box-shadow: 0 10px 30px rgba(37, 48, 107, 0.12);
}
.site-nav .sub-menu a { display: block; padding: 0.5rem 1rem; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }

.nav-toggle {
	display: none; align-items: center; gap: 0.6rem; min-height: 44px;
	background: var(--white); border: 0; border-radius: 999px; color: var(--indigo);
	font-family: var(--font-body); font-weight: 800; font-size: 1rem; padding: 0.5rem 1rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
	display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; border-radius: 2px;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 1000px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 1.25rem;
		padding: 0.5rem var(--gutter) 2rem; background: var(--sky);
		box-shadow: 0 16px 24px rgba(37, 48, 107, 0.1);
	}
	.nav-open .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav a:not(.button) {
		display: block; padding: 0.85rem 0; font-size: 1.2rem;
		border-bottom: 1px solid var(--sky-deep); background-image: none;
	}
	.site-nav .sub-menu { display: flex; position: static; background: none; box-shadow: none; padding: 0 0 0 1rem; }
	.site-nav .button-donate { align-self: flex-start; }
}

/* ---------- Hero: sunrise ---------- */
.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--sky) 0%, #eef2f1 45%, var(--apricot) 100%);
	color: var(--indigo);
	padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(10rem, 18vw, 15rem);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-sun { fill: var(--marigold); }
.hero-rays { fill: none; stroke: var(--marigold); stroke-width: 9; stroke-linecap: round; }
.hero-ground { fill: var(--sage); }
.hero-path-dots {
	fill: none; stroke: var(--indigo); stroke-width: 9; stroke-linecap: round;
	stroke-dasharray: 0 26; vector-effect: non-scaling-stroke; opacity: 0.85;
}
.hero-path-draw {
	fill: none; stroke: #fff; stroke-width: 80; stroke-dasharray: 1 1; stroke-dashoffset: 1;
	animation: tlwf-walk 2.6s cubic-bezier(0.45, 0.05, 0.3, 1) 0.2s forwards;
}
.hero-sun-group { transform-box: view-box; animation: tlwf-rise 3.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes tlwf-walk { to { stroke-dashoffset: 0; } }
@keyframes tlwf-rise { from { transform: translateY(70px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-path-draw { animation: none; stroke-dashoffset: 0; }
	.hero-sun-group { animation: none; }
	.button, .site-nav a { transition: none; }
}

.hero-inner { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero.has-image .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }

.hero-heading {
	font-size: clamp(2.5rem, 5.6vw, 4.75rem);
	line-height: 1.04;
	letter-spacing: -0.015em;
	max-width: 16ch;
	margin-bottom: 0.5em;
}
.hero-text { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.65; max-width: 38rem; color: var(--ink); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-figure { margin: 0; transform: rotate(1.5deg); }
.hero-figure img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
	border-radius: var(--radius); border: 10px solid var(--white);
	box-shadow: 0 18px 40px rgba(37, 48, 107, 0.18);
}

@media (max-width: 800px) {
	.hero.has-image .hero-inner { grid-template-columns: 1fr; }
	.hero-figure img { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
	.hero { padding-bottom: 9rem; }
	.hero-art { top: auto; bottom: 0; height: auto; aspect-ratio: 1440 / 720; }
}

/* Optional banner background photo: soft dawn tint keeps the words readable */
.hero.has-bg {
	background-image:
		linear-gradient(90deg, rgba(255, 252, 247, 0.94) 0%, rgba(255, 252, 247, 0.8) 42%, rgba(255, 252, 247, 0.15) 75%, rgba(255, 252, 247, 0) 100%),
		var(--hero-bg);
	background-size: cover;
	background-position: center;
	padding-bottom: clamp(5rem, 10vw, 8rem);
}
.hero.has-bg .hero-art { display: none; }
@media (max-width: 800px) {
	.hero.has-bg {
		background-image:
			linear-gradient(180deg, rgba(255, 252, 247, 0.92) 0%, rgba(255, 252, 247, 0.85) 60%, rgba(255, 252, 247, 0.55) 100%),
			var(--hero-bg);
	}
}

/* ---------- The truth: what we found ---------- */
.stat { background: var(--indigo); color: var(--white); padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.stat-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.stat-number {
	font-family: var(--font-display);
	font-size: clamp(3.5rem, 9vw, 7.5rem);
	line-height: 0.95;
	color: var(--white);
	margin: 0;
	white-space: nowrap;
}
.stat-text { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; max-width: 34rem; margin-bottom: 0.75rem; color: var(--white); }
.stat-source { font-family: var(--font-hand); font-size: 1.15rem; color: var(--marigold-soft); margin: 0; }
.stat.has-bg {
	background-image: linear-gradient(rgba(37, 48, 107, 0.86), rgba(37, 48, 107, 0.86)), var(--stat-bg);
	background-size: cover;
	background-position: center;
}
.stat.has-bg::before { background: var(--indigo); }
@media (max-width: 720px) {
	.stat-inner { grid-template-columns: 1fr; }
	.stat-number { white-space: normal; }
}

/* ---------- Section headings ---------- */
.section-heading { font-size: clamp(2rem, 3.8vw, 3rem); max-width: 20ch; }
.section-intro { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.3rem); line-height: 1.65; max-width: 40rem; color: var(--ink-soft); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.section-head-row .section-heading { margin: 0; }

/* ---------- Our name + founder statement ---------- */
.name { padding-block: var(--section); background: var(--paper); }
.name-inner.has-statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.name .lede { color: var(--ink); }
.founder {
	margin: 0; padding: clamp(1.75rem, 3vw, 2.5rem);
	background: var(--apricot); border-radius: var(--radius); transform: rotate(-0.6deg);
}
.founder-quote { margin: 0 0 1rem; font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.45; color: var(--indigo); }
.founder-quote p:last-child { margin-bottom: 0; }
.founder-name { font-family: var(--font-hand); font-size: 1.2rem; color: var(--leaf); }
@media (max-width: 860px) { .name-inner.has-statement { grid-template-columns: 1fr; } }

/* ---------- Missions timeline ---------- */
.journey { background: var(--sage); padding-block: var(--section); }

.journey-steps {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3.5rem); position: relative;
}
.journey-steps::before {
	content: "";
	position: absolute;
	top: 0.85rem; left: 0.85rem; right: 0;
	height: 6px; transform: translateY(-50%);
	background-image: radial-gradient(circle, var(--leaf) 2.5px, transparent 3px);
	background-size: 20px 6px; background-repeat: repeat-x;
	-webkit-mask-image: linear-gradient(to right, #000 80%, transparent);
	mask-image: linear-gradient(to right, #000 80%, transparent);
}
.journey-step { position: relative; }
.journey-marker {
	position: relative; display: block;
	width: 1.7rem; height: 1.7rem; margin-bottom: 1.4rem;
	border-radius: 50% 46% 52% 48%;
	background: var(--marigold);
	box-shadow: 0 0 0 6px var(--sage), 0 0 0 8px var(--leaf);
}
.journey-step:last-child .journey-marker { background: var(--white); }
.journey-date { font-family: var(--font-hand); font-size: 1.25rem; line-height: 1.3; color: var(--leaf); margin-bottom: 0.3rem; }
.journey-title { font-size: 1.6rem; margin-bottom: 0.5rem; }
.journey-step p:last-child { color: var(--ink-soft); max-width: 32ch; }

@media (max-width: 800px) {
	.journey-steps { grid-template-columns: 1fr; gap: 2.5rem; }
	.journey-steps::before {
		top: 0.85rem; bottom: 0; left: 0.85rem; right: auto; width: 6px; height: auto;
		transform: translateX(-50%); background-size: 6px 20px; background-repeat: repeat-y;
		-webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent);
		mask-image: linear-gradient(to bottom, #000 85%, transparent);
	}
	.journey-step { padding-left: 3.4rem; }
	.journey-marker { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Donate band ---------- */
.donate { background: var(--apricot); padding-block: var(--section); }
.donate-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.donate-copy p { font-size: 1.2rem; max-width: 30rem; }
.donate-copy .button { margin-top: 0.75rem; }
.needs-intro { font-family: var(--font-hand); font-size: 1.3rem; color: var(--leaf); margin-bottom: 0.9rem; }
.needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.needs li {
	position: relative; padding: 1.05rem 1.35rem 1.05rem 3.25rem;
	background: var(--white); color: var(--ink); border-radius: var(--radius-small);
	font-size: 1.1rem; line-height: 1.45; font-weight: 600;
}
.needs li::before {
	content: ""; position: absolute; left: 1.3rem; top: 1.45rem;
	width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--marigold);
}
.donate-embed { background: var(--white); border-radius: var(--radius); padding: 1rem; }
@media (max-width: 860px) { .donate-inner { grid-template-columns: 1fr; } }

/* ---------- Mission updates (cards) ---------- */
.stories { padding-block: var(--section); background: var(--paper); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.card { display: flex; flex-direction: column; }
.card-image { aspect-ratio: 10 / 7; overflow: hidden; border-radius: var(--radius); margin-bottom: 1.1rem; background: var(--sky); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image-empty {
	background:
		radial-gradient(circle at 78% 82%, var(--marigold) 0 18%, transparent 18.5%),
		linear-gradient(180deg, var(--sky) 0%, var(--apricot) 100%);
}
.card:nth-child(3n+2) .card-image-empty {
	background:
		radial-gradient(circle at 22% 78%, var(--marigold) 0 15%, transparent 15.5%),
		linear-gradient(180deg, var(--sage) 0%, var(--sky) 100%);
}
.card:nth-child(3n+3) .card-image-empty {
	background:
		radial-gradient(circle at 60% 90%, var(--marigold) 0 22%, transparent 22.5%),
		linear-gradient(180deg, var(--apricot) 0%, var(--sage) 100%);
}
.card-meta { font-size: 0.95rem; font-weight: 700; color: var(--leaf); margin-bottom: 0.35rem; }
.card-title { font-size: 1.45rem; line-height: 1.2; margin-bottom: 0.5rem; }
.card-title a { color: var(--indigo); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; }
.card-excerpt { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.empty-state { color: var(--ink-soft); font-style: italic; }

/* ---------- Talks ---------- */
.talks { background: var(--sky); padding-block: var(--section); }
.talks-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.talks-copy p { font-size: 1.15rem; max-width: 34rem; color: var(--ink); margin-bottom: 1.75rem; }
.talks-questions-intro { font-family: var(--font-hand); font-size: 1.3rem; color: var(--leaf); margin-bottom: 0.75rem; }
.talks-questions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.talks-questions li {
	font-family: var(--font-display); font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.3; color: var(--indigo);
	padding: 1rem 1.25rem; background: var(--white); border-radius: var(--radius-small);
}
.talks-questions li:nth-child(even) { transform: rotate(0.5deg); }
.talks-questions li:nth-child(odd) { transform: rotate(-0.4deg); }
@media (max-width: 860px) { .talks-inner { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--sage); padding-block: clamp(3rem, 7vw, 5rem); }
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.newsletter .section-heading { font-size: clamp(1.75rem, 3vw, 2.4rem); max-width: 24ch; }
.newsletter p { max-width: 36rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 720px) { .newsletter-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-deep); color: rgba(255, 255, 255, 0.85); font-size: 1rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 0.75rem; }
.footer-tagline { max-width: 26rem; }
.footer-about address { font-style: normal; margin-bottom: 1rem; }
.footer-heading { font-family: var(--font-hand); font-weight: 400; font-size: 1.25rem; color: var(--marigold-soft); margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
	padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.9rem; color: rgba(255, 255, 255, 0.7);
}
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head {
	position: relative;
	background: linear-gradient(180deg, var(--sky) 0%, var(--apricot) 100%);
	color: var(--indigo);
	padding-block: clamp(3rem, 7vw, 5rem) clamp(3.5rem, 8vw, 5.5rem);
}
.page-head .card-meta { color: var(--leaf); }
.page-head.has-bg {
	background-image: linear-gradient(90deg, rgba(255, 252, 247, 0.92) 0%, rgba(255, 252, 247, 0.7) 55%, rgba(255, 252, 247, 0.25) 100%), var(--page-bg);
	background-size: cover;
	background-position: center;
	padding-block: clamp(4.5rem, 10vw, 8rem) clamp(5rem, 11vw, 8.5rem);
}
.page-title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; max-width: 20ch; margin: 0; }
.page-intro { max-width: 40rem; margin-top: 1.25rem; font-size: 1.15rem; color: var(--ink); }
.page-intro p:last-child { margin: 0; }
.filter-links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filter-links a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0.4rem 1rem;
	background: var(--white); border-radius: 999px; color: var(--indigo); font-weight: 800; font-size: 0.95rem; text-decoration: none;
}
.filter-links a:hover { background: var(--marigold-soft); }

.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 2rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.6em; }
.prose blockquote {
	margin-inline: 0; padding: 1.25rem 1.5rem; background: var(--apricot); border-radius: var(--radius-small);
	font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; color: var(--indigo);
}
.prose blockquote cite { display: block; margin-top: 0.5rem; font-family: var(--font-hand); font-style: normal; font-size: 1.1rem; color: var(--leaf); }
.prose img { border-radius: var(--radius-small); }
.prose figcaption { font-family: var(--font-hand); font-size: 1.05rem; color: var(--ink-soft); }
.prose .wp-block-columns {
	display: flex; flex-wrap: wrap; gap: 2rem 3rem;
	width: min(68rem, 100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%);
}
.prose .wp-block-column { flex: 1 1 14rem; }
.prose .wp-block-column > h3:first-child { margin-top: 0; margin-bottom: 0.25rem; }
.prose .wp-block-column > * + * { margin-top: 0.75rem; }
.prose .wp-block-column img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--marigold); }
.prose .alignwide { max-width: 64rem; margin-inline: calc((46rem - 64rem) / 2); }
.prose .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }

.single-image { margin-block: clamp(-2.5rem, -4vw, -1.5rem) 0; }
.single-image img { width: 100%; border-radius: var(--radius); }
.post-cta { padding-block: 0 var(--section); }
.post-cta h2 { font-size: 1.75rem; }
.pagination { margin-top: 3rem; font-weight: 700; }
.pagination .nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Team ---------- */
.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin-block: 2rem 1rem;
}
.prose .team-grid {
	width: min(68rem, 100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 18rem)); justify-content: center;
}
.team-card { position: relative; display: flex; flex-direction: column; }
.team-photo {
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	overflow: hidden;
	background: linear-gradient(180deg, var(--sky) 0%, var(--apricot) 100%);
	margin-bottom: 1rem;
}
.team-card:nth-child(3n+2) .team-photo { background: linear-gradient(180deg, var(--sage) 0%, var(--sky) 100%); }
.team-card:nth-child(3n+3) .team-photo { background: linear-gradient(180deg, var(--apricot) 0%, var(--sage) 100%); }
.team-photo-img, .team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-photo-empty {
	display: grid; place-items: center; width: 100%; height: 100%;
	font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.5rem); color: var(--indigo); opacity: 0.55;
}
.team-name { font-size: 1.5rem; margin: 0 0 0.15rem; }
.prose .team-name { margin-top: 0; }
.team-link { color: var(--indigo); text-decoration: none; }
.team-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.team-link:focus-visible { outline: none; }
.team-link:focus-visible::after { outline: 3px solid var(--marigold); outline-offset: 6px; }
.team-role { font-weight: 800; color: var(--leaf); margin: 0 0 0.5rem; font-size: 1rem; }
.prose .team-role, .prose .team-intro, .prose .team-more { margin-top: 0; }
.team-intro { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 0.75rem; }
.team-more {
	margin: auto 0 0; font-family: var(--font-hand); font-size: 1.2rem; color: var(--indigo);
	text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; text-underline-offset: 0.25em;
}
.team-card:hover .team-photo-img { transform: scale(1.03); }
.team-card:hover .team-name a { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; }
@media (prefers-reduced-motion: reduce) { .team-photo-img { transition: none; } }

.profile-back { margin: 0 0 1rem; font-weight: 800; }
.profile-back a { color: var(--indigo); }
.profile-back a::before { content: "\2190\00a0"; }
.profile-role { font-family: var(--font-hand); font-size: 1.4rem; color: var(--leaf); margin: 0.6rem 0 0; }
.profile-body {
	display: grid;
	grid-template-columns: minmax(0, 20rem) minmax(0, 46rem);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.profile-photo { position: sticky; top: 1.5rem; margin: 0; box-shadow: 0 16px 36px rgba(37, 48, 107, 0.12); }
.profile-story .lede { color: var(--ink); }
.profile-others { padding-block: 0 var(--section); }
.profile-others .section-heading { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.team-grid-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.team-grid-small .team-name { font-size: 1.25rem; }
.team-grid-small .team-intro { display: none; }
@media (max-width: 600px) {
	.team-grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
	.team-grid-small .team-photo-empty { font-size: 2.4rem; }
	.team-grid-small .team-role { font-size: 0.9rem; }
}
@media (max-width: 760px) {
	.profile-body { grid-template-columns: 1fr; }
	.profile-photo { position: static; max-width: 18rem; }
}

/* ---------- Donate page template ---------- */
.donate-page { background: var(--apricot); padding-block: clamp(3rem, 7vw, 5.5rem); }
.donate-page-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.donate-page .page-title { margin-bottom: 1rem; }
.donate-page .needs-intro { margin-top: 2rem; }
.donate-page-tiers { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.6rem; }
.donate-page-tiers li { position: relative; padding-left: 1.6rem; font-size: 1.1rem; font-weight: 600; }
.donate-page-tiers li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--marigold); }
.donate-page-legal { font-size: 0.95rem; color: var(--ink-soft); }
.donate-form-heading { font-size: 1.5rem; }
.donate-page-form { background: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 12px 30px rgba(37, 48, 107, 0.08); }
@media (max-width: 860px) { .donate-page-inner { grid-template-columns: 1fr; } }

/* ---------- Talk request form ---------- */
.talk-form { margin-top: 1.5rem; }
.talk-form .form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.25rem; }
.talk-form .field { margin: 0 0 1.1rem; }
.talk-form label { display: block; font-weight: 800; font-size: 1rem; margin-bottom: 0.35rem; color: var(--indigo); }
.talk-form input, .talk-form select, .talk-form textarea { width: 100%; }
.talk-form .field-hp { position: absolute; left: -9999px; }
.form-notice { padding: 0.9rem 1.1rem; border-radius: var(--radius-small); font-weight: 700; }
.form-notice-success { background: var(--sage); color: var(--leaf); }
.form-notice-error { background: #fbe0da; color: #8a2a14; }
@media (max-width: 600px) { .talk-form .form-row { grid-template-columns: 1fr; } }

/* ---------- Forms & WordPress classes ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="number"], textarea, select {
	font: inherit; font-size: 1rem; min-height: 44px; padding: 0.65rem 0.9rem;
	border: 2px solid var(--rule); border-radius: var(--radius-small);
	background: var(--white); color: var(--ink); max-width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--indigo); outline: none; }
.search-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search-submit, input[type="submit"], button[type="submit"] {
	font-family: var(--font-body); font-weight: 800; font-size: 1rem; min-height: 44px;
	padding: 0.65rem 1.35rem; border: 0; border-radius: 999px; background: var(--indigo); color: var(--white); cursor: pointer;
}
.wp-block-button__link { font-family: var(--font-body); font-weight: 800; border-radius: 999px; }
.has-millet-background-color { background-color: var(--marigold); }
.has-indigo-background-color { background-color: var(--indigo); }
.has-nile-background-color { background-color: var(--leaf); }
.has-sky-background-color { background-color: var(--sky); }
.has-apricot-background-color { background-color: var(--apricot); }
.has-sage-background-color { background-color: var(--sage); }
.has-chalk-background-color { background-color: var(--paper); }
.has-ink-background-color { background-color: var(--ink); }
.has-millet-color { color: var(--marigold); }
.has-indigo-color { color: var(--indigo); }
.has-nile-color { color: var(--leaf); }
.has-chalk-color { color: var(--paper); }
.has-ink-color { color: var(--ink); }
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.5rem; }
.sticky, .gallery-caption, .bypostauthor { /* required by theme check */ }

/* ---------- Right-to-left (Arabic) ---------- */
@media (max-width: 800px) {
	[dir="rtl"] .journey-steps::before { left: auto; right: 0.85rem; transform: translateX(50%); }
	[dir="rtl"] .journey-step { padding-left: 0; padding-right: 3.4rem; }
	[dir="rtl"] .journey-marker { left: auto; right: 0; }
}
[dir="rtl"] .needs li { padding: 1.05rem 3.25rem 1.05rem 1.35rem; }
[dir="rtl"] .needs li::before { left: auto; right: 1.3rem; }
[dir="rtl"] .donate-page-tiers li { padding-left: 0; padding-right: 1.6rem; }
[dir="rtl"] .donate-page-tiers li::before { left: auto; right: 0; }
[dir="rtl"] .hero-art { transform: scaleX(-1); }
