/* ==========================================================================
   4Alexa
   Flat, warm and poster-like. One typeface (Archivo) used at different
   widths: wide and heavy for headings, normal for reading.
   ========================================================================== */

:root {
	--paper: #f6f3ec;
	--card: #fffdf8;
	--ink: #161616;
	--soft: #5d5a52;
	--line: #ddd6c8;
	--blue: #3a5bd9;
	--blue-dark: #2b45b5;
	--blue-tint: #e3e8fb;
	--yellow: #ffd23f;
	--yellow-dark: #f5c000;
	--coral: #d9472b;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(18px, 4vw, 40px);
	--header-h: 72px;
}

/* Base ------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

html.a4-drawer-open, html.a4-drawer-open body { overflow: hidden; }

[hidden] { display: none !important; }

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

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.05; }

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

.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;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 12px 18px; background: var(--yellow); color: var(--ink); font-weight: 700;
}

.a4-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.a4-wrap--narrow { max-width: 800px; }

.a4-section { padding: clamp(56px, 8vw, 104px) 0; }

.a4-h2 {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	font-weight: 800;
	font-stretch: 115%;
	letter-spacing: -.02em;
}

.a4-meta { margin: 0 0 14px; color: var(--soft); font-weight: 600; }

.a4-prose p { margin: 0 0 1.1em; }
.a4-prose h2 { font-size: 1.8rem; font-stretch: 112%; font-weight: 800; margin-top: 1.6em; }
.a4-prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.a4-prose img { border-radius: 14px; }
.a4-prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--yellow); font-size: 1.25rem; }

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

.a4-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 22px;
	border: 2px solid var(--ink);
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
	font: 700 1rem/1.2 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.a4-btn:hover { color: var(--ink); background: var(--paper); }
.a4-btn:active { transform: translateY(1px); }
.a4-btn--blue, .a4-btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.a4-btn--blue:hover, .a4-btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.a4-btn--yellow { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.a4-btn--yellow:hover { background: var(--yellow-dark); }
.a4-btn--ink { background: var(--ink); color: var(--paper); }
.a4-btn--ink:hover { background: #000; color: #fff; }
.a4-btn--ghost { background: transparent; }
.a4-btn--danger { background: var(--coral); border-color: var(--coral); color: #fff; }
.a4-btn--danger:hover { background: #b93a21; color: #fff; }
.a4-btn--lg { padding: 18px 28px; font-size: 1.1rem; }
.a4-btn--block { display: flex; width: 100%; }

.a4-textlink {
	display: block; margin: 14px auto 0; padding: 4px;
	background: none; border: 0; cursor: pointer;
	color: var(--ink); font: 600 .95rem var(--font);
	text-decoration: underline; text-underline-offset: 3px;
}

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

.a4-header {
	position: sticky; top: 0; z-index: 40;
	background: var(--paper);
	border-bottom: 1.5px solid transparent;
	transition: border-color .2s ease;
}
.a4-header.is-scrolled { border-color: var(--line); }
.admin-bar .a4-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .a4-header { top: 0; } }

.a4-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.a4-header__right { display: flex; align-items: center; gap: 18px; }
.a4-header__right { gap: 10px; }
.a4-btn--sm { padding: 9px 16px; font-size: .95rem; border-radius: 999px; }
@media (max-width: 420px) { .a4-header__donate { padding: 8px 12px; font-size: .88rem; } }

.a4-logo {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--ink); text-decoration: none;
	font-weight: 800; font-stretch: 118%; font-size: 1.45rem; letter-spacing: -.02em;
}
.a4-logo:hover { color: var(--ink); }
.a4-logo__mark { width: 30px; height: 30px; color: var(--blue); }
.custom-logo-link img { max-height: 48px; width: auto; }

.a4-burger {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 9px 14px 9px 16px;
	border: 2px solid var(--ink); border-radius: 999px;
	background: var(--card); color: var(--ink);
	font: 700 .95rem var(--font); cursor: pointer;
}
.a4-burger:hover { background: var(--ink); color: var(--paper); }
.a4-burger__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 420px) { .a4-burger__label { display: none; } .a4-burger { padding: 9px; } }

/* Drawers (shared) ------------------------------------------------------ */

.a4-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility 0s .4s; }
.a4-drawer.is-open { visibility: visible; transition: none; }

.a4-drawer__scrim { position: absolute; inset: 0; background: rgba(22, 22, 22, .5); opacity: 0; transition: opacity .3s ease; }
.a4-drawer.is-open .a4-drawer__scrim { opacity: 1; }

.a4-drawer__panel {
	position: absolute; top: 0; bottom: 0;
	display: flex; flex-direction: column;
	overflow-y: auto; overscroll-behavior: contain;
	transition: transform .4s cubic-bezier(.3, .7, .2, 1);
}
.a4-drawer.is-open .a4-drawer__panel { transform: none; }
.admin-bar .a4-drawer__panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .a4-drawer__panel { top: 46px; } }

.a4-drawer__close {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	padding: 9px 14px; border: 2px solid currentColor; border-radius: 999px;
	background: transparent; color: inherit; font: 700 .95rem var(--font); cursor: pointer;
}
.a4-drawer__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Menu drawer (right) */
.a4-drawer--menu .a4-drawer__panel {
	right: 0; width: min(460px, 100%);
	padding: 18px clamp(22px, 5vw, 40px) 32px;
	background: var(--blue); color: #fff;
	transform: translateX(100%);
}
.a4-drawer--menu .a4-drawer__close:hover { background: #fff; color: var(--blue); }
.a4-drawer--menu .a4-drawer__close:focus-visible, .a4-drawer--menu a:focus-visible { outline-color: var(--yellow); }
.a4-drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 54px; margin-bottom: 28px; }
.a4-drawer--menu .a4-logo, .a4-drawer--menu .a4-logo:hover { color: #fff; }
.a4-drawer--menu .a4-logo__mark { color: var(--yellow); }

.a4-drawer__list { list-style: none; margin: 0; padding: 0; }
.a4-drawer__list a {
	display: block; padding: 12px 0;
	color: #fff; text-decoration: none;
	font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.02em; line-height: 1.1;
	border-bottom: 1.5px solid rgba(255, 255, 255, .22);
}
.a4-drawer__list a:hover { color: var(--yellow); }

.a4-drawer__foot { margin-top: auto; padding-top: 36px; display: grid; gap: 10px; }
.a4-drawer__foot .a4-btn--blue { background: #fff; border-color: #fff; color: var(--blue); }
.a4-drawer__foot .a4-btn--blue:hover { background: var(--paper); }
.a4-drawer__foot p { margin: 6px 0 0; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.a4-drawer__foot a:not(.a4-btn) { color: #fff; }

/* Sign-up drawer (left, half the page) */
.a4-drawer--signup .a4-drawer__panel {
	left: 0; width: max(50vw, 620px); max-width: 100%;
	background: var(--paper); color: var(--ink);
	border-right: 2px solid var(--ink);
	overflow: hidden;
	transform: translateX(-102%);
}
.a4-sheet__grab { display: none; }
.a4-sheet__head {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
	padding: 22px clamp(20px, 3vw, 36px) 18px;
	border-bottom: 2px solid var(--ink);
	background: var(--yellow);
}
.a4-sheet__title { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; font-stretch: 118%; letter-spacing: -.03em; line-height: 1; }
.a4-sheet__sub { margin: 8px 0 0; font-size: .92rem; font-weight: 600; }
.a4-sheet .a4-drawer__close:hover { background: var(--ink); color: var(--yellow); }
.a4-sheet__body {
	flex: 1; overflow-y: auto; overscroll-behavior: contain;
	padding: 26px clamp(20px, 3vw, 36px) 0;
	-webkit-overflow-scrolling: touch;
}

/* Scheduler laid out in a single column inside the drawer */
.a4-sheet .a4-scheduler { grid-template-columns: minmax(0, 1fr); gap: 34px; }
.a4-sheet .a4-details { position: static; }
.a4-sheet .a4-times__row { grid-template-columns: 88px minmax(0, 1fr); }
.a4-sheet .a4-bar { margin: 0 calc(-1 * clamp(20px, 3vw, 36px)); padding-left: clamp(20px, 3vw, 36px); padding-right: clamp(20px, 3vw, 36px); }

/* Phones: the sign-up drawer becomes a bottom sheet */
@media (max-width: 760px) {
	.a4-drawer--signup .a4-drawer__panel {
		top: auto; left: 0; right: 0; bottom: 0;
		width: 100%; height: calc(100dvh - 28px); max-height: calc(100% - 28px);
		border-right: 0; border-top: 2px solid var(--ink);
		border-radius: 22px 22px 0 0;
		transform: translateY(102%);
	}
	.admin-bar .a4-drawer--signup .a4-drawer__panel { top: auto; }
	.a4-drawer--signup .a4-drawer__panel.is-dragging { transition: none; }
	.a4-sheet__grab {
		display: flex; justify-content: center; padding: 10px 0 0;
		background: var(--yellow); border-radius: 22px 22px 0 0; touch-action: none;
	}
	.a4-sheet__grab span { width: 44px; height: 5px; border-radius: 3px; background: rgba(22, 22, 22, .35); }
	.a4-sheet__head { padding: 10px 18px 14px; touch-action: none; }
	.a4-sheet__title { font-size: 1.6rem; }
	.a4-sheet__sub { font-size: .82rem; }
	.a4-sheet .a4-drawer__close span { display: none; }
	.a4-sheet .a4-drawer__close { padding: 8px; }
	.a4-sheet__body { padding: 20px 18px 0; }
	.a4-sheet .a4-times__row { grid-template-columns: 1fr; }
	.a4-sheet .a4-bar { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
	.a4-sheet .a4-scheduler { gap: 28px; }
}

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

.a4-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.a4-hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.a4-hero__title {
	margin: 0;
	font-size: clamp(3.4rem, 10vw, 8.2rem);
	font-weight: 900; font-stretch: 120%;
	line-height: .86; letter-spacing: -.04em;
}
.a4-hero__when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: clamp(16px, 2.5vw, 26px) 0 0; }
.a4-hero__dates { background: var(--yellow); padding: 4px 10px; font-weight: 800; font-stretch: 110%; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.a4-hero__span { color: var(--soft); font-weight: 600; font-size: .95rem; }
.a4-hero__text { margin: 0 0 16px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 32em; }
.a4-hero__stats { display: flex; gap: 18px; margin: 0 0 18px; color: var(--soft); }
.a4-hero__stats b { color: var(--ink); font-weight: 800; }
.a4-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The two distance panels */
.a4-runs { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(32px, 5vw, 56px); border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; }
.a4-run {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
	padding: clamp(20px, 3vw, 32px);
	color: var(--ink); text-decoration: none; background: var(--card);
	transition: background-color .2s ease, color .2s ease;
}
.a4-run + .a4-run { border-left: 2px solid var(--ink); }
.a4-run__miles { display: flex; align-items: baseline; gap: 10px; font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 900; font-stretch: 120%; line-height: .8; letter-spacing: -.05em; }
.a4-run__miles small { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: 0; }
.a4-run__info { display: grid; gap: 6px; text-align: right; font-size: .95rem; color: var(--soft); transition: color .2s ease; }
.a4-run__info b { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--ink); font-size: 1.05rem; }
.a4-run__info svg, .a4-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.a4-run:hover { background: var(--blue); color: #fff; }
.a4-run:hover .a4-run__info, .a4-run:hover .a4-run__info b { color: #fff; }
.a4-run:hover svg { transform: translateX(4px); }

@media (max-width: 860px) {
	.a4-hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.a4-hero__actions .a4-btn { flex: 1 1 auto; }
	.a4-run { flex-direction: column; align-items: flex-start; }
	.a4-run__info { text-align: left; }
	.a4-run__info b { justify-content: flex-start; }
}

/* Status panel (when sign-ups are closed) */
.a4-status { margin-top: clamp(32px, 5vw, 56px); padding: clamp(22px, 3vw, 34px); border: 2px solid var(--ink); border-radius: 20px; background: var(--card); }
.a4-status.is-live { background: var(--ink); color: var(--paper); }
.a4-status__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 22px; }
.a4-status__pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .9rem; }
.a4-status__pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: a4-pulse 1.6s infinite; }
@keyframes a4-pulse { 50% { opacity: .25; } }
.a4-status__title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; font-stretch: 115%; letter-spacing: -.02em; }
.a4-status__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.a4-status__nums strong { display: block; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; font-stretch: 118%; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.a4-status__nums span { font-size: .92rem; opacity: .8; }
.a4-status__track { position: relative; height: 14px; border-radius: 7px; background: rgba(246, 243, 236, .15); overflow: hidden; }
.a4-status__time { position: absolute; inset: 0 auto 0 0; background: rgba(246, 243, 236, .25); }
.a4-status__done { position: absolute; inset: 0 auto 0 0; background: var(--yellow); }
.a4-status__note { margin: 12px 0 0; font-weight: 600; opacity: .85; }
.a4-status__note--lg { margin: 0; font-size: 1.15rem; opacity: 1; }
@media (max-width: 560px) { .a4-status__nums { grid-template-columns: 1fr; gap: 12px; } }

/* Header sign-up button: desktop only (phones get the floating bar) */
@media (max-width: 760px) { .a4-header__signup { display: none; } }

/* Floating sign-up bar (phones) */
.a4-fab { display: none; }
@media (max-width: 760px) {
	.a4-fab {
		position: fixed; z-index: 90;
		left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
		display: flex; align-items: center; gap: 10px;
		padding: 15px 18px;
		border: 2px solid var(--ink); border-radius: 16px;
		background: var(--blue); color: #fff; text-decoration: none;
		box-shadow: 0 6px 0 var(--ink);
		transform: translateY(160%);
		transition: transform .3s cubic-bezier(.3, .7, .2, 1);
	}
	.a4-fab.is-visible { transform: none; }
	.a4-drawer-open .a4-fab { transform: translateY(160%); }
	.a4-fab:hover, .a4-fab:active { color: #fff; }
	.a4-fab__label { font-weight: 800; font-stretch: 112%; font-size: 1.1rem; }
	.a4-fab__meta { margin-left: auto; font-size: .85rem; opacity: .9; }
	.a4-footer { padding-bottom: 110px; }
}

/* Scheduler --------------------------------------------------------------- */

.a4-scheduler {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 390px;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
.a4-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; min-width: 0; }

.a4-pick { min-width: 0; margin: 0; padding: 0; border: 0; }
.a4-pick__label {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	width: 100%; padding: 0; margin: 0 0 14px;
}
.a4-pick__label span { font-size: 1.15rem; font-weight: 800; font-stretch: 110%; }
.a4-pick__label em { font-style: normal; color: var(--soft); font-size: .95rem; text-align: right; }

/* Distance: two-way switch */
.a4-distance {
	display: grid; grid-template-columns: 1fr 1fr;
	border: 2px solid var(--ink); border-radius: 16px; overflow: hidden;
	background: var(--card);
}
.a4-distance label { position: relative; cursor: pointer; }
.a4-distance label + label { border-left: 2px solid var(--ink); }
.a4-distance input { position: absolute; opacity: 0; pointer-events: none; }
.a4-distance span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 18px 22px; transition: background-color .15s ease, color .15s ease; }
.a4-distance b { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.02em; line-height: 1.1; }
.a4-distance small { font-size: .9rem; color: var(--soft); }
.a4-distance label:hover span { background: var(--paper); }
.a4-distance input:checked + span { background: var(--blue); color: #fff; }
.a4-distance input:checked + span small { color: rgba(255, 255, 255, .85); }
.a4-distance input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: -5px; }

/* Days */
.a4-days-wrap { position: relative; }
.a4-days {
	display: flex; gap: 8px;
	overflow-x: auto; scroll-snap-type: x proximity;
	padding: 2px 2px 10px;
	scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.a4-days-more {
	position: absolute; right: -6px; top: 32px;
	width: 40px; height: 40px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	border: 2px solid var(--ink); background: var(--card); cursor: pointer;
}
.a4-days-more svg { width: 18px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.a4-days-more:hover { background: var(--yellow); }

.a4-day {
	flex: 0 0 78px; scroll-snap-align: start;
	display: flex; flex-direction: column; align-items: center;
	padding: 10px 6px 12px;
	border: 2px solid var(--line); border-radius: 12px;
	background: var(--card); color: var(--ink);
	font-family: var(--font); cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.a4-day:hover:not([disabled]) { border-color: var(--ink); }
.a4-day__wd { font-size: .85rem; color: var(--soft); }
.a4-day__num { font-size: 1.9rem; font-weight: 800; font-stretch: 112%; line-height: 1.1; }
.a4-day__mon { font-size: .8rem; color: var(--soft); }
.a4-day__bar { width: 40px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.a4-day__bar i { display: block; height: 100%; background: var(--blue); }
.a4-day.is-selected { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.a4-day.is-selected .a4-day__wd, .a4-day.is-selected .a4-day__mon { color: rgba(246, 243, 236, .75); }
.a4-day.is-selected .a4-day__bar { background: rgba(255, 255, 255, .25); }
.a4-day.is-selected .a4-day__bar i { background: var(--yellow); }
.a4-day[disabled] { cursor: not-allowed; opacity: .45; }

.a4-loading { display: block; padding: 28px 0; color: var(--soft); }
.a4-loading--error { color: var(--coral); }

/* Times */
.a4-times__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1.5px solid var(--line); }
.a4-times__row:first-child { border-top: 0; padding-top: 0; }
.a4-times__when { margin: 10px 0 0; font-size: .95rem; font-weight: 700; color: var(--soft); }
.a4-times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }

.a4-time {
	display: flex; flex-direction: column; align-items: center; gap: 1px;
	padding: 9px 4px 8px;
	border: 2px solid var(--line); border-radius: 10px;
	background: var(--card); color: var(--ink);
	font-family: var(--font); cursor: pointer;
	transition: border-color .12s ease, background-color .12s ease;
}
.a4-time:hover:not([disabled]) { border-color: var(--ink); }
.a4-time__t { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.a4-time__left { font-size: .75rem; color: var(--soft); }
.a4-time.is-low .a4-time__left { color: var(--coral); font-weight: 700; }
.a4-time[disabled] { cursor: not-allowed; background: transparent; border-style: dashed; }
.a4-time[disabled] .a4-time__t { color: #a8a397; text-decoration: line-through; }
.a4-time[disabled] .a4-time__left { color: #a8a397; }
.a4-time.is-span { background: var(--blue-tint); border-color: var(--blue); }
.a4-time.is-selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.a4-time.is-selected .a4-time__left { color: rgba(255, 255, 255, .85); }

.a4-empty { margin: 0; padding: 22px; border: 2px dashed var(--line); border-radius: 12px; color: var(--soft); }

/* Details form */
.a4-details {
	position: sticky; top: calc(var(--header-h) + 20px);
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 18px;
	padding: clamp(20px, 3vw, 28px);
}
.admin-bar .a4-details { top: calc(var(--header-h) + 52px); }

.a4-form { display: grid; gap: 14px; }
.a4-form__title { margin: 0 0 2px; font-size: 1.4rem; font-weight: 800; font-stretch: 112%; }
.a4-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a4-field { display: grid; gap: 5px; margin: 0; }
.a4-field label { font-size: .88rem; font-weight: 700; }
.a4-field input, .a4-field textarea {
	width: 100%; padding: 11px 12px;
	border: 2px solid var(--line); border-radius: 10px;
	background: #fff; color: var(--ink);
	font: 400 1rem/1.4 var(--font);
	transition: border-color .12s ease, box-shadow .12s ease;
}
.a4-field textarea { resize: vertical; min-height: 80px; }
.a4-field input:focus, .a4-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.a4-field input:user-invalid { border-color: var(--coral); }

.a4-more summary { cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--blue); list-style: none; }
.a4-more summary::-webkit-details-marker { display: none; }
.a4-more summary::before { content: "+ "; font-weight: 800; }
.a4-more[open] summary::before { content: "– "; }
.a4-more[open] summary { margin-bottom: 12px; }
.a4-more > .a4-form__row { margin-bottom: 12px; }

.a4-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; line-height: 1.4; }
.a4-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); flex: none; }

.a4-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.a4-form__error { padding: 10px 12px; border-radius: 10px; background: #fbe6e1; color: #9f2c15; font-size: .92rem; font-weight: 600; }
.a4-form__submit { padding: 16px 18px; font-size: 1.02rem; text-align: center; line-height: 1.3; }
.a4-form__submit[disabled] { background: var(--paper); border-color: var(--line); color: var(--soft); cursor: not-allowed; }
.a4-form__note { margin: 0; font-size: .82rem; color: var(--soft); text-align: center; }

.is-busy .a4-form__submit::before {
	content: ""; width: 15px; height: 15px; border-radius: 50%;
	border: 2px solid rgba(22, 22, 22, .25); border-top-color: var(--ink);
	animation: a4-spin .7s linear infinite;
}
@keyframes a4-spin { to { transform: rotate(360deg); } }

/* Sticky bar with the book button */
.a4-bar {
	grid-column: 1 / -1;
	position: sticky; bottom: 0; z-index: 2;
	display: grid; gap: 10px;
	padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
	background: var(--paper);
	border-top: 2px solid var(--ink);
}
.a4-scheduler.is-booked .a4-bar, .a4-scheduler.is-closed .a4-bar { display: none; }

/* Booked */
.a4-done { outline: none; }
.a4-done__flower { width: 46px; height: 46px; color: var(--blue); margin-bottom: 10px; }
.a4-done__title { font-size: 1.7rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
.a4-done__run { margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--blue-tint); }
.a4-done__run strong { font-size: 1.15rem; }
.a4-done__note { margin: 0 0 12px; color: var(--soft); font-size: .92rem; }
.a4-done__cal { margin: 0 0 18px; font-size: .95rem; }
.a4-done__cal a { font-weight: 700; }

.a4-closed { grid-column: 1 / -1; padding: 40px; border: 2px solid var(--ink); border-radius: 18px; background: var(--card); }
.a4-closed p { margin: 0 0 18px; font-size: 1.2rem; max-width: 36em; }
.a4-scheduler.is-closed { display: block; }

@media (max-width: 1080px) {
	.a4-scheduler { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 960px) {
	.a4-scheduler { grid-template-columns: minmax(0, 1fr); }
	.a4-details { position: static; scroll-margin-top: calc(var(--header-h) + 12px); }
}
@media (max-width: 600px) {
	.a4-times__row { grid-template-columns: 1fr; gap: 8px; }
	.a4-times__when { margin: 0; }
	.a4-times__grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
	.a4-days-more { display: none; }
	.a4-distance span { padding: 14px 16px; }
	.a4-form__row { grid-template-columns: 1fr; }
}

/* Story ------------------------------------------------------------------ */

.a4-story { padding: clamp(64px, 9vw, 120px) 0; background: var(--card); border-top: 2px solid var(--ink); }
.a4-story__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.a4-story__photo { margin: 0 0 28px; }
.a4-story__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.a4-story__text { font-size: 1.12rem; line-height: 1.7; max-width: 38em; }
.a4-story__text > p:first-child { font-size: clamp(1.3rem, 2.2vw, 1.55rem); line-height: 1.45; font-weight: 500; }
@media (max-width: 800px) { .a4-story__grid { grid-template-columns: 1fr; } }

/* What the money's for --------------------------------------------------- */

.a4-money { padding: clamp(64px, 9vw, 120px) 0; background: var(--blue); color: #fff; }
.a4-money__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.a4-money p { font-size: 1.1rem; max-width: 30em; margin: 0 0 28px; color: rgba(255, 255, 255, .9); }
.a4-money__list { list-style: none; margin: 0; padding: 0; counter-reset: money; }
.a4-money__list li {
	counter-increment: money;
	display: grid; grid-template-columns: 52px 1fr; align-items: baseline;
	padding: 18px 0; border-top: 1.5px solid rgba(255, 255, 255, .3);
	font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 700; font-stretch: 108%; line-height: 1.25;
}
.a4-money__list li:last-child { border-bottom: 1.5px solid rgba(255, 255, 255, .3); }
.a4-money__list li::before { content: counter(money, decimal-leading-zero); color: var(--yellow); font-size: .85em; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .a4-money__grid { grid-template-columns: 1fr; } }

.a4-progress { max-width: 420px; }
.a4-progress__nums { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.a4-progress__nums strong { font-size: 1.8rem; font-weight: 800; font-stretch: 112%; }
.a4-progress__nums span { opacity: .85; }
.a4-progress__track { height: 12px; border-radius: 6px; background: rgba(22, 22, 22, .12); overflow: hidden; }
.a4-progress__track span { display: block; height: 100%; background: var(--ink); }
.a4-money .a4-progress__track { background: rgba(255, 255, 255, .25); }
.a4-money .a4-progress__track span { background: var(--yellow); }

/* Questions -------------------------------------------------------------- */

.a4-faq { padding: clamp(64px, 9vw, 120px) 0; }
.a4-faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 6vw, 88px); }
.a4-faq__item { border-top: 2px solid var(--ink); }
.a4-faq__item:last-child { border-bottom: 2px solid var(--ink); }
.a4-faq__item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 0; cursor: pointer; list-style: none;
	font-size: 1.2rem; font-weight: 700;
}
.a4-faq__item summary::-webkit-details-marker { display: none; }
.a4-faq__item summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.a4-faq__item[open] summary::after { transform: rotate(45deg); }
.a4-faq__item p { margin: 0 0 22px; max-width: 40em; color: var(--soft); font-size: 1.05rem; }
@media (max-width: 800px) { .a4-faq__grid { grid-template-columns: 1fr; } }

/* Donate band ------------------------------------------------------------ */

.a4-give { background: var(--yellow); padding: clamp(48px, 7vw, 88px) 0; border-top: 2px solid var(--ink); }
.a4-give__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.a4-give h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; font-stretch: 118%; letter-spacing: -.03em; max-width: 14em; }

/* Inner pages ------------------------------------------------------------ */

.a4-page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); border-bottom: 2px solid var(--ink); }
.a4-page-hero__title { margin: 0; font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 900; font-stretch: 118%; letter-spacing: -.03em; line-height: .95; }
.a4-signup { padding-top: clamp(32px, 5vw, 56px); }
.a4-signup__intro { max-width: 44em; margin-bottom: 32px; }

.a4-panel { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; }
.a4-manage__panel { padding: clamp(28px, 5vw, 48px); }
.a4-manage__flower { width: 52px; color: var(--blue); margin-bottom: 8px; }
.a4-manage__panel .a4-h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.a4-manage__panel p { color: var(--soft); }
.a4-manage__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.a4-summary--card { margin: 22px 0; }
.a4-summary--card dl { margin: 0; border-top: 1.5px solid var(--line); }
.a4-summary--card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.a4-summary--card dt { color: var(--soft); }
.a4-summary--card dd { margin: 0; font-weight: 700; text-align: right; }

.a4-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.a4-post-card { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.a4-post-card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.a4-post-card__body { padding: 22px; }
.a4-post-card h2 { font-size: 1.35rem; font-stretch: 110%; font-weight: 800; }
.a4-post-card h2 a { color: var(--ink); text-decoration: none; }
.a4-featured { border-radius: 14px; margin-bottom: 32px; }
.a4-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--ink); }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); text-decoration: none; }
.nav-links .current { background: var(--ink); color: var(--paper); }

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

.a4-footer { background: var(--ink); color: rgba(246, 243, 236, .8); padding: 56px 0; font-size: .95rem; }
.a4-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.a4-footer__about { max-width: 30em; }
.a4-footer__about p { margin: 12px 0 0; }
.a4-footer .a4-logo { color: var(--paper); }
.a4-footer .a4-logo__mark { color: var(--yellow); }
.a4-footer a { color: var(--paper); }
.a4-footer ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.a4-footer__links p { margin: 0 0 8px; }
.a4-footer__small { font-size: .85rem; opacity: .7; }

/* WordPress core helpers ------------------------------------------------- */

.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--soft); }
.a4-done__cal a { white-space: nowrap; }
