/* ==========================================================================
   Diocèse de Nkongsamba – main stylesheet
   Mobile-first · WCAG 2.2 AA · no external fonts (fast on slow networks)
   ========================================================================== */

:root {
	/* Brand colours (taken from the existing site) */
	--green-950: #102410;
	--green-900: #1b3b1b;
	--green-800: #234923;
	--green-700: #2c582c;
	--green-100: #e3ece0;
	--green-50: #f1f5ef;
	--purple-700: #6a1b9a;
	--purple-800: #551380;
	--purple-100: #f1e6f7;
	--gold-300: #f5da73;
	--gold-500: #d9b440;
	--gold-700: #7a5c00;
	--crimson: #c11032;

	/* Neutrals */
	--ink: #1c221d;
	--muted: #4a564d;
	--bg: #faf8f2;
	--surface: #ffffff;
	--border: #d9ded6;

	/* Type */
	--font-serif: Georgia, "Times New Roman", Times, serif;
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
	--step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	--step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem);
	--step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.875rem);
	--step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.625rem);
	--step-4: clamp(2.1rem, 1.6rem + 2.6vw, 3.75rem);

	/* Layout */
	--container: 76rem;
	--narrow: 46rem;
	--gutter: clamp(1rem, 4vw, 2rem);
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgb(16 36 16 / 0.06), 0 8px 24px rgb(16 36 16 / 0.08);
	--shadow-lg: 0 2px 4px rgb(16 36 16 / 0.08), 0 18px 40px rgb(16 36 16 / 0.14);
	--stripe: linear-gradient(90deg, var(--gold-300) 0%, var(--crimson) 50%, var(--purple-700) 100%);
	--focus: 3px solid var(--purple-700);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--font-sans);
	font-size: var(--step-0);
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	line-height: 1.2;
	color: var(--green-900);
	margin: 0 0 0.5em;
	font-weight: 700;
	text-wrap: balance;
}
p, ul, ol, dl, figure, blockquote { margin: 0 0 1.1em; }
a { color: var(--purple-700); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--purple-800); text-decoration-thickness: 2px; }
.icon { width: 1.25em; height: 1.25em; flex: none; max-width: none; }

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--gold-300); color: var(--green-950);
	padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
	font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; outline: 3px solid var(--green-950); outline-offset: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .page-banner :focus-visible, .partners :focus-visible {
	outline-color: var(--gold-300);
}
#main:focus { outline: none; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.no-js .js-only { display: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.layout { display: grid; gap: 2.5rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 64em) {
	.has-sidebar .layout { grid-template-columns: minmax(0, 1fr) 20rem; }
}

/* ---------- Liturgical stripe ---------- */
.liturgical-stripe { height: 5px; background: var(--stripe); }

/* ---------- Header ---------- */
.site-header {
	background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
	color: #fff;
	position: relative;
	z-index: 50;
}
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding-block: 0.85rem;
}
.site-branding { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.custom-logo-link { display: block; flex: none; background: rgb(255 255 255 / 0.08); border-radius: 12px; padding: 4px; }
.custom-logo { width: auto; max-height: 64px; }
.logo-fallback { width: 56px; height: 56px; display: grid; place-items: center; color: var(--gold-300); }
.logo-fallback .icon { width: 30px; height: 30px; }
.site-title {
	margin: 0; font-family: var(--font-serif); font-weight: 700;
	font-size: clamp(1.05rem, 0.9rem + 1vw, 1.6rem);
	letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.15;
}
.site-title a { color: #fff; text-decoration: none; }
.site-title a:hover { color: var(--gold-300); }
.site-motto { margin: 0.2rem 0 0; font-family: var(--font-serif); font-style: italic; font-size: var(--step--1); color: var(--gold-300); }
@media (max-width: 30em) { .site-motto { display: none; } }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }

/* Search */
.search-form { display: flex; align-items: stretch; width: 100%; max-width: 22rem; }
.search-field {
	flex: 1; min-width: 0; min-height: 44px;
	padding: 0.55rem 1rem; font: inherit; font-size: 1rem;
	color: var(--ink); background: #fff;
	border: 2px solid var(--border); border-right: 0;
	border-radius: 999px 0 0 999px;
}
.search-field::placeholder { color: #5f6b62; opacity: 1; }
.search-submit {
	min-width: 48px; min-height: 44px; display: grid; place-items: center;
	border: 0; border-radius: 0 999px 999px 0; cursor: pointer;
	background: var(--purple-700); color: #fff;
}
.search-submit:hover { background: var(--purple-800); }
.site-header .search-field { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.35); color: #fff; }
.site-header .search-field::placeholder { color: #e2ebe0; }
.site-header .search-field:focus { background: rgb(255 255 255 / 0.18); }
.header-search { display: none; width: 18rem; }
@media (min-width: 64em) { .header-search { display: block; } }

/* Menu toggle */
.menu-toggle {
	display: inline-flex; align-items: center; gap: 0.4rem;
	min-height: 44px; padding: 0.5rem 0.9rem;
	background: rgb(255 255 255 / 0.1); color: #fff;
	border: 2px solid rgb(255 255 255 / 0.4); border-radius: 999px;
	font: inherit; font-weight: 600; cursor: pointer;
}
.menu-toggle:hover { background: rgb(255 255 255 / 0.2); }
.menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
.menu-toggle .icon { display: block; }
.no-js .menu-toggle { display: none; }
@media (min-width: 64em) { .menu-toggle { display: none; } }

/* Navigation (mobile first) */
.main-navigation { background: var(--green-950); border-top: 1px solid rgb(255 255 255 / 0.08); }
.js .main-navigation { display: none; }
.js .main-navigation.is-open { display: block; }
.main-navigation .container { padding-block: 0.5rem 1.25rem; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation .menu > li { border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.main-navigation li { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.main-navigation a {
	flex: 1; display: block; padding: 0.8rem 0.25rem;
	color: #fff; text-decoration: none; font-weight: 600;
}
.main-navigation a:hover { color: var(--gold-300); }
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation [aria-current="page"] { color: var(--gold-300); }
.submenu-toggle {
	width: 44px; height: 44px; display: grid; place-items: center;
	background: transparent; color: #fff; border: 0; border-radius: 8px; cursor: pointer;
}
.submenu-toggle:hover { background: rgb(255 255 255 / 0.1); }
.submenu-toggle .icon { transition: transform 0.2s; }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.main-navigation .sub-menu { width: 100%; padding-left: 1rem; border-left: 2px solid var(--gold-500); margin-bottom: 0.5rem; }
.js .main-navigation .sub-menu { display: none; }
.js .main-navigation .is-open > .sub-menu { display: block; }
.main-navigation .sub-menu a { font-weight: 500; padding-block: 0.6rem; }
.mobile-search { padding-top: 1rem; }
.mobile-search .search-field { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.35); color: #fff; }
.mobile-search .search-field::placeholder { color: #e2ebe0; }
.mobile-search .search-form { max-width: none; }

@media (min-width: 64em) {
	.js .main-navigation, .main-navigation { display: block; }
	.main-navigation .container { padding-block: 0; }
	.main-navigation .menu { display: flex; flex-wrap: wrap; gap: 0.25rem; }
	.main-navigation .menu > li { border: 0; flex-wrap: nowrap; }
	.main-navigation .menu > li > a {
		padding: 0.95rem 0.75rem; font-size: 0.95rem; position: relative;
	}
	.main-navigation .menu > li > a::after {
		content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.55rem;
		height: 2px; background: var(--gold-300); transform: scaleX(0); transition: transform 0.2s;
	}
	.main-navigation .menu > li > a:hover::after,
	.main-navigation .menu > .current-menu-item > a::after,
	.main-navigation .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
	.main-navigation .menu > li.menu-item-has-children > a { padding-right: 0.1rem; }
	.submenu-toggle { width: 32px; height: 44px; }
	.main-navigation .sub-menu {
		position: absolute; top: 100%; left: 0; z-index: 60;
		min-width: 15rem; padding: 0.5rem; margin: 0;
		background: #fff; border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
	}
	.no-js .main-navigation .sub-menu { display: none; }
	.no-js .main-navigation li:hover > .sub-menu,
	.no-js .main-navigation li:focus-within > .sub-menu { display: block; }
	.main-navigation .sub-menu li { display: flex; }
	.main-navigation .sub-menu a { color: var(--ink); padding: 0.6rem 0.75rem; border-radius: 6px; }
	.main-navigation .sub-menu a:hover { background: var(--green-50); color: var(--green-900); }
	.main-navigation .sub-menu .current-menu-item > a { color: var(--purple-700); }
	.main-navigation .sub-menu .submenu-toggle { color: var(--ink); }
	.main-navigation .sub-menu .sub-menu { top: 0; left: 100%; }
	.mobile-search { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 48px; padding: 0.75rem 1.4rem;
	font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
	border: 2px solid transparent; border-radius: 999px; cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }
.btn--primary { background: var(--purple-700); color: #fff; }
.btn--primary:hover { background: var(--purple-800); color: #fff; box-shadow: var(--shadow); }
.btn--gold { background: var(--gold-300); color: var(--green-950); }
.btn--gold:hover { background: #fff; color: var(--green-950); }
.btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.75); }
.btn--ghost:hover { background: #fff; color: var(--green-900); }
.chip {
	min-height: 44px; padding: 0.5rem 1.1rem;
	font: inherit; font-weight: 600; cursor: pointer;
	color: var(--green-900); background: #fff;
	border: 2px solid var(--green-700); border-radius: 999px;
}
.chip:hover { background: var(--green-50); }
.chip[aria-pressed="true"] { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform 0.2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	color: #fff; text-align: center; padding-bottom: 3rem;
	background:
		radial-gradient(ellipse at 20% 0%, rgb(245 218 115 / 0.14), transparent 55%),
		radial-gradient(ellipse at 90% 100%, rgb(106 27 154 / 0.35), transparent 55%),
		linear-gradient(135deg, var(--green-950) 0%, var(--green-800) 60%, var(--green-700) 100%);
}
.hero__slides, .hero__slide { position: absolute; inset: 0; z-index: -2; }
.hero__slide { opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero--has-image::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgb(16 36 16 / 0.72) 0%, rgb(16 36 16 / 0.82) 60%, rgb(16 36 16 / 0.92) 100%);
}
.hero__inner { padding-block: clamp(4rem, 12vw, 8.5rem); max-width: 56rem; }
.hero__eyebrow {
	display: inline-block; margin-bottom: 1.25rem; padding: 0.35rem 1rem;
	font-family: var(--font-serif); font-style: italic; font-size: var(--step--1);
	color: var(--gold-300); border: 1px solid rgb(245 218 115 / 0.5); border-radius: 999px;
}
.hero__title {
	color: #fff; font-size: var(--step-4);
	letter-spacing: 0.05em; text-transform: uppercase;
	text-shadow: 0 2px 18px rgb(0 0 0 / 0.35);
}
.hero__text { font-size: var(--step-1); max-width: 40rem; margin-inline: auto; color: #f1f5ef; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 2rem; }
.hero__controls { display: flex; justify-content: center; gap: 0.5rem; padding-bottom: 1.25rem; }
.hero__controls[hidden] { display: none; }
.hero__btn {
	width: 44px; height: 44px; display: grid; place-items: center;
	background: rgb(0 0 0 / 0.35); color: #fff;
	border: 2px solid rgb(255 255 255 / 0.6); border-radius: 50%; cursor: pointer;
}
.hero__btn:hover { background: rgb(0 0 0 / 0.6); }
.hero__btn [hidden] { display: none; }

/* ---------- Sections ---------- */
.section__header { max-width: 44rem; margin-bottom: 2.25rem; }
.section__header--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.section__eyebrow, .card__eyebrow {
	display: inline-flex; align-items: center; gap: 0.4rem;
	margin-bottom: 0.5rem;
	font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--purple-700);
}
.section__title { font-size: var(--step-3); }
.section__title::after {
	content: ""; display: block; width: 64px; height: 4px; margin-top: 0.6rem;
	border-radius: 4px; background: var(--stripe);
}
.section__intro { font-size: var(--step-1); color: var(--muted); }

/* Pillars */
.section--pillars { position: relative; z-index: 2; }
.section--overlap { padding-top: 0; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.section--overlap .pillars { margin-top: -3rem; }
@media (min-width: 48em) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	padding: 1.75rem; border-top: 4px solid var(--green-700);
}
.pillar:nth-child(2) { border-top-color: var(--purple-700); }
.pillar:nth-child(3) { border-top-color: var(--gold-500); }
.pillar__icon {
	width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 1rem;
	background: var(--green-50); color: var(--green-800); border-radius: 50%;
}
.pillar:nth-child(2) .pillar__icon { background: var(--purple-100); color: var(--purple-700); }
.pillar:nth-child(3) .pillar__icon { background: #fbf3d4; color: var(--gold-700); }
.pillar__title { font-size: var(--step-1); }
.pillar p { margin: 0; color: var(--muted); }

/* Worship: readings + mass times */
.section--worship { background: var(--green-50); }
.worship-grid { display: grid; gap: 1.5rem; }
@media (min-width: 64em) { .worship-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.5rem); }
.card__title { font-size: var(--step-2); }
.card--mass { background: var(--green-900); color: #fff; }
.card--mass .card__title { color: #fff; }
.card--mass .card__eyebrow { color: var(--gold-300); }
.mass__place { font-family: var(--font-serif); font-style: italic; color: var(--gold-300); }
.mass-times { margin: 1.25rem 0; }
.mass-times__row {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
	padding: 0.8rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.18);
}
.mass-times dt { font-weight: 700; }
.mass-times dd { margin: 0; color: #e3ece0; }
.mass__note { font-size: var(--step--1); color: #d3ded0; margin: 0; }

/* Readings */
.readings__switcher { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.readings__meta { margin-bottom: 1rem; }
.readings__date { margin: 0; font-weight: 700; color: var(--green-800); }
.readings__day { margin: 0; font-family: var(--font-serif); font-style: italic; color: var(--muted); }
.readings__date:empty, .readings__day:empty { display: none; }
.readings__status { color: var(--muted); }
.readings__status.is-error {
	padding: 1rem; border-radius: var(--radius-sm);
	background: #fdecef; color: #7d0a20; border-left: 4px solid var(--crimson);
}
.readings__status.is-error a { color: #7d0a20; font-weight: 700; }
.readings[aria-busy="true"] .readings__body { opacity: 0.55; }
.reading { padding-block: 1.25rem; border-top: 1px solid var(--border); }
.reading:first-child { border-top: 0; padding-top: 0; }
.reading__title {
	font-size: 0.875rem; font-family: var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--purple-700); margin-bottom: 0.35rem;
}
.reading__source { margin: 0 0 0.25rem; font-weight: 700; color: var(--green-900); }
.reading__heading { margin: 0 0 0.75rem; font-family: var(--font-serif); font-style: italic; font-size: var(--step-1); color: var(--green-800); }
.reading__text { font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.75; max-width: 70ch; }
.reading__text p { margin-bottom: 0.9em; }
.reading__note { font-style: italic; color: var(--muted); font-size: var(--step--1); }
.reading--g { background: linear-gradient(180deg, #fffdf6, #fff); }
.readings--full .reading { padding-block: 2rem; }
.readings--full .reading--g {
	margin-top: 1rem; padding: 1.75rem; border: 0;
	border-left: 4px solid var(--gold-500); border-radius: var(--radius-sm);
	background: #fffbea;
}
.readings__lang-note { font-size: var(--step--1); color: var(--muted); }
.readings__credit { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }
.readings__credit p { margin: 0 0 0.3rem; }
.readings__credit p:empty { display: none; }
.readings__fallback { padding: 1rem; background: var(--green-50); border-radius: var(--radius-sm); }

/* History & bishop */
.history { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56em) { .history { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.history__text p { color: var(--muted); }
.bishop { margin: 0; text-align: center; }
.bishop__img, .bishop__placeholder {
	width: 100%; max-width: 22rem; aspect-ratio: 4 / 5; object-fit: cover; margin-inline: auto;
	border-radius: var(--radius); box-shadow: var(--shadow-lg);
	border: 6px solid #fff; outline: 2px solid var(--gold-500);
}
.bishop__placeholder { display: grid; place-items: center; background: var(--green-900); color: var(--gold-300); }
.bishop__placeholder .icon { width: 72px; height: 72px; }
.bishop figcaption { margin-top: 1.25rem; }
.bishop__name { display: block; font-family: var(--font-serif); font-size: var(--step-1); font-weight: 700; color: var(--green-900); }
.bishop__role { display: block; color: var(--purple-700); font-weight: 600; }

/* Cards */
.card-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 40em) { .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) {
	.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card-grid > li { display: flex; }

.project-card, .post-card {
	position: relative; display: flex; flex-direction: column; width: 100%;
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
	overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover, .post-card:hover { box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: no-preference) { .project-card:hover, .post-card:hover { transform: translateY(-3px); } }
.project-card:has(.card-link:focus-visible), .post-card:has(.card-link:focus-visible) { outline: 3px solid var(--purple-700); outline-offset: 3px; }
.project-card__media, .post-card__media { aspect-ratio: 16 / 10; background: var(--green-800); overflow: hidden; }
.project-card__media img, .post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__num {
	height: 100%; display: grid; place-items: center;
	font-family: var(--font-serif); font-size: 3rem; color: var(--gold-300);
	background: linear-gradient(135deg, var(--green-900), var(--green-700));
}
.project-card:nth-child(even) .project-card__num { background: linear-gradient(135deg, var(--purple-800), var(--purple-700)); }
.post-card__placeholder {
	height: 100%; display: grid; place-items: center; color: var(--gold-300);
	background: linear-gradient(135deg, var(--green-900), var(--green-700));
}
.post-card__placeholder .icon { width: 48px; height: 48px; }
.project-card__body, .post-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.project-card__title, .post-card__title { font-size: var(--step-1); }
.project-card__body p, .post-card__excerpt { color: var(--muted); font-size: 0.975rem; }
.card-link { color: var(--green-900); text-decoration: none; }
.card-link:hover { color: var(--purple-700); text-decoration: underline; }
@supports selector(:has(*)) { .card-link:focus-visible { outline: none; } }
/* Whole card clickable (link stays the only focus stop). */
.card-link::after { content: ""; position: absolute; inset: 0; }
.project-card__more, .post-card__more {
	margin-top: auto; display: inline-flex; align-items: center; gap: 0.35rem;
	font-weight: 700; color: var(--purple-700);
}
.project-card__more .icon, .post-card__more .icon { width: 1.1em; height: 1.1em; }
.post-card__meta { margin-bottom: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.posted-on { display: inline-flex; align-items: center; gap: 0.35rem; }
.posted-on .icon { width: 1em; height: 1em; }

/* Projects section */
.section--projects { background: var(--surface); }

/* News */
.section--news { background: var(--bg); }

/* Map */
.section--map { background: var(--green-900); color: #fff; }
.section--map .section__title { color: #fff; }
.section--map .section__eyebrow { color: var(--gold-300); }
.section--map .btn--primary { background: var(--gold-300); color: var(--green-950); }
.section--map .btn--primary:hover { background: #fff; }
.map { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56em) { .map { grid-template-columns: 1fr 1.6fr; } }
.map__frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--green-800); }
.map__frame iframe { width: 100%; height: clamp(18rem, 40vw, 26rem); border: 0; }

/* Partners */
.partners { background: var(--green-50); padding-block: 2rem; border-top: 1px solid var(--border); }
.partners__title { font-size: 0.8125rem; font-family: var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 1rem; }
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.partners__list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.25rem;
	background: #fff; color: var(--green-900); font-weight: 700; text-decoration: none;
	border: 1px solid var(--border); border-radius: 999px;
}
.partners__list a:hover { border-color: var(--purple-700); color: var(--purple-700); }
.partners :focus-visible { outline-color: var(--purple-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #e3ece0; }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 3rem; }
@media (min-width: 40em) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-brand { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; margin-bottom: 0.5rem; }
.footer-motto { font-family: var(--font-serif); font-style: italic; color: var(--gold-300); }
.footer-title { font-family: var(--font-sans); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 1rem; }
.footer-links, .contact-list { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.15rem; }
.footer-links a { display: inline-block; padding: 0.35rem 0; color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--gold-300); text-decoration: underline; }
.contact-list li { display: flex; gap: 0.6rem; margin-bottom: 0.85rem; }
.contact-list .icon { color: var(--purple-700); margin-top: 0.2rem; }
.site-footer .contact-list .icon, .section--map .contact-list .icon { color: var(--gold-300); }
.section--map .contact-list { margin-bottom: 1.5rem; }
.contact-list address { font-style: normal; }
.contact-list a { font-weight: 600; }
.site-footer .contact-list a, .section--map .contact-list a { color: #fff; }
.site-footer .contact-list a:hover, .section--map .contact-list a:hover { color: var(--gold-300); }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / 0.12); padding-block: 1.25rem; font-size: 0.875rem; color: #c9d6c6; }
.site-footer__bottom p { margin: 0; }

/* ---------- Inner pages ---------- */
.page-banner {
	background:
		radial-gradient(ellipse at 100% 0%, rgb(106 27 154 / 0.35), transparent 60%),
		linear-gradient(135deg, var(--green-900), var(--green-700));
	color: #fff; padding-block: clamp(2.5rem, 7vw, 4.5rem);
}
.page-banner__title { color: #fff; font-size: var(--step-3); margin: 0; }
.page-banner__subtitle { margin-top: 0.75rem; color: #e3ece0; font-size: var(--step-1); font-family: var(--font-serif); font-style: italic; }
.page-banner__subtitle p { margin: 0; }
.page-banner a { color: var(--gold-300); }
.page-banner .entry-meta { font-family: var(--font-sans); font-style: normal; font-size: var(--step--1); }
.breadcrumbs { font-size: 0.875rem; margin-bottom: 0.75rem; color: #e3ece0; }

.entry { padding-block: clamp(2rem, 5vw, 3.5rem); }
.entry__thumb { margin-bottom: 2rem; }
.entry__thumb img { border-radius: var(--radius); }
.entry-content { font-size: 1.0625rem; }
.entry-content > * { max-width: 72ch; }
.entry--wide .entry-content > * { max-width: none; }
.entry-content h2 { font-size: var(--step-2); margin-top: 1.75em; }
.entry-content h3 { font-size: var(--step-1); margin-top: 1.5em; }
.entry-content blockquote {
	margin-inline: 0; padding: 1rem 1.5rem; border-left: 4px solid var(--gold-500);
	background: var(--surface); font-family: var(--font-serif); font-style: italic; font-size: var(--step-1);
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.6rem; border-bottom: 1px solid var(--border); text-align: left; }
.entry-content .alignwide { max-width: calc(var(--narrow) + 12rem); }
.entry-content .alignfull { max-width: none; }
.wp-block-button__link { border-radius: 999px; background: var(--purple-700); color: #fff; font-weight: 700; padding: 0.75rem 1.4rem; }
.wp-block-image figcaption, .wp-caption-text { font-size: 0.875rem; color: var(--muted); }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.tag-links a { display: inline-block; margin: 0 0.4rem 0.4rem 0; padding: 0.25rem 0.75rem; background: var(--green-50); border-radius: 999px; text-decoration: none; }

.post-navigation .nav-links { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 40em) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; padding: 1rem 1.25rem; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; }
.post-navigation .nav-next { text-align: right; }
.nav-subtitle { display: block; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.nav-title { font-family: var(--font-serif); font-weight: 700; color: var(--green-900); }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.pagination .page-numbers {
	min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
	padding: 0 0.8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.pagination .icon { width: 1em; height: 1em; }

.search-again { margin-bottom: 2rem; }
.search-again .search-form, .no-results .search-form, .entry-content .search-form { max-width: 32rem; }
.no-results { padding: 2rem; background: var(--surface); border-radius: var(--radius); }

/* Widgets */
.widget { background: var(--surface); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.widget-title { font-size: var(--step-1); }
.widget ul { padding-left: 1.1rem; }

/* Comments */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea {
	width: 100%; padding: 0.7rem; font: inherit; border: 2px solid #8a958c; border-radius: var(--radius-sm); background: #fff;
}
.comment-form .submit { min-height: 48px; padding: 0.7rem 1.5rem; background: var(--purple-700); color: #fff; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ==========================================================================
   Page builder: block content, sections, block styles and patterns
   ========================================================================== */
.builder-content { font-size: 1.0625rem; }
.builder-content > *,
.builder-content .nk-section > * { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.builder-content > p, .builder-content > ul, .builder-content > ol, .builder-content > h2, .builder-content > h3 { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.builder-content > .alignfull,
.builder-content > .section, .builder-content > .hero,
.builder-content > .nk-section { max-width: none; padding-inline: 0; }
.builder-content > .alignwide { max-width: calc(var(--container) + 2 * var(--gutter)); }
.builder-content .nk-section > .wp-block-columns,
.builder-content .nk-section > .wp-block-group { padding-inline: var(--gutter); }

/* Sections dropped into a normal (narrow) page break out to full width. */
.entry-content > .section, .entry-content > .hero, .entry-content > .alignfull {
	width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw);
}
.entry-content > .alignwide { width: min(100vw - 2 * var(--gutter), var(--container)); max-width: none; margin-inline: calc(50% - min(50vw - var(--gutter), var(--container) / 2)); }

.nk-section { padding-block: clamp(2.75rem, 6vw, 4.5rem); margin-block: 0; }
.nk-section > :first-child { margin-top: 0; }
.nk-section > :last-child { margin-bottom: 0; }
.nk-bg-creme { background: var(--green-50); }
.nk-bg-blanche { background: var(--surface); }
.nk-bg-verte { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; }
.nk-bg-verte h2, .nk-bg-verte h3 { color: #fff; }
.nk-bg-verte .nk-eyebrow { color: var(--gold-300); }
.nk-bg-verte a { color: var(--gold-300); }
.nk-bg-appel {
	text-align: center;
	background:
		radial-gradient(ellipse at 0% 0%, rgb(245 218 115 / 0.18), transparent 50%),
		linear-gradient(135deg, var(--purple-800), var(--purple-700));
	color: #fff;
}
.nk-bg-appel h2 { color: #fff; font-size: var(--step-3); }
.nk-bg-appel p { max-width: 40rem; margin-inline: auto; color: #f3eaf8; }
.nk-bg-appel .wp-block-buttons { justify-content: center; }

.builder-content h2, .entry-content h2 { font-size: var(--step-3); }
.builder-content h3 { font-size: var(--step-1); }
.nk-eyebrow {
	margin-bottom: 0.4rem !important;
	font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--purple-700);
}
.nk-eyebrow + .wp-block-heading, .nk-eyebrow + h2, .nk-eyebrow + h3 { margin-top: 0 !important; }
.is-style-nk-filet::after {
	content: ""; display: block; width: 64px; height: 4px; margin-top: 0.6rem;
	border-radius: 4px; background: var(--stripe);
}
.has-text-align-center.is-style-nk-filet::after { margin-inline: auto; }

/* Columns */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; align-items: stretch !important; }
.wp-block-column { flex: 1 1 100%; min-width: 0; }
@media (min-width: 48em) { .wp-block-column { flex-basis: 0; flex-grow: 1; } }
.wp-block-column > .wp-block-group { height: 100%; }
.nk-cols-portrait { align-items: center !important; }
@media (min-width: 48em) { .nk-cols-portrait > .wp-block-column:first-child { flex: 0 0 34%; } }

/* Group styles */
.is-style-nk-carte {
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 1.5rem; border-top: 4px solid var(--green-700);
}
.wp-block-column:nth-child(3n+2) > .is-style-nk-carte { border-top-color: var(--purple-700); }
.wp-block-column:nth-child(3n) > .is-style-nk-carte { border-top-color: var(--gold-500); }
.is-style-nk-carte > :last-child { margin-bottom: 0; }
.is-style-nk-carte h3 { margin-top: 0; }
.is-style-nk-carte h3 a { color: var(--green-900); text-decoration: none; }
.is-style-nk-carte h3 a:hover { color: var(--purple-700); text-decoration: underline; }
.nk-bg-verte .is-style-nk-carte { color: var(--ink); }
.nk-bg-verte .is-style-nk-carte h3 { color: var(--green-900); }
.nk-bg-verte .is-style-nk-carte a { color: var(--purple-700); }
.is-style-nk-panneau-vert { background: var(--green-900); color: #fff; padding: 2rem; border-radius: var(--radius); }
.is-style-nk-panneau-vert :is(h2, h3, h4) { color: #fff; }
.is-style-nk-panneau-vert a { color: var(--gold-300); }
.is-style-nk-panneau-violet { background: var(--purple-700); color: #fff; padding: 2rem; border-radius: var(--radius); }
.is-style-nk-panneau-violet :is(h2, h3, h4) { color: #fff; }
.is-style-nk-panneau-violet a { color: var(--gold-300); }
.nk-role { margin-bottom: 0.3rem !important; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-700); }

/* Stats */
.nk-stats { text-align: center; }
.nk-stat { padding: 1.25rem 0.5rem; border-top: 2px solid rgb(245 218 115 / 0.6); }
.nk-stat__number { margin: 0 !important; font-family: var(--font-serif); font-size: var(--step-4); font-weight: 700; line-height: 1.1; color: var(--gold-300); }
.nk-stat__label { margin: 0.4rem 0 0 !important; font-weight: 600; }
.nk-section:not(.nk-bg-verte) .nk-stat__number { color: var(--green-800); }
.nk-section:not(.nk-bg-verte) .nk-stat { border-top-color: var(--gold-500); }
.nk-stat__note { text-align: center; font-size: var(--step--1); opacity: 0.9; }

/* Timeline */
.nk-timeline { list-style: none; padding: 0 0 0 1.5rem; margin-left: 0.5rem; border-left: 3px solid var(--green-100); }
.nk-timeline li { position: relative; padding: 0 0 1.25rem 0.75rem; }
.nk-timeline li::before {
	content: ""; position: absolute; left: calc(-1.5rem - 9px); top: 0.45em;
	width: 15px; height: 15px; border-radius: 50%; background: var(--gold-300); border: 3px solid var(--purple-700);
}
.nk-timeline strong { display: block; font-family: var(--font-serif); font-size: var(--step-1); color: var(--green-800); }

/* Lists with crosses */
.is-style-nk-croix { list-style: none; padding-left: 0; }
.is-style-nk-croix li { position: relative; padding-left: 1.75rem; margin-bottom: 0.6rem; }
.is-style-nk-croix li::before {
	content: ""; position: absolute; left: 0.2rem; top: 0.35em; width: 12px; height: 16px;
	background: linear-gradient(var(--gold-500), var(--gold-500)) center / 3px 100% no-repeat,
		linear-gradient(var(--gold-500), var(--gold-500)) center 30% / 100% 3px no-repeat;
}

/* Quote */
.is-style-nk-parole, .wp-block-quote {
	margin: 1.75rem 0; padding: 1.5rem 1.75rem; border-left: 4px solid var(--gold-500);
	background: #fffbea; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-family: var(--font-serif); font-size: var(--step-1); font-style: italic; color: var(--green-900);
}
.wp-block-quote p:last-of-type { margin-bottom: 0.5rem; }
.wp-block-quote cite { display: block; font-family: var(--font-sans); font-size: 0.875rem; font-style: normal; font-weight: 700; color: var(--purple-700); }

/* Buttons (core) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0.75rem 1.4rem;
	background: var(--purple-700); color: #fff; font-weight: 700; text-decoration: none;
	border: 2px solid transparent; border-radius: 999px;
}
.wp-block-button__link:hover { background: var(--purple-800); color: #fff; }
.is-style-nk-or .wp-block-button__link { background: var(--gold-300); color: var(--green-950); }
.is-style-nk-or .wp-block-button__link:hover { background: #fff; color: var(--green-950); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--purple-700); border-color: currentColor; }
.nk-bg-verte .is-style-outline .wp-block-button__link, .nk-bg-appel .is-style-outline .wp-block-button__link { color: #fff; }

/* Image frame */
.is-style-nk-cadre img { border: 6px solid #fff; outline: 2px solid var(--gold-500); border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Details / FAQ */
.wp-block-details {
	margin-bottom: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.wp-block-details summary {
	cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; min-height: 48px; position: relative;
	font-weight: 700; color: var(--green-900); list-style: none;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
	font-size: 1.5rem; line-height: 1; color: var(--purple-700);
}
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details[open] summary { border-bottom: 1px solid var(--border); }
.wp-block-details > :not(summary) { padding-inline: 1.25rem; }
.wp-block-details > :not(summary):first-of-type { padding-top: 1rem; }

/* Theme blocks inside content */
.nk-block-mass .card--mass { height: 100%; }
.nk-block-bishop .bishop { max-width: 22rem; margin-inline: auto; }
.nk-block-contact .contact-list { margin-bottom: 1rem; }
.builder-content .section .container, .builder-content .hero .container { max-width: var(--container); }

/* Editorial "to complete" notes (only shown to logged-in editors). */
.nk-todo {
	padding: 0.6rem 0.9rem; border-radius: var(--radius-sm);
	background: #fff6c8; border: 1px dashed #8a6d00; color: #4a3b00; font-size: 0.9rem;
}
.nk-source { font-size: 0.875rem; color: var(--muted); margin-top: 1.5rem; }
.nk-bg-verte .nk-source { color: #e3ece0; }

/* Editor previews of theme blocks */
.nk-editor-block .hero__controls { display: none; }

/* ---------- High contrast / forced colours ---------- */
@media (forced-colors: active) {
	.btn, .chip, .menu-toggle, .search-submit, .hero__btn { border: 2px solid ButtonText; }
	.liturgical-stripe, .section__title::after { background: CanvasText; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .partners, .hero__controls, .readings__switcher, .section--map, .skip-link { display: none !important; }
	body { background: #fff; color: #000; }
	.page-banner, .hero { background: none; color: #000; }
	.page-banner__title, .hero__title { color: #000; }
	a { color: #000; }
}
