/* ==========================================================================
   YVE Zambia — main stylesheet
   Colour tokens are printed inline by the Customizer (see inc/customizer.php)
   so staff can change brand colours without touching this file.
   ========================================================================== */

:root {
	--primary: #0F6E56;
	--primary-dark: #0A4D3E;
	--primary-soft: rgba(15, 110, 86, .08);
	--accent: #E67E22;
	--accent-dark: #C8641A;
	--leaf: #27AE60;

	--text: #17242B;
	--text-light: #55666F;
	--text-muted: #8A9AA3;
	--surface: #FFFFFF;
	--surface-alt: #F4F7F5;
	--surface-deep: #EAF0EC;
	--border: #DCE4DE;

	--success: #1E8E4E;
	--danger: #C0392B;

	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 20px;

	--shadow-sm: 0 1px 2px rgba(16, 40, 33, .06), 0 1px 3px rgba(16, 40, 33, .05);
	--shadow: 0 4px 14px rgba(16, 40, 33, .08);
	--shadow-lg: 0 18px 40px -12px rgba(16, 40, 33, .22);

	--wrap: 1180px;
	--gap: clamp(1.25rem, 3vw, 2rem);

	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.yve-dark {
	--text: #ECF2EF;
	--text-light: #B3C2BB;
	--text-muted: #8FA098;
	--surface: #16211D;
	--surface-alt: #101917;
	--surface-deep: #1D2A25;
	--border: #2C3B34;
	--primary-soft: rgba(56, 178, 143, .14);
	color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--text);
	margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.075rem; }

p { margin: 0 0 1.1rem; color: var(--text-light); }
ul, ol { color: var(--text-light); }

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--accent); }

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

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wrap--narrow { max-width: 780px; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--alt { background: var(--surface-alt); }
.section--deep { background: var(--surface-deep); }

.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p { font-size: 1.05rem; margin-bottom: 0; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
	display: inline-block;
	font-family: var(--font-display);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: .75rem;
}

.lede { font-size: 1.125rem; color: var(--text-light); }

/* ---------- Skip link + top bar ---------- */
.topbar {
	background: var(--primary-dark);
	color: rgba(255, 255, 255, .85);
	font-size: .85rem;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; padding-block: .5rem; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; }
.topbar__social { display: flex; gap: .85rem; }

/* ---------- Header / navigation ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .85rem; }

.site-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.site-brand img,
.site-brand .custom-logo { max-height: 74px; width: auto; height: auto; }
.site-brand__link { display: block; line-height: 0; }
.site-brand__logo { max-height: 74px; width: auto; }

/* The logo artwork sits on white, so in dark mode it gets its own light chip
   rather than being filtered — that keeps the green and orange true. */
body.yve-dark .site-brand img,
body.yve-dark .site-brand .custom-logo {
	background: #fff;
	padding: 6px 10px;
	border-radius: 10px;
}

.footer-logo { display: inline-block; line-height: 0; margin-bottom: 1rem; }
.footer-logo img {
	max-width: 260px; height: auto;
	background: #fff; padding: 8px 12px; border-radius: 10px;
}
.site-brand__mark {
	flex: none;
	width: 42px; height: 42px;
	display: grid; place-items: center;
	border-radius: 12px;
	background: linear-gradient(140deg, var(--primary), var(--leaf));
	color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.site-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.site-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.site-brand__tag { font-size: .74rem; color: var(--text-muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30ch; }

.nav-toggle {
	display: none;
	align-items: center; gap: .5rem;
	background: var(--primary); color: #fff;
	border: 0; border-radius: var(--radius-sm);
	padding: .6rem .9rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle__bars span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }

.main-nav ul { display: flex; align-items: center; gap: clamp(.7rem, 1.3vw, 1.35rem); list-style: none; margin: 0; padding: 0; }
.main-nav a {
	display: block;
	font-size: .89rem; font-weight: 500; color: var(--text);
	padding: .4rem 0; border-bottom: 2px solid transparent;
	white-space: nowrap;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { color: var(--primary); border-bottom-color: var(--accent); }

.main-nav li { position: relative; }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px;
	flex-direction: column; align-items: stretch; gap: 0;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); padding: .5rem; display: none; z-index: 50;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: .5rem .65rem; border-bottom: 0; border-radius: var(--radius-sm); white-space: normal; }
.main-nav .sub-menu a:hover { background: var(--primary-soft); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle {
	background: var(--surface-alt); border: 1px solid var(--border); color: var(--text);
	width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
	display: grid; place-items: center; font-size: 1rem; transition: background .2s ease;
}
.theme-toggle:hover { background: var(--primary-soft); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--font-display); font-size: .95rem; font-weight: 600; line-height: 1.2;
	padding: .85rem 1.5rem; border: 2px solid transparent; border-radius: 999px;
	cursor: pointer; text-align: center; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .65); color: #fff; background: rgba(255, 255, 255, .08); }
.btn--ghost:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row--center { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	color: #fff;
	background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, #14856a 100%);
	overflow: hidden;
	isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(150deg, rgba(10, 77, 62, .93), rgba(15, 110, 86, .82));
}
.hero--has-media::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(circle at 80% 20%, rgba(230, 126, 34, .28), transparent 55%);
}
.hero__pattern { position: absolute; inset: 0; z-index: -1; opacity: .18; background-repeat: repeat; }
.hero .wrap { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .5rem; }
.hero__subtitle { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 600; color: #FFD9B0; margin-bottom: 1rem; }
.hero__text { color: rgba(255, 255, 255, .92); font-size: 1.075rem; max-width: 60ch; margin-bottom: 1.75rem; }
.hero .btn-row { margin-bottom: 0; }

/* Page banner (inner pages) */
.page-banner {
	background: linear-gradient(135deg, var(--primary-dark), var(--primary));
	color: #fff;
	padding-block: clamp(2.5rem, 6vw, 4.25rem);
	position: relative; overflow: hidden;
}
.page-banner h1 { color: #fff; margin-bottom: .35rem; }
.page-banner p { color: rgba(255, 255, 255, .9); margin-bottom: 0; max-width: 65ch; }
.breadcrumbs { font-size: .85rem; color: rgba(255, 255, 255, .78); margin-bottom: .85rem; }
.breadcrumbs a { color: rgba(255, 255, 255, .78); }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 680px) { .grid--stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .grid--stats { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; } }
.grid--partners { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(15, 110, 86, .35); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body > *:last-child { margin-bottom: 0; }
.card__title { margin-bottom: .5rem; font-size: 1.15rem; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--primary); }
.card__meta { font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.card__more { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .92rem; }

.card__thumb { position: relative; aspect-ratio: 16 / 10; background: var(--surface-deep); overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__thumb img { transform: scale(1.04); }

/* Photo placeholder — visible, tasteful, tells staff what to upload */
.ph {
	position: relative;
	display: grid; place-items: center;
	background:
		repeating-linear-gradient(135deg, var(--primary-soft) 0 12px, transparent 12px 24px),
		var(--surface-deep);
	color: var(--text-muted);
	text-align: center;
	padding: 1rem;
	min-height: 140px;
}
.ph__label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.ph__icon { font-size: 1.6rem; display: block; margin-bottom: .35rem; opacity: .7; }

/* Programme / pillar cards */
.pillar { position: relative; padding: 1.75rem; }
.pillar__icon {
	width: 52px; height: 52px; border-radius: 14px;
	display: grid; place-items: center; font-size: 1.5rem;
	background: var(--primary-soft); color: var(--primary);
	margin-bottom: 1rem;
}
.pillar__impact {
	margin-top: auto; padding-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--primary);
	border-top: 1px dashed var(--border);
}

/* Stats */
.stat {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 1.5rem 1rem; text-align: center; box-shadow: var(--shadow-sm);
}
.stat__number {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05;
	color: var(--accent); margin-bottom: .35rem;
}
.stat__label { font-size: .875rem; color: var(--text-light); line-height: 1.45; }
.stats-band { background: var(--primary-dark); color: #fff; }
.stats-band .stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.stats-band .stat__number { color: #FFC98A; }
.stats-band .stat__label { color: rgba(255, 255, 255, .85); }

/* Badges */
.badge {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .3rem .75rem; border-radius: 999px;
	font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	background: var(--primary-soft); color: var(--primary);
}
.badge--ongoing { background: rgba(39, 174, 96, .14); color: #1E8E4E; }
.badge--completed { background: rgba(85, 102, 111, .14); color: var(--text-light); }
.badge--flagship { background: rgba(230, 126, 34, .16); color: var(--accent-dark); }
.badge--restricted { background: rgba(192, 57, 43, .12); color: var(--danger); }

/* Key results chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.chips li {
	background: var(--surface-alt); border: 1px solid var(--border);
	border-radius: 999px; padding: .35rem .85rem; font-size: .82rem; font-weight: 600; color: var(--text-light);
}

/* Team */
.team-card { text-align: center; }
.team-card .card__thumb { aspect-ratio: 1; }
.team-card__role { color: var(--accent); font-weight: 600; font-size: .88rem; margin-bottom: .5rem; }
.team-card__bio { font-size: .9rem; }
.team-card__links { display: flex; justify-content: center; gap: .75rem; margin-top: .75rem; font-size: .85rem; }

/* Partners */
.partner {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	min-height: 96px; display: grid; place-items: center; padding: 1rem;
	text-align: center; font-weight: 600; font-size: .88rem; color: var(--text-light);
	transition: border-color .2s ease, transform .2s ease;
}
.partner:hover { border-color: var(--primary); transform: translateY(-2px); }
.partner img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: all .25s ease; }
.partner:hover img { filter: none; opacity: 1; }

/* Split feature */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }

/* CTA band */
.cta-band {
	background: linear-gradient(120deg, var(--primary), var(--leaf));
	color: #fff; border-radius: var(--radius-lg);
	padding: clamp(2rem, 5vw, 3.25rem);
	text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 60ch; margin-inline: auto; }

/* Prose (single posts / pages) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }
.prose blockquote {
	margin: 1.75rem 0; padding: 1rem 1.5rem;
	border-left: 4px solid var(--accent); background: var(--surface-alt);
	border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.05rem;
}
.prose ul, .prose ol { padding-left: 1.35rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .65rem .85rem; text-align: left; }
.prose th { background: var(--surface-alt); }

/* Article meta + sharing */
.entry-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share__label { font-weight: 600; font-size: .9rem; }
.share a {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px;
	font-size: .85rem; font-weight: 600; color: var(--text-light);
}
.share a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filters a {
	padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border);
	font-size: .88rem; font-weight: 600; color: var(--text-light); background: var(--surface);
}
.filters a:hover, .filters a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.form-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--text); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: .95rem; color: var(--text);
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
	padding: .75rem .9rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field__hint { font-size: .8rem; color: var(--text-muted); }
.hp-field { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.notice { padding: .95rem 1.15rem; border-radius: var(--radius-sm); border-left: 4px solid; margin-bottom: 1.25rem; font-size: .95rem; }
.notice--success { background: rgba(30, 142, 78, .1); border-color: var(--success); color: var(--success); }
.notice--error { background: rgba(192, 57, 43, .1); border-color: var(--danger); color: var(--danger); }
.notice--info { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

.form-panel {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm);
}

/* Contact detail list */
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ci {
	flex: none; width: 40px; height: 40px; border-radius: 10px;
	display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.05rem;
}
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }

/* Accordion (Hub sections / FAQs) */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.accordion + .accordion { margin-top: .75rem; }
.accordion summary {
	cursor: pointer; padding: 1.1rem 1.35rem; font-family: var(--font-display); font-weight: 600;
	display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.35rem; color: var(--primary); line-height: 1; }
.accordion[open] summary::after { content: "–"; }
.accordion__body { padding: 0 1.35rem 1.35rem; }
.accordion__body > *:last-child { margin-bottom: 0; }

/* Resource list */
.resource {
	display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
	padding: 1.15rem 1.35rem; border: 1px solid var(--border); border-radius: var(--radius);
	background: var(--surface); margin-bottom: .85rem;
}
.resource h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.resource p { margin: 0; font-size: .9rem; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 3rem; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 .75rem;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	font-weight: 600; font-size: .9rem; color: var(--text-light); background: var(--surface);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255, 255, 255, .82); margin-top: auto; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: #FFC98A; }
.site-footer h3, .site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-grid p, .footer-grid li { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .16);
	padding-block: 1.25rem; font-size: .85rem;
	display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center;
}
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social-links a {
	width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center;
	border: 1px solid rgba(255, 255, 255, .28); font-size: .82rem; font-weight: 700;
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-newsletter input {
	width: 100%; padding: .7rem .9rem; border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: .9rem;
}
.footer-newsletter input::placeholder { color: rgba(255, 255, 255, .55); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--text-muted); }
.hidden { display: none !important; }
.editor-hint {
	background: rgba(230, 126, 34, .1); border: 1px dashed var(--accent);
	color: var(--accent-dark); border-radius: var(--radius-sm);
	padding: .8rem 1rem; font-size: .875rem; margin-bottom: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--surface); border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-lg); display: none; max-height: 75vh; overflow-y: auto;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem clamp(1rem, 4vw, 2rem) 1.25rem; }
	.main-nav li { border-bottom: 1px solid var(--border); }
	.main-nav li:last-child { border-bottom: 0; }
	.main-nav a { padding: .85rem 0; border-bottom: 0; white-space: normal; }
	.main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 .5rem .85rem; min-width: 0; }
	.site-header__inner { position: relative; }
	.topbar__contact { display: none; }
	.site-brand img,
	.site-brand .custom-logo,
	.site-brand__logo { max-height: 46px; }
}

@media (max-width: 600px) {
	.btn { width: 100%; }
	.btn-row { flex-direction: column; }
	.split--reverse .split__media { order: 0; }
	.resource { flex-direction: column; align-items: flex-start; }
}

@media print {
	.site-header, .site-footer, .topbar, .btn, .share, .nav-toggle { display: none !important; }
	body { color: #000; background: #fff; }
}

/* ---------- Accessibility helpers (mirrored from style.css) ---------- */
.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 {
	background: var(--surface);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	clip: auto !important;
	clip-path: none;
	color: var(--primary);
	display: block;
	font-size: 1rem;
	font-weight: 700;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 14px 22px;
	top: 8px;
	width: auto;
	z-index: 100000;
}
