/*
 * KTM Drive — main stylesheet.
 * Keeps the original identity (logo, KTM blue + orange, Josefin Sans) in a modern layout.
 */

/* =Tokens
----------------------------------------------- */
:root {
	--blue: #2d6db6;
	--blue-deep: #1b4a80;
	--blue-ink: #0f2c4d;
	--blue-soft: #eaf1fa;
	--orange: #f28305;
	--orange-deep: #c96a00;
	--green: #37b914;
	--ink: #1d2733;
	--muted: #5a6573;
	--line: #e6e2da;
	--paper: #fbf9f5;
	--surface: #fff;

	--font-display: "Josefin Sans", "Avenir Next", Arial, sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

	--step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
	--step-0: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
	--step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
	--step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
	--step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
	--step-4: clamp(2.3rem, 1.7rem + 3vw, 4rem);

	--space: clamp(1rem, 0.8rem + 1vw, 1.5rem);
	--section: clamp(3rem, 2rem + 5vw, 6rem);
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(15, 44, 77, 0.06), 0 8px 24px -12px rgba(15, 44, 77, 0.18);
	--shadow-lift: 0 2px 4px rgba(15, 44, 77, 0.06), 0 22px 40px -18px rgba(15, 44, 77, 0.32);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--header-h: 76px;
}

/* =Base
----------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
img { display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--blue-ink);
	margin: 0 0 0.5em;
	text-wrap: balance;
}
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 1000;
	padding: 0.7rem 1.2rem;
	border-radius: var(--radius-sm);
	background: var(--blue-ink);
	color: #fff;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.narrow { max-width: 780px; }
.section { padding-block: var(--section); }

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

.eyebrow {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	font-size: var(--step--1);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--orange-deep);
}

/* =Buttons
----------------------------------------------- */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.7em 1.4em 0.6em;
	border: 2px solid var(--blue);
	border-radius: 999px;
	background: var(--blue);
	color: #fff;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.button:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(27, 74, 128, 0.7); }
.button:active { transform: scale(0.97); }
.button .icon { transition: transform 300ms var(--ease); }
.button:hover .icon { transform: translateX(3px); }
.button-ghost { background: transparent; color: var(--blue); }
.button-ghost:hover { background: var(--blue-soft); color: var(--blue-deep); border-color: var(--blue-deep); }
.button-light { background: #fff; border-color: #fff; color: var(--blue-ink); }
.button-light:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-family: var(--font-display);
	font-weight: 700;
	text-decoration: none;
}
.text-link .icon { transition: transform 300ms var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* =Upcoming event bar
----------------------------------------------- */
.next-event {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.55rem 16px;
	background: var(--orange);
	color: #fff;
	font-size: var(--step--1);
	text-align: center;
	text-decoration: none;
}
.next-event strong { font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.next-event:hover { background: var(--orange-deep); color: #fff; }

/* =Header
----------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 249, 245, 0.86);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 200ms ease, box-shadow 300ms ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(15, 44, 77, 0.5); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.site-logo { position: relative; display: block; flex: none; width: clamp(130px, 14vw, 168px); }
.site-logo img { width: 100%; height: auto; }
.site-logo .logo-green { position: absolute; inset: 0; opacity: 0; transition: opacity 250ms ease; }
.site-logo:hover .logo-green,
.site-logo:focus-visible .logo-green { opacity: 1; }

.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav .menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.65rem 0.75rem 0.5rem;
	border-radius: var(--radius-sm);
	color: var(--blue-ink);
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 150ms ease, color 150ms ease;
}
.primary-nav .menu > li > a::after {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.2rem;
	height: 2px;
	border-radius: 2px;
	background: var(--orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 300ms var(--ease);
}
.primary-nav .menu > li > a:hover { background: var(--blue-soft); color: var(--blue); }
.primary-nav .menu > .current-menu-item > a::after,
.primary-nav .menu > .current-menu-ancestor > a::after,
.primary-nav .menu > .current_page_parent > a::after,
.primary-nav .menu > li > a:hover::after { transform: scaleX(1); }
.primary-nav .icon-chevron { width: 0.9em; height: 0.9em; transform: rotate(90deg); transition: transform 250ms var(--ease); }
.primary-nav li:hover > a .icon-chevron,
.primary-nav li:focus-within > a .icon-chevron { transform: rotate(-90deg); }

.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 200px;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-lift);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 200ms ease, transform 250ms var(--ease), visibility 0s linear 250ms;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 200ms ease, transform 250ms var(--ease), visibility 0s;
}
.primary-nav .sub-menu a {
	display: block;
	padding: 0.55rem 0.8rem 0.45rem;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	text-decoration: none;
}
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a { background: var(--blue-soft); color: var(--blue); }

.header-search { position: relative; display: flex; align-items: center; flex: none; }
.header-search .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.header-search input {
	width: 132px;
	height: 42px;
	padding: 0 14px 0 38px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 0.95rem;
	transition: width 350ms var(--ease), border-color 150ms ease, box-shadow 150ms ease;
}
.header-search input:focus { width: 210px; border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px var(--blue-soft); }

.menu-toggle { display: none; }

@media (max-width: 960px) {
	.header-inner { gap: 0.75rem; }
	.header-search { order: 2; margin-left: auto; }
	.header-search input { width: 44px; padding-right: 0; cursor: pointer; }
	.header-search input::placeholder { color: transparent; }
	.header-search input:focus { width: min(60vw, 220px); padding-right: 14px; cursor: text; }
	.primary-nav { order: 3; margin-left: 0; }
	.menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
		height: 44px;
		padding: 0 0.9rem;
		border: 1px solid var(--line);
		border-radius: 999px;
		background: var(--surface);
		color: var(--blue-ink);
		font-family: var(--font-display);
		font-weight: 700;
		font-size: 0.95rem;
		cursor: pointer;
	}
	.menu-toggle-bars,
	.menu-toggle-bars::before,
	.menu-toggle-bars::after {
		display: block;
		width: 16px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform 300ms var(--ease), background-color 150ms ease;
	}
	.menu-toggle-bars { position: relative; }
	.menu-toggle-bars::before,
	.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.menu-toggle-bars::before { top: -5px; }
	.menu-toggle-bars::after { top: 5px; }
	.is-open .menu-toggle-bars { background: transparent; }
	.is-open .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
	.is-open .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

	.primary-nav .menu {
		position: fixed;
		inset: var(--header-h) 0 0;
		z-index: 40;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1rem clamp(16px, 4vw, 32px) 2rem;
		overflow-y: auto;
		background: var(--paper);
		border-top: 1px solid var(--line);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 200ms ease, transform 300ms var(--ease), visibility 0s linear 300ms;
	}
	.admin-bar .primary-nav .menu { top: calc(var(--header-h) + 46px); }
	.primary-nav.is-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 300ms var(--ease), visibility 0s; }
	.primary-nav .menu > li { border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { padding: 1rem 0 0.85rem; font-size: 1.25rem; border-radius: 0; }
	.primary-nav .menu > li > a:hover { background: none; }
	.primary-nav .menu > li > a::after { left: 0; right: auto; width: 2rem; bottom: 0.5rem; }
	.primary-nav .icon-chevron { display: none; }
	.primary-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0.75rem 1rem;
		border: 0;
		box-shadow: none;
		background: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.primary-nav .sub-menu a { font-size: 1.05rem; padding-left: 0; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

/* =Hero slider
----------------------------------------------- */
.hero {
	position: relative;
	display: grid;
	min-height: clamp(440px, 72vh, 680px);
	background: var(--blue-ink);
	color: #fff;
	overflow: hidden;
}
.hero-slide {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	align-items: flex-end;
	opacity: 0;
	visibility: hidden;
	transition: opacity 900ms ease, visibility 0s linear 900ms;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 900ms ease, visibility 0s; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(10, 30, 54, 0.82) 0%, rgba(10, 30, 54, 0.45) 45%, rgba(10, 30, 54, 0.05) 80%),
		linear-gradient(0deg, rgba(10, 30, 54, 0.6) 0%, rgba(10, 30, 54, 0) 45%);
}
.hero-copy { position: relative; padding-top: 6rem; padding-bottom: 7rem; }
.hero-copy > * { max-width: 34rem; }
.hero .eyebrow { color: #ffc27a; }
.hero-title { margin-bottom: 0.4em; color: #fff; font-size: var(--step-4); font-weight: 700; }
.hero-text { margin-bottom: 1.6rem; color: rgba(255, 255, 255, 0.88); font-size: var(--step-1); line-height: 1.45; }
.hero-slide.is-active .hero-copy > * { animation: hero-in 800ms var(--ease) both; }
.hero-slide.is-active .hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-slide.is-active .hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-slide.is-active .hero-copy > :nth-child(4) { animation-delay: 240ms; }
@keyframes hero-in {
	from { opacity: 0; transform: translateY(14px); }
}

.hero-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}
.hero-controls > * { pointer-events: auto; }
.hero-dots { display: flex; gap: 0.5rem; }
.hero-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: width 350ms var(--ease), background-color 200ms ease;
}
.hero-dots button:hover { background: rgba(255, 255, 255, 0.8); }
.hero-dots button.active { width: 32px; background: var(--orange); }
.hero-arrows { display: flex; gap: 0.5rem; }
.hero-arrows button {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	cursor: pointer;
	transition: background-color 200ms ease, transform 300ms var(--ease);
}
.hero-arrows button:hover { background: rgba(255, 255, 255, 0.28); }
.hero-arrows button:active { transform: scale(0.94); }
.hero-arrows .slide-previous .icon { transform: rotate(180deg); }

/* =Mission band
----------------------------------------------- */
.mission { padding-block: var(--section); background: var(--surface); border-bottom: 1px solid var(--line); }
.mission-inner { max-width: 860px; text-align: center; }
.mission-title { font-size: var(--step-3); }
.mission-text { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.mission-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

/* =Sections + cards
----------------------------------------------- */
.latest { padding-block: var(--section); }
.section-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-title { margin: 0; font-size: var(--step-3); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--blue-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.card-date { margin-bottom: 0.4rem; color: var(--muted); font-size: var(--step--1); }
.card-title { margin-bottom: 0.5rem; font-size: var(--step-1); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; }
.card-excerpt { margin-bottom: 1rem; color: var(--muted); font-size: 1rem; }
.card-more {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin-top: auto;
	color: var(--blue);
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
}
.card-more .icon { transition: transform 300ms var(--ease); }
.card:hover .card-more .icon { transform: translateX(4px); }

/* =Page header
----------------------------------------------- */
.page-header { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-header + .container.narrow,
.page-header + .entry-hero { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-title { margin: 0; font-size: var(--step-4); }
.page-header .entry-meta { margin: 1rem 0 0; color: var(--muted); font-size: var(--step--1); }
.entry-meta .sep { margin: 0 0.5em; }
.entry-meta a { color: inherit; }
.entry-hero { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.entry-hero img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* =Prose (post and page content)
----------------------------------------------- */
.prose { font-size: clamp(1.1rem, 1.04rem + 0.25vw, 1.22rem); line-height: 1.75; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: 1.6em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.4em; font-size: var(--step-1); }
.prose img { height: auto; border-radius: var(--radius-sm); }
.prose .aligncenter { margin: 2rem auto; }
.prose .alignright { float: right; max-width: 45%; margin: 0.4rem 0 1rem 1.5rem; }
.prose .alignleft { float: left; max-width: 45%; margin: 0.4rem 1.5rem 1rem 0; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text { color: var(--muted); font-size: var(--step--1); text-align: center; }
.prose .wp-video { max-width: 100% !important; margin-bottom: 1.5rem; }
.prose .wp-video video { width: 100%; border-radius: var(--radius-sm); }
.prose iframe[src*="youtube.com"], .prose iframe[src*="vimeo.com"] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--radius-sm);
	background: #000;
}
.prose blockquote {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--orange);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--surface);
	font-style: italic;
}
.prose ul, .prose ol { padding-left: 1.4em; }
.prose hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
.entry-content { display: flow-root; }

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 3rem;
	padding: 1.25rem 0;
	border-block: 1px solid var(--line);
}
.share-title { margin: 0; font-family: var(--font-display); font-weight: 700; }
.share-links,
.social-links { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.share-links a,
.social-links a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
	transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--ease);
}
.share-links a:hover,
.social-links a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0 0; }
.entry-tags a {
	padding: 0.2rem 0.75rem;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: var(--step--1);
	text-decoration: none;
}
.entry-tags a:hover { border-color: var(--blue); color: var(--blue); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 3rem var(--section); }
.post-nav-link {
	display: block;
	padding: 1rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--blue-ink);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color 200ms ease, transform 300ms var(--ease);
}
.post-nav-link:hover { border-color: var(--blue); transform: translateY(-2px); }
.post-nav-link span { display: block; margin-bottom: 0.3rem; color: var(--muted); font-size: var(--step--1); font-weight: 400; }
.post-nav-link.next { grid-column: 2; text-align: right; }
@media (max-width: 600px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-link.next { grid-column: auto; }
}

/* =Pagination + empty state
----------------------------------------------- */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--blue-ink);
	font-family: var(--font-display);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .page-numbers.current { background: var(--orange); border-color: var(--orange); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }
.empty-state { max-width: 560px; margin: 0 auto; text-align: center; }
.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; }
.search-form .search-field {
	width: 100%;
	height: 48px;
	padding: 0 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font: inherit;
}
.search-form .search-submit {
	height: 48px;
	padding: 0 1.4rem;
	border: 0;
	border-radius: 999px;
	background: var(--blue);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	cursor: pointer;
}

/* =Who are we
----------------------------------------------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.member {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.member-photo {
	width: 96px;
	height: 96px;
	margin-bottom: 1rem;
	overflow: hidden;
	border-radius: 50%;
	background: var(--blue-soft);
	box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--blue-soft);
	transition: box-shadow 300ms ease;
}
.member:hover .member-photo { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--orange); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initial { display: grid; place-items: center; height: 100%; color: var(--blue); font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }
.member-name { margin-bottom: 0.6rem; font-size: var(--step-1); }
.member-bio {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	overflow: hidden;
	color: var(--muted);
	font-size: 1rem;
}
.member-bio.is-open { display: block; }
.member-bio p { margin-bottom: 0.8em; }
.member-more {
	margin-top: 0.75rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--blue);
	font-family: var(--font-display);
	font-weight: 700;
	cursor: pointer;
}
.member-more:hover { color: var(--orange-deep); }

/* =How can I help
----------------------------------------------- */
.willing { padding-block: var(--section); }
.willing[hidden] { display: none; }
.willing-card {
	max-width: 640px;
	margin: 0 auto;
	padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
	border-radius: calc(var(--radius) * 1.5);
	background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
	box-shadow: var(--shadow-lift);
	color: #fff;
	text-align: center;
}
.willing-card .eyebrow { color: #ffc27a; }
.willing-title { color: #fff; font-size: var(--step-3); }
.willing-actions { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.willing-actions .button { min-width: 7.5rem; justify-content: center; }
.willing-actions #plz-say-yes { background: var(--orange); border-color: var(--orange); }
.willing-actions #plz-say-yes:hover { background: #fff; border-color: #fff; color: var(--orange-deep); }
.willing-actions #dont-say-no { border-color: rgba(255, 255, 255, 0.6); color: #fff; transition: transform 450ms var(--ease), background-color 200ms ease; }
.willing-actions #dont-say-no:hover { background: rgba(255, 255, 255, 0.12); }
.js .willing-help-hide:not(.is-revealed) { display: none; }
html:not(.js) .willing { display: none; }
.willing-help-hide.is-revealed { animation: reveal 600ms var(--ease) both; }
@keyframes reveal {
	from { opacity: 0; transform: translateY(16px); }
}
.donate {
	margin-block: 3rem var(--section);
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border: 1px solid var(--line);
	border-left: 4px solid var(--orange);
	border-radius: var(--radius);
	background: var(--surface);
}
.donate h2 { font-size: var(--step-2); }
.donate form { margin: 0; }

/* =Galleries
----------------------------------------------- */
.page-gallery .narrow,
.page-plant-gallerys .narrow { max-width: 1180px; }
.page-gallery .entry-content,
.page-plant-gallerys .entry-content { padding-bottom: var(--section); }
#excite-me { color: var(--orange-deep); font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.ktm-gallery { columns: 4 220px; column-gap: 12px; margin: 2rem 0 0; padding: 0; list-style: none; }
.ktm-gallery li { margin: 0 0 12px; break-inside: avoid; }
.ktm-gallery a { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--blue-soft); }
.ktm-gallery img { width: 100%; height: auto; border-radius: 0; transition: transform 700ms var(--ease), filter 300ms ease; }
.ktm-gallery a:hover img { transform: scale(1.04); }

.Collage { columns: 3 260px; column-gap: 14px; margin-top: 2rem; }
.Image_Wrapper {
	position: relative;
	margin: 0 0 14px;
	overflow: hidden;
	border-radius: var(--radius-sm);
	break-inside: avoid;
	box-shadow: var(--shadow);
}
.Image_Wrapper img { width: 100%; height: auto; margin: 0; border-radius: 0; transition: transform 700ms var(--ease); }
.Image_Wrapper:hover img { transform: scale(1.04); }
.Image_Wrapper::after {
	content: attr(data-caption);
	position: absolute;
	inset: auto 0 0;
	padding: 2.5rem 1rem 0.85rem;
	background: linear-gradient(0deg, rgba(10, 30, 54, 0.85), rgba(10, 30, 54, 0));
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.35;
	pointer-events: none;
}

/* =Visitors Scrapbook
----------------------------------------------- */
.notes { columns: 2 340px; column-gap: 1.5rem; }
.note {
	position: relative;
	margin: 0 0 1.5rem;
	padding: 1.75rem 1.75rem 1.4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	break-inside: avoid;
}
.note::before {
	content: "\201C";
	position: absolute;
	top: 0.4rem;
	right: 1.2rem;
	color: var(--blue-soft);
	font-family: Georgia, serif;
	font-size: 5rem;
	line-height: 1;
}
.note-title { position: relative; font-size: var(--step-1); }
.note-title a { color: inherit; text-decoration: none; }
.note-title a:hover { color: var(--blue); }
.note-body { font-size: 1.05rem; }
.note-date { color: var(--muted); font-size: var(--step--1); }

/* =Timeline
----------------------------------------------- */
.timeline-year { position: relative; padding-left: 2rem; border-left: 2px solid var(--line); }
.timeline-year + .timeline-year { padding-top: 1rem; }
.timeline-label {
	display: inline-block;
	margin: 0 0 1rem -3.05rem;
	padding: 0.3rem 0.9rem 0.15rem;
	border-radius: 999px;
	background: var(--orange);
	color: #fff;
	font-size: var(--step-1);
}
.timeline { margin: 0 0 2rem; padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; gap: 1rem; padding: 0.55rem 0; }
.timeline li::before {
	content: "";
	position: absolute;
	left: calc(-2rem - 6px);
	top: 1.05rem;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--surface);
	border: 2px solid var(--blue);
	transition: background-color 200ms ease;
}
.timeline li:hover::before { background: var(--blue); }
.timeline time { flex: none; width: 3.75rem; color: var(--muted); font-size: var(--step--1); padding-top: 0.15rem; }
.timeline a { color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.timeline a:hover { color: var(--blue); text-decoration: underline; }

/* =Footer
----------------------------------------------- */
.site-footer { background: var(--blue-ink); color: rgba(255, 255, 255, 0.75); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.footer-name { margin: 0 0 0.25rem; color: #fff; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; }
.footer-tagline { margin-bottom: 1.25rem; }
.footer-heading { margin-bottom: 0.9rem; color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--step--1); }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: inline-block; padding: 0.25rem 0; color: inherit; text-decoration: none; transition: color 150ms ease, transform 300ms var(--ease); }
.footer-menu a:hover { color: #fff; transform: translateX(3px); }
.footer-mail { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 600; }
.footer-mail:hover { color: #ffc27a; }
.site-footer .social-links a { background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-footer .social-links a:hover { background: var(--orange); }
.footer-base { padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--step--1); }
.footer-base p { margin: 0; }
@media (max-width: 820px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* =Small screens
----------------------------------------------- */
@media (max-width: 640px) {
	.hero { min-height: 520px; }
	.hero-media::after { background: linear-gradient(0deg, rgba(10, 30, 54, 0.92) 0%, rgba(10, 30, 54, 0.55) 55%, rgba(10, 30, 54, 0.2) 100%); }
	.hero-copy { padding-bottom: 6rem; }
	.hero-controls { bottom: 1.5rem; }
	.prose .alignright,
	.prose .alignleft { float: none; max-width: 100%; margin: 1.5rem auto; }
	.mission { text-align: left; }
	.mission-inner { text-align: left; }
	.mission-actions { justify-content: flex-start; }
}

/* =Reduced motion
----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.hero-media img,
	.hero-slide.is-active .hero-media img { transform: none; }
}
