/*
 * Greenbelt — design tokens & site shell.
 *
 * THE RULE THIS FILE EXISTS TO ENFORCE: Greenbelt is this catalogue's first
 * nonprofit theme — every call to action is genuinely charitable in shape
 * (.gift-panel / .tier-card / .vol-card below), never a commercial
 * "purchase" or "pricing table" framing. A warm parchment base, deep
 * forest-green structural/text color (not black — organic, not corporate),
 * ONE warm amber/marigold accent (dappled canopy light) used sparingly.
 * Lighter and warmer than Aspect's palette, and a genuinely different hue
 * family (forest green vs. terracotta) despite both being light themes.
 */

:root {
	--bg: #f8f4e6;
	--bg-2: #fdfaf1;
	--bg-deep: #efe7cd;
	--bg-card: #fffdf6;
	--surface: rgba(28, 46, 31, 0.045);
	--surface-strong: rgba(28, 46, 31, 0.08);
	--line: rgba(28, 46, 31, 0.14);
	--line-soft: rgba(28, 46, 31, 0.085);

	--text: #1c2e1f;
	--text-soft: #3d4f3c;
	/* Darkened from an initial lighter pass after a measured (not eyeballed)
	   contrast check found --text-faint/--text-dim fell to 4.48:1 and
	   2.98:1 against --bg-deep (the footer/tinted-section background) —
	   just under and well under WCAG AA's 4.5:1 floor for small text, this
	   catalogue's recurring light-theme contrast trap. These now measure
	   ~5.9:1 and ~4.8:1 against --bg-deep (worst case), higher against
	   --bg and every glass-composited surface. */
	--text-faint: #4c5b47;
	--text-dim: #57685a;

	/* The brief's single warm accent — amber/marigold evoking dappled
	   sunlight through canopy. Used sparingly: CTAs, active state, price
	   figures, the Living Map's warm glow core. --amber-deep is used for
	   small bold text (eyebrows, links) since small text needs the full
	   4.5:1 WCAG floor, which --amber alone falls short of on this
	   background — measured, not eyeballed (see verification notes). */
	--amber: #b8791f;
	--amber-deep: #8c5c17;
	--amber-rgb: 184, 121, 31;
	--amber-tint: #f3e3c2;

	/* Forest-green structural tone, deeper than --text, used for solid CTA
	   buttons and section tints so the palette reads organic/woodland
	   rather than leaning entirely on the amber accent. */
	--forest: #2c4b30;
	--forest-deep: #1c3320;

	/* Functional status tones (preserve protection status), not brand
	   accents — kept within the woodland hue family but differentiated by
	   hue/lightness so they read as UI signal. White text on each measures
	   at or above 4.5:1 (checked, not eyeballed). */
	--status-protected: #3a6339;
	--status-easement: #6a6a2e;
	--status-priority: #8a5222;

	--font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--font-sans: 'Karla', -apple-system, 'Segoe UI', sans-serif;

	--fs-1: 1rem;
	--fs-2: 1.2rem;
	--fs-3: 1.44rem;
	--fs-4: 1.75rem;
	--fs-5: 2.2rem;
	--fs-6: clamp(2.1rem, 1.2rem + 4vw, 3.4rem);
	--fs-7: clamp(2.3rem, 1rem + 5.6vw, 4.6rem);

	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 16px;
	--sp-4: 24px;
	--sp-5: 40px;
	--sp-6: 64px;
	--sp-7: 96px;
	--sp-8: 144px;

	--section-pad: clamp(56px, 5vw + 64px, 128px);

	--radius: 14px;
	--radius-sm: 8px;
	--radius-lg: 22px;

	--shadow-sm: 0 2px 10px rgba(30, 38, 20, 0.06);
	--shadow-md: 0 10px 34px rgba(30, 38, 20, 0.10);
	--shadow-lg: 0 22px 60px rgba(30, 38, 20, 0.14);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                           */
/* ---------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0 0 var(--sp-3);
	color: var(--text);
}
h1 { font-size: var(--fs-7); }
h2 { font-size: var(--fs-6); }
h3 { font-size: var(--fs-4); }
h4 { font-size: var(--fs-3); }
p { margin: 0 0 var(--sp-3); color: var(--text-soft); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--sp-4); }
.wrap--narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--sp-4); }

.eyebrow {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	/* Small bold text needs the full 4.5:1 ratio — --amber-deep measures
	   ~5.6:1 against the parchment background (checked, not eyeballed). */
	color: var(--amber-deep);
	margin: 0 0 var(--sp-2);
}

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--text); color: var(--bg); padding: var(--sp-2) var(--sp-3);
	border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
	padding: 13px 26px;
	border-radius: 999px;
	border: 1.5px solid var(--line);
	background: transparent;
	color: var(--text);
	font-weight: 700;
	font-size: 0.94rem;
	letter-spacing: 0.01em;
	transition: transform 0.35s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--text); }
.btn--solid { background: var(--forest); border-color: var(--forest); color: #fdf9ee; }
.btn--solid:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn--amber { background: var(--amber); border-color: var(--amber); color: #2a1c04; }
.btn--amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #fdf9ee; }
.btn--ghost { border-color: transparent; padding-left: 4px; padding-right: 4px; }
.btn--sm { padding: 9px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---------------------------------------------------------------------- */
/* Glass — light-theme "paper glass": translucent warm-white panel. Text  */
/* colour is always set explicitly (never inherited faint-on-faint) so    */
/* contrast against the panel stays high regardless of what's behind it   */
/* — the light-theme contrast trap this catalogue has flagged before.     */
/* ---------------------------------------------------------------------- */

.glass {
	background: rgba(255, 253, 246, 0.74);
	-webkit-backdrop-filter: blur(18px) saturate(1.12);
	backdrop-filter: blur(18px) saturate(1.12);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	color: var(--text);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.glass:hover { border-color: rgba(28, 46, 31, 0.22); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.glass--solid { background: var(--bg-card); }
.glass--static:hover { transform: none; }

/* ---------------------------------------------------------------------- */
/* Header                                                                 */
/* ---------------------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 100;
	margin: var(--sp-3) var(--sp-4) 0;
	border-radius: 999px;
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
	padding: 10px var(--sp-4) 10px 22px;
}
.brand {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.01em;
	display: flex; flex-direction: column; line-height: 1.1;
}
.brand__tag { font-family: var(--font-sans); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.nav { display: flex; }
.nav ul { display: flex; gap: var(--sp-5); }
.nav a { font-weight: 600; font-size: 0.94rem; position: relative; padding: 6px 0; }
.nav a::after {
	content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--amber);
	transition: right 0.35s var(--ease);
}
.nav a:hover::after, .nav a.current-menu-item::after { right: 0; }
.nav-toggle {
	display: none; background: none; border: 1.5px solid var(--line); border-radius: 999px;
	width: 42px; height: 42px; align-items: center; justify-content: center; font-size: 1.1rem;
}
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

@media (max-width: 900px) {
	.nav { position: fixed; inset: 84px var(--sp-4) auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--sp-4); transform: translateY(-14px); opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
	.nav ul { flex-direction: column; gap: var(--sp-3); }
	.nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
	.nav-toggle { display: inline-flex; }
	.header-actions .btn--amber span { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */

.hero { padding: clamp(48px, 6vw, 96px) 0 var(--sp-6); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-7); align-items: center; }
.hero h1 { margin-bottom: var(--sp-4); }
.hero__lede { font-size: 1.18rem; max-width: 48ch; }
.hero__actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__stats { display: flex; gap: var(--sp-6); margin-top: var(--sp-6); flex-wrap: wrap; }
.hero__stat-num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-4); color: var(--forest); }
.hero__stat-label { font-size: 0.84rem; color: var(--text-faint); }

@media (max-width: 940px) {
	.hero__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
	.hero__media { order: -1; aspect-ratio: 16/10; }
}

/* ---------------------------------------------------------------------- */
/* Section headers / stat rows                                           */
/* ---------------------------------------------------------------------- */

.page-head { padding: var(--sp-7) 0 var(--sp-5); }
.page-head__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.page-head__intro { max-width: 62ch; }
.archive-intro { font-size: 1.05rem; }
.page-head__stats { display: flex; gap: var(--sp-5); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-4); color: var(--forest); }
.stat-label { font-size: 0.8rem; color: var(--text-faint); }
.breadcrumb { font-size: 0.85rem; color: var(--text-faint); margin-bottom: var(--sp-3); }
.breadcrumb a { color: var(--text-faint); text-decoration: underline; }
.breadcrumb a:hover { color: var(--amber-deep); }
.page-head__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 21/8; margin-top: var(--sp-5); }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }

.section-head { max-width: 62ch; margin-bottom: var(--sp-6); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.about-stats { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.about-stats__num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-4); color: var(--forest); }
.about-stats__label { font-size: 0.85rem; color: var(--text-faint); }

.section-tinted { background: var(--bg-deep); }

/* ---------------------------------------------------------------------- */
/* Impact stats strip (accountability figures, not vanity marketing)     */
/* ---------------------------------------------------------------------- */

.impact-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
.impact-item { padding: var(--sp-5) var(--sp-3); text-align: center; }
.impact-item__num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-5); color: var(--forest); }
.impact-item__label { font-size: 0.82rem; color: var(--text-faint); margin-top: 4px; }
@media (max-width: 1080px) { .impact-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .impact-strip { grid-template-columns: repeat(2, 1fr); } }

.impact-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.impact-gallery__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.impact-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.impact-gallery__item:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .impact-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------- */
/* Preserve / program grid + cards                                        */
/* ---------------------------------------------------------------------- */

.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.p-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.p-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-deep); }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.p-card:hover .p-card__media img { transform: scale(1.06); }
.p-card__media--fallback, .card__media--fallback { width: 100%; height: 100%; background: linear-gradient(140deg, var(--bg-deep), var(--amber-tint)); }
.p-badge {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	padding: 6px 13px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
	color: #fdf9ee; background: var(--status-protected);
}
.p-badge--easement { background: var(--status-easement); }
.p-badge--priority { background: var(--status-priority); }
.p-card__body { padding: var(--sp-4); flex: 1; display: flex; flex-direction: column; }
.p-card__eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber-deep); margin-bottom: 4px; }
.p-card__title { font-size: 1.1rem; margin-bottom: 6px; }
.p-card__excerpt { font-size: 0.88rem; color: var(--text-faint); margin-bottom: var(--sp-3); flex: 1; }
.p-card__stats { display: flex; gap: var(--sp-4); font-size: 0.86rem; color: var(--text-soft); margin-bottom: 6px; }
.p-card__stats strong { color: var(--text); }
.p-card__program { font-size: 0.8rem; color: var(--text-faint); margin: 0; padding-top: var(--sp-2); border-top: 1px solid var(--line-soft); }

.p-grid__empty { text-align: center; padding: var(--sp-7) 0; font-size: 1.1rem; color: var(--text-faint); }

@media (max-width: 1080px) { .p-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .p-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Generic card grid (journal / search / 404)                            */
/* ---------------------------------------------------------------------- */

.grid { display: grid; gap: var(--sp-4); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber-deep); padding: var(--sp-4) var(--sp-4) 0; }
.card__title { padding: 6px var(--sp-4) 0; font-size: 1.12rem; }
.card__excerpt { padding: 0 var(--sp-4) var(--sp-4); font-size: 0.92rem; color: var(--text-faint); margin: 0; }

/* ---------------------------------------------------------------------- */
/* Program card                                                           */
/* ---------------------------------------------------------------------- */

.n-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.n-card { display: grid; grid-template-columns: 1fr; overflow: hidden; padding: 0; }
.n-card__media { aspect-ratio: 16/9; overflow: hidden; }
.n-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.n-card:hover .n-card__media img { transform: scale(1.05); }
.n-card__body { padding: var(--sp-4); }
.n-card__excerpt { font-size: 0.92rem; }
.n-card__meta { display: flex; gap: var(--sp-4); font-size: 0.84rem; font-weight: 700; color: var(--amber-deep); }
@media (max-width: 780px) { .n-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Single preserve/program: detail head / gallery / spec sheet            */
/* ---------------------------------------------------------------------- */

.detail-head { padding: var(--sp-5) 0 var(--sp-6); }
.detail-head__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }

.gallery { display: grid; grid-template-columns: 2.2fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-6); align-items: stretch; }
.gallery--2up { grid-template-columns: 1fr 1fr; }
.gallery__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 320px; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumbs { display: grid; grid-template-rows: repeat(3, 1fr); gap: var(--sp-3); }
.gallery__thumb { border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; display: block; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery__thumb.is-active { border-color: var(--amber); }
@media (max-width: 900px) {
	.gallery { grid-template-columns: 1fr; }
	.gallery__main { aspect-ratio: 4/3; min-height: 0; }
	.gallery__thumbs { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
}

.spec-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.spec-sheet__row { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); gap: var(--sp-3); }
.spec-sheet__row:nth-child(2n) { border-right: none; }
.spec-sheet__row dt { color: var(--text-faint); font-weight: 600; font-size: 0.9rem; margin: 0; }
.spec-sheet__row dd { margin: 0; font-weight: 700; color: var(--text); text-align: right; }
@media (max-width: 640px) { .spec-sheet { grid-template-columns: 1fr; } .spec-sheet__row { border-right: none; } }

.entry-content { font-size: 1.05rem; line-height: 1.75; }
.entry-content p { color: var(--text-soft); }
.entry-content h2 { margin-top: var(--sp-6); }

.threat-note { padding: var(--sp-4); border-left: 3px solid var(--status-priority); background: var(--amber-tint); border-radius: var(--radius-sm); font-size: 0.92rem; }
.threat-note strong { color: var(--text); }

/* ---------------------------------------------------------------------- */
/* Living Map — the signature widget                                     */
/* ---------------------------------------------------------------------- */

.living-map { padding: var(--sp-6) 0; }
.living-map__panel { padding: var(--sp-5); }
.living-map__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.living-map__title { margin: 0; }
.living-map__note { max-width: 52ch; font-size: 0.95rem; margin: 0; }

.living-map__stage { display: grid; grid-template-columns: 2.4fr 1fr; gap: var(--sp-5); align-items: stretch; }
.living-map__canvas-wrap {
	position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10;
	background: linear-gradient(160deg, #eef2df 0%, #d8e2c3 55%, #c7d5ae 100%);
	box-shadow: var(--shadow-md);
}
.living-map__canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.living-map__status-line {
	position: absolute; left: 18px; bottom: 18px; z-index: 2;
	background: rgba(28, 46, 31, 0.72); color: #fdf9ee;
	padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	max-width: calc(100% - 36px);
}
.living-map__replay {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	background: rgba(253, 249, 238, 0.85); border: 1px solid rgba(28,46,31,0.18);
	border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 0.8rem; color: var(--text);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.living-map__replay:hover { background: #fff; }

.living-map__side { display: flex; flex-direction: column; gap: var(--sp-4); }
.map-legend { display: flex; flex-direction: column; gap: var(--sp-3); }
.map-legend__item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-soft); }
.map-legend__swatch { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.map-legend__swatch--protected { background: radial-gradient(circle at 35% 35%, #f3d68a, var(--status-protected)); }
.map-legend__swatch--easement { background: radial-gradient(circle at 35% 35%, #e7dfa0, var(--status-easement)); }
.map-legend__swatch--priority { background: transparent; border: 2px dashed var(--status-priority); }
.map-legend__swatch--corridor { background: none; border-top: 3px solid var(--status-protected); border-radius: 0; width: 18px; height: 0; margin-top: 9px; }
.living-map__hint { font-size: 0.8rem; color: var(--text-dim); }
.living-map__cta { margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.living-map__cta p { font-size: 0.88rem; margin-bottom: var(--sp-3); }

@media (max-width: 900px) { .living-map__stage { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Forms                                                                  */
/* ---------------------------------------------------------------------- */

.grn-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.grn-form input[type="text"], .grn-form input[type="email"], .grn-form select, .grn-form textarea {
	background: var(--bg-card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	padding: 13px 16px; color: var(--text); width: 100%;
}
.grn-form input:focus, .grn-form select:focus, .grn-form textarea:focus { border-color: var(--amber); }
.grn-form textarea { resize: vertical; min-height: 90px; }
.grn-form__status { font-weight: 700; min-height: 1.4em; }
.grn-form__status.is-success { color: var(--status-protected); }
.grn-form__status.is-error { color: var(--status-priority); }
.grn-form__row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.grn-form__row > * { flex: 1 1 200px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-soft); }
.checkbox-row input { width: auto; }

/* ---------------------------------------------------------------------- */
/* Give page — donation flow                                             */
/* ---------------------------------------------------------------------- */

.gift-panel { padding: var(--sp-5); }
.gift-toggle { display: inline-flex; background: var(--bg-deep); border-radius: 999px; padding: 4px; margin-bottom: var(--sp-4); }
.gift-toggle button { flex: 1; padding: 9px 22px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; color: var(--text-faint); background: none; border: none; }
.gift-toggle button.is-active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-sm); }

.gift-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.gift-amount { padding: var(--sp-3); border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg-card); text-align: center; transition: border-color 0.25s var(--ease), background 0.25s var(--ease); }
.gift-amount__num { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--forest); }
.gift-amount__impact { font-size: 0.74rem; color: var(--text-faint); margin-top: 4px; line-height: 1.35; }
.gift-amount.is-active { border-color: var(--amber); background: var(--amber-tint); }
.gift-amount:hover { border-color: var(--amber); }
.gift-amount--custom { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-2); text-align: left; cursor: default; }
.gift-amount--custom label { font-weight: 700; font-size: 0.85rem; color: var(--text-faint); white-space: nowrap; }
.gift-amount--custom input { border: none; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--forest); width: 100%; padding: 4px; }
@media (max-width: 560px) { .gift-amounts { grid-template-columns: repeat(2, 1fr); } }

.tribute-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; margin: var(--sp-2) 0; }
.tribute-fields { display: none; flex-direction: column; gap: var(--sp-3); padding: var(--sp-3); background: var(--bg-deep); border-radius: var(--radius); margin-bottom: var(--sp-3); }
.tribute-fields.is-open { display: flex; }

.gift-summary { padding: var(--sp-5); }
.gift-summary__figure { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-5); color: var(--forest); }
.gift-summary__note { font-size: 0.9rem; }
.legacy-block { padding: var(--sp-5); }

/* ---------------------------------------------------------------------- */
/* Financial transparency breakdown                                      */
/* ---------------------------------------------------------------------- */

.fin-breakdown { display: flex; flex-direction: column; gap: var(--sp-4); }
.fin-row__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: var(--sp-3); }
.fin-row__label { font-weight: 700; color: var(--text); }
.fin-row__pct { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--forest); }
.fin-bar { height: 14px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; }
.fin-bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--forest), var(--amber)); width: 0%; transition: width 1.1s var(--ease); }
.fin-row__note { font-size: 0.86rem; color: var(--text-faint); margin-top: 6px; margin-bottom: 0; }

/* ---------------------------------------------------------------------- */
/* Membership tiers — recognition levels, not a pricing table            */
/* ---------------------------------------------------------------------- */

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: stretch; }
.tier-card { padding: var(--sp-5); display: flex; flex-direction: column; }
.tier-card--featured { border-color: var(--amber); box-shadow: var(--shadow-md); position: relative; }
.tier-card--featured::before {
	content: 'Most Chosen'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
	background: var(--amber); color: #2a1c04; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 5px 14px; border-radius: 999px;
}
.tier-card__name { font-size: 1.25rem; margin-bottom: 2px; }
.tier-card__amount { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-4); color: var(--forest); }
.tier-card__period { font-size: 0.82rem; color: var(--text-faint); font-weight: 600; }
.tier-card__summary { font-size: 0.9rem; margin: var(--sp-3) 0; }
.tier-card__benefits { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-4); flex: 1; }
.tier-card__benefits li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--text-soft); align-items: flex-start; }
.tier-card__benefits li::before { content: '✓'; color: var(--forest); font-weight: 800; flex: none; }
@media (max-width: 1080px) { .tier-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ---------------------------------------------------------------------- */
/* Volunteer opportunities                                                */
/* ---------------------------------------------------------------------- */

.vol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.vol-card { padding: var(--sp-4); cursor: pointer; text-align: left; width: 100%; border: 1px solid var(--line-soft); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.vol-card.is-selected { border-color: var(--amber); box-shadow: var(--shadow-md); }
.vol-card__cadence { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber-deep); margin-bottom: 4px; }
.vol-card__name { font-size: 1.1rem; margin-bottom: 6px; }
.vol-card__summary { font-size: 0.88rem; margin: 0; }
@media (max-width: 780px) { .vol-grid { grid-template-columns: 1fr; } }

.legacy-cta { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; justify-content: space-between; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line-soft); padding: var(--sp-7) 0 var(--sp-5); margin-top: var(--sp-7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: var(--sp-3); }
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--amber-deep); }
.footer-grid p { font-size: 0.92rem; }
.footer-legal { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); font-size: 0.82rem; color: var(--text-dim); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Comments                                                                */
/* ---------------------------------------------------------------------- */

.comments-area { padding: var(--sp-6) 0; }
.comment-list > li { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-soft); }
/* Scoped to text-like input types + textarea — a bare "input" selector
   here would also catch the checkbox and submit-button inputs WP core's
   comment_form() prints, stretching the cookie-consent checkbox's
   clickable box to width:100% (a real bug this caught: a near-invisible
   full-width checkbox hit-target that also pushed the page into
   horizontal overflow on mobile, found via computed-width scanning, not
   by eye — a checkbox rendered at its native ~13px size looks completely
   normal even when its actual box is 390px wide). */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	background: var(--bg-card); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; margin-bottom: var(--sp-3); color: var(--text);
}
.comment-form input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--forest);
	background: var(--forest); color: #fdf9ee; font-weight: 700; font-size: 0.94rem;
	margin-top: var(--sp-2); cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.comment-form input[type="checkbox"] { width: auto; margin-right: 8px; vertical-align: middle; }
.comment-form-cookies-consent { display: flex; align-items: center; font-size: 0.9rem; color: var(--text-faint); }

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll — full-element visibility thresholds only (thin-line  */
/* IntersectionObserver markers are the fragile pattern this catalogue    */
/* has flagged before).                                                   */
/* ---------------------------------------------------------------------- */

[data-reveal] { opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="up"] { transform: translateY(28px); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------- */
/* Misc: CTA band, filter pills                                          */
/* ---------------------------------------------------------------------- */

.cta-band { padding: var(--sp-7) 0; text-align: center; }
.cta-band__inner { padding: var(--sp-7) var(--sp-5); max-width: 780px; margin: 0 auto; }
.cta-band .btn { margin-top: var(--sp-4); }
.cta-band__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-4); }

.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pills a { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 0.85rem; font-weight: 700; color: var(--text-soft); }
.filter-pills a:hover, .filter-pills a.is-active { border-color: var(--amber); color: var(--amber-deep); background: var(--amber-tint); }

/* ---------------------------------------------------------------------- */
/* Reusable responsive two-column split — every ad-hoc inline               */
/* grid-template-columns in this theme's templates uses this instead, so   */
/* there is exactly one place that defines the mobile collapse breakpoint. */
/* An inline style's grid-template-columns cannot be overridden by a       */
/* stylesheet media query (inline specificity always wins), which is       */
/* exactly the bug class this replaces: a two-column inline grid with no   */
/* class-based escape hatch caused real horizontal overflow at 390px,      */
/* caught by checking computed grid-template-columns width instead of     */
/* trusting how a cropped mobile screenshot looked at a glance.            */
/* ---------------------------------------------------------------------- */
.split-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-6); align-items: start; }
.split-2--even { grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
@media (max-width: 860px) {
	.split-2, .split-2--even { grid-template-columns: 1fr; gap: var(--sp-5); }
}
