/*
 * Village Calm (theme 0.4.0, design approved by CCAF on 29 November 2026; docs/77).
 * The African Village with the calm of the Sankofa Forest: more space, larger type, hairlines
 * instead of boxes and shadows, one clear action per section, artwork shown large.
 * The emblem colours, the Noto fonts, the layout order and every word are unchanged.
 * Loaded last; removing this file (and the three photographs added to the home templates)
 * returns the site to the 0.3.20 look. Colours come from tokens.css, so the night village
 * keeps working; the few fixed colours below sit on dark green in both modes.
 */

/* ---------- Rhythm and type ---------- */
.ccaf-section { padding-block: clamp(4.5rem, 2.5rem + 6vw, 9.5rem); }
/* Larger section headings only; headings inside lists and articles keep their own sizes. */
.ccaf-page .ccaf-section__head h2,
.ccaf-page .ccaf-village__head h2,
.ccaf-page .ccaf-quiz-invite h2,
.ccaf-page .ccaf-langs h2 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.25rem); letter-spacing: -0.03em; line-height: 1.05; }
.ccaf-page .ccaf-lede,
.ccaf-section__head + .ccaf-lede { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem); line-height: 1.5; color: var(--text-muted); }
.ccaf-section__head { margin-block-end: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* Section labels: red ink beside a thinner emblem stripe (the yellow tint at night). */
.ccaf-eyebrow { color: var(--accent); letter-spacing: 0.14em; font-weight: 700; }
.ccaf-eyebrow::before { inline-size: 28px; block-size: 3px; }

/* ---------- Header: the emblem stripe under the masthead ---------- */
#masthead { position: relative; box-shadow: none; }
#masthead::after { content: ""; position: absolute; inset: auto 0 0; block-size: 3px; background: var(--emblem-stripe); pointer-events: none; }

/* ---------- Buttons: calmer, no lift ---------- */
.ccaf-btn { min-block-size: 52px; padding-inline: 1.75rem; font-weight: 700; }
.ccaf-btn:hover { transform: none; box-shadow: none; }
.ccaf-btn--gold { background: var(--c-yellow); color: var(--c-black); }
.ccaf-btn--gold:hover { background: #ffe44d; color: var(--c-black); box-shadow: none; }
a.ccaf-btn--gold:is(:focus, :active) { color: var(--c-black); }
/* Secondary choices on dark green read as quiet text links with › (one primary action per section). */
.ccaf-btn--on-dark { background: transparent; border-color: transparent; padding-inline: 0.75rem; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* "›" is a mirrored character, so it turns into "‹" by itself in Arabic (right-to-left). */
.ccaf-btn--on-dark::after { content: "›"; font-size: 1.35em; line-height: 1; margin-inline-start: 0.1em; }
.ccaf-btn--on-dark:hover { background: rgb(255 255 255 / 0.08); border-color: transparent; }

/* ---------- Cards become hairline rows ---------- */
.ccaf-card-grid { gap: 0 clamp(1.5rem, 0.5rem + 3vw, 4rem); }
.ccaf-card {
	padding: var(--s-5) 0 var(--s-6); background: transparent; border: 0; border-radius: 0;
	border-block-start: 1px solid var(--border); box-shadow: none;
}
.ccaf-card--district, .ccaf-card--programme { background-image: none; }
a.ccaf-card:hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
.ccaf-card__type { padding: 0; background: none; border-radius: 0; color: var(--accent); letter-spacing: 0.1em; }
.ccaf-card__title { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); }
a.ccaf-card .ccaf-card__title::after, .ccaf-district-card__label::after,
:dir(rtl) a.ccaf-card .ccaf-card__title::after, :dir(rtl) .ccaf-district-card__label::after { content: " ›"; }
.ccaf-card__why { font-style: normal; }
.ccaf-card__photo, .ccaf-district-card__photo {
	display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: var(--radius-lg); background: var(--surface-2); margin-block-end: var(--s-3);
}
.ccaf-card.has-photo { border-block-start: 0; padding-block-start: 0; }
@media (max-width: 639px) { .ccaf-card__photo, .ccaf-district-card__photo { aspect-ratio: 16 / 9; border-radius: var(--radius); } }

/* ---------- Go straight to: three photographed destinations, then an index ---------- */
.ccaf-district-grid { gap: 0 clamp(1.5rem, 0.5rem + 3vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ccaf-district-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
	.ccaf-district-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.ccaf-district-grid > li { grid-column: span 3; }
	.ccaf-district-grid > li.has-photo { grid-column: span 2; }
}
.ccaf-district-grid > li.has-photo { order: -1; margin-block-end: var(--s-6); }
.ccaf-district-card a {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: var(--s-4) 0;
	min-block-size: 0; border: 0; border-radius: 0; border-block-start: 1px solid var(--border);
	background: transparent; box-shadow: none;
}
.ccaf-district-card--programme a { background-image: none; }
.ccaf-district-card a:hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
.ccaf-district-card.has-photo a { border-block-start: 0; padding-block-start: 0; }
.ccaf-district-card__tagline { font-size: var(--fs-0); }
.ccaf-search input { box-shadow: none; }

/* ---------- Our programmes: the photograph beside the list ---------- */
.ccaf-programmes__photo { margin: 0 0 var(--s-6); }
.ccaf-programmes__photo img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 960px) {
	.ccaf-programmes .ccaf-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
	.ccaf-programmes .ccaf-section__head { grid-column: 1 / -1; }
	.ccaf-programmes__photo { margin: 0; position: sticky; inset-block-start: var(--s-6); }
	.ccaf-programmes__photo img { aspect-ratio: 4 / 5; }
	.ccaf-programmes .ccaf-card-grid,
	.ccaf-programmes .ccaf-card-grid:has(> :nth-child(6):last-child) { grid-template-columns: minmax(0, 1fr); }
}
.ccaf-programmes .ccaf-card { padding-block: var(--s-4); gap: 4px; }

/* ---------- Washes: one quiet tint, no gradients ---------- */
.ccaf-section--tint, .ccaf-section--sky { background: var(--surface-2); }
.ccaf-page-head { background: var(--bg); border-block-end: 0; padding-block: clamp(3rem, 1.5rem + 4vw, 6.5rem) clamp(1.5rem, 1rem + 2vw, 3rem); }
.ccaf-page-head h1 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 6rem); letter-spacing: -0.035em; line-height: 1.0; }

/* ---------- Hero: a full-width green chapter ---------- */
.ccaf-hero { padding: 0; }
.ccaf-hero__panel {
	border-radius: 0; box-shadow: none; background: var(--c-green);
	padding-block: clamp(3.5rem, 2rem + 6vw, 8rem) clamp(2.5rem, 1.5rem + 4vw, 6rem);
}
.ccaf-hero__panel::before { display: none; }
.ccaf-hero__panel::after { block-size: 3px; }
.ccaf-hero__eyebrow {
	padding: 0; border-radius: 0; background: none; color: var(--c-yellow);
	letter-spacing: 0.14em; gap: 12px; margin-block-end: var(--s-6);
}
.ccaf-hero__eyebrow::before { content: ""; flex: none; inline-size: 28px; block-size: 3px; border-radius: 2px; background: var(--emblem-stripe); }
.ccaf-page .ccaf-hero__title { font-size: clamp(2.9rem, 1.4rem + 4.6vw, 6.25rem); letter-spacing: -0.04em; line-height: 0.98; max-inline-size: 16ch; }
.ccaf-page .ccaf-hero__lede { font-size: clamp(1.15rem, 1rem + 0.55vw, 1.5rem); line-height: 1.5; color: rgb(255 255 255 / 0.88); }
.ccaf-page .ccaf-hero__motto { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem); line-height: 1.3; color: #fff; max-inline-size: 28ch; margin-block-start: var(--s-7); }
.ccaf-page .ccaf-hero__motto::before { color: var(--c-yellow); }
.ccaf-hero__emblem { box-shadow: 0 0 0 10px rgb(255 255 255 / 0.06); }
.ccaf-kamite { background: transparent; border: 0; border-block-start: 1px solid rgb(255 255 255 / 0.2); border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding-inline: 0; }
.ccaf-kamite__year { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.4rem); }
/* Five dimensions: hairline columns instead of frosted cards. */
.ccaf-dimensions { gap: 0 var(--s-5); }
.ccaf-dimension { background: none; border: 0; border-block-start: 1px solid rgb(255 255 255 / 0.2); border-radius: 0; padding: var(--s-4) 0 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ccaf-dimension:hover { background: none; transform: none; }

/* ---------- Everyday life: hairline columns ---------- */
.ccaf-life { margin-block-start: clamp(3.5rem, 2rem + 4vw, 6.5rem); }
.ccaf-page .ccaf-life__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.ccaf-life__list { gap: 0 clamp(1.5rem, 0.5rem + 3vw, 4rem); }
.ccaf-life__item { padding: var(--s-5) 0 var(--s-5); border: 0; border-block-start: 1px solid var(--border); border-radius: 0; box-shadow: none; background: none; }
.ccaf-page .ccaf-life__role { color: var(--link); }

/* ---------- Sankofa: a deep-green chapter, six numbered steps on one line ---------- */
.ccaf-section.ccaf-sankofa { background: var(--c-green-deep); color: #fff; }
.ccaf-page .ccaf-section.ccaf-sankofa h2 { color: #fff; font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.25rem); }
.ccaf-section.ccaf-sankofa p { color: #d4ddd6; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); }
.ccaf-section.ccaf-sankofa .ccaf-eyebrow { color: var(--c-yellow); }
.ccaf-sankofa__mark { box-shadow: none; background: rgb(255 255 255 / 0.06); }
.ccaf-cycle { gap: 0 var(--s-5); }
.ccaf-cycle__step { padding: var(--s-4) 0 var(--s-5); background: none; border: 0; border-block-start: 1px solid rgb(252 216 0 / 0.35); border-radius: 0; box-shadow: none; }
.ccaf-cycle__step:hover { transform: none; box-shadow: none; }
.ccaf-cycle__num { border-radius: 50%; background: var(--c-yellow); color: var(--c-black); inline-size: 36px; block-size: 36px; }
.ccaf-cycle__name { color: #fff; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); font-weight: 800; }
.ccaf-cycle__text { color: #d4ddd6; font-size: var(--fs-0); }

/* ---------- Your African Village Journey: numbered steps on a line ---------- */
.ccaf-vj--compact { gap: 0 var(--s-5); }
.ccaf-vj--compact a { padding: var(--s-4) 0; border: 0; border-block-start: 1px solid var(--border-strong); border-radius: 0; background: none; }
.ccaf-vj--compact a:hover, .ccaf-vj--compact a:focus-visible { box-shadow: none; border-color: var(--link); }
.ccaf-vj__num { inline-size: 2.25rem; block-size: 2.25rem; }

/* ---------- Quiz invitation: centred, no panel ---------- */
/* The original panel was green with white text; without the panel the text takes the page colours (0.4.1). */
.ccaf-section:has(> .ccaf-wrap > .ccaf-quiz-invite) { background: var(--surface-2); }
.ccaf-quiz-invite { flex-direction: column; justify-content: center; background: none; border: 0; box-shadow: none; padding: 0; text-align: center; color: var(--text-muted); }
.ccaf-quiz-invite p { margin-inline: auto; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); }
.ccaf-quiz-invite .ccaf-eyebrow { color: var(--accent); }
.ccaf-page .ccaf-quiz-invite h2 { color: var(--heading); }

/* ---------- Languages: a green chapter with large greetings ---------- */
.ccaf-langs { background: var(--c-green); color: #fff; }
.ccaf-page .ccaf-langs h2 { color: #fff; }
.ccaf-langs .ccaf-eyebrow { color: var(--c-yellow); }
.ccaf-langs__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0 var(--s-5); margin-block: clamp(2rem, 1rem + 3vw, 3.5rem); }
.ccaf-langs__list li { padding: var(--s-4) 0; background: none; border: 0; border-block-start: 1px solid rgb(255 255 255 / 0.2); border-radius: 0; box-shadow: none; }
.ccaf-langs__word { font: 800 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.2 var(--font-display); color: #fff; font-style: normal; }
.ccaf-langs__name { color: #d4ddd6; }
.ccaf-langs .ccaf-hint { color: #d4ddd6; font-size: var(--fs-0); }

/* ---------- Closing: a large statement on white ---------- */
.ccaf-closing { padding-block: clamp(4.5rem, 2.5rem + 6vw, 9.5rem); }
.ccaf-closing__inner { background: none; box-shadow: none; color: var(--text); padding: 0; border-radius: 0; }
.ccaf-closing__inner::before { display: none; }
.ccaf-page .ccaf-closing h2 { color: var(--heading); font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.25rem); }
.ccaf-closing .ccaf-btn--gold { background: var(--primary); color: var(--on-primary); }
.ccaf-closing .ccaf-btn--gold:hover { background: var(--primary-hover); color: var(--on-primary); }
.ccaf-closing a.ccaf-btn--gold:is(:focus, :active) { color: var(--on-primary); }
.ccaf-closing .ccaf-btn--on-dark,
.ccaf-closing .ccaf-btn--on-dark:hover,
.ccaf-closing a.ccaf-btn--on-dark:is(:focus, :active) { color: var(--link); background: transparent; }

/* ---------- News: the newest story leads, the rest are hairline rows ---------- */
.ccaf-news-list { gap: 0; }
.ccaf-news-item { padding-block: var(--s-5); border-block-end: 0; border-block-start: 1px solid var(--border); }
.ccaf-page .ccaf-news-item__title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.25; letter-spacing: -0.015em; }
.ccaf-news-item__title a { color: var(--heading); text-decoration: none; }
.ccaf-news-item__title a:hover { color: var(--heading); text-decoration: underline; }
.ccaf-news-list > li:first-child .ccaf-news-item { border-block-start: 2px solid var(--heading); padding-block: var(--s-5) var(--s-6); }
.ccaf-page .ccaf-news-list > li:first-child .ccaf-news-item__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; }
.ccaf-news-list > li:first-child .ccaf-news-item__summary { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); }
.ccaf-page .ccaf-meetings-list__title,
.ccaf-page #ccaf-sessions { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }

/* ---------- Inner pages: boxes become hairlines ---------- */
.ccaf-event { padding: var(--s-4) 0; background: none; border: 0; border-block-start: 1px solid var(--border); border-radius: 0; }
.ccaf-event__date { background: none; color: var(--text-muted); padding: 0; border-radius: 0; place-items: start; }
.ccaf-event__date span { color: var(--heading); font-weight: 800; }
.ccaf-sps-cal__next { border: 0; border-block-start: 2px solid var(--c-green); border-radius: 0; padding: var(--s-5) 0 0; background: none; }
.ccaf-sps-glance { border: 0; border-block: 1px solid var(--border); border-radius: 0; background: none; padding-inline: 0; }
.ccaf-trust, .ccaf-lesson-actions, .ccaf-reflect { border-radius: var(--radius-lg); }
.ccaf-destination-art { border: 0; box-shadow: none; border-radius: var(--radius-lg); aspect-ratio: 2 / 1; }

/* ---------- Night village: fixed colours that need a counterpart ---------- */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ccaf-section.ccaf-sankofa { background: #0f1912; }
	:root:not([data-theme="light"]) .ccaf-langs { background: #14211a; }
	:root:not([data-theme="light"]) .ccaf-hero__panel { background: #0f2a17; }
	:root:not([data-theme="light"]) .ccaf-sps-cal__next { border-color: var(--c-yellow); }
}
:root[data-theme="dark"] .ccaf-section.ccaf-sankofa { background: #0f1912; }
:root[data-theme="dark"] .ccaf-langs { background: #14211a; }
:root[data-theme="dark"] .ccaf-hero__panel { background: #0f2a17; }
:root[data-theme="dark"] .ccaf-sps-cal__next { border-color: var(--c-yellow); }

/* ---------- Motion: calm, and optional ---------- */
.js .ccaf-reveal { transform: translateY(24px); transition-duration: 600ms; }
@media (prefers-reduced-motion: reduce) { .ccaf-hero__emblem { animation: none; } }

/* ---------- SPS classroom, progress and lessons (theme 0.7.2, CCAF plan of 3 December 2026) ---------- */
.ccaf-sps-classroom-section { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0; }
.ccaf-sps-classroom { display: grid; gap: var(--s-3); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius-lg); border-block-start: 3px solid var(--c-green); background: var(--surface-2); }
.ccaf-sps-classroom h2 { margin: var(--s-1) 0 0; font-size: var(--fs-3); color: var(--heading); }
.ccaf-sps-classroom__when { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0; font-weight: 700; font-size: var(--fs-1); color: var(--heading); }
.ccaf-sps-classroom__time { font-weight: 600; font-size: var(--fs-0); color: var(--text-muted); }
.ccaf-sps-classroom__title { margin: 0; font-size: var(--fs-1); }
.ccaf-sps-classroom__title a { color: var(--text); text-decoration-color: var(--border-strong); }
.ccaf-sps-classroom .ccaf-actions { margin-block-start: var(--s-2); }
.ccaf-sps-join-note, .ccaf-sps-msg { margin: 0; }
.ccaf-sps-cal__topic { margin: 0 0 var(--s-2); font-size: var(--fs-1); color: var(--text); }

.ccaf-sps-progress { display: grid; gap: var(--s-2); }
.ccaf-sps-progress__line { margin: 0; font-weight: 700; font-size: var(--fs-1); color: var(--heading); }
.ccaf-sps-progress__bar { block-size: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.ccaf-sps-progress__bar span { display: block; block-size: 100%; border-radius: inherit; background: var(--c-green); }
.ccaf-sps-progress .ccaf-hint { margin: 0; }

.ccaf-sps-lessons { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--border); }
.ccaf-sps-lessons > li { border-block-end: 1px solid var(--border); scroll-margin-top: 6rem; }
.ccaf-sps-lessons__skip { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: var(--s-1) var(--s-4); padding: var(--s-3) 0; color: var(--text-muted); }
.ccaf-sps-lesson summary { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr auto; gap: var(--s-1) var(--s-4); align-items: baseline; padding: var(--s-3) 0; cursor: pointer; list-style: none; }
.ccaf-sps-lesson summary::-webkit-details-marker { display: none; }
.ccaf-sps-lesson summary time { font-weight: 600; }
.ccaf-sps-lesson__name { display: grid; gap: 2px; }
.ccaf-sps-lesson__n { font-size: var(--fs--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ccaf-sps-lesson__t { font-weight: 700; color: var(--heading); }
.ccaf-sps-lesson summary::after { content: "+"; grid-column: 3; grid-row: 1; font-weight: 700; color: var(--link); }
.ccaf-sps-lesson details[open] > summary::after { content: "–"; }
.ccaf-sps-lesson summary .ccaf-status { grid-column: 2; justify-self: start; }
.ccaf-sps-lesson.is-past .ccaf-sps-lesson__t { color: var(--text); font-weight: 600; }
.ccaf-sps-lesson.is-next summary time, .ccaf-sps-lesson.is-next .ccaf-sps-lesson__n { color: var(--c-green); }
.ccaf-sps-lesson__body { display: grid; gap: var(--s-2); padding: 0 0 var(--s-4); }
@media (min-width: 640px) { .ccaf-sps-lesson__body { padding-inline-start: calc(min(16rem, 30%) + var(--s-4)); } }
.ccaf-sps-lesson__body p { margin: 0; }
.ccaf-sps-lesson__label { font-weight: 700; color: var(--heading); }
.ccaf-sps-lesson__materials { margin: 0; padding-inline-start: 1.2em; }
.ccaf-sps-lesson summary:focus-visible { outline: 3px solid var(--focus, var(--c-yellow)); outline-offset: 2px; }
@media (max-width: 639px) {
	.ccaf-sps-lesson summary, .ccaf-sps-lessons__skip { grid-template-columns: 1fr auto; }
	.ccaf-sps-lesson summary time { grid-column: 1; }
	.ccaf-sps-lesson summary::after { grid-column: 2; grid-row: 1; }
	.ccaf-sps-lesson__name, .ccaf-sps-lesson summary .ccaf-status { grid-column: 1 / -1; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ccaf-sps-classroom { border-color: var(--c-yellow); } }
:root[data-theme="dark"] .ccaf-sps-classroom { border-color: var(--c-yellow); }

/* 0.7.3 · SPS "Class time" box on the calendar: the weekly time stated plainly. */
.ccaf-sps-classtime { margin-block: var(--s-5); padding: var(--s-4) var(--s-5); border-inline-start: 4px solid var(--c-green); background: var(--surface-2); border-radius: var(--radius-lg); }
.ccaf-sps-classtime__when { margin: var(--s-1) 0 0; font-size: var(--fs-3); font-weight: 700; color: var(--heading); }
.ccaf-sps-classtime__local { margin: var(--s-1) 0 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ccaf-sps-classtime { border-color: var(--c-yellow); } }
:root[data-theme="dark"] .ccaf-sps-classtime { border-color: var(--c-yellow); }
