/*
 * Lake Geneva E-Bike component styles. Every class is prefixed `.ebike-`.
 * Design direction lives in DESIGN.md (Impeccable) - see docs/architecture.md
 * → "Design system": style against it, no generic/templated patterns.
 */

/*
 * Bricks ships `html { font-size: 62.5% }` in its frontend stylesheet — its
 * convention for authoring in the builder, where 1rem then reads as 10px.
 * Design tokens are conventionally written against a 16px root, and when they
 * are, every rem value on the site renders at 62.5% of its specified size:
 * 16px body copy set at 10px, a 48px heading at 30px, and — because spacing
 * tokens are rem too — section rhythm and gutters shrunk to match. Nothing
 * looks broken, so it goes unnoticed; the site is simply quietly small.
 *
 * `:root` (0,1,0) outranks Bricks' `html` (0,0,1) whatever the load order,
 * and 100% keeps the scale tied to the reader's own browser setting rather
 * than pinning it to 16px.
 *
 * Delete this only if you mean to author every token against a 10px root
 * instead — and note that sizes set in the Bricks UI in rem are interpreted
 * as 10px by the builder regardless, so prefer px there.
 */
:root {
	font-size: 100%;
}

/* bricks-dev:font:newsreader — locally hosted via add_local_font (GDPR-safe, no third-party CDN) */
@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
:root {
	--ebike-font-newsreader: "Newsreader", Georgia, "Times New Roman", serif;
}

/* bricks-dev:font:figtree — locally hosted via add_local_font (GDPR-safe, no third-party CDN) */
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
:root {
	--ebike-font-figtree: "Figtree", system-ui, sans-serif;
}


/* ==========================================================================
   DESIGN.md tokens - Lake Geneva E-Bike (locked contract 2026-09-26,
   reference: BelArosa Chalet, strict; approved Concept A)
   ========================================================================== */
:root {
	--ebike-lake-deep: #193741;
	--ebike-lake: #1d414d;
	--ebike-paper: #ffffff;
	--ebike-linen: #ebe7e1;
	--ebike-shore-sage: #b9cba8;
	--ebike-moss: #46604a;
	--ebike-slate: #4a5f66;
	--ebike-mist: #9fb3b8;
	--ebike-stone: #8c9ba0;
	--ebike-error: #b42318;
	--ebike-hairline: #c6cfd1;
	--ebike-hairline-dark: rgba(255, 255, 255, 0.22);

	--ebike-serif: var(--ebike-font-newsreader);
	--ebike-sans: var(--ebike-font-figtree);

	--ebike-fs-display: clamp(2.5rem, 1.4rem + 3.2vw, 4rem);      /* 40 → 64 */
	--ebike-fs-h2: clamp(2rem, 1.45rem + 1.7vw, 3rem);             /* 32 → 48 */
	--ebike-fs-h3: clamp(1.5rem, 1.33rem + 0.45vw, 1.75rem);       /* 24 → 28 */
	--ebike-fs-sub: clamp(1.25rem, 1.18rem + 0.2vw, 1.375rem);     /* 20 → 22 */
	--ebike-fs-body: clamp(1.0625rem, 1.03rem + 0.1vw, 1.125rem);  /* 17 → 18 */
	--ebike-fs-price: clamp(2.5rem, 2.2rem + 0.9vw, 3rem);         /* 40 → 48 */

	--ebike-container: 84rem;   /* 1344px */
	--ebike-gutter: 3rem;       /* 48 */
	--ebike-section-y: 10rem;   /* 160 */
	--ebike-section-y-compact: 7.5rem; /* 120 */
	--ebike-gap: 1.5rem;        /* 24 */
	--ebike-header-h: 96px;
	--ebike-header-h-solid: 64px;

	--ebike-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ebike-t-hover: 160ms;
	--ebike-t-reveal: 700ms;
}
@media (max-width: 1199px) {
	:root { --ebike-gutter: 2rem; --ebike-section-y: 6rem; --ebike-section-y-compact: 6rem; }
}
@media (max-width: 767px) {
	:root { --ebike-gutter: 1.25rem; --ebike-section-y: 4rem; --ebike-section-y-compact: 4rem; --ebike-header-h: 72px; --ebike-header-h-solid: 64px; }
}

/* ---------- base ---------- */
html body {
	font-family: var(--ebike-sans);
	font-size: var(--ebike-fs-body);
	line-height: 1.6;
	color: var(--ebike-lake-deep);
	background: var(--ebike-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
html body h1, html body h2, html body h3, html body h4 { color: inherit; margin: 0; }
html body p { margin: 0; }
html body a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
html body a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--ebike-shore-sage); color: var(--ebike-lake-deep); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--ebike-lake);
	outline-offset: 3px;
	border-radius: 2px;
}
.ebike-on-dark :where(a, button, input, select, textarea, summary):focus-visible,
.ebike-header :where(a, button):focus-visible { outline-color: var(--ebike-paper); }
.ebike-skip {
	position: absolute; left: 12px; top: -80px; z-index: 1000;
	background: var(--ebike-paper); color: var(--ebike-lake-deep);
	padding: 12px 20px; border-radius: 80px; font-weight: 500;
}
.ebike-skip:focus { top: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- type roles ---------- */
.ebike-display { font-family: var(--ebike-serif); font-weight: 600; font-size: var(--ebike-fs-display); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.ebike-h2 { font-family: var(--ebike-serif); font-weight: 600; font-size: var(--ebike-fs-h2); line-height: 1.1; letter-spacing: -0.005em; text-wrap: balance; }
.ebike-h3 { font-family: var(--ebike-sans); font-weight: 400; font-size: var(--ebike-fs-h3); line-height: 1.4; }
.ebike-title-serif { font-family: var(--ebike-serif); font-weight: 600; font-size: var(--ebike-fs-h3); line-height: 1.2; }
.ebike-sub { font-size: var(--ebike-fs-sub); line-height: 1.4; }
.ebike-body { font-size: var(--ebike-fs-body); line-height: 1.6; max-width: 64ch; }
.ebike-sm { font-size: 1rem; line-height: 1.5; }
.ebike-muted { color: var(--ebike-slate); }
.ebike-on-dark .ebike-muted { color: var(--ebike-mist); }
.ebike-label { font-family: var(--ebike-sans); font-weight: 500; font-size: 0.875rem; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; }
.ebike-on-dark .ebike-label, .ebike-label--sage { color: var(--ebike-shore-sage); }
.ebike-price { font-family: var(--ebike-serif); font-weight: 600; font-size: var(--ebike-fs-price); line-height: 1; font-variant-numeric: lining-nums; }

/* ---------- buttons & link CTAs ---------- */
.brxe-button.ebike-btn, .ebike-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 56px; box-sizing: border-box; padding: 18px 32px;
	border-radius: 80px; border: 1px solid currentColor;
	font-family: var(--ebike-sans); font-weight: 500; font-size: 1rem; line-height: 1.2; letter-spacing: 0;
	text-decoration: none; text-transform: none; white-space: nowrap; cursor: pointer;
	transition: background-color var(--ebike-t-hover) var(--ebike-ease), color var(--ebike-t-hover) var(--ebike-ease), border-color var(--ebike-t-hover) var(--ebike-ease);
}
.brxe-button.ebike-btn--primary { background: var(--ebike-lake-deep); color: var(--ebike-paper); border-color: var(--ebike-lake-deep); }
.brxe-button.ebike-btn--primary:hover { background: var(--ebike-lake); border-color: var(--ebike-lake); color: var(--ebike-paper); }
.brxe-button.ebike-btn--light { background: var(--ebike-paper); color: var(--ebike-lake-deep); border-color: var(--ebike-paper); }
.brxe-button.ebike-btn--light:hover { background: var(--ebike-linen); border-color: var(--ebike-linen); color: var(--ebike-lake-deep); }
.brxe-button.ebike-btn--outline { background: transparent; color: var(--ebike-lake-deep); border-color: var(--ebike-lake-deep); }
.brxe-button.ebike-btn--outline:hover { background: rgba(25, 55, 65, 0.08); }
.brxe-button.ebike-btn--outline-light { background: transparent; color: var(--ebike-paper); border-color: var(--ebike-paper); }
.brxe-button.ebike-btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.ebike-btn--arrow::after { content: "\2192" / ""; display: inline-block; transition: transform var(--ebike-t-hover) var(--ebike-ease); }
.ebike-btn--arrow:hover::after { transform: translateX(4px); }
.ebike-btn--sm { min-height: 44px; padding: 10px 20px; }
.ebike-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.ebike-link-cta, .ebike-link-cta a {
	display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
	font-family: var(--ebike-sans); font-weight: 500; font-size: 1rem; line-height: 1.4;
	letter-spacing: 0.125em; text-transform: uppercase; text-decoration: none;
	padding-bottom: 6px; color: inherit;
	background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
	transition: background-size var(--ebike-t-hover) var(--ebike-ease);
}
.ebike-link-cta::after { content: "\2192" / ""; transition: transform var(--ebike-t-hover) var(--ebike-ease); }
.ebike-link-cta:hover { background-size: 100% 2px; }
.ebike-link-cta:hover::after { transform: translateX(4px); }

/* ---------- layout ---------- */
.ebike-section { width: 100%; box-sizing: border-box; padding: var(--ebike-section-y) var(--ebike-gutter); display: block; }
.ebike-section--compact { padding-block: var(--ebike-section-y-compact); }
.ebike-section--flush-top { padding-top: 0; }
.ebike-section--linen { background: var(--ebike-linen); }
.ebike-section--dark { background: var(--ebike-lake-deep); color: var(--ebike-paper); }
.ebike-inner { width: 100%; max-width: var(--ebike-container); margin-inline: auto; }
.ebike-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ebike-gap); align-items: center; }
.ebike-grid--top { align-items: start; }
.ebike-stack { display: flex; flex-direction: column; gap: var(--ebike-gap); align-items: flex-start; }
.ebike-stack--tight { gap: 16px; }
.ebike-stack--center { align-items: center; text-align: center; }
.ebike-intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 56px; }

/* editorial split: 7-col photo + 5-col text; --reverse puts text first */
.ebike-split__media { grid-column: 1 / span 7; grid-row: 1; }
.ebike-split__text { grid-column: 9 / span 4; grid-row: 1; }
.ebike-split--reverse .ebike-split__text { grid-column: 1 / span 5; }
.ebike-split--reverse .ebike-split__media { grid-column: 7 / span 6; }
.ebike-split__media img, .ebike-photo img, img.ebike-photo {
	display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}
.ebike-photo--tall { aspect-ratio: 4 / 5; }
.ebike-photo--wide { aspect-ratio: 3 / 2; }
.ebike-photo { overflow: hidden; }
@media (max-width: 991px) {
	.ebike-split__media, .ebike-split__text,
	.ebike-split--reverse .ebike-split__text, .ebike-split--reverse .ebike-split__media { grid-column: 1 / -1; grid-row: auto; }
	.ebike-split__media { margin-bottom: 40px; order: -1; }
	.ebike-split { row-gap: 0; }
}

/* ---------- header ---------- */
.ebike-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: var(--ebike-paper);
	transition: background-color 200ms var(--ebike-ease);
}
body.admin-bar .ebike-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ebike-header { top: 46px; } }
.ebike-header.is-solid, body.ebike-header-solid .ebike-header { background: var(--ebike-lake-deep); }
.ebike-header__row {
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
	height: var(--ebike-header-h); padding-inline: var(--ebike-gutter); box-sizing: border-box;
}
.ebike-header.is-solid .ebike-header__row { height: var(--ebike-header-h-solid); }
.ebike-wordmark, .ebike-wordmark a {
	font-family: var(--ebike-serif); font-weight: 600; font-size: 1.625rem; line-height: 1;
	color: var(--ebike-paper); text-decoration: none; white-space: nowrap;
}
.ebike-header__end { display: flex; align-items: center; gap: 40px; }
.ebike-nav, .ebike-nav .brx-nav-nested-items { display: flex; align-items: center; gap: 40px; }
.ebike-nav .brx-nav-nested-items { margin: 0; padding: 0; list-style: none; }
.ebike-nav .brx-nav-nested-items > li { margin: 0; }
.ebike-nav__link, .ebike-nav__link a {
	font-family: var(--ebike-sans); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--ebike-paper); text-decoration: none; padding-block: 8px;
	background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
	transition: background-size var(--ebike-t-hover) var(--ebike-ease);
}
.ebike-nav__link:hover, .ebike-nav__link[aria-current="page"], .ebike-nav__link a:hover, .ebike-nav__link a[aria-current="page"] { background-size: 100% 1px; }
.ebike-nav__toggle { display: none; color: var(--ebike-paper); }
.ebike-nav__menu-only { display: none; }
@media (max-width: 991px) {
	.ebike-header__row { gap: 12px; }
	.ebike-header__end { gap: 12px; }
	.ebike-wordmark, .ebike-wordmark a { font-size: 1.25rem; }
	.ebike-header .ebike-btn { min-height: 48px; padding: 10px 18px; }
	.ebike-nav { order: -1; gap: 0; }
	.ebike-nav .ebike-nav__link { display: none; }
	.ebike-nav__toggle { display: inline-flex; align-items: center; gap: 8px; min-width: 48px; min-height: 48px; }
	.ebike-header__row { display: grid; grid-template-columns: 1fr auto 1fr; }
	.ebike-header__row > .ebike-wordmark { justify-self: center; grid-column: 2; grid-row: 1; }
	.ebike-header__row > .ebike-header__end { display: contents; }
	.ebike-header__row .ebike-nav { grid-column: 1; grid-row: 1; justify-self: start; }
	.ebike-header__row .ebike-header__cta { grid-column: 3; grid-row: 1; justify-self: end; }
	.ebike-nav.brx-open .brx-nav-nested-items,
	.ebike-nav .brx-nav-nested-items.brx-open {
		position: fixed; inset: 0; z-index: 99; background: var(--ebike-lake-deep);
		display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
		padding: 96px var(--ebike-gutter) 48px;
	}
	.ebike-nav.brx-open .ebike-nav__link, .ebike-nav.brx-open .ebike-nav__link a,
	.ebike-nav .brx-open .ebike-nav__link, .ebike-nav .brx-open .ebike-nav__link a {
		display: block; font-family: var(--ebike-serif); font-weight: 600; font-size: 2rem; letter-spacing: 0; text-transform: none;
	}
	.ebike-nav.brx-open .ebike-nav__menu-only, .ebike-nav .brx-open .ebike-nav__menu-only { display: block; }
}
@media (max-width: 420px) {
	.ebike-wordmark, .ebike-wordmark a { font-size: 1.0625rem; }
	.ebike-nav__toggle-label { display: none; }
}

/* ---------- hero (full-bleed photo, headline over scrim) ---------- */
.ebike-hero { position: relative; min-height: min(100svh, 880px); min-height: max(640px, min(100svh, 880px)); display: flex; align-items: flex-end; color: var(--ebike-paper); padding: 0; overflow: hidden; }
.ebike-hero--page { min-height: 560px; }
.ebike-hero--plain { min-height: 0; background: var(--ebike-lake-deep); padding: calc(var(--ebike-header-h) + 96px) var(--ebike-gutter) 96px; }
.ebike-hero .ebike-hero-media, .ebike-band .ebike-hero-media { position: absolute; inset: 0; margin: 0; }
.ebike-hero-media__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebike-hero__scrim { position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(25, 55, 65, 0.72) 0%, rgba(25, 55, 65, 0.5) 38%, rgba(25, 55, 65, 0) 66%),
		linear-gradient(0deg, rgba(25, 55, 65, 0.55) 0%, rgba(25, 55, 65, 0) 55%),
		linear-gradient(180deg, rgba(25, 55, 65, 0.5) 0%, rgba(25, 55, 65, 0) 24%);
}
.ebike-hero__body { position: relative; z-index: 1; width: 100%; box-sizing: border-box; padding: 0 var(--ebike-gutter) 88px; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.ebike-hero--plain .ebike-hero__body { padding: 0; max-width: var(--ebike-container); margin-inline: auto; }
.ebike-hero__copy { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.ebike-hero__copy .ebike-sub { max-width: 600px; }
.ebike-hero__copy .ebike-actions { margin-top: 8px; }
.ebike-rates-card { width: 300px; flex-shrink: 0; box-sizing: border-box; padding: 28px 32px; background: var(--ebike-linen); color: var(--ebike-lake-deep); display: flex; flex-direction: column; gap: 12px; }
.ebike-rates-card__row { display: flex; align-items: baseline; gap: 10px; }
@media (max-width: 991px) {
	.ebike-hero__body { flex-direction: column; align-items: stretch; padding-bottom: 48px; }
	.ebike-hero { min-height: max(620px, 100svh); }
	.ebike-hero--page { min-height: 480px; }
}
@media (max-width: 767px) {
	.ebike-hero__scrim { background: linear-gradient(0deg, rgba(25, 55, 65, 0.88) 0%, rgba(25, 55, 65, 0.55) 45%, rgba(25, 55, 65, 0.1) 75%), linear-gradient(180deg, rgba(25, 55, 65, 0.5) 0%, rgba(25, 55, 65, 0) 20%); }
	.ebike-hero__copy .ebike-actions { flex-direction: column; align-items: stretch; }
	.ebike-hero__copy .ebike-btn { width: 100%; }
	/* rates card leaves the photo: it becomes a full-width linen strip below the hero */
	.ebike-hero--home { flex-direction: column; align-items: stretch; overflow: visible; }
	.ebike-hero--home .ebike-hero__body { padding-bottom: 0; }
	.ebike-hero--home .ebike-hero__copy { padding-bottom: 40px; }
	.ebike-hero--home .ebike-rates-card { width: auto; margin-inline: calc(-1 * var(--ebike-gutter)); padding: 24px var(--ebike-gutter); }
}

/* ---------- benefits strip ---------- */
.ebike-benefits { padding: 56px var(--ebike-gutter); border-bottom: 1px solid var(--ebike-hairline); }
.ebike-benefits__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto; padding: 0; list-style: none; max-width: var(--ebike-container); }
.ebike-benefit { display: flex; align-items: center; gap: 20px; padding: 0 32px; font-size: 1.375rem; line-height: 1.3; }
.ebike-benefit:first-child { padding-left: 0; }
.ebike-benefit + .ebike-benefit { border-left: 1px solid var(--ebike-hairline); }
.ebike-benefit__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--ebike-linen); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ebike-benefit__icon svg { width: 24px; height: 24px; stroke: var(--ebike-moss); }
@media (max-width: 767px) {
	.ebike-benefits { padding-block: 32px; }
	.ebike-benefits__list { grid-template-columns: 1fr; }
	.ebike-benefit { padding: 16px 0; font-size: 1.1875rem; }
	.ebike-benefit + .ebike-benefit { border-left: 0; border-top: 1px solid var(--ebike-hairline); }
}

/* ---------- town list (delivery area) ---------- */
.ebike-towns { list-style: none; margin: 0; padding: 0; width: 100%; }
.ebike-towns li { font-family: var(--ebike-serif); font-weight: 600; font-size: var(--ebike-fs-h3); line-height: 1.2; padding: 14px 0; border-top: 1px solid var(--ebike-hairline); }
.ebike-towns li:last-child { border-bottom: 1px solid var(--ebike-hairline); }
.ebike-towns--inline { display: flex; flex-wrap: wrap; gap: 0; }
.ebike-towns--inline li { border: 0; padding: 0 24px 0 0; }

/* ---------- how it works ---------- */
.ebike-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; counter-reset: ebike-step; }
.ebike-step { display: flex; flex-direction: column; gap: 16px; counter-increment: ebike-step; }
.ebike-step::before {
	content: counter(ebike-step); width: 48px; height: 48px; border-radius: 50%;
	background: var(--ebike-lake-deep); color: var(--ebike-shore-sage);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--ebike-serif); font-weight: 600; font-size: 1.375rem;
}
.ebike-steps + .ebike-note { margin-top: 48px; }
@media (max-width: 767px) { .ebike-steps { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- rates ---------- */
.ebike-rates__intro { grid-column: 1 / span 4; }
.ebike-rates__tables { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.ebike-rates__group-title { padding-bottom: 16px; border-bottom: 1px solid var(--ebike-hairline-dark); }
.ebike-rates__list { margin: 0; padding: 0; }
.ebike-rates__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--ebike-hairline-dark); }
.ebike-rates__row dt { font-size: var(--ebike-fs-body); }
.ebike-rates__row dd { margin: 0; }
.ebike-rates__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 8px; }
.ebike-rates--light .ebike-rates__group-title, .ebike-rates--light .ebike-rates__row { border-color: var(--ebike-hairline); }
@media (max-width: 991px) {
	.ebike-rates__intro, .ebike-rates__tables { grid-column: 1 / -1; }
	.ebike-rates__intro { margin-bottom: 48px; }
}
@media (max-width: 600px) { .ebike-rates__tables { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- quote / founder ---------- */
.ebike-founder { max-width: 896px; margin-inline: auto; }
.ebike-lead-serif { font-family: var(--ebike-serif); font-weight: 500; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.25; text-wrap: balance; }

/* ---------- note / callout ---------- */
.ebike-note { font-size: 1rem; line-height: 1.5; color: var(--ebike-slate); }
.ebike-callout { background: var(--ebike-linen); padding: 20px 24px; font-size: 1rem; line-height: 1.5; max-width: 64ch; }
.ebike-section--linen .ebike-callout { background: var(--ebike-paper); }

/* ---------- FAQ (native details) ---------- */
.ebike-faq__intro { grid-column: 1 / span 4; }
.ebike-faq__list { grid-column: 6 / span 7; }
.ebike-faq__item { border-top: 1px solid var(--ebike-hairline); }
.ebike-faq__item:last-child { border-bottom: 1px solid var(--ebike-hairline); }
.ebike-faq__item summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 24px 0; font-family: var(--ebike-sans); font-size: var(--ebike-fs-h3); line-height: 1.35;
}
.ebike-faq__item summary::-webkit-details-marker { display: none; }
.ebike-faq__item summary::after {
	content: ""; flex-shrink: 0; width: 20px; height: 20px;
	background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
	background-position: center, center; background-repeat: no-repeat;
	background-size: 20px 1.5px, 1.5px 20px;
	transition: transform 240ms var(--ebike-ease), background-size 240ms var(--ebike-ease);
}
/* + turns into − : the icon rotates while its vertical bar collapses */
.ebike-faq__item[open] summary::after { transform: rotate(180deg); background-size: 20px 1.5px, 1.5px 0; }
.ebike-faq__answer { padding: 0 0 28px; max-width: 64ch; display: flex; flex-direction: column; gap: 12px; }
@media (prefers-reduced-motion: no-preference) {
	@supports (interpolate-size: allow-keywords) {
		.ebike-faq__item { interpolate-size: allow-keywords; }
		.ebike-faq__item::details-content { height: 0; overflow: clip; transition: height 240ms var(--ebike-ease), content-visibility 240ms allow-discrete; }
		.ebike-faq__item[open]::details-content { height: auto; }
	}
}
@media (max-width: 991px) { .ebike-faq__intro, .ebike-faq__list { grid-column: 1 / -1; } .ebike-faq__intro { margin-bottom: 32px; } }

/* ---------- photo band (final CTA) ---------- */
.ebike-band { position: relative; min-height: 620px; display: flex; align-items: center; color: var(--ebike-paper); overflow: hidden; padding: 96px var(--ebike-gutter); box-sizing: border-box; }
.ebike-band__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 55, 65, 0.82) 0%, rgba(25, 55, 65, 0.5) 45%, rgba(25, 55, 65, 0.05) 78%); pointer-events: none; }
.ebike-band__body { position: relative; z-index: 1; width: 100%; max-width: var(--ebike-container); margin-inline: auto; }
.ebike-band__copy { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 767px) {
	.ebike-band { min-height: 560px; align-items: flex-end; }
	.ebike-band__scrim { background: linear-gradient(0deg, rgba(25, 55, 65, 0.9) 0%, rgba(25, 55, 65, 0.6) 55%, rgba(25, 55, 65, 0.15) 100%); }
	.ebike-band .ebike-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- footer ---------- */
.ebike-footer { background: var(--ebike-linen); color: var(--ebike-lake-deep); padding: 80px var(--ebike-gutter) 48px; }
.ebike-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ebike-gap); row-gap: 40px; max-width: var(--ebike-container); margin-inline: auto; }
.ebike-footer__brand { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 16px; }
.ebike-footer__col { grid-column: span 3; display: flex; flex-direction: column; gap: 12px; }
.ebike-footer__col:nth-child(2) { grid-column: 7 / span 3; }
.ebike-footer__link, .ebike-footer__link a { font-size: 1rem; line-height: 1.5; color: var(--ebike-lake-deep); text-decoration: none; }
.ebike-footer__link, .ebike-footer__link a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size var(--ebike-t-hover) var(--ebike-ease); }
.ebike-footer__link:hover, .ebike-footer__link a:hover { background-size: 100% 1px; }
.ebike-footer__base { max-width: var(--ebike-container); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--ebike-hairline); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 0.875rem; color: var(--ebike-slate); }
@media (max-width: 767px) { .ebike-footer__brand, .ebike-footer__col, .ebike-footer__col:nth-child(2) { grid-column: 1 / -1; } }

/* ---------- motion: photo reveals (DESIGN.md → Motion) ----------
   Only active once JS has set html.ebike-motion AND the visitor has no reduced-motion
   preference. Without JS, or with reduced motion, photos are simply visible. */
@media (prefers-reduced-motion: no-preference) {
	.ebike-motion .ebike-reveal { clip-path: inset(0 0 38% 0); transition: clip-path var(--ebike-t-reveal) var(--ebike-ease); }
	.ebike-motion .ebike-reveal img { transform: scale(1.06); transition: transform var(--ebike-t-reveal) var(--ebike-ease); }
	.ebike-motion .ebike-reveal.is-revealed { clip-path: inset(0); }
	.ebike-motion .ebike-reveal.is-revealed img { transform: scale(1); }
	.ebike-motion .ebike-hero--home .ebike-hero-media__img { animation: ebike-settle 1100ms var(--ebike-ease) both; }
	.ebike-motion .ebike-hero__copy { animation: ebike-rise 600ms var(--ebike-ease) 150ms both; }
	@keyframes ebike-settle { from { transform: scale(1.04); } to { transform: scale(1); } }
	@keyframes ebike-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
	.ebike-motion .ebike-reveal { clip-path: inset(0 0 24% 0); transition-duration: 500ms; }
	.ebike-motion .ebike-reveal img { transition-duration: 500ms; }
	.ebike-motion .ebike-hero--home .ebike-hero-media__img { animation: none; }
}
@media (max-width: 991px) { .ebike-nav__toggle { position: relative; z-index: 101; } }

/* ---------- two-column text blocks ---------- */
.ebike-cols__a { grid-column: 1 / span 5; }
.ebike-cols__b { grid-column: 7 / span 6; }
@media (max-width: 991px) { .ebike-cols__a, .ebike-cols__b { grid-column: 1 / -1; } .ebike-cols__a { margin-bottom: 24px; } }
.ebike-photo--landscape { aspect-ratio: 5 / 4; }
figure.ebike-photo { margin: 0; }
.ebike-towns-block { width: 100%; margin-top: 16px; }

/* ---------- benefit icons: CSS masks (1.5px line icons, no Code element to sign) ---------- */
.ebike-benefit__icon::before { content: ""; width: 24px; height: 24px; background: var(--ebike-moss); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ebike-benefit__icon--delivery { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.5'/%3E%3Ccircle cx='17' cy='17.5' r='1.5'/%3E%3C/svg%3E"); }
.ebike-benefit__icon--frame { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='16.5' r='3.5'/%3E%3Ccircle cx='18.5' cy='16.5' r='3.5'/%3E%3Cpath d='M5.5 16.5 9.5 10h5.5l3.5 6.5M9.5 10l3 6.5M13.5 6.5h2.5l-1 3.5'/%3E%3C/svg%3E"); }
.ebike-benefit__icon--helmet { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15a8 8 0 0 1 16 0v1H4zM9 8.5l1.5 3M14.5 8.5l-1 3M4 16l-1 2h6'/%3E%3C/svg%3E"); }

/* ---------- Bricks section defaults (flex column, centred children): align with DESIGN.md ---------- */
.brxe-section.ebike-hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
.brxe-section.ebike-band { flex-direction: column; justify-content: center; align-items: stretch; }
.brxe-section.ebike-header { display: block; }
.ebike-header__row { width: 100%; }
.brxe-section.ebike-benefits, .brxe-section.ebike-footer { display: block; }
@media (max-width: 767px) { .brxe-section.ebike-band { justify-content: flex-end; } }

.ebike-stack--center .ebike-link-cta { align-self: center; }

/* ---------- request form (Bricks form element, .ebike-request-form) ---------- */
.ebike-request { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ebike-gap); align-items: start; }
.ebike-request__form { grid-column: 1 / span 7; }
.ebike-request__aside { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 991px) { .ebike-request__form, .ebike-request__aside { grid-column: 1 / -1; } .ebike-request__aside { margin-top: 56px; } }
.ebike-request-form form { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 24px; }
.ebike-request-form .form-group { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ebike-request-form label { font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--ebike-lake-deep); }
.ebike-request-form label.required::after, .ebike-request-form .required > label::after { content: " *"; color: var(--ebike-lake); }
.ebike-request-form input:not([type="checkbox"]):not([type="radio"]),
.ebike-request-form select,
.ebike-request-form textarea {
	width: 100%; box-sizing: border-box; min-height: 56px; padding: 14px 16px;
	font: 400 1.0625rem/1.4 var(--ebike-sans); color: var(--ebike-lake-deep);
	background: var(--ebike-paper); border: 1px solid var(--ebike-lake); border-radius: 12px;
	transition: border-color var(--ebike-t-hover) var(--ebike-ease), box-shadow var(--ebike-t-hover) var(--ebike-ease);
}
.ebike-request-form textarea { min-height: 140px; resize: vertical; }
.ebike-request-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ebike-lake-deep) 50%), linear-gradient(135deg, var(--ebike-lake-deep) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.ebike-request-form input:focus-visible, .ebike-request-form select:focus-visible, .ebike-request-form textarea:focus-visible { outline: none; border-color: var(--ebike-lake-deep); box-shadow: 0 0 0 2px var(--ebike-lake); }
/* ".form-group" so this outranks the base input rule above (it didn't, and the border never turned red) */
.ebike-request-form .form-group input[aria-invalid="true"],
.ebike-request-form .form-group.error input,
.ebike-request-form .form-group:has(.form-group-error-message.show) input { border-color: var(--ebike-error); }
/* inline field errors: Bricks' own message box, and ebike-site.js's email/phone format line */
.ebike-request-form .form-group-error-message { display: none; margin: 0; padding: 0; background: none; font-size: 0.9375rem; line-height: 1.4; color: var(--ebike-error); }
.ebike-request-form .form-group-error-message.show { display: block; }
.ebike-request-form .ebike-field-error { font-size: 0.9375rem; line-height: 1.4; color: var(--ebike-error); }
.ebike-request-form .ebike-field-error[hidden],
.ebike-request-form .form-group:has(.form-group-error-message.show) .ebike-field-error { display: none; }
.ebike-request-form .form-group .description, .ebike-request-form .ebike-hint { font-size: 0.9375rem; color: var(--ebike-slate); }
.ebike-request-form .submit-button-wrapper { width: 100%; margin-top: 8px; }
.ebike-request-form button[type="submit"], .ebike-request-form .bricks-button {
	min-height: 56px; padding: 18px 40px; border-radius: 80px; border: 1px solid var(--ebike-lake-deep);
	background: var(--ebike-lake-deep); color: var(--ebike-paper); font: 500 1rem/1.2 var(--ebike-sans); cursor: pointer;
	transition: background-color var(--ebike-t-hover) var(--ebike-ease);
}
.ebike-request-form button[type="submit"]:hover { background: var(--ebike-lake); }
.ebike-request-form .message { margin-top: 24px; padding: 24px 28px; border-radius: 0; font-size: 1.0625rem; line-height: 1.5; width: 100%; box-sizing: border-box; }
.ebike-request-form .message.success { background: var(--ebike-linen); color: var(--ebike-lake-deep); border-left: 0; }
.ebike-request-form .message.error { background: #fbeeec; color: var(--ebike-error); }
@media (max-width: 767px) { .ebike-request-form .form-group { width: 100% !important; } .ebike-request-form button[type="submit"] { width: 100%; } }

/* Date + start-time pickers. One card for both: the date is Bricks' datepicker (flatpickr, whose popup is
   appended to <body>), the start time is ebike-site.js's .ebike-timepicker. Flat like the rest of the site
   (DESIGN.md → Elevation: a 1px lake border, no shadow); 44px round targets like the step numerals.
   ".form-group" outranks the base input rule, whose background shorthand would drop the field icons. */
.ebike-request-form .form-group input.flatpickr,
.ebike-request-form .form-group input[name="form-field-rqtime"] { padding-right: 48px; background-repeat: no-repeat; background-position: calc(100% - 16px) 50%; background-size: 20px 20px; cursor: pointer; }
.ebike-request-form .form-group input[name="form-field-rqdate"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23193741' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ebike-request-form .form-group input[name="form-field-rqtime"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23193741' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }

/* the card (shared) */
body .flatpickr-calendar,
.ebike-picker {
	box-sizing: border-box; width: 342px; max-width: calc(100vw - 2 * var(--ebike-gutter)); padding: 16px;
	font-family: var(--ebike-sans); color: var(--ebike-lake-deep); background: var(--ebike-paper);
	border: 1px solid var(--ebike-lake); border-radius: 12px; box-shadow: none;
}
.ebike-picker__title,
body .flatpickr-current-month { font-family: var(--ebike-serif); font-weight: 600; font-size: 1.25rem; line-height: 1.2; color: var(--ebike-lake-deep); }
.ebike-picker__label,
body span.flatpickr-weekday { font-family: var(--ebike-sans); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ebike-slate); }
@media (prefers-reduced-motion: no-preference) {
	body .flatpickr-calendar.animate.open, .ebike-picker:not([hidden]) { animation: ebike-pop 200ms var(--ebike-ease); }
}
@keyframes ebike-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* calendar (flatpickr) */
body .flatpickr-calendar { margin-top: 8px; }
body .flatpickr-calendar.arrowBottom { margin-top: -8px; }
body .flatpickr-calendar::before, body .flatpickr-calendar::after { display: none; }
body .flatpickr-months { align-items: center; margin-bottom: 12px; }
body .flatpickr-months .flatpickr-month { height: 40px; color: var(--ebike-lake-deep); fill: var(--ebike-lake-deep); }
body .flatpickr-current-month { position: static; width: auto; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.25rem; }
body .flatpickr-current-month span.cur-month { font-weight: 600; margin: 0; }
body .flatpickr-current-month span.cur-month:hover { background: none; }
body .flatpickr-current-month .numInputWrapper { width: 4.2ch; }
body .flatpickr-current-month .numInputWrapper:hover { background: none; }
body .flatpickr-current-month .numInputWrapper span { display: none; }
body .flatpickr-current-month input.cur-year { font: inherit; padding: 0; color: var(--ebike-lake-deep); cursor: default; }
body .flatpickr-months .flatpickr-prev-month,
body .flatpickr-months .flatpickr-next-month {
	position: static; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--ebike-hairline); border-radius: 50%; color: var(--ebike-lake-deep);
	transition: background-color var(--ebike-t-hover) var(--ebike-ease), border-color var(--ebike-t-hover) var(--ebike-ease);
}
body .flatpickr-months .flatpickr-prev-month:hover, body .flatpickr-months .flatpickr-next-month:hover { background: var(--ebike-linen); border-color: var(--ebike-linen); }
body .flatpickr-months .flatpickr-prev-month svg, body .flatpickr-months .flatpickr-next-month svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
body .flatpickr-months .flatpickr-prev-month:hover svg, body .flatpickr-months .flatpickr-next-month:hover svg { fill: none; }
body .flatpickr-months .flatpickr-disabled { visibility: hidden; }
body .flatpickr-innerContainer, body .flatpickr-rContainer { display: block; width: 100%; }
body .flatpickr-weekdays { height: 32px; }
body .flatpickr-weekdaycontainer, body .flatpickr-days, body .dayContainer { width: 100%; min-width: 0; max-width: none; }
body .dayContainer { padding: 0; row-gap: 2px; justify-content: flex-start; } /* flatpickr's space-around would spread a short last week */
body .flatpickr-day {
	flex: 0 0 calc(100% / 7); max-width: none; height: 44px; line-height: 42px; margin: 0;
	font-size: 1rem; color: var(--ebike-lake-deep); border: 1px solid transparent; border-radius: 50%; box-sizing: border-box;
	transition: background-color var(--ebike-t-hover) var(--ebike-ease);
}
body .flatpickr-day:hover, body .flatpickr-day:focus { background: var(--ebike-linen); border-color: var(--ebike-linen); color: var(--ebike-lake-deep); outline: none; }
body .flatpickr-day:focus-visible { box-shadow: 0 0 0 2px var(--ebike-lake); }
body .flatpickr-day.today { border-color: var(--ebike-lake); }
body .flatpickr-day.today:hover, body .flatpickr-day.today:focus { background: var(--ebike-linen); border-color: var(--ebike-lake); color: var(--ebike-lake-deep); }
body .flatpickr-day.selected, body .flatpickr-day.selected:hover, body .flatpickr-day.selected:focus { background: var(--ebike-lake-deep); border-color: var(--ebike-lake-deep); color: var(--ebike-paper); font-weight: 500; }
body .flatpickr-day.flatpickr-disabled, body .flatpickr-day.flatpickr-disabled:hover { color: var(--ebike-mist); background: transparent; border-color: transparent; cursor: default; }
/* other months' days: leading ones keep their cells (they offset the 1st), trailing ones collapse */
body .flatpickr-day.prevMonthDay { visibility: hidden; }
body .flatpickr-day.nextMonthDay { display: none; }

/* start time (ebike-site.js) */
.ebike-request-form .form-group.ebike-has-picker { position: relative; }
.ebike-picker { position: absolute; top: 100%; left: 0; z-index: 20; margin-top: 8px; display: flex; flex-direction: column; gap: 16px; }
.ebike-picker[hidden] { display: none; }
.ebike-picker__title { margin: 0; }
.ebike-timepicker__block { display: flex; flex-direction: column; gap: 8px; }
.ebike-timepicker__row { display: flex; gap: 16px; }
.ebike-timepicker__row .ebike-timepicker__block:first-child { flex: 2 1 0; }
.ebike-timepicker__row .ebike-timepicker__block:last-child { flex: 1 1 0; }
.ebike-timepicker__grid { display: grid; gap: 4px; }
.ebike-timepicker__grid--h { grid-template-columns: repeat(6, 1fr); }
.ebike-timepicker__grid--m { grid-template-columns: repeat(4, 1fr); }
.ebike-timepicker__grid--ap { grid-template-columns: repeat(2, 1fr); }
.ebike-timepicker__grid button {
	min-width: 0; height: 44px; padding: 0; font: 400 1rem/1 var(--ebike-sans); color: var(--ebike-lake-deep); text-align: center;
	background: transparent; border: 1px solid transparent; border-radius: 80px; cursor: pointer;
	transition: background-color var(--ebike-t-hover) var(--ebike-ease);
}
.ebike-timepicker__grid button:hover { background: var(--ebike-linen); }
.ebike-timepicker__grid button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ebike-lake); }
.ebike-timepicker__grid button[aria-pressed="true"] { background: var(--ebike-lake-deep); border-color: var(--ebike-lake-deep); color: var(--ebike-paper); font-weight: 500; }
.ebike-timepicker__grid--m button, .ebike-timepicker__grid--ap button { border-color: var(--ebike-hairline); }
.ebike-timepicker__done {
	align-self: flex-end; min-height: 44px; padding: 0 28px; border-radius: 80px; border: 1px solid var(--ebike-lake-deep);
	background: var(--ebike-lake-deep); color: var(--ebike-paper); font: 500 1rem/1 var(--ebike-sans); cursor: pointer;
	transition: background-color var(--ebike-t-hover) var(--ebike-ease);
}
.ebike-timepicker__done:hover { background: var(--ebike-lake); }
.ebike-timepicker__done:focus-visible { outline: 2px solid var(--ebike-lake); outline-offset: 2px; }
@media (max-width: 767px) { .ebike-picker { width: 100%; max-width: none; } }
.ebike-aside-block { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ebike-hairline); }
.ebike-mini-steps { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 10px; }
.ebike-mini-rates { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 16px; }
.ebike-mini-rates dd { margin: 0; font-family: var(--ebike-serif); font-weight: 600; font-size: 1.25rem; }

/* ---------- explore: rules, sources, towns ---------- */
.ebike-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.ebike-rule { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ebike-hairline); }
.ebike-source-link, .ebike-source-link a { font-size: 0.9375rem; line-height: 1.4; color: var(--ebike-lake); text-decoration: underline; text-underline-offset: 0.2em; }
.ebike-source-link::after { content: " \2197" / " (opens in a new tab)"; }
.ebike-rules__note { margin-top: 48px; }
@media (max-width: 991px) { .ebike-rules { grid-template-columns: 1fr; gap: 32px; } }
.ebike-town-list { margin: 0; }
.ebike-town-list__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--ebike-hairline); }
.ebike-town-list__row:last-child { border-bottom: 1px solid var(--ebike-hairline); }
.ebike-town-list__row dd { margin: 0; }
@media (max-width: 600px) { .ebike-town-list__row { grid-template-columns: 1fr; gap: 4px; } }
.ebike-photo--banner { aspect-ratio: 21 / 9; }
@media (max-width: 767px) { .ebike-photo--banner { aspect-ratio: 4 / 3; } }
.ebike-link-cta--plain, .ebike-link-cta--plain a { text-transform: none; letter-spacing: 0; font-size: 1.0625rem; }
.ebike-link-cta--plain::after { content: none; }

/* ---------- plain WordPress pages (no Bricks layout): privacy, legal ---------- */
body.ebike-no-hero #brx-content { padding: calc(var(--ebike-header-h-solid) + 80px) var(--ebike-gutter) var(--ebike-section-y-compact); }
body.ebike-no-hero #brx-content > * { max-width: 72ch; margin-inline: auto; }
body.ebike-no-hero #brx-content h1 { font-family: var(--ebike-serif); font-weight: 600; font-size: var(--ebike-fs-h2); line-height: 1.1; margin-bottom: 32px; }
body.ebike-no-hero #brx-content h2 { font-family: var(--ebike-serif); font-weight: 600; font-size: var(--ebike-fs-h3); line-height: 1.2; margin: 40px 0 12px; }
body.ebike-no-hero #brx-content p { margin: 0 0 16px; max-width: 64ch; }
body.ebike-no-hero .ebike-header .ebike-header__row { height: var(--ebike-header-h-solid); }

/* request form: a real two-column grid with gutters (Bricks' % widths have none) */
.ebike-request-form.brxe-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ebike-request-form .form-group, .ebike-request-form .submit-button-wrapper { width: auto !important; grid-column: span 1; }
.ebike-request-form .form-group:has([name="form-field-rqname"]),
.ebike-request-form .form-group:has([name="form-field-rqtown"]),
.ebike-request-form .form-group:has([name="form-field-rqnote"]),
.ebike-request-form .submit-button-wrapper,
.ebike-request-form .message,
.ebike-request-form .form-group:has([name="form-field-rqhpot"]) { grid-column: 1 / -1; }
.ebike-request-form label { text-transform: none; letter-spacing: 0; }
@media (max-width: 767px) { .ebike-request-form.brxe-form { grid-template-columns: 1fr; } }

/* ---------- mobile nav (Bricks 2.4 nav-nested: links are direct children; .brx-open is on the nav) ---------- */
@media (max-width: 991px) {
	.ebike-nav.brx-open {
		position: fixed; inset: 0; z-index: 99; background: var(--ebike-lake-deep);
		display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
		padding: 96px var(--ebike-gutter) 48px; box-sizing: border-box; overflow-y: auto;
	}
	.ebike-nav.brx-open .ebike-nav__link { display: block; font-family: var(--ebike-serif); font-weight: 600; font-size: 2rem; line-height: 1.15; letter-spacing: 0; text-transform: none; padding: 4px 0; }
	.ebike-nav.brx-open .ebike-nav__menu-only { display: block; margin-top: 16px; font-family: var(--ebike-sans); font-weight: 500; font-size: 1.125rem; }
	.ebike-nav.brx-open .ebike-nav__toggle { position: absolute; top: 12px; left: var(--ebike-gutter); }
	body.admin-bar .ebike-nav.brx-open { top: 46px; }
	/* compact header CTA: shows "Request", keeps the full accessible name "Request a rental" */
	.ebike-header .ebike-header__cta { font-size: 0; gap: 0; padding: 10px 18px; }
	.ebike-header .ebike-header__cta::before { content: "Request"; font-size: 0.9375rem; }
	/* hero content clears the fixed header when it is taller than the screen */
	.ebike-hero__body { padding-top: calc(var(--ebike-header-h) + 32px); }
}
@media (max-width: 767px) {
	.ebike-hero--home .ebike-rates-card { width: calc(100% + 2 * var(--ebike-gutter)); max-width: none; }
}
@media (max-width: 991px) {
	.ebike-nav.brx-open { width: 100vw; max-width: none; height: 100dvh; right: 0; bottom: 0; }
	.ebike-nav__toggle .brxa-inner, .ebike-nav__toggle .brxa-inner::before, .ebike-nav__toggle .brxa-inner::after { background-color: currentColor; }
}
@media (max-width: 767px) { .ebike-hero--home .ebike-hero__copy > .ebike-label { display: none; } }

/* ---------- ambient video (DESIGN.md → Motion → Ambient video) ----------
   The poster <picture> is always there; the video fades in over it only once it is
   actually playing, so a slow network or blocked autoplay just leaves the photo. */
.ebike-hero-media--video > .ebike-hero-media__poster,
.ebike-hero-media__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ebike-hero-media__video { object-fit: cover; opacity: 0; transition: opacity 600ms var(--ebike-ease); }
.ebike-hero-media--video.is-playing .ebike-hero-media__video { opacity: 1; }
.ebike-video-toggle {
	position: absolute; right: var(--ebike-gutter); bottom: 32px; z-index: 2;
	width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	color: var(--ebike-paper); background: rgba(25, 55, 65, 0.55); border: 1px solid rgba(255, 255, 255, 0.6);
	transition: background-color var(--ebike-t-hover) var(--ebike-ease), border-color var(--ebike-t-hover) var(--ebike-ease);
}
.ebike-video-toggle[hidden] { display: none; }
.ebike-video-toggle:hover { background: var(--ebike-lake-deep); border-color: var(--ebike-paper); }
.ebike-video-toggle:focus-visible { outline: 2px solid var(--ebike-paper); outline-offset: 3px; }
.ebike-video-toggle::before { /* pause: two bars */
	content: ""; width: 12px; height: 14px;
	background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px);
}
.is-paused > .ebike-video-toggle::before { /* play: triangle */
	width: 12px; height: 14px; margin-left: 3px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ebike-video-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 767px) {
	/* copy sits at the bottom on phones: the control moves to the top corner */
	.ebike-band .ebike-video-toggle { top: 24px; bottom: auto; }
	.ebike-hero .ebike-video-toggle { top: calc(var(--ebike-header-h) + 16px); bottom: auto; }
}

/* ---------- how it works: connecting line between the step markers (3-up only) ---------- */
@media (min-width: 768px) {
	.ebike-steps { position: relative; }
	.ebike-steps::before {
		content: ""; position: absolute; top: 24px; left: 24px; height: 1px;
		width: calc((100% - 96px) * 2 / 3 + 96px);
		background: var(--ebike-stone); transform-origin: left center;
	}
	.ebike-step::before { position: relative; z-index: 1; }
}

/* ---------- micro-interactions ---------- */
.brxe-button.ebike-btn, .ebike-btn { transition-property: background-color, color, border-color, transform; }
.brxe-button.ebike-btn:active, .ebike-btn:active, .ebike-request-form button[type="submit"]:active { transform: translateY(1px); }

@media (prefers-reduced-motion: no-preference) {
	/* text entrances: blocks rise 16px and fade in once; list items stagger 80ms (index from JS)
	   (transitions sit on the .is-in state only, so hiding never animates) */
	.ebike-motion .ebike-rise { opacity: 0; transform: translateY(16px); }
	.ebike-motion .ebike-rise.is-in {
		opacity: 1; transform: none;
		transition: opacity 600ms var(--ebike-ease), transform 600ms var(--ebike-ease);
		transition-delay: calc(var(--ebike-i, 0) * 80ms);
	}
	/* benefit icons settle a beat after their text */
	.ebike-motion .ebike-benefit.ebike-rise .ebike-benefit__icon { transform: scale(0.8); }
	.ebike-motion .ebike-benefit.ebike-rise.is-in .ebike-benefit__icon { transform: none; transition: transform 500ms var(--ebike-ease) calc(var(--ebike-i, 0) * 80ms + 150ms); }
	/* step line draws left to right under the markers */
	.ebike-motion .ebike-steps.ebike-line-armed::before { transform: scaleX(0); }
	.ebike-motion .ebike-steps.ebike-line-armed.is-in::before { transform: scaleX(1); transition: transform 900ms var(--ebike-ease) 200ms; }
	/* hero rates card follows the headline */
	.ebike-motion .ebike-hero--home .ebike-rates-card { animation: ebike-rise 600ms var(--ebike-ease) 300ms both; }
	/* mobile menu: links arrive in sequence */
	.ebike-motion .ebike-nav.brx-open .ebike-nav__link,
	.ebike-motion .ebike-nav.brx-open .ebike-nav__menu-only { animation: ebike-rise 420ms var(--ebike-ease) both; }
	.ebike-motion .ebike-nav.brx-open > :nth-child(2) { animation-delay: 40ms; }
	.ebike-motion .ebike-nav.brx-open > :nth-child(3) { animation-delay: 80ms; }
	.ebike-motion .ebike-nav.brx-open > :nth-child(4) { animation-delay: 120ms; }
	.ebike-motion .ebike-nav.brx-open > :nth-child(5) { animation-delay: 160ms; }
	.ebike-motion .ebike-nav.brx-open > :nth-child(n+6) { animation-delay: 200ms; }
	/* FAQ answer fades in with the height animation */
	.ebike-faq__item[open] .ebike-faq__answer { animation: ebike-fade 300ms var(--ebike-ease) both; }
	/* form: success / error message fades in, nothing shakes */
	.ebike-request-form .message { animation: ebike-fade 300ms var(--ebike-ease) both; }
	@keyframes ebike-fade { from { opacity: 0; } to { opacity: 1; } }
}
/* video is busier and brighter than the stills: a deeper scrim keeps text contrast */
@media (min-width: 768px) {
	.ebike-band:has(.ebike-hero-media--video) .ebike-band__scrim { background: linear-gradient(90deg, rgba(25, 55, 65, 0.88) 0%, rgba(25, 55, 65, 0.66) 50%, rgba(25, 55, 65, 0.22) 85%); }
	.ebike-hero:has(.ebike-hero-media--video) .ebike-hero__scrim {
		background:
			linear-gradient(90deg, rgba(25, 55, 65, 0.8) 0%, rgba(25, 55, 65, 0.6) 42%, rgba(25, 55, 65, 0.15) 75%),
			linear-gradient(180deg, rgba(25, 55, 65, 0.5) 0%, rgba(25, 55, 65, 0) 24%);
	}
}
@media (max-width: 767px) {
	.ebike-band:has(.ebike-hero-media--video) .ebike-band__scrim,
	.ebike-hero:has(.ebike-hero-media--video) .ebike-hero__scrim { background: linear-gradient(0deg, rgba(25, 55, 65, 0.92) 0%, rgba(25, 55, 65, 0.78) 50%, rgba(25, 55, 65, 0.5) 100%); }
}

/* ---------- signature: the window opens (DESIGN.md → Motion → Signature experience) ----------
   Default (no scroll-timeline support, reduced motion): a plain full-bleed video band with the
   line visible. With support: a tall section whose sticky stage opens the ride video from a
   small window to full bleed as you scroll, then the line rises in. */
.brxe-section.ebike-window { display: block; padding: 0; position: relative; background: var(--ebike-lake-deep); }
.ebike-window__stage { position: relative; height: min(88svh, 760px); overflow: hidden; }
.ebike-window .ebike-hero-media { position: absolute; inset: 0; margin: 0; }
.ebike-window__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(25, 55, 65, 0.88) 0%, rgba(25, 55, 65, 0.55) 40%, rgba(25, 55, 65, 0.1) 75%); }
.ebike-window__copy { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; box-sizing: border-box; padding: 0 var(--ebike-gutter) clamp(56px, 12vh, 120px); pointer-events: none; }
.ebike-window__line { max-width: 13ch; color: var(--ebike-paper); text-wrap: balance; }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		/* The window keeps the screen's proportions (equal insets) so it simply grows; the scene
		   inside stays still, like looking through a window you walk towards. Eased in and out,
		   over a short pinned run, and the line lands once the window is fully open. */
		.brxe-section.ebike-window { height: 190vh; view-timeline: --ebike-window block; }
		.ebike-window__stage { position: sticky; top: 0; height: 100svh; }
		.ebike-window .ebike-hero-media__poster,
		.ebike-window .ebike-hero-media__video {
			animation: ebike-window-open both; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
			animation-timeline: --ebike-window; animation-range: entry 70% contain 60%;
		}
		.ebike-window__scrim { animation: ebike-fade linear both; animation-timeline: --ebike-window; animation-range: contain 40% contain 70%; }
		.ebike-window__line { animation: ebike-window-line both; animation-timing-function: var(--ebike-ease); animation-timeline: --ebike-window; animation-range: contain 55% contain 85%; }
		@keyframes ebike-window-open { from { clip-path: inset(21% 21%); } to { clip-path: inset(0); } }
		@keyframes ebike-window-line { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
	}
}
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
	@supports (animation-timeline: view()) {
		.brxe-section.ebike-window { height: 170vh; }
		@keyframes ebike-window-open { from { clip-path: inset(16% 16%); } to { clip-path: inset(0); } }
	}
}

/* ---------- supporting: delivery-area lake map ---------- */
.ebike-map { margin: 0; width: 100%; }
.ebike-map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.ebike-map__lake { fill: var(--ebike-lake); stroke: var(--ebike-lake-deep); stroke-width: 2; stroke-linejoin: round; }
.ebike-map__water { font: italic 500 24px var(--ebike-serif); fill: var(--ebike-linen); letter-spacing: 0.02em; }
.ebike-map__town { --dot: 1; cursor: default; }
.ebike-map__dot { fill: var(--ebike-shore-sage); stroke: var(--ebike-lake-deep); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(var(--dot)); transition: transform 240ms var(--ebike-ease), fill 160ms var(--ebike-ease); }
.ebike-map__pulse { fill: none; stroke: var(--ebike-moss); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ebike-map__label { font: 600 26px var(--ebike-serif); fill: var(--ebike-lake-deep); }
.ebike-map__town.is-active .ebike-map__dot { transform: scale(calc(var(--dot) * 1.4)); fill: var(--ebike-moss); }
.ebike-map__credit { margin-top: 12px; font-size: 0.8125rem; line-height: 1.4; color: var(--ebike-slate); text-align: right; }
.ebike-map__credit a { color: inherit; }
.ebike-map-block { margin-top: 64px; }
.ebike-map-block .ebike-map { max-width: 960px; margin-inline: auto; }
[data-town] { transition: color var(--ebike-t-hover) var(--ebike-ease); }
.ebike-towns li.is-active, .ebike-town-list__row.is-active dt { color: var(--ebike-moss); }
@media (max-width: 767px) {
	.ebike-map__town { --dot: 1.6; }
	.ebike-map__label { font-size: 44px; }
	.ebike-map__water { font-size: 36px; }
	.ebike-map__town[data-town="fontana"] .ebike-map__label { text-anchor: start; transform: translate(0, 58px); }
	.ebike-map-block { margin-top: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
	.ebike-map__town.is-active .ebike-map__pulse { animation: ebike-pulse 1400ms var(--ebike-ease) infinite; }
	@keyframes ebike-pulse { from { opacity: 0.8; transform: scale(calc(var(--dot) * 1)); } to { opacity: 0; transform: scale(calc(var(--dot) * 3)); } }
	/* draw-in: armed by JS only for maps below the fold at load */
	.ebike-motion .ebike-map.is-armed .ebike-map__lake { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
	.ebike-motion .ebike-map.is-armed .ebike-map__water,
	.ebike-motion .ebike-map.is-armed .ebike-map__label { opacity: 0; }
	.ebike-motion .ebike-map.is-armed .ebike-map__dot { transform: scale(0); }
	.ebike-motion .ebike-map.is-armed.is-in .ebike-map__lake { stroke-dashoffset: 0; fill-opacity: 1; transition: stroke-dashoffset 1400ms var(--ebike-ease), fill-opacity 700ms var(--ebike-ease) 800ms; }
	.ebike-motion .ebike-map.is-armed.is-in .ebike-map__water { opacity: 1; transition: opacity 600ms var(--ebike-ease) 1100ms; }
	.ebike-motion .ebike-map.is-armed.is-in .ebike-map__dot { transform: scale(var(--dot)); transition: transform 500ms var(--ebike-ease) var(--ebike-town-delay, 1000ms); }
	.ebike-motion .ebike-map.is-armed.is-in .ebike-map__label { opacity: 1; transition: opacity 500ms var(--ebike-ease) calc(var(--ebike-town-delay, 1000ms) + 100ms); }
	.ebike-map__town:nth-of-type(1) { --ebike-town-delay: 1000ms; }
	.ebike-map__town:nth-of-type(2) { --ebike-town-delay: 1120ms; }
	.ebike-map__town:nth-of-type(3) { --ebike-town-delay: 1240ms; }
	.ebike-map__town:nth-of-type(4) { --ebike-town-delay: 1360ms; }
	/* JS removes .is-armed once the draw has finished, so hover states use their normal short transitions */
}

/* ---------- supporting: a day at the lake (scroll-linked light) ----------
   Default: only the real (afternoon) photo. With scroll-driven animation and no reduced-motion
   preference, the aligned morning layer fades out and the evening layer fades in as the figure
   crosses the viewport; the Morning / Afternoon / Evening labels follow. */
.ebike-day { margin: 0; }
.ebike-day__frame { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--ebike-linen); }
.ebike-day__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.ebike-day__img--morning, .ebike-day__img--evening { opacity: 0; }
.ebike-day__caption { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 0.8125rem; line-height: 1.45; color: var(--ebike-slate); }
.ebike-day__times { display: none; }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.ebike-day { view-timeline: --ebike-day block; }
		.ebike-day__img--morning { opacity: 1; animation: ebike-day-morning linear both; animation-timeline: --ebike-day; animation-range: cover 18% cover 60%; }
		.ebike-day__img--evening { animation: ebike-day-evening linear both; animation-timeline: --ebike-day; animation-range: cover 18% cover 60%; }
		@keyframes ebike-day-morning { 0%, 18% { opacity: 1; } 40%, 100% { opacity: 0; } }
		@keyframes ebike-day-evening { 0%, 60% { opacity: 0; } 84%, 100% { opacity: 1; } }
		.ebike-day__times { display: flex; gap: 20px; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
		.ebike-day__time { opacity: 0.35; color: var(--ebike-lake-deep); animation: linear both; animation-timeline: --ebike-day; animation-range: cover 18% cover 60%; }
		.ebike-day__time--morning { animation-name: ebike-time-morning; }
		.ebike-day__time--afternoon { animation-name: ebike-time-afternoon; }
		.ebike-day__time--evening { animation-name: ebike-time-evening; }
		@keyframes ebike-time-morning { 0%, 26% { opacity: 1; } 34%, 100% { opacity: 0.35; } }
		@keyframes ebike-time-afternoon { 0%, 28% { opacity: 0.35; } 36%, 64% { opacity: 1; } 72%, 100% { opacity: 0.35; } }
		@keyframes ebike-time-evening { 0%, 66% { opacity: 0.35; } 74%, 100% { opacity: 1; } }
	}
}
/* map sits on a quiet panel so it holds its column; panel flips to paper on linen sections */
.ebike-map { box-sizing: border-box; padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 16px; background: var(--ebike-linen); }
.ebike-section--linen .ebike-map { background: var(--ebike-paper); }
.ebike-day__caption { text-align: left; }

/* ---------- lake map: clickable places (towns + stops) ---------- */
.ebike-map__place[role="button"] { cursor: pointer; }
.ebike-map__place[role="button"]:hover .ebike-map__dot { transform: scale(calc(var(--dot) * 1.4)); fill: var(--ebike-moss); }
.ebike-map__place:focus { outline: none; }
.ebike-map__place:focus-visible .ebike-map__hit { stroke: var(--ebike-lake-deep); stroke-width: 3; stroke-dasharray: 4 4; }
.ebike-map__hit { fill: transparent; }
.ebike-map__stop { --dot: 1; }
.ebike-map__stop .ebike-map__dot { fill: var(--ebike-paper); stroke: var(--ebike-moss); stroke-width: 3; }
.ebike-map__stop .ebike-map__label { font: 500 19px var(--ebike-sans); fill: var(--ebike-slate); }
.ebike-map__stop[role="button"]:hover .ebike-map__label, .ebike-map__stop:focus-visible .ebike-map__label { fill: var(--ebike-lake-deep); }
.ebike-map__credit { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-align: left; }
.ebike-map__hint { color: var(--ebike-lake-deep); font-weight: 500; }
@media (max-width: 767px) {
	.ebike-map__stop { --dot: 1.6; }
	.ebike-map__stop .ebike-map__label { font-size: 30px; }
	.ebike-map__hit { transform: scale(1.7); }
}

/* ---------- place lightbox (native <dialog>) ---------- */
.ebike-place {
	width: min(600px, calc(100vw - 32px)); max-height: min(88dvh, 900px); padding: 0; border: 0; border-radius: 0;
	background: var(--ebike-paper); color: var(--ebike-lake-deep); box-shadow: 0 24px 64px rgba(25, 55, 65, 0.28); overflow: auto; overscroll-behavior: contain;
}
.ebike-place::backdrop { background: rgba(25, 55, 65, 0.62); }
.ebike-place__inner { position: relative; }
.ebike-place__close {
	position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
	border: 1px solid rgba(25, 55, 65, 0.25); background: var(--ebike-paper); color: var(--ebike-lake-deep);
	transition: background-color var(--ebike-t-hover) var(--ebike-ease);
}
.ebike-place__close::before, .ebike-place__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: currentColor; }
.ebike-place__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.ebike-place__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ebike-place__close:hover { background: var(--ebike-linen); }
.ebike-place__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ebike-place__photo { margin: 0; }
.ebike-place__photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ebike-place__photo figcaption { padding: 8px 32px 0; font-size: 0.75rem; line-height: 1.4; color: var(--ebike-slate); }
.ebike-place__body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.ebike-place__photo + .ebike-place__body { padding-top: 20px; }
.ebike-place:not(:has(.ebike-place__photo)) .ebike-place__body { padding-top: 40px; padding-right: 72px; }
.ebike-place__title { margin: 0; }
.ebike-place__summary { font-size: 1.0625rem; line-height: 1.55; }
.ebike-place__heading { margin: 8px 0 0; font: 500 0.8125rem/1.4 var(--ebike-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ebike-slate); }
.ebike-place__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ebike-place__list li { padding-left: 18px; position: relative; font-size: 1rem; line-height: 1.55; }
.ebike-place__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ebike-shore-sage); border: 1px solid var(--ebike-moss); }
.ebike-place__source { font-size: 0.875rem; color: var(--ebike-lake); white-space: nowrap; }
.ebike-place__source::after { content: " \2197" / ""; }
.ebike-place__note { margin-top: 4px; }
.ebike-place__actions { margin-top: 8px; }
@media (max-width: 600px) {
	.ebike-place { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; }
	.ebike-place__body { padding: 24px 20px 28px; }
	.ebike-place__photo figcaption { padding-inline: 20px; }
	.ebike-place__actions { flex-direction: column; align-items: stretch; }
	.ebike-place__actions .ebike-btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
	.ebike-place[open] { animation: ebike-place-in 280ms var(--ebike-ease); }
	.ebike-place[open]::backdrop { animation: ebike-fade 280ms var(--ebike-ease); }
	@keyframes ebike-place-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
body:has(dialog.ebike-place[open]) { overflow: hidden; }
/* labels keep a halo in the panel colour so they stay legible over the water */
.ebike-map { --ebike-map-bg: var(--ebike-linen); }
.ebike-section--linen .ebike-map { --ebike-map-bg: var(--ebike-paper); }
.ebike-map__label { paint-order: stroke fill; stroke: var(--ebike-map-bg); stroke-width: 7px; stroke-linejoin: round; }
/* place buttons under the map: the touch-friendly way in on small screens */
.ebike-map__places { display: none; margin: 16px 0 0; padding: 0; list-style: none; flex-wrap: wrap; gap: 8px; }
.ebike-map__chip {
	min-height: 44px; padding: 10px 16px; border-radius: 80px; cursor: pointer;
	font: 500 0.9375rem/1.2 var(--ebike-sans); color: var(--ebike-lake-deep);
	background: var(--ebike-paper); border: 1px solid var(--ebike-lake-deep);
	transition: background-color var(--ebike-t-hover) var(--ebike-ease);
}
.ebike-map__chip--stop { border-color: var(--ebike-moss); border-style: dashed; }
.ebike-map__chip:hover { background: var(--ebike-linen); }
.ebike-section--linen .ebike-map__chip:hover { background: var(--ebike-paper); }
@media (max-width: 991px) { .ebike-map__places { display: flex; } }
@media (max-width: 767px) { .ebike-map__stop .ebike-map__label { display: none; } }

/* ---------- lake map: roads, route labels, bike paths ---------- */
.ebike-map__road, .ebike-map__bike { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ebike-map__road--secondary { stroke: #d3ccc1; stroke-width: 1.25px; }
.ebike-map__road--primary { stroke: #b8ad9d; stroke-width: 2px; }
.ebike-map__road--freeway { stroke: #9d9183; stroke-width: 3px; }
.ebike-map__bike { stroke: var(--ebike-moss); stroke-width: 2.5px; }
.ebike-map__shield rect { fill: var(--ebike-paper); stroke: #9d9183; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.ebike-map__shield text { font: 600 15px var(--ebike-sans); fill: var(--ebike-lake-deep); }
.ebike-map__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; width: 100%; }
.ebike-map__key { display: inline-flex; align-items: center; gap: 8px; color: var(--ebike-lake-deep); }
.ebike-map__key::before { content: ""; width: 24px; height: 0; border-top: 2px solid #b8ad9d; }
.ebike-map__key--bike::before { border-top: 2.5px solid var(--ebike-moss); }
@media (max-width: 767px) {
	.ebike-map__shield > * { transform: scale(1.8); }
}
@media (prefers-reduced-motion: no-preference) {
	.ebike-motion .ebike-map.is-armed .ebike-map__roads,
	.ebike-motion .ebike-map.is-armed .ebike-map__shield { opacity: 0; }
	.ebike-motion .ebike-map.is-armed.is-in .ebike-map__roads,
	.ebike-motion .ebike-map.is-armed.is-in .ebike-map__shield { opacity: 1; transition: opacity 700ms var(--ebike-ease) 500ms; }
}
.ebike-map__trail { font: italic 500 18px var(--ebike-serif); fill: var(--ebike-moss); paint-order: stroke fill; stroke: var(--ebike-map-bg); stroke-width: 6px; stroke-linejoin: round; }
@media (max-width: 767px) { .ebike-map__trail { font-size: 30px; } }
/* photo credit on page heroes (licence attribution) */
.ebike-hero__credit { position: absolute; right: var(--ebike-gutter); bottom: 12px; z-index: 1; margin: 0; font-size: 0.75rem; line-height: 1.3; color: rgba(255, 255, 255, 0.78); text-align: right; max-width: 60%; }
@media (max-width: 767px) { .ebike-hero__credit { bottom: 10px; max-width: none; left: var(--ebike-gutter); } }
/* page heroes with busy real photos: a deeper phone scrim keeps the headline readable */
@media (max-width: 767px) {
	.ebike-hero--page:not(:has(.ebike-hero-media--video)) .ebike-hero__scrim { background: linear-gradient(0deg, rgba(25, 55, 65, 0.92) 0%, rgba(25, 55, 65, 0.74) 55%, rgba(25, 55, 65, 0.38) 85%, rgba(25, 55, 65, 0.5) 100%); }
}

/* ---------- logo: the client's mark, one colour (paper in the header, lake-deep in the footer) ---------- */
.ebike-logo, .ebike-logo img { display: block; width: auto; height: 64px; }
.ebike-header .ebike-logo, .ebike-header .ebike-logo img { transition: height 200ms var(--ebike-ease); }
.ebike-header.is-solid .ebike-logo, .ebike-header.is-solid .ebike-logo img,
body.ebike-no-hero .ebike-header .ebike-logo, body.ebike-no-hero .ebike-header .ebike-logo img { height: 44px; }
.ebike-logo--footer, .ebike-logo--footer img { height: 72px; }
@media (max-width: 767px) { .ebike-header .ebike-logo, .ebike-header .ebike-logo img { height: 52px; } }
@media (prefers-reduced-motion: reduce) { .ebike-header .ebike-logo, .ebike-header .ebike-logo img { transition: none; } }

/* ---------- the bikes: manufacturer cut-out on white (high-res restoration of the 300px original) ---------- */
figure.ebike-bike { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; background: var(--ebike-paper); }
figure.ebike-bike img.ebike-bike__img, figure.ebike-bike .ebike-bike__img img { width: 100%; max-width: 720px; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.ebike-bike__caption { align-self: stretch; display: flex; align-items: center; gap: 16px; text-align: left; padding-top: 16px; border-top: 1px solid var(--ebike-hairline); font-size: 1rem; line-height: 1.5; color: var(--ebike-slate); }
figure.ebike-bike img.ebike-bike__detail, figure.ebike-bike .ebike-bike__detail img { flex: none; width: 120px; height: 80px; object-fit: cover; }
.ebike-bike--plate { padding: 48px; }
@media (max-width: 767px) { .ebike-bike--plate { padding: 24px; } .ebike-bike__caption { align-items: flex-start; } }
@media (max-width: 991px) { figure.ebike-bike.ebike-split__media { margin-bottom: 40px; } }
/* footer on tablet: the contact column is too narrow for the email address at 3 of 12 columns */
@media (min-width: 768px) and (max-width: 991px) {
	.ebike-footer__brand { grid-column: 1 / -1; }
	.ebike-footer__col:nth-child(2) { grid-column: 1 / span 6; }
	.ebike-footer__col:nth-child(3) { grid-column: 7 / span 6; }
}
.ebike-footer__link { overflow-wrap: anywhere; }
