/* ==========================================================================
   Kwaya Rise: main stylesheet. Mobile-first. Breakpoints: 600px, 960px.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--indigo: #1f1b4d;
	--indigo-2: #2d2870;
	--fuchsia: #b4156b;
	--fuchsia-d: #8f0f55;
	--marigold: #f6b21b;
	--marigold-l: #fff1cc;
	--leaf: #12755c;
	--leaf-l: #dff3ec;
	--berry-l: #fbe3ef;
	--mist: #f4f2fb;
	--lilac: #e6e1f7;
	--white: #fff;
	--ink: #1c1a33;
	--muted: #4f4c6b;
	--line: #dcd7ee;
	--focus: #1d4ed8;

	--font: "Avenir Next", "Nunito Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 14px;
	--radius-lg: 28px;
	--shadow: 0 12px 32px rgba(31, 27, 77, .12);
	--container: 1180px;
	--gutter: clamp(1rem, 4.5vw, 2rem);
	--header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
	font-size: 100%;
}
html.kwaya-text-lg { font-size: 112.5%; }
html.kwaya-text-xl { font-size: 125%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

.site { overflow-x: clip; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--font);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--indigo);
	margin: 0 0 .6em;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--fuchsia-d); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--indigo); }

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #fff;
	border-radius: 4px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	background: #fff; color: var(--indigo); padding: .9rem 1.2rem; z-index: 1000;
	top: .5rem; left: .5rem; border-radius: 8px; box-shadow: var(--shadow);
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon { flex: none; width: 1.25em; height: 1.25em; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	min-height: 48px; padding: .75rem 1.5rem;
	font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
	border: 2px solid transparent; border-radius: 999px; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: .9rem 1.9rem; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: .55rem 1.2rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--fuchsia); color: #fff; }
.btn-primary:hover { background: var(--fuchsia-d); color: #fff; }
.btn-accent { background: var(--marigold); color: var(--indigo); }
.btn-accent:hover { background: #ffc94d; color: var(--indigo); }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: #0d5d49; color: #fff; }
.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: #fff; color: var(--indigo); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link { font-weight: 700; color: var(--fuchsia-d); text-decoration: underline; }
.text-link:hover { color: var(--indigo); }

/* ---------- Signature pattern band (kitenge-inspired) ---------- */
.pattern-band {
	height: 18px;
	background-color: var(--indigo);
	background-image:
		radial-gradient(circle at 50% 50%, var(--marigold) 0 3px, transparent 3.5px),
		radial-gradient(circle at 50% 50%, transparent 0 5.5px, var(--fuchsia) 6px 7.5px, transparent 8px);
	background-size: 36px 18px, 36px 18px;
	background-position: 0 0, 18px 0;
}

/* ---------- Quick exit + utility bar ---------- */
.quick-exit {
	position: fixed; right: .75rem; bottom: .75rem; z-index: 90;
	display: inline-flex; align-items: center; gap: .45rem;
	min-height: 48px; padding: .55rem 1rem;
	font: inherit; font-weight: 800; font-size: .95rem;
	background: #fff; color: var(--indigo);
	border: 3px solid var(--indigo); border-radius: 999px;
	box-shadow: var(--shadow); cursor: pointer;
}
.quick-exit:hover { background: var(--indigo); color: #fff; }
@media (min-width: 960px) {
	.quick-exit { top: 50%; bottom: auto; right: 0; transform: translateY(-50%);
		border-right: 0; border-radius: 999px 0 0 999px; padding-left: 1.1rem; }
}

.utility-bar { background: var(--indigo); color: #fff; font-size: .9rem; }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; }
.utility-bar__msg { margin: 0; font-weight: 600; display: none; }
.utility-bar a { color: var(--marigold); font-weight: 800; }
.a11y-tools { display: flex; gap: .35rem; margin-inline: auto; }
.a11y-btn {
	display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .2rem .7rem;
	font: inherit; font-weight: 700; font-size: .85rem; color: #fff;
	background: transparent; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; cursor: pointer;
}
.a11y-btn:hover { background: rgba(255, 255, 255, .15); }
.a11y-btn[aria-pressed="true"] { background: var(--marigold); color: var(--indigo); border-color: var(--marigold); }
.a11y-btn .icon { width: 1.1em; height: 1.1em; }
.a11y-btn__label {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap;
}
.utility-bar :focus-visible { outline-color: #fff; box-shadow: none; }
@media (min-width: 600px) {
	.a11y-btn__label { position: static; clip: auto; clip-path: none; height: auto; width: auto; margin: 0; overflow: visible; }
}
@media (min-width: 760px) {
	.utility-bar__msg { display: block; }
	.a11y-tools { margin-inline: 0; }
}

/* ---------- Header + navigation ---------- */
.site-header {
	position: sticky; top: 0; z-index: 80;
	background: #fff; border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: .6rem; min-height: var(--header-h); position: relative; }

.site-branding {
	display: flex; align-items: center; gap: .65rem; margin-right: auto;
	text-decoration: none; color: var(--indigo); min-width: 0;
}
.brand-mark {
	display: grid; place-items: center; flex: none; width: 46px; height: 46px;
	background: var(--fuchsia); color: #fff; border-radius: 50% 50% 50% 8px;
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.2rem; line-height: 1.1; letter-spacing: -.01em; }
.brand-tag { display: none; font-size: .78rem; font-weight: 600; color: var(--muted); }
.custom-logo { max-height: 54px; width: auto; }

.header-cta { display: none; }

.nav-toggle {
	display: inline-grid; place-items: center; flex: none;
	width: 48px; height: 48px; padding: 0;
	color: var(--indigo); background: var(--mist);
	border: 0; border-radius: 12px; cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle__icon--close { display: none; }
.nav-open .nav-toggle__icon--open { display: none; }
.nav-open .nav-toggle__icon--close { display: grid; }

/* Mobile / tablet drawer */
.primary-nav {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
	max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto;
	padding: .5rem var(--gutter) 1.5rem;
}
.js .primary-nav { display: none; }
.js .nav-open .primary-nav { display: block; }
.no-js .nav-toggle { display: none; }
.no-js .primary-nav { position: static; box-shadow: none; }

.menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.menu li { position: relative; }
.menu a {
	display: block; padding: .9rem .25rem; font-weight: 700; color: var(--ink);
	text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu a:hover, .menu .current-menu-item > a, .menu .current_page_item > a { color: var(--fuchsia-d); }
.menu .sub-menu { display: none; list-style: none; margin: 0; padding: 0 0 0 1rem; }
.menu .sub-open > .sub-menu { display: block; }
.menu .sub-menu a { font-weight: 600; }
.sub-toggle {
	position: absolute; right: 0; top: .35rem; width: 44px; height: 44px;
	font: inherit; font-size: 1.4rem; font-weight: 700; color: var(--indigo);
	background: var(--mist); border: 0; border-radius: 10px; cursor: pointer;
}
.menu .menu-item-has-children > a { padding-right: 3.2rem; }
.nav-donate { margin-top: 1.1rem; }

@media (min-width: 640px) {
	.header-cta { display: inline-flex; }
	.brand-tag { display: block; }
}

/* Desktop navigation */
@media (min-width: 960px) {
	.nav-toggle, .nav-donate { display: none; }
	.header-cta { order: 3; }
	.primary-nav,
	.js .primary-nav {
		display: block; position: static; order: 2;
		max-height: none; overflow: visible; padding: 0;
		background: transparent; border: 0; box-shadow: none;
	}
	.menu { display: flex; align-items: center; gap: .15rem; }
	.menu a { border: 0; padding: .6rem .95rem; border-radius: 999px; }
	.menu a:hover, .menu .current-menu-item > a, .menu .current_page_item > a {
		background: var(--lilac); color: var(--indigo);
	}
	.menu .menu-item-has-children > a { padding-right: .95rem; }
	.sub-toggle { display: none; }
	.menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 230px; padding: .5rem;
		background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
		box-shadow: var(--shadow);
	}
	.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: block; }
	.menu .sub-menu a { border-radius: 8px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--mist); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 2.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { font-size: 1.125rem; color: var(--muted); margin: 0; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; max-width: none; }
.section-head--row h2 { margin: 0; }
.section-more { margin: 2rem 0 0; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

/* ---------- Hero ---------- */
.hero { background: var(--indigo); color: #fff; }
.hero__inner {
	display: grid; gap: 2.5rem; align-items: center;
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero__title { color: #fff; font-size: clamp(2.2rem, 6.2vw, 4.2rem); line-height: 1.05; margin-bottom: .5em; max-width: 13em; }
.hero__text { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #e8e5fb; max-width: 34em; margin-bottom: 1.75rem; }

.hero__art { max-width: 420px; width: 100%; margin-inline: auto; padding: 12px; }
@media (min-width: 960px) {
	.hero__inner { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
	.hero__art { margin-inline: 0 0; justify-self: end; }
}

/* The arch: a doorway, a shelter. Used for the hero and founder photos. */
.arch {
	position: relative; overflow: hidden; aspect-ratio: 4 / 5;
	border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
	background: var(--indigo-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--hero { outline: 4px solid var(--marigold); outline-offset: 10px; }
.arch--founder { outline: 4px solid var(--fuchsia); outline-offset: 10px; }
.arch__fallback {
	position: absolute; inset: 0; display: grid; place-items: center; color: var(--marigold);
	background-color: var(--indigo-2);
	background-image:
		radial-gradient(circle at 50% 50%, var(--marigold) 0 4px, transparent 4.5px),
		radial-gradient(circle at 50% 50%, transparent 0 8px, var(--fuchsia) 8.5px 10.5px, transparent 11px);
	background-size: 48px 48px, 48px 48px;
	background-position: 0 0, 24px 24px;
}
.arch__fallback .icon { width: 90px; height: 90px; stroke-width: 1.4; padding: 1.4rem; background: var(--indigo); border-radius: 50%; box-sizing: content-box; }

/* One orchestrated entrance. Switched off by Calm mode and reduced-motion. */
@keyframes kwaya-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: kwaya-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: .12s; }
.hero__copy > :nth-child(3) { animation-delay: .24s; }

/* ---------- Support cards ---------- */
.support-card {
	display: flex; flex-direction: column; gap: .5rem;
	padding: 1.75rem 1.5rem 1.5rem; background: #fff; color: var(--ink);
	border: 1px solid var(--line); border-top-width: 8px; border-radius: var(--radius);
	text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.support-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.support-card h3 { margin: .35rem 0 0; }
.support-card p { margin: 0 0 .5rem; color: var(--muted); }
.support-card .text-link { margin-top: auto; }
.support-card__icon {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50% 50% 50% 8px;
}
.support-card__icon .icon { width: 28px; height: 28px; }
.support-card--berry { border-top-color: var(--fuchsia); }
.support-card--berry .support-card__icon { background: var(--berry-l); color: var(--fuchsia-d); }
.support-card--leaf { border-top-color: var(--leaf); }
.support-card--leaf .support-card__icon { background: var(--leaf-l); color: var(--leaf); }
.support-card--sun { border-top-color: var(--marigold); }
.support-card--sun .support-card__icon { background: var(--marigold-l); color: #7a5200; }

/* ---------- Help panel ---------- */
.help-panel { background: var(--marigold-l); border-block: 1px solid #f0d78f; }
.help-panel__inner { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(2rem, 5vw, 3.25rem); }
.help-panel h2 { margin-bottom: .3em; }
.help-panel p { margin: 0; max-width: 40em; }
.help-panel__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 960px) {
	.help-panel__inner { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
	.help-panel__actions { justify-content: flex-end; }
}

/* ---------- Work list ---------- */
.work-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.work-item { display: flex; gap: 1rem; padding: 1.4rem .25rem; border-bottom: 1px solid var(--line); }
.work-item h3 { margin-bottom: .25em; }
.work-item p { margin: 0; color: var(--muted); }
.work-item__icon {
	flex: none; display: grid; place-items: center; width: 48px; height: 48px;
	background: var(--lilac); color: var(--indigo); border-radius: 50% 50% 50% 8px;
}
@media (min-width: 760px) {
	.work-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

/* ---------- Stats ---------- */
.stats { background: var(--fuchsia); color: #fff; }
.stats__list { list-style: none; margin: 0; padding: 2.5rem 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.stats__list strong { display: block; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; line-height: 1; }
.stats__list span { font-size: 1.05rem; }
@media (min-width: 600px) { .stats__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Founder + video ---------- */
.founder { display: grid; gap: 3rem; align-items: center; }
.founder__art { max-width: 340px; width: 100%; margin-inline: auto; padding: 12px; }
.founder__name { font-weight: 800; color: var(--fuchsia-d); margin-bottom: .75rem; }
.founder__copy p { max-width: 38em; }
@media (min-width: 860px) {
	.founder { grid-template-columns: 340px 1fr; gap: 4.5rem; }
	.founder__art { margin-inline: 0; }
}
.video-block { margin-top: clamp(2.5rem, 6vw, 4rem); }
.video-block > p { color: var(--muted); max-width: 40em; }
.video-frame { position: relative; max-width: 860px; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Values ---------- */
.values { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.value { padding-left: 1.25rem; border-left: 4px solid var(--marigold); }
.value:nth-child(2) { border-left-color: var(--fuchsia); }
.value:nth-child(3) { border-left-color: var(--leaf); }
.value__icon { display: inline-grid; color: var(--indigo); margin-bottom: .4rem; }
.value__icon .icon { width: 32px; height: 32px; }
.value p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* ---------- Story cards ---------- */
.story-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: box-shadow .2s;
}
.story-card:hover { box-shadow: var(--shadow); }
.story-card__media { display: block; aspect-ratio: 3 / 2; background: var(--lilac); overflow: hidden; }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; }
.story-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--fuchsia); }
.story-card__placeholder .icon { width: 56px; height: 56px; }
.story-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
.story-card__meta { margin: 0 0 .4rem; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.story-card__cat { font-weight: 700; color: var(--leaf); }
.story-card__title { font-size: 1.25rem; margin-bottom: .5rem; }
.story-card__title a { color: var(--indigo); text-decoration: none; }
.story-card__title a:hover { color: var(--fuchsia-d); text-decoration: underline; }
.story-card__excerpt { color: var(--muted); }
.story-card__excerpt p { margin-bottom: .75rem; }
.story-card .text-link { margin-top: auto; }

.empty-state { padding: 2rem; background: var(--mist); border-radius: var(--radius); text-align: left; }
.empty-state .search-form { margin-block: 1.25rem; max-width: 30rem; }

/* ---------- Donate banner ---------- */
.cta-donate { background: var(--indigo); color: #fff; position: relative; }
.cta-donate::before { content: ""; display: block; height: 18px; background-color: var(--fuchsia);
	background-image: radial-gradient(circle at 50% 50%, var(--marigold) 0 3px, transparent 3.5px);
	background-size: 36px 18px; }
.cta-donate__inner { display: grid; gap: 1.75rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-donate h2 { color: #fff; margin-bottom: .3em; }
.cta-donate p { margin: 0; color: #e8e5fb; max-width: 38em; }
.cta-donate__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 960px) {
	.cta-donate__inner { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
	.cta-donate__actions { justify-content: flex-end; }
}
.cta-donate :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--indigo); }

/* ---------- Page hero ---------- */
.page-hero { background: var(--indigo); color: #fff; }
.page-hero__inner { padding-block: clamp(2.25rem, 6vw, 4rem) clamp(2rem, 5vw, 3.25rem); }
.page-hero__title { color: #fff; margin: 0; max-width: 18em; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero__kicker { margin: 0 0 .5rem; color: var(--marigold); font-weight: 700; }
.page-hero__lead { margin: 1rem 0 0; font-size: 1.15rem; color: #e8e5fb; max-width: 36em; }

/* ---------- Programmes page ---------- */
.jump-nav { background: var(--mist); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 40; }
.jump-nav ul { list-style: none; margin: 0; padding: .6rem 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; }
.jump-nav a {
	display: block; white-space: nowrap; padding: .55rem 1rem; min-height: 44px;
	font-weight: 700; font-size: .95rem; color: var(--indigo); text-decoration: none;
	background: #fff; border: 1px solid var(--line); border-radius: 999px;
}
.jump-nav a:hover { background: var(--indigo); color: #fff; }

.program { border-bottom: 1px solid var(--line); }
.program:nth-of-type(even) { background: var(--mist); }
.program__head { display: grid; gap: 1rem; margin-bottom: 1.5rem; max-width: 52rem; }
.program__head h2 { margin-bottom: .3em; }
.program__head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.program__icon {
	display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50% 50% 50% 10px; color: #fff;
}
.program__icon .icon { width: 32px; height: 32px; }
.program--berry .program__icon { background: var(--fuchsia); }
.program--leaf .program__icon { background: var(--leaf); }
.program--sun .program__icon { background: var(--marigold); color: var(--indigo); }
.program--indigo .program__icon { background: var(--indigo); }
@media (min-width: 760px) { .program__head { grid-template-columns: 64px 1fr; gap: 1.5rem; } }

/* ---------- Entry / content ---------- */
.entry { max-width: 54rem; margin-inline: auto; }
.entry__image { margin: 0 0 2rem; }
.entry__image img { width: 100%; border-radius: var(--radius); }
.entry-content { font-size: 1.125rem; line-height: 1.8; }
.entry-content > * { max-width: 44rem; margin-inline: auto; }
.entry-content > .alignwide { max-width: 64rem; }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote {
	margin-block: 1.75em; padding: .5em 0 .5em 1.25em; border-left: 5px solid var(--marigold);
	font-size: 1.25rem; font-weight: 600; color: var(--indigo);
}
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: .6rem .75rem; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--mist); }
.entry-content .wp-block-button__link {
	background: var(--fuchsia); color: #fff; border-radius: 999px; font-weight: 700; padding: .85rem 1.6rem; text-decoration: none;
}
.entry-content .wp-block-button__link:hover { background: var(--fuchsia-d); }
.entry-content .wp-block-image figcaption, .wp-caption-text { font-size: .9rem; color: var(--muted); text-align: left; }
.entry-content iframe { max-width: 100%; }
.entry__cats { max-width: 44rem; margin: 2rem auto 0; color: var(--muted); font-size: .95rem; }

.alignleft { float: left; margin: .25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .25rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1rem auto; } }

.post-navigation { margin-top: 3rem; }
.post-navigation .nav-links { display: grid; gap: 1rem; }
.post-navigation a {
	display: block; padding: 1rem 1.25rem; background: var(--mist); border-radius: var(--radius);
	font-weight: 700; color: var(--indigo); text-decoration: none;
}
.post-navigation a:hover { background: var(--lilac); }
.post-navigation .nav-sub { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
@media (min-width: 700px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } .post-navigation .nav-next { text-align: right; } }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 1rem;
	font-weight: 700; color: var(--indigo); text-decoration: none; background: #fff;
	border: 2px solid var(--line); border-radius: 999px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ---------- Contact ---------- */
.contact-intro { margin-bottom: 2.5rem; }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }

.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; padding: 11px; background: var(--lilac); color: var(--indigo); border-radius: 50% 50% 50% 8px; }
.contact-list strong { display: block; color: var(--indigo); }
.contact-list a { font-weight: 600; }

.safety-note { display: flex; gap: .9rem; padding: 1.1rem 1.25rem; background: var(--leaf-l); border-left: 5px solid var(--leaf); border-radius: 10px; }
.safety-note .icon { color: var(--leaf); width: 28px; height: 28px; margin-top: .15rem; }
.safety-note p { margin: 0; }

.contact-form-wrap { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--mist); border-radius: var(--radius-lg); }
.contact-form-wrap h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.form__row { margin-bottom: 1.1rem; }
.form__cols { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .form__cols { grid-template-columns: 1fr 1fr; } }
.form label { display: block; margin-bottom: .35rem; font-weight: 700; color: var(--indigo); }
.form .req { font-weight: 500; color: var(--muted); font-size: .9rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea,
.search-field, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; min-height: 50px; padding: .7rem .9rem;
	font: inherit; font-size: 1rem; color: var(--ink);
	background: #fff; border: 2px solid #9d98c4; border-radius: 10px;
}
.form textarea, .comment-form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .search-field:focus { border-color: var(--indigo); }
.form__hint { margin: -.4rem 0 1.2rem; font-size: .92rem; color: var(--muted); }
.form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.notice { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.25rem; }
.notice p { margin: 0; font-weight: 600; }
.notice--ok { background: var(--leaf-l); border-left: 5px solid var(--leaf); }
.notice--warn { background: var(--marigold-l); border-left: 5px solid #c98600; }

.donate-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .donate-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.give-card { padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--fuchsia); border-radius: var(--radius); }
.give-card h3 { margin-bottom: .6em; }
.give-card__details { margin: 0; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }

.search-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.search-form .search-field { flex: 1 1 220px; }

/* ---------- Comments ---------- */
.comments-area { max-width: 44rem; margin: 3rem auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.25rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form label { display: block; font-weight: 700; margin-bottom: .3rem; }
.comment-form .submit { min-height: 48px; padding: .7rem 1.6rem; font: inherit; font-weight: 700; color: #fff; background: var(--fuchsia); border: 0; border-radius: 999px; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo); color: #e8e5fb; margin-top: 0; }
.footer-grid { display: grid; gap: 2.25rem; padding-block: clamp(2.5rem, 6vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr; gap: 3rem; } }
.footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-title { font-size: 1.05rem; color: #fff; margin-bottom: .9rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--marigold); }
.footer-menu li { margin-bottom: .1rem; }
.footer-menu a { display: inline-block; padding: .4rem 0; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .25rem; color: var(--marigold); }
.footer-safety { font-size: .98rem; }

.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 0; padding: 0; }
.social-link {
	display: grid; place-items: center; width: 46px; height: 46px; color: #fff;
	border: 2px solid rgba(255, 255, 255, .4); border-radius: 50%;
}
.social-link:hover { background: var(--marigold); border-color: var(--marigold); color: var(--indigo); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); font-size: .92rem; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-block: 1.1rem; padding-right: 5.5rem; }
.footer-bottom p { margin: 0; }

/* ---------- Modes: calm + reduced motion ---------- */
.kwaya-calm *, .kwaya-calm *::before, .kwaya-calm *::after {
	animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Modes: high contrast ---------- */
.kwaya-contrast {
	--indigo: #000; --indigo-2: #000; --fuchsia: #9b0058; --fuchsia-d: #7a0044;
	--ink: #000; --muted: #000; --line: #000; --mist: #fff; --lilac: #fff;
	--marigold-l: #fff; --leaf-l: #fff; --berry-l: #fff; --focus: #0033cc;
}
.kwaya-contrast body { background: #fff; }
.kwaya-contrast a { text-decoration: underline; }
.kwaya-contrast .menu a, .kwaya-contrast .btn, .kwaya-contrast .social-link,
.kwaya-contrast .story-card__title a, .kwaya-contrast .jump-nav a, .kwaya-contrast .site-branding { text-decoration: none; }
.kwaya-contrast .hero, .kwaya-contrast .page-hero, .kwaya-contrast .cta-donate, .kwaya-contrast .site-footer, .kwaya-contrast .utility-bar { background: #000; color: #fff; }
.kwaya-contrast .hero__text, .kwaya-contrast .page-hero__lead, .kwaya-contrast .cta-donate p, .kwaya-contrast .site-footer { color: #fff; }
.kwaya-contrast .btn-accent { background: #ffd23f; color: #000; }
.kwaya-contrast .help-panel, .kwaya-contrast .section--tint, .kwaya-contrast .contact-form-wrap { background: #fff; border: 2px solid #000; }
.kwaya-contrast .support-card, .kwaya-contrast .story-card, .kwaya-contrast .give-card { border: 2px solid #000; }
.kwaya-contrast .stats { background: #000; }
.kwaya-contrast .site-header { border-bottom: 3px solid #000; }
.kwaya-contrast .pattern-band { background-color: #000; }
.kwaya-contrast .form input, .kwaya-contrast .form select, .kwaya-contrast .form textarea { border-color: #000; }
.kwaya-contrast .a11y-btn[aria-pressed="true"] { background: #ffd23f; color: #000; }

/* ---------- Print ---------- */
@media print {
	.utility-bar, .site-header, .quick-exit, .cta-donate, .site-footer, .jump-nav { display: none !important; }
	body { font-size: 12pt; color: #000; }
}
