/* ==========================================================================
   Bike Buddy — styles
   1. Tokens (light, then dark)   2. Base   3. Layout   4. Components
   5. Sections (shared chrome, then Home · Shop · Rides · Routes · Visit)
   6. Dialog, toast, utilities
   Pages: index.html (Home), shop.html, rides.html, routes.html, visit.html
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand, sampled from the logo */
  --brand-navy: #052C58;
  --brand-orange: #FC8114;

  /* Light palette — cool neutrals biased toward the brand navy */
  --ground: #F3F5F9;
  --surface: #FFFFFF;
  --surface-2: #E8EDF4;
  --ink: #0B1B34;
  --ink-2: #4A5A72;
  --heading: #052C58;
  --line: #D6DDE8;
  --accent: #FC8114;
  --accent-ink: #B35000;        /* orange for small text on light grounds */
  --accent-display: #D96200;    /* orange for large display text */
  --focus: var(--accent-ink);   /* keyboard focus ring; bright orange on navy, navy on orange */
  --on-accent: #052C58;
  --strong-bg: #052C58;
  --strong-fg: #FFFFFF;
  --band: #052C58;
  --band-2: #0A3A70;
  --band-ink: #F2F6FC;
  --band-ink-2: #B7C6DB;
  --band-line: rgba(255, 255, 255, 0.16);
  --photo-bg: #E3E7ED;
  --shadow-1: 0 1px 2px rgba(5, 44, 88, 0.05), 0 8px 24px -12px rgba(5, 44, 88, 0.18);
  --shadow-2: 0 2px 6px rgba(5, 44, 88, 0.08), 0 24px 56px -20px rgba(5, 44, 88, 0.35);
  --scrim: rgba(3, 17, 36, 0.6);
  --header-bg: rgba(243, 245, 249, 0.86);
  --swatch-ring: rgba(0, 0, 0, 0.2);
  --error: #C2362F;

  /* Route sketches */
  --map-water: #D3E3F4;
  --map-land: #F7F8FA;
  --map-park: #D4EBDC;
  --map-note: #7A8AA3;

  /* Route difficulty: colour · chip background · chip text */
  --easy: #12A594;        --easy-bg: #D8F2EE;       --easy-fg: #0A5A51;
  --moderate: #FC8114;    --moderate-bg: #FFE6CF;   --moderate-fg: #8A3C00;
  --adventure: #E0413A;   --adventure-bg: #FBDCDA;  --adventure-fg: #8D1C17;
  --family: #E8AE00;      --family-bg: #FFF0BA;     --family-fg: #684D00;

  /* MRT line colours */
  --mrt-cc: #FA9E0D;
  --mrt-dt: #005EC4;

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --gutter: clamp(16px, 4vw, 44px);
  --max: 1240px;
  --header-h: 72px;

  --section-bg: var(--ground);
  --card: var(--surface);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #061326;
    --surface: #0B1D38;
    --surface-2: #13294A;
    --ink: #E8EEF8;
    --ink-2: #A3B2C9;
    --heading: #F4F7FC;
    --line: #1F3659;
    --accent: #FF8A24;
    --accent-ink: #FFA552;
    --accent-display: #FF9233;
    --on-accent: #052C58;
    --strong-bg: #EAF0F9;
    --strong-fg: #052C58;
    --band: #0A2346;
    --band-2: #11305C;
    --band-ink: #F2F6FC;
    --band-ink-2: #AEBED6;
    --band-line: rgba(255, 255, 255, 0.14);
    --photo-bg: #13294A;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 56px -20px rgba(0, 0, 0, 0.8);
    --scrim: rgba(1, 7, 16, 0.72);
    --header-bg: rgba(6, 19, 38, 0.84);
    --error: #FF8F88;
    --swatch-ring: rgba(255, 255, 255, 0.3);
    --map-water: #0C2446;
    --map-land: #16325A;
    --map-park: #1B4535;
    --map-note: #8394AE;
    --easy-bg: #0D3A36;     --easy-fg: #86E2D5;
    --moderate-bg: #41250B; --moderate-fg: #FFBC7D;
    --adventure-bg: #43181A; --adventure-fg: #FFA29C;
    --family-bg: #3D3211;   --family-fg: #FFD966;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #061326;
  --surface: #0B1D38;
  --surface-2: #13294A;
  --ink: #E8EEF8;
  --ink-2: #A3B2C9;
  --heading: #F4F7FC;
  --line: #1F3659;
  --accent: #FF8A24;
  --accent-ink: #FFA552;
  --accent-display: #FF9233;
  --on-accent: #052C58;
  --strong-bg: #EAF0F9;
  --strong-fg: #052C58;
  --band: #0A2346;
  --band-2: #11305C;
  --band-ink: #F2F6FC;
  --band-ink-2: #AEBED6;
  --band-line: rgba(255, 255, 255, 0.14);
  --photo-bg: #13294A;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 56px -20px rgba(0, 0, 0, 0.8);
  --scrim: rgba(1, 7, 16, 0.72);
  --header-bg: rgba(6, 19, 38, 0.84);
  --error: #FF8F88;
  --swatch-ring: rgba(255, 255, 255, 0.3);
  --map-water: #0C2446;
  --map-land: #16325A;
  --map-park: #1B4535;
  --map-note: #8394AE;
  --easy-bg: #0D3A36;     --easy-fg: #86E2D5;
  --moderate-bg: #41250B; --moderate-fg: #FFBC7D;
  --adventure-bg: #43181A; --adventure-fg: #FFA29C;
  --family-bg: #3D3211;   --family-fg: #FFD966;
  color-scheme: dark;
}

/* Difficulty helpers used by the route chips */
.lvl-easy      { --lvl: var(--easy); --lvl-bg: var(--easy-bg); --lvl-fg: var(--easy-fg); }
.lvl-moderate  { --lvl: var(--moderate); --lvl-bg: var(--moderate-bg); --lvl-fg: var(--moderate-fg); }
.lvl-adventure { --lvl: var(--adventure); --lvl-bg: var(--adventure-bg); --lvl-fg: var(--adventure-fg); }
.lvl-family    { --lvl: var(--family); --lvl-bg: var(--family-bg); --lvl-fg: var(--family-fg); }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.05;
  text-wrap: balance;
}
h1, h2 {
  font-weight: 800;
  font-style: italic;
  font-stretch: 112%;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.7rem, 1.35rem + 5.4vw, 5.5rem); line-height: 0.98; }
h2 { font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.45rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + 0.45vw, 1.42rem); font-weight: 700; line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.announce, .band, .site-footer, .mrt-rule { --focus: var(--brand-orange); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  background: var(--strong-bg);
  color: var(--strong-fg);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  background: var(--section-bg);
  padding-block: clamp(4rem, 2.8rem + 5vw, 7.5rem);
}
.section-alt { --section-bg: var(--surface); --card: var(--ground); }
.page-top { padding-top: clamp(2.5rem, 1.6rem + 3vw, 4.75rem); }
.page-title { font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.4rem); line-height: 1; }

/* h2s that sit under a page title but read at h3 size */
.step-title,
.matcher-title,
.route-name {
  font-size: clamp(1.18rem, 1.05rem + 0.45vw, 1.42rem);
  font-weight: 700;
  font-style: normal;
  font-stretch: 100%;
  letter-spacing: 0;
  line-height: 1.2;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}
.section-intro { color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }

/* 4. Components ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--card);
  --btn-fg: var(--heading);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1rem/1.15 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  box-shadow: 0 8px 20px -10px rgba(252, 129, 20, 0.9);
}
.btn-primary:hover { --btn-bg: #FF9636; }
.btn-ghost {
  --btn-bg: transparent;
  --btn-bd: color-mix(in srgb, var(--heading) 30%, transparent);
}
.btn-ghost:hover { --btn-bd: var(--heading); }
.btn-strong { --btn-bg: var(--strong-bg); --btn-fg: var(--strong-fg); }
.btn-wa { --btn-bg: #25D366; --btn-fg: #062E1C; }
.btn-wa:hover { --btn-bg: #3BE078; }
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.93rem; }
.btn-block { width: 100%; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.3rem;
  border: 0;
  background: none;
  color: var(--heading);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 4px;
}
.btn-text:hover { text-decoration-color: currentColor; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
}
.text-link .icon { transition: transform 0.15s ease; }
.text-link:hover .icon { transform: translateX(3px); }

.inline-link {
  color: var(--heading);
  font-weight: 700;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
}
.inline-link:hover { text-decoration-color: currentColor; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 600 0.95rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.chip-btn:hover { border-color: var(--heading); }
.chip-btn[aria-pressed="true"] {
  background: var(--strong-bg);
  border-color: var(--strong-bg);
  color: var(--strong-fg);
}

/* Choice chips built on real radio/checkbox inputs */
.opt-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.opt { position: relative; display: inline-flex; }
.opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.opt:hover span { border-color: var(--heading); }
.opt input:checked + span {
  background: var(--strong-bg);
  border-color: var(--strong-bg);
  color: var(--strong-fg);
}
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.42em;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* 5. Sections -------------------------------------------------------------- */

/* Announcement bar */
.announce { background: var(--band); color: var(--band-ink); font-size: 0.92rem; }
.announce-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  padding-block: 0.55rem;
  text-align: center;
}
.announce a { color: var(--band-ink); font-weight: 700; text-underline-offset: 3px; }
.announce-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand-orange); flex: none; }
/* Phones get the one-line version: "Test rides near MacPherson MRT. Book →" */
@media (max-width: 560px) {
  .announce-dot, .announce-more { display: none; }
  .announce-inner { flex-wrap: nowrap; gap: 0.6rem; }
  .announce a { flex: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  text-decoration: none;
}
.brand img { width: 46px; height: 46px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-stretch: 108%;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--heading);
}
.wordmark span { color: var(--brand-orange); }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--heading);
}
.nav .nav-join { display: none; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
  .site-header[data-open="true"] .nav { display: flex; }
  .nav a {
    padding: 0.95rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .nav a:hover { background: none; color: var(--accent-ink); }
  .nav a[aria-current="page"] {
    background: none;
    color: var(--accent-ink);
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: 0.85rem;
  }
  .nav .nav-join { display: block; border-bottom: 0; color: var(--accent-ink); font-weight: 700; }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--heading);
    cursor: pointer;
  }
  .nav-toggle .icon { width: 22px; height: 22px; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .wordmark { font-size: 1.3rem; }
}

/* Home: hero */
.hero {
  position: relative;
  overflow-x: clip; /* the ring rotates in on load; keep it from widening the page */
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 6rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
}
.hero h1 { margin-block: 0 1.5rem; }
.smile-word {
  position: relative;
  display: inline-block;
  color: var(--accent-display);
  padding-right: 0.06em;
}
.smile {
  position: absolute;
  left: 3%;
  bottom: -0.2em;
  width: 94%;
  height: 0.3em;
  overflow: visible;
  fill: var(--brand-orange);
  animation: smile-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}
@keyframes smile-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.28rem); color: var(--ink-2); max-width: 35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-chat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 2.25rem;
  padding: 0.7rem 1.1rem 0.7rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hero-chat:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.hc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #25D366;
  color: #062E1C;
}
.hc-icon .icon { width: 1.6rem; height: 1.6rem; stroke-width: 1.6; }
.hc-main { display: grid; gap: 0.05rem; min-width: 0; }
.hc-number { color: var(--heading); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hc-note { color: var(--ink-2); font-size: 0.92rem; }
.hc-arrow { margin-left: 0.25rem; color: var(--heading); }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 540px);
}
.hero-circle {
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--photo-bg);
  box-shadow: var(--shadow-2);
}
.hero-circle img { width: 100%; height: 100%; object-fit: cover; }
.hero-ring {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
  overflow: visible;
  pointer-events: none;
  animation: ring-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-ring circle {
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 1.5;
  stroke-linecap: round;
  /* Two arcs like the logo's ring: a long top arc and a short bottom arc */
  stroke-dasharray: 29.63 16.93 59.26 16.93 182;
}
@keyframes ring-in {
  from { transform: rotate(-40deg); }
  to { transform: rotate(0deg); }
}
.hero-note {
  position: absolute;
  left: -2%;
  bottom: 7%;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  color: var(--ink-2);
  font-size: 0.98rem;
}
.hero-note strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 108%;
  color: var(--heading);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(86%, 420px); margin-top: 0.5rem; }
  .hero-note { left: -6%; }
}
@media (max-width: 520px) {
  .hero-chat { width: 100%; }
}

/* Home: perks strip */
.perks { background: var(--surface); border-block: 1px solid var(--line); }
.perk-list {
  list-style: none;
  margin-block: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding-block: 1.3rem;
}
.perk-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--heading);
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.3;
}
.perk-list .icon {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-ink);
  stroke-width: 1.7;
}
@media (max-width: 900px) { .perk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .perk-list { grid-template-columns: 1fr; } }

/* Ride band (Home teaser and the Rides page) */
.band {
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(4rem, 2.8rem + 5vw, 7rem);
}
.band h1, .band h2, .band h3 { color: var(--band-ink); }
.band.page-top { padding-top: clamp(2.5rem, 1.6rem + 3vw, 4.75rem); }
.ride-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: start;
}
.band-lede { margin-top: 1.1rem; color: var(--band-ink-2); font-size: 1.08rem; max-width: 46ch; }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.6rem;
  margin: 2.25rem 0 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  column-gap: 1.1rem;
  row-gap: 0.3rem;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 2px solid var(--band-line);
  border-radius: 50%;
  color: var(--brand-orange);
  font: italic 800 1.5rem/1 var(--font-display);
}
.steps p { color: var(--band-ink-2); }
.ride-copy > .btn { margin-top: 2.25rem; }
.ride-grid-center { align-items: center; }
.band-ticks { margin-top: 1.75rem; font-weight: 600; }

.ride-photo {
  margin: 0;
  border: 1px solid var(--band-line);
  border-radius: var(--radius-l);
  background: var(--band-2);
  overflow: hidden;
}
.ride-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ride-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.ride-collage .rc-main { grid-column: 1 / -1; }
.ride-photo figcaption { display: grid; gap: 0.8rem; padding: 1.4rem 1.5rem 1.6rem; }
.ticks-light li { color: var(--band-ink); }

.extras {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--band-line);
}
.extras-title {
  color: var(--band-ink);
  font: 700 1.1rem/1.3 var(--font-display);
}
.extras-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.extras-list li { display: grid; align-content: start; gap: 0.3rem; color: var(--band-ink-2); font-size: 0.95rem; }
.extras-list .icon { width: 1.6rem; height: 1.6rem; margin-bottom: 0.3rem; color: var(--brand-orange); }
.extras-list strong { color: var(--band-ink); font-size: 1.02rem; }

@media (max-width: 1000px) {
  .extras { grid-template-columns: 1fr; }
  .extras-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) { .ride-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .extras-list { gap: 1.25rem 1rem; }
  .ride-collage .rc-main { aspect-ratio: 16 / 10; }
}

/* Home: route cards */
.mini-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.mini-route {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mini-route:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.mini-route img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--photo-bg);
}
.mini-route-body { display: grid; gap: 0.6rem; padding: 1.1rem 1.2rem 1.25rem; }
@media (max-width: 900px) { .mini-routes { grid-template-columns: 1fr; } }
@media (min-width: 560px) and (max-width: 900px) {
  .mini-route { flex-direction: row; }
  .mini-route img { width: 42%; flex: none; aspect-ratio: auto; min-height: 9rem; }
  .mini-route-body { align-content: center; }
}

/* Closing panel: the one call to action that ends a page */
.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--radius-l);
  background: var(--accent);
  color: var(--on-accent);
}
.cta-panel h2 { color: var(--on-accent); }
.cta-panel { --focus: var(--on-accent); }
.cta-copy { display: grid; gap: 1.2rem; justify-items: start; }
.cta-copy > p:not(.cta-meta) { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 44ch; }
.cta-copy > .btn { margin-top: 0.4rem; }
.cta-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.cta-meta .icon { margin-top: 0.15em; }
.cta-meta a { font-weight: 800; text-underline-offset: 3px; }
.cta-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
  background: var(--photo-bg);
}
@media (max-width: 820px) { .cta-panel { grid-template-columns: 1fr; } }

/* Shop: bikes */
.matcher {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  margin-bottom: 2.25rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
}
.matcher-head { display: grid; gap: 0.35rem; align-content: start; }
.matcher-head p { color: var(--ink-2); font-size: 0.97rem; }
.matcher fieldset, .join-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.matcher legend, .join-form legend {
  margin-bottom: 0.6rem;
  padding: 0;
  color: var(--heading);
  font-weight: 700;
}
.matcher-result:empty { display: none; }
.matcher-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}
.picks-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.picks-head p { color: var(--ink-2); font-size: 0.95rem; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.pick {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--section-bg);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pick:hover { border-color: var(--heading); transform: translateY(-1px); }
.pick img { width: 88px; height: 66px; border-radius: 9px; object-fit: cover; background: var(--photo-bg); }
.pick-name { display: block; font-weight: 700; line-height: 1.25; color: var(--heading); }
@media (max-width: 1000px) {
  .matcher { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr; }
}

.bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
  gap: 1.5rem 1.25rem;
}
.bike-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.bike-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.bike-card.is-pick { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.bike-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: var(--photo-bg);
  overflow: hidden;
  cursor: pointer;
}
.bike-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}
.bike-card:hover .bike-media img { transform: scale(1.035); }
.bike-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: var(--band);
  color: var(--band-ink);
  font: 700 0.7rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bike-badge.is-pick { background: var(--accent); color: var(--on-accent); }
.bike-body { display: flex; flex-direction: column; gap: 0.45rem; flex: 1; padding: 1rem 1.1rem 1.15rem; }
.bike-name { font-size: 1.25rem; }
.bike-spec { color: var(--ink-2); font-size: 0.93rem; }
.bike-colour { color: var(--ink-2); font-size: 0.88rem; min-height: 1.4em; }
.bike-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.swatches { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 3px; }
.swatch {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px var(--swatch-ring);
  cursor: pointer;
}
.swatch::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: border-color 0.15s ease;
}
.swatch:hover::after { border-color: var(--line); }
.swatch[aria-pressed="true"]::after { border-color: var(--heading); }
.swatch-more {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 0.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.swatch-more:hover { background: var(--line); }

/* Phones: two bikes per row, with a compact card (the fold type always stays in view) */
@media (max-width: 620px) {
  .bike-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; }
}
@media (max-width: 520px) {
  .bike-badge { top: 0.5rem; left: 0.5rem; padding: 0.28rem 0.5rem; font-size: 0.62rem; }
  .bike-body { gap: 0.4rem; padding: 0.75rem 0.75rem 0.8rem; }
  .bike-name { font-size: 1.02rem; }
  .bike-spec {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .bike-colour { font-size: 0.8rem; }
  .swatches { gap: 0.4rem; }
  .bike-foot { flex-direction: column; align-items: stretch; gap: 0.15rem; padding-top: 0.35rem; }
  .bike-foot .text-link { justify-content: center; min-height: 40px; font-size: 0.93rem; }
}

.grid-foot {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: 2.25rem;
  text-align: center;
}
.grid-count { color: var(--ink-2); font-size: 0.95rem; }
.grid-note { color: var(--ink-2); font-size: 0.92rem; }

/* Shop: bifold or trifold */
.fold-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 1.25rem;
}
.fold-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  overflow: hidden;
}
.fold-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fold-card figcaption { display: grid; gap: 0.7rem; padding: 1.3rem 1.4rem 1.5rem; }
.fold-examples {
  margin-top: 0.35rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 0.92rem;
}
.mrt-rule {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 1rem + 1vw, 1.9rem);
  border-radius: var(--radius-m);
  background: var(--band);
  color: var(--band-ink-2);
}
.mrt-rule p:not(.mrt-dims) { font-size: 0.97rem; }
.dims { width: 100%; max-width: 280px; height: auto; }
.dims .d-top { fill: rgba(255, 255, 255, 0.12); stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.3; }
.dims .d-side { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.3; }
.dims .d-front { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.3; }
.dims .d-bike { fill: none; stroke: var(--brand-orange); stroke-width: 3; stroke-linecap: round; }
.dims .d-label { fill: var(--band-ink); font: 700 11px var(--font-body); }
.mrt-dims {
  color: var(--band-ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(1.6rem, 1.25rem + 0.9vw, 2.05rem);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.link-light {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--band-ink);
  font-weight: 700;
  text-underline-offset: 4px;
}
@media (max-width: 1040px) {
  .fold-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrt-rule { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .fold-grid { grid-template-columns: 1fr; } }

/* Routes */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.route {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  overflow: hidden;
}
.route-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--photo-bg); }
/* Name across the top, then the stat chips beside the sketch, so long names don't get squeezed */
.route-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name name" "stats map";
  align-items: center;
  gap: 0.7rem 0.9rem;
}
.route-title { display: contents; }
.route-name { grid-area: name; }
.route-title .route-stats { grid-area: stats; }
.route-map { grid-area: map; display: block; flex: none; width: 112px; height: auto; aspect-ratio: 320 / 170; border: 1px solid var(--line); border-radius: 10px; }
.route-map .m-water { fill: var(--map-water); }
.route-map .m-land { fill: var(--map-land); }
.route-map .m-park { fill: var(--map-park); }
.route-map .m-river { fill: none; stroke: var(--map-water); stroke-width: 10; stroke-linecap: round; }
.route-map .m-corridor { fill: none; stroke: var(--map-park); stroke-width: 30; stroke-linecap: round; }
.route-map .m-ferry { fill: none; stroke: var(--heading); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; }
.route-map .m-path { fill: none; stroke: var(--brand-orange); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.route-map .m-dot { fill: var(--surface); stroke: var(--brand-orange); stroke-width: 2; }
.route-map .m-start { fill: var(--brand-orange); stroke: var(--surface); stroke-width: 2.5; }
.route-map .m-end { fill: var(--surface); stroke: var(--brand-orange); stroke-width: 3.5; }
.route-map .m-note { display: none; }
.route-body { display: grid; gap: 0.6rem; padding: 1.2rem 1.3rem 1.4rem; }
.route-body > p:not(.route-ends) { color: var(--ink-2); font-size: 0.97rem; }
.route-stats { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stat {
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font: 700 0.72rem/1 var(--font-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.stat.lvl-chip { background: var(--lvl-bg); color: var(--lvl-fg); }
.route-ends {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.2rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.route-ends .icon { margin-top: 0.15em; color: var(--accent-ink); }
.route-ends a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.route-ends a:hover { text-decoration-color: currentColor; }
@media (max-width: 1000px) { .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .route-grid { grid-template-columns: 1fr; } }

/* Rides: Buddy Code */
.code-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.code-head { display: grid; gap: 0.9rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.code-head > p { color: var(--ink-2); max-width: 40ch; }
.code-photo { display: block; width: 100%; max-width: 26rem; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 0.6rem; border-radius: var(--radius-m); background: var(--photo-bg); }
.code-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.code-list li {
  position: relative;
  padding: 1.3rem 1.3rem 1.35rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.98rem;
}
.code-list li::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 0.9rem;
  margin-bottom: 0.9rem;
  background: var(--brand-orange);
  /* the logo's smile, as a mask */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath d='M4 5C58 42 142 42 196 5 150 27 50 27 4 5Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath d='M4 5C58 42 142 42 196 5 150 27 50 27 4 5Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.code-list strong { display: block; margin-bottom: 0.25rem; color: var(--heading); font-size: 1.06rem; }
@media (max-width: 900px) {
  .code-grid { grid-template-columns: 1fr; }
  .code-head { position: static; }
}
@media (max-width: 560px) { .code-list { grid-template-columns: 1fr; } }

/* Rides: join form */
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.join-copy { display: grid; gap: 1.1rem; }
.join-copy > p { color: var(--ink-2); font-size: 1.08rem; max-width: 42ch; }
.join-points { font-weight: 600; color: var(--heading); }
.join-photo { margin: 0.75rem 0 0; border-radius: var(--radius-l); overflow: hidden; }
.join-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.join-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow-1);
}
.join-form .opt span { background: var(--section-bg); }
.field > label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--heading);
  font-weight: 700;
}
.legend-hint { color: var(--ink-2); font-weight: 500; }
.field input[type="text"],
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--section-bg);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 0.45rem; color: var(--error); font-size: 0.92rem; font-weight: 600; }
.form-hint { margin-top: -0.6rem; color: var(--ink-2); font-size: 0.9rem; text-align: center; }
.join-result {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: var(--radius-m);
  background: var(--surface-2);
}
.join-result[hidden] { display: none; }
.join-result:focus { outline: none; }
.join-result-title { display: flex; align-items: center; gap: 0.5rem; color: var(--heading); font-weight: 700; }
.join-result-title .icon { color: var(--easy); stroke-width: 2.6; }
.join-message {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: 0.95rem/1.55 var(--font-body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.join-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } }

/* Visit */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.visit-photo { margin: 0; border-radius: var(--radius-l); overflow: hidden; background: var(--photo-bg); }
.visit-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.visit-copy { display: grid; gap: 1.1rem; justify-items: start; }
.address { font-style: normal; font-size: 1.15rem; line-height: 1.55; }
.address strong { color: var(--heading); }
.mrt-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; font-weight: 600; }
.mrt-code {
  display: inline-grid;
  place-items: center;
  min-width: 3rem;
  height: 1.55rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font: 800 0.78rem/1 var(--font-display);
  letter-spacing: 0.04em;
}
.mrt-cc { background: var(--mrt-cc); color: #1B1300; }
.mrt-dt { background: var(--mrt-dt); color: #FFFFFF; }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-weight: 700;
  font-size: 1.08rem;
}
.contact-line > .icon { width: 1.3em; height: 1.3em; color: #1DA851; }
.contact-line a { color: var(--heading); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-text-sm { min-height: 36px; font-size: 0.9rem; }
.visit-note { color: var(--ink-2); max-width: 46ch; }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; margin-top: 0.4rem; }
/* The photo comes after the details in the HTML (so phones show the address first) and moves left on wide screens */
@media (min-width: 901px) { .visit-photo { order: -1; } }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }

.visit-title { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); }

/* 404 */
.not-found .section-intro { margin-top: 1.1rem; }

/* FAQ (Rides and Visit) */
.faq-title { margin-bottom: 1.5rem; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 1.2rem 3rem 1.2rem 0;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.08rem;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2.5px solid var(--accent-ink);
  border-bottom: 2.5px solid var(--accent-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding-bottom: 1.35rem; color: var(--ink-2); max-width: 68ch; }

/* Footer */
.site-footer {
  background: var(--band);
  color: var(--band-ink-2);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer-brand { display: grid; gap: 1rem; align-content: start; max-width: 30ch; }
.footer-brand img { width: 72px; height: 72px; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h3 {
  margin-bottom: 0.3rem;
  color: var(--band-ink);
  font: 700 0.8rem/1.2 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--band-line);
  font-size: 0.92rem;
}
.credits { margin-top: 2.25rem; font-size: 0.86rem; }
.credits summary { width: fit-content; color: var(--band-ink); font-weight: 600; cursor: pointer; }
.credits ul { display: grid; gap: 0.4rem; margin: 0.9rem 0 0; padding-left: 1.1rem; }
.credits p { margin-top: 0.8rem; max-width: 70ch; }
.site-footer .credits a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: logo row, then Ride and Shop side by side, then Visit */
@media (max-width: 480px) {
  .footer-grid { gap: 1.75rem 1.25rem; }
  .footer-brand, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-brand { grid-template-columns: auto minmax(0, 1fr); align-items: center; max-width: none; }
  .footer-brand img { width: 56px; height: 56px; }
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1DA851;
  color: #FFFFFF;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; stroke-width: 1.6; }

/* 6. Dialog, toast, utilities --------------------------------------------- */
.bike-dialog {
  width: min(1080px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  overflow: auto;
}
.bike-dialog::backdrop { background: var(--scrim); }
.bike-dialog[open] { animation: dialog-in 0.22s ease-out; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.bd-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.bd-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
}
.bd-media { background: var(--photo-bg); }
.bd-main { aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; }
.bd-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease; }
img.is-loading { opacity: 0.45; }
.bd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.75rem;
}
.bd-thumbs:empty { display: none; }
.bd-thumbs button {
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
}
.bd-thumbs button[aria-current="true"] { border-color: var(--accent); }
.bd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bd-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem);
  padding-right: clamp(1.4rem, 1rem + 2vw, 2.75rem);
}
.bd-info h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); padding-right: 2.5rem; }
.bd-blurb { color: var(--ink-2); }
.bd-colours { display: grid; gap: 0.5rem; }
.bd-colour-label { font-size: 0.95rem; color: var(--ink-2); }
.bd-colour-label strong { color: var(--heading); }
.bd-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.bd-specs li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.88rem;
  font-weight: 600;
}
.bd-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.bd-note { color: var(--ink-2); font-size: 0.88rem; }
@media (max-width: 820px) {
  .bd-inner { grid-template-columns: 1fr; }
  .bd-info h2 { padding-right: 0; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  transform: translateX(-50%);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--strong-bg);
  color: var(--strong-fg);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-2);
}

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

/* Section heads stack on narrow screens */
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}
