/* ============================================================
   Orbis Care: The Arden Line
   A local route map of Arden. White ground, near-black ink, one
   purple-to-blue route line with white-cored stop roundels, ruled
   timetable rows and fares in tabular numerals.
   Loaded after styles.css. Shared chrome (header, menu, footer,
   action bar) applies to every page; page bodies opt in with
   <body class="arden">.
   ============================================================ */

:root {
  --a-ink: #1A1A2E;
  --a-ink-2: #3D3D55;
  --a-muted: #55556D;
  --a-rule: #DCD5E5;
  --a-rule-strong: #1A1A2E;
  --a-tint: #F2EEF7;
  --a-white: #FFFFFF;
  --a-purple: #A55FC1;      /* line work only, never text */
  --a-blue: #4C96D7;        /* line work only, never text */
  --a-purple-text: #6E3390; /* 8.9:1 on white */
  --a-blue-text: #1F5E93;   /* 6.9:1 on white */
  --a-track: #E4DEEC;
  --a-line: linear-gradient(90deg, var(--a-purple), var(--a-blue));
  --a-line-v: linear-gradient(180deg, var(--a-purple), var(--a-blue));
  --a-cta: linear-gradient(100deg, #7E3F9E 0%, #2A6DAE 100%);

  --a-head: "Lexend", "Segoe UI", sans-serif;
  --a-body: "Source Sans 3", "Segoe UI", sans-serif;

  --a-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --a-max: 1240px;
  --a-rail: 4.5rem;          /* left rail width for the page spine */
  --a-stroke: 6px;           /* spine stroke */
  --a-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --a-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------- Browser surfaces ---------- */
::selection { background: #E6D6EE; color: var(--a-ink); }
html { scrollbar-color: #B48BC9 var(--a-tint); accent-color: var(--a-purple-text); }
:focus-visible { outline: 3px solid var(--a-blue-text); outline-offset: 3px; border-radius: 4px; }

/* ---------- Opt-in page body ---------- */
body.arden {
  background: var(--a-white);
  color: var(--a-ink);
  font-family: var(--a-body);
  font-size: 1.125rem;
  line-height: 1.6;
}
body.arden h1, body.arden h2, body.arden h3 {
  font-family: var(--a-head); color: var(--a-ink); text-wrap: balance;
}
body.arden h1 {
  font-size: clamp(2.15rem, 1.35rem + 3.2vw, 3.75rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}
body.arden h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
body.arden h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
body.arden p { margin: 0 0 1rem; max-width: 68ch; }
body.arden :where(a) { color: var(--a-purple-text); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
body.arden :where(a):hover { color: var(--a-blue-text); }
.a-lede { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); line-height: 1.5; color: var(--a-ink-2); max-width: 60ch; }
.a-num, .a-fares, .a-hours, .a-when { font-variant-numeric: tabular-nums lining-nums; }
.a-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.a-wrap { max-width: var(--a-max); margin-inline: auto; padding-inline: var(--a-gutter); }
.a-sec { position: relative; }
.a-sec > .a-wrap { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.a-sec--tint { background: var(--a-tint); }
.a-sec--tight > .a-wrap { padding-block: clamp(2rem, 4vw, 3rem); }
.a-cols { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) {
  .a-cols { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .a-span-5 { grid-column: span 5; }
  .a-span-6 { grid-column: span 6; }
  .a-span-7 { grid-column: span 7; }
  .a-span-4 { grid-column: span 4; }
  .a-span-8 { grid-column: span 8; }
}

/* ---------- Stop roundel (the one mark) ---------- */
.a-roundel {
  --size: 22px;
  display: inline-block; flex: none;
  width: var(--size); height: var(--size); border-radius: 50%;
  border: 5px solid transparent;
  background: linear-gradient(var(--a-white), var(--a-white)) padding-box, var(--a-line) border-box;
  transition: background 0.5s var(--a-ease-out), transform 0.5s var(--a-ease-out);
}
.is-home > a > .a-roundel, .a-roundel--home {
  --size: 30px; border-width: 6px;
  box-shadow: 0 0 0 3px var(--a-white), 0 0 0 6px var(--a-ink);
}

/* ---------- Section head on the spine ---------- */
.a-head { position: relative; display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: clamp(1.25rem, 2.2vw, 1.75rem); }
.a-head > .a-roundel { margin-top: 0.35em; }
.a-head h2 { margin-bottom: 0; }
.a-head + .a-lede, .a-head-text > .a-lede { margin-top: -1rem; }
.a-head-text { display: grid; gap: 0.75rem; }
.a-head-text h2 { margin: 0; }
.a-head-text p { margin: 0; }

/* Spine: desktop only. Each railed section draws its own segment;
   main.js sets --fill per segment from one scroll timeline. */
@media (min-width: 1000px) {
  .a-railed { position: relative; padding-left: calc(var(--a-gutter) + var(--a-rail)) !important; }
  .a-railed::before, .a-railed::after {
    content: ""; position: absolute; top: 0; bottom: 0;
    left: calc(var(--a-gutter) + 0.9rem); width: var(--a-stroke); margin-left: calc(var(--a-stroke) / -2);
  }
  .a-railed::before { background: var(--a-track); }
  .a-railed::after {
    background: var(--a-line-v);
    background-size: 100% var(--line-h, 100%);
    background-position: 0 var(--line-y, 0);
    transform-origin: top; transform: scaleY(var(--fill, 1));
  }
  .a-railed--start::before, .a-railed--start::after { top: clamp(3.5rem, 7vw, 6.5rem); }
  .a-railed--end::before, .a-railed--end::after { bottom: auto; height: calc(clamp(3.5rem, 7vw, 6.5rem) + 1.1rem); }
  .a-railed .a-head { margin-left: calc(var(--a-rail) * -1); padding-left: var(--a-rail); }
  .a-railed .a-head > .a-roundel {
    --size: 28px; position: absolute; left: calc(0.9rem - 14px); top: 0.15em; margin: 0; z-index: 1;
  }
}
/* Ahead-of-reader state: set only by JS, so no-JS shows every stop lit. */
.a-head.is-ahead > .a-roundel { background: linear-gradient(var(--a-white), var(--a-white)) padding-box, linear-gradient(var(--a-track), var(--a-track)) border-box; }

/* ---------- Buttons ---------- */
.a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0.8rem 1.4rem;
  border-radius: 10px; border: 2px solid transparent;
  background: var(--a-cta); color: var(--a-white) !important;
  font-family: var(--a-head); font-weight: 600; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none !important; text-align: center; cursor: pointer;
  transition: transform 0.18s var(--a-ease-out), box-shadow 0.18s var(--a-ease-out), background-color 0.18s;
  touch-action: manipulation;
}
.a-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(60, 40, 110, 0.55); }
.a-btn:active { transform: translateY(0) scale(0.985); }
.a-btn--line { background: var(--a-white); color: var(--a-ink) !important; border-color: var(--a-ink); }
.a-btn--line:hover { background: var(--a-tint); box-shadow: none; }
.a-btn--line svg { color: var(--a-purple-text); }
.a-btn--wide { width: 100%; }
.a-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.a-link { font-family: var(--a-head); font-weight: 600; }
.a-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--a-head); font-weight: 600; text-decoration: none; }
.a-arrow::after { content: ""; width: 1.4em; height: 2px; background: currentColor; transition: width 0.25s var(--a-ease-out); }
.a-arrow:hover::after { width: 2.1em; }

/* ============================================================
   Shared chrome
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--a-white); backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--a-rule); box-shadow: none;
}
.site-header.is-scrolled { box-shadow: 0 6px 18px -14px rgba(26, 26, 46, 0.5); border-bottom-color: var(--a-rule); }
.header-inner {
  max-width: 1400px; margin-inline: auto; padding-inline: var(--a-gutter);
  display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h);
}
.logo { margin-right: auto; }
.logo-img { height: 36px; }
@media (max-width: 430px) { .logo-img { height: 30px; } }

.nav-toggle {
  display: inline-flex; flex-direction: row; align-items: center; gap: 0.5rem;
  width: auto; height: 48px; padding: 0 0.9rem;
  border: 2px solid var(--a-ink); border-radius: 10px; background: var(--a-white);
  color: var(--a-ink); font-family: var(--a-head); font-weight: 600; font-size: 0.95rem;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle > span { height: auto; background: none; width: auto; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-phone-link { border: 2px solid var(--a-ink); border-radius: 10px; color: var(--a-purple-text); width: 48px; height: 48px; }
@media (max-width: 359px) { .nav-toggle-label { display: none; } }
@media (min-width: 1100px) { .nav-toggle, .mobile-phone-link { display: none; } }

.nav-mobile {
  inset: calc(var(--header-h) + 5px) 0 0 0; background: var(--a-white);
  padding: 1.25rem var(--a-gutter) 7.5rem;
}
.nav-mobile-group { font-family: var(--a-head); font-weight: 600; font-size: 0.95rem; color: var(--a-muted); margin: 1.4rem 0 0.25rem; }
.nav-mobile-group:first-child { margin-top: 0; }
.nav-mobile-line { list-style: none; margin: 0; padding: 0 0 0 2.1rem; position: relative; }
.nav-mobile-line::before { content: ""; position: absolute; left: 0.6rem; top: 1.4rem; bottom: 1.4rem; width: 5px; margin-left: -2.5px; background: var(--a-line-v); border-radius: 3px; }
.nav-mobile-line li { position: relative; }
.nav-mobile-line li::before {
  content: ""; position: absolute; left: calc(-2.1rem + 0.6rem - 9px); top: 50%; margin-top: -9px;
  width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box;
  border: 4px solid var(--a-purple); background: var(--a-white);
}
.nav-mobile a, .nav-mobile-line a {
  display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--a-rule);
  color: var(--a-ink); font-family: var(--a-head); font-weight: 600; font-size: 1.12rem; text-decoration: none;
}
.nav-mobile-line li:last-child a { border-bottom: 0; }
.nav-mobile a[aria-current="page"] { color: var(--a-purple-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.nav-mobile-actions { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.nav-mobile-actions a { border-bottom: 2px solid transparent; }
.nav-mobile-actions .a-btn--line { border-color: var(--a-ink); }

@media (min-width: 1100px) {
  .nav-desktop a, .nav-desktop button.nav-drop-btn {
    border-radius: 8px; color: var(--a-ink); font-family: var(--a-head); font-weight: 500; font-size: 0.98rem;
    padding: 0.55rem 0.7rem;
  }
  .nav-desktop a:hover, .nav-desktop button.nav-drop-btn:hover { background: var(--a-tint); color: var(--a-ink); }
  .nav-desktop a[aria-current="page"] { background: none; color: var(--a-ink); box-shadow: inset 0 -3px 0 var(--a-purple); border-radius: 0; }
  .nav-drop-menu { border-radius: 12px; border: 1px solid var(--a-rule); box-shadow: 0 18px 40px -18px rgba(26, 26, 46, 0.35); padding: 0.4rem; min-width: 280px; }
  .nav-drop-menu a { border-radius: 8px; }
  .header-phone { font-family: var(--a-head); font-weight: 600; color: var(--a-ink); font-size: 1.02rem; margin-left: 0.5rem; font-variant-numeric: tabular-nums; }
  .header-phone svg { color: var(--a-purple-text); }
  .a-btn.header-cta { display: inline-flex; min-height: 46px; padding: 0.6rem 1.1rem; font-size: 0.95rem; }
}
.a-btn.header-cta { display: none; }
@media (min-width: 1100px) { .a-btn.header-cta { display: inline-flex; } }

/* Action bar (phones and tablets) */
.action-bar {
  background: var(--a-white); backdrop-filter: none; -webkit-backdrop-filter: none;
  border-top: 1px solid var(--a-rule); box-shadow: 0 -10px 24px -18px rgba(26, 26, 46, 0.45);
  padding: 0.6rem var(--a-gutter) calc(0.6rem + env(safe-area-inset-bottom));
  transition: transform 0.35s var(--a-ease);
}
.action-bar .a-btn { min-height: 50px; padding-inline: 0.6rem; font-size: 0.98rem; white-space: nowrap; }
.action-bar.is-tucked { transform: translateY(110%); }
body.bar-call-first .action-bar .a-btn--line { background: var(--a-cta); color: var(--a-white) !important; border-color: transparent; }
body.bar-call-first .action-bar .a-btn--line svg { color: currentColor; }
body.bar-call-first .action-bar .a-btn:not(.a-btn--line) { background: var(--a-white); color: var(--a-ink) !important; border-color: var(--a-ink); }

/* Footer */
.site-footer { background: var(--a-tint); color: var(--a-ink); margin-top: 0; border-top: 0; }
.footer-network { padding-block: clamp(2.5rem, 5vw, 3.5rem) 0; }
.footer-network-title, .footer-h {
  font-family: var(--a-head); font-weight: 600; font-size: 1.05rem; color: var(--a-ink);
  letter-spacing: 0; text-transform: none; margin: 0 0 1rem;
}
.footer-main { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--a-rule); }
@media (min-width: 800px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-logo-img { height: 38px; margin-bottom: 1rem; }
.footer-brand p { color: var(--a-ink-2); font-size: 1rem; max-width: 34ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--a-ink); text-decoration: none; }
.site-footer a:hover { color: var(--a-purple-text); text-decoration: underline; }
.footer-contact p { margin: 0 0 0.5rem; }
.footer-contact .footer-phone { font-family: var(--a-head); font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-block: 1.5rem 2rem; color: var(--a-muted); font-size: 0.95rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex !important; flex-wrap: wrap; gap: 0.5rem 1.25rem !important; }
.site-footer .footer-legal a { color: var(--a-ink-2); }

/* Opening hours as timetable lines */
.a-hours { margin: 1rem 0 0; display: grid; gap: 0; }
.a-hours > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.75rem; padding-block: 0.5rem; border-top: 1px solid var(--a-rule); }
.a-hours > div:last-child { border-bottom: 1px solid var(--a-rule); }
.a-hours dt { font-family: var(--a-head); font-weight: 600; font-size: 0.95rem; }
.a-hours dd { margin: 0; font-size: 0.98rem; }

/* Town strip: whole stop units that wrap, never a cropped roundel */
.a-strip { display: flex !important; flex-wrap: wrap; gap: 0 !important; list-style: none; margin: 0; padding: 0; }
.a-strip li { position: relative; flex: 0 0 auto; }
.a-strip li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 6px; margin-top: -3px;
  background: var(--a-line);
}
.a-strip li:first-child::before { left: 15px; }
.a-strip li:last-child::before { right: auto; width: 15px; }
.a-strip a {
  position: relative; display: grid; justify-items: start; gap: 0.55rem;
  padding: 0 1.75rem 0.5rem 0; color: var(--a-ink); text-decoration: none;
  font-family: var(--a-head); font-weight: 500; font-size: 0.98rem; min-height: 44px;
}
.a-strip .a-roundel { --size: 30px; border-width: 6px; }
.a-strip .is-home .a-roundel { --size: 30px; box-shadow: 0 0 0 3px var(--a-white), 0 0 0 5px var(--a-ink); }
.a-strip .is-home a { font-weight: 700; }
.a-strip a:hover { color: var(--a-purple-text); }
.a-strip a:hover .a-roundel { transform: scale(1.12); }
@media (max-width: 640px) {
  .a-strip { display: grid !important; grid-template-columns: 1fr; }
  .a-strip li::before { left: 15px !important; right: auto !important; width: 6px; margin-left: -3px; top: 0; bottom: 0; height: auto; margin-top: 0; background: var(--a-line-v); }
  .a-strip li:first-child::before { top: 15px; }
  .a-strip li:last-child::before { bottom: auto; height: 15px; }
  .a-strip a { grid-template-columns: 30px 1fr; align-items: center; gap: 0.9rem; padding: 0.4rem 0; }
}

/* ============================================================
   Hero with journey planner and route map
   ============================================================ */
.a-hero { position: relative; overflow: clip; border-bottom: 1px solid var(--a-rule); }
.a-hero > .a-wrap { padding-block: clamp(2rem, 4.5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem); }
.a-hero-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 1000px) {
  .a-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.a-hero-top { display: grid; gap: 0.25rem 3rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.a-hero h1 { max-width: 24ch; font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.05rem); margin-bottom: 0.75rem; }
.a-hero .a-lede { margin: 0; }
@media (min-width: 1000px) {
  .a-hero-top { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; }
  .a-hero h1 { margin-bottom: 0; max-width: none; }
  .a-hero .a-lede { font-size: 1.12rem; }
}

/* Planner */
.a-planner {
  border: 2px solid var(--a-ink); border-radius: 14px; background: var(--a-white);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  box-shadow: 0 22px 40px -30px rgba(26, 26, 46, 0.55);
  max-width: 34rem;
}
.a-planner-title { font-family: var(--a-head); font-weight: 600; font-size: 1.15rem; margin: 0 0 1rem; }
.a-field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.a-field > label, .a-field > legend { font-family: var(--a-head); font-weight: 600; font-size: 0.98rem; padding: 0; }
.a-select {
  appearance: none; -webkit-appearance: none; width: 100%; min-height: 54px;
  padding: 0.7rem 2.75rem 0.7rem 0.95rem; border: 2px solid var(--a-ink); border-radius: 10px;
  font: 600 1.08rem/1.2 var(--a-head); color: var(--a-ink);
  background: var(--a-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' fill='none' stroke='%231A1A2E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 1rem center;
}
fieldset.a-field { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.a-seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--a-ink); border-radius: 10px; overflow: hidden; }
.a-seg label { position: relative; display: block; cursor: pointer; }
.a-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.a-seg span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0.5rem;
  font-family: var(--a-head); font-weight: 600; font-size: 1rem; color: var(--a-ink);
  transition: background-color 0.25s var(--a-ease-out), color 0.25s var(--a-ease-out);
}
.a-seg label + label span { border-left: 2px solid var(--a-ink); }
.a-seg input:checked + span { background: var(--a-ink); color: var(--a-white); }
.a-seg input:focus-visible + span { outline: 3px solid var(--a-blue-text); outline-offset: -6px; }
.a-fare {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0.25rem 0.9rem;
  border-top: 1px solid var(--a-rule); border-bottom: 1px solid var(--a-rule);
  padding-block: 0.85rem; margin: 0.25rem 0 1.1rem;
}
.a-fare-from { grid-column: 1 / -1; font-family: var(--a-head); font-weight: 500; font-size: 0.92rem; color: var(--a-muted); }
.a-fare-price {
  font-family: var(--a-head); font-weight: 700; font-size: clamp(2.2rem, 1.8rem + 1.6vw, 2.9rem); line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.a-fare-unit { font-size: 1rem; line-height: 1.35; color: var(--a-ink-2); }
.a-fare.is-ticking .a-fare-price, .a-fare.is-ticking .a-fare-unit { animation: a-tick 0.42s var(--a-ease-out); }
@keyframes a-tick { from { transform: translateY(0.35em); opacity: 0.2; } to { transform: none; opacity: 1; } }
.a-planner .a-actions { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 480px) and (max-width: 999px) { .a-planner .a-actions { grid-template-columns: 1.3fr 1fr; } }
@media (min-width: 1240px) { .a-planner .a-actions { grid-template-columns: 1.45fr 1fr; } .a-planner .a-actions .a-btn { padding-inline: 0.9rem; white-space: nowrap; } }
.a-planner-note { font-size: 0.95rem; color: var(--a-muted); margin: 0.85rem 0 0 !important; }

/* Route map */
.a-map { position: relative; }
.a-map-title { font-family: var(--a-head); font-weight: 600; font-size: 1.05rem; line-height: 1.4; margin: 0 0 1rem; max-width: 40ch; }
.a-map-more { margin: 1rem 0 0; }
.a-map-canvas { position: relative; }
.a-map-svg { display: none; }
.a-stops { list-style: none; margin: 0; padding: 0; position: relative; }
.a-stop a {
  display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 0.9rem;
  min-height: 48px; padding-block: 0.35rem; color: var(--a-ink); text-decoration: none;
  font-family: var(--a-head); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
}
.a-stop a:hover { color: var(--a-purple-text); }
.a-stop .a-roundel { --size: 30px; border-width: 6px; justify-self: center; position: relative; z-index: 1; }
.a-stop-note { display: block; font-family: var(--a-body); font-weight: 400; font-size: 0.95rem; color: var(--a-muted); }
.a-stop.is-home .a-roundel { box-shadow: 0 0 0 3px var(--a-white), 0 0 0 6px var(--a-ink); }
.a-stop.is-chosen a { color: var(--a-purple-text); }
/* Phone and tablet: the line runs vertically beside the stops */
@media (max-width: 999px) {
  .a-stops::before {
    content: ""; position: absolute; left: 15px; top: 24px; bottom: 24px; width: 6px; margin-left: -3px;
    background: var(--a-line-v); border-radius: 3px;
  }
}
/* Marker: only shown once JS has placed it */
.a-marker { display: none; }
.js .a-marker {
  display: block; position: absolute; z-index: 2; pointer-events: none;
  width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  left: var(--mx, 0); top: var(--my, 0);
  border: 4px solid var(--a-ink); background: transparent;
  transition: left 0.7s var(--a-ease), top 0.7s var(--a-ease);
}
.js .a-marker::after {
  content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 2px solid var(--a-ink); opacity: 0;
}
.js .a-marker.is-arriving::after { animation: a-arrive 0.9s var(--a-ease-out) 0.55s; }
@keyframes a-arrive { 0% { opacity: 0.7; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.35); } }

@media (min-width: 1000px) {
  .a-map { margin-top: 0.5rem; }
  .a-map-canvas { position: relative; aspect-ratio: 810 / 380; margin-block: 1.75rem 3.25rem; }
  .a-map-svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .a-stops { position: absolute; inset: 0; }
  .a-stop { position: absolute; left: var(--x); top: var(--y); }
  .a-stop a {
    position: absolute; left: -15px; top: -15px; display: flex; gap: 0.7rem; align-items: center;
    white-space: nowrap; padding: 0; min-height: 30px;
  }
  .a-stop a > span:last-child { background: rgba(255, 255, 255, 0.92); padding: 0.15rem 0.35rem; border-radius: 6px; }
  .a-stop.label-left a { flex-direction: row-reverse; left: auto; right: -15px; text-align: right; }
  .a-stop.label-above a { flex-direction: column-reverse; left: 50%; transform: translateX(-50%); top: auto; bottom: -15px; gap: 0.35rem; text-align: center; }
  .a-stop.label-below a { flex-direction: column; left: 50%; transform: translateX(-50%); top: -15px; gap: 0.35rem; text-align: center; }
  .a-stop.is-home a { font-size: 1.2rem; }
  .a-stop.is-home .a-roundel { --size: 36px; border-width: 7px; }
  .a-stop.is-home a { left: -18px; top: -18px; }
}
.a-route-track { fill: none; stroke: var(--a-track); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.a-route { fill: none; stroke: url(#a-route-grad); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.a-route-pulse { fill: none; stroke: #FFFFFF; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0.03 1; stroke-dashoffset: 0.03; opacity: 0; }
.motion-ok .a-route-pulse.is-running { animation: a-pulse 1.4s var(--a-ease) 1; }
@keyframes a-pulse { 0% { stroke-dashoffset: 0.03; opacity: 0.9; } 90% { opacity: 0.9; } 100% { stroke-dashoffset: -1; opacity: 0; } }

/* Route draw-in, matching the route map title video. JS adds is-pending
   (motion-ok only), then is-drawing once the map is in view; each stop's
   --d is the moment the line reaches it. Without JS the map is complete. */
/* Town pages: hero with the route map, this town marked */
.a-town-hero h1 { max-width: 22ch; margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.a-town-grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .a-town-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: center; } }
@media (max-width: 999px) { .a-town-map { display: none; } }
.a-stop.is-here a { color: var(--a-purple-text); }

.a-map-canvas.is-pending .a-route, .a-map-canvas.is-drawing .a-route { stroke-dasharray: var(--len, 900px) var(--len, 900px); }
.a-map-canvas.is-pending .a-route { stroke-dashoffset: var(--len, 900px); }
.a-map-canvas.is-pending .a-stop .a-roundel { transform: scale(0); transition: none; }
.a-map-canvas.is-pending .a-stop a > span:last-child { opacity: 0; translate: 0 6px; }
.a-map-canvas.is-pending .a-marker { opacity: 0; scale: 0.6; }
.a-map-canvas.is-pending .a-stops::before { transform: scaleY(0); transform-origin: 50% 0; }
.a-map-canvas.is-drawing .a-route { stroke-dashoffset: 0; transition: stroke-dashoffset var(--draw, 2.6s) var(--a-ease); }
.a-map-canvas.is-drawing .a-stop .a-roundel { transform: none; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s); }
.a-map-canvas.is-drawing .a-stop a > span:last-child { opacity: 1; translate: 0 0; transition: opacity 0.5s var(--a-ease-out) calc(var(--d, 0s) + 0.08s), translate 0.5s var(--a-ease-out) calc(var(--d, 0s) + 0.08s); }
.a-map-canvas.is-drawing .a-marker { opacity: 1; scale: 1; transition: left 0.7s var(--a-ease), top 0.7s var(--a-ease), opacity 0.35s var(--a-ease-out) var(--draw, 2.6s), scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--draw, 2.6s); }
.a-map-canvas.is-drawing .a-stops::before { transform: none; transition: transform var(--draw, 2.6s) var(--a-ease); }

/* ============================================================
   Status lines, timetables and fares
   ============================================================ */
.a-status { border-bottom: 1px solid var(--a-rule); background: var(--a-white); }
.a-status ul { list-style: none; margin: 0; padding: 0; display: grid; }
.a-status li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline; padding-block: 0.85rem; border-top: 1px solid var(--a-rule); }
.a-status li:first-child { border-top: 0; }
.a-status b { font-family: var(--a-head); font-weight: 600; font-size: 0.98rem; }
@media (min-width: 1000px) {
  .a-status ul { grid-template-columns: repeat(3, 1fr); }
  .a-status li { grid-template-columns: 1fr; gap: 0.15rem; border-top: 0; border-left: 1px solid var(--a-rule); padding: 1.1rem 1.5rem; }
  .a-status li:first-child { border-left: 0; padding-left: 0; }
}

.a-tt { list-style: none; margin: 0; padding: 0; counter-reset: tt; border-top: 2px solid var(--a-ink); }
.a-tt > li {
  display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); gap: 0.35rem 1rem; padding-block: 1.35rem;
  border-bottom: 1px solid var(--a-rule);
}
.a-tt .a-when { font-size: 0.95rem; line-height: 1.35; padding-top: 0.15em; }
@media (min-width: 720px) {
  .a-tt > li { grid-template-columns: 11rem minmax(0, 1fr); }
  .a-tt--3 > li { grid-template-columns: 11rem minmax(0, 1fr) auto; align-items: baseline; }
}
.a-when { font-family: var(--a-head); font-weight: 600; font-size: 1rem; color: var(--a-purple-text); }
.a-tt h3 { margin: 0 0 0.3rem; }
.a-tt p { margin: 0; color: var(--a-ink-2); }
.a-tt .a-aside { font-family: var(--a-head); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Services as a timetable of lines */
.a-lines { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--a-ink); }
.a-lines > li { border-bottom: 1px solid var(--a-rule); }
.a-lines a {
  display: grid; gap: 0.4rem 2rem; padding-block: 1.4rem; color: var(--a-ink); text-decoration: none;
  transition: background-color 0.25s var(--a-ease-out);
}
@media (min-width: 820px) {
  .a-lines a { grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr) 13rem; align-items: baseline; padding-inline: 0.5rem; margin-inline: -0.5rem; }
}
.a-lines a:hover { background: var(--a-tint); color: var(--a-ink); }
.a-lines h3 { margin: 0; font-size: 1.35rem; display: flex; gap: 0.7rem; align-items: center; }
.a-lines h3 .a-roundel { --size: 20px; border-width: 5px; }
.a-lines p { margin: 0; color: var(--a-ink-2); }
.a-lines .a-aside { font-family: var(--a-head); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--a-ink); }
.a-lines .a-aside small { display: block; font-family: var(--a-body); font-weight: 400; font-size: 0.95rem; color: var(--a-muted); }
.a-lines a:hover h3 { color: var(--a-purple-text); }

.a-fares { width: 100%; border-collapse: collapse; border-top: 2px solid var(--a-ink); margin: 0; }
.a-fares caption { text-align: left; font-family: var(--a-head); font-weight: 600; font-size: 1.2rem; padding: 0 0 0.75rem; caption-side: top; }
.a-fares th, .a-fares td { padding: 0.95rem 0.5rem; border-bottom: 1px solid var(--a-rule); text-align: left; background: none; color: var(--a-ink); }
.a-fares th:first-child, .a-fares td:first-child { padding-left: 0; }
.a-fares th:last-child, .a-fares td:last-child { padding-right: 0; }
.a-fares thead th { font-family: var(--a-head); font-weight: 500; font-size: 0.92rem; color: var(--a-muted); padding-block: 0.6rem; }
.a-fares tbody th { font-family: var(--a-body); font-weight: 600; font-size: 1.05rem; }
.a-fares .n { text-align: right; font-family: var(--a-head); font-weight: 600; font-size: 1.2rem; white-space: nowrap; }
.a-fares thead .n { font-size: 0.92rem; font-weight: 500; }
.a-fares tbody tr { transition: background-color 0.2s; }
.a-fares tbody tr:hover { background: rgba(242, 238, 247, 0.6); }
.a-fare-note { font-size: 0.98rem; color: var(--a-muted); margin-top: 1rem; }
.a-fare-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .a-fare-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- People ---------- */
.a-portrait { margin: 0; }
.a-portrait img { width: 100%; height: auto; border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--a-tint); }
.a-portrait figcaption { margin-top: 0.75rem; font-size: 1rem; color: var(--a-ink-2); }
.a-portrait figcaption b { display: block; font-family: var(--a-head); font-weight: 600; color: var(--a-ink); font-size: 1.08rem; }
.a-team { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
@media (min-width: 720px) { .a-team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.a-team img { aspect-ratio: 1; border-radius: 50%; border: 5px solid transparent; background: linear-gradient(var(--a-white), var(--a-white)) padding-box, var(--a-line) border-box; object-fit: cover; width: 100%; max-width: 150px; height: auto; }
.a-team figcaption { margin-top: 0.6rem; }
.a-quote { margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 2px solid var(--a-ink); }
.a-quote blockquote { margin: 0; font-family: var(--a-head); font-weight: 400; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.45; color: var(--a-ink); max-width: 46ch; }
.a-quote figcaption { margin-top: 0.85rem; font-size: 0.98rem; color: var(--a-muted); }

/* Credentials: one family of route marks */
.a-marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--a-ink); }
.a-marks li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; padding-block: 1.1rem; border-bottom: 1px solid var(--a-rule); }
@media (min-width: 720px) { .a-marks { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
@media (min-width: 1100px) {
  .a-marks { grid-template-columns: repeat(5, 1fr); column-gap: 1.75rem; }
  .a-marks li { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 0.85rem; padding-block: 1.5rem; }
}
.a-mark {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  border: 6px solid transparent;
  background: linear-gradient(var(--a-white), var(--a-white)) padding-box, var(--a-line) border-box;
  font-family: var(--a-head); font-weight: 700; font-size: 0.9rem; letter-spacing: -0.02em; color: var(--a-ink);
  font-variant-numeric: tabular-nums; text-align: center; line-height: 1;
}
.a-marks b { display: block; font-family: var(--a-head); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.a-marks span { font-size: 0.95rem; line-height: 1.4; color: var(--a-muted); }

/* Reviews as ruled quotes */
.a-voices { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--a-ink); }
@media (min-width: 900px) { .a-voices { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; } }
.a-voices li { padding-block: 1.5rem; border-bottom: 1px solid var(--a-rule); }
.a-voices blockquote { margin: 0 0 0.9rem; font-size: 1.12rem; line-height: 1.55; }
.a-voices p { margin: 0; font-size: 0.98rem; color: var(--a-muted); }
.a-voices p b { color: var(--a-ink); font-family: var(--a-head); font-weight: 600; }
.a-video { width: 100%; height: auto; display: block; border-radius: 14px; background: var(--a-ink); aspect-ratio: 16 / 9; }

/* Media */
.a-photo { margin: 0; }
.a-photo img { width: 100%; height: auto; border-radius: 14px; display: block; }
.a-photo figcaption { font-size: 0.95rem; color: var(--a-muted); margin-top: 0.6rem; }
.a-app { max-width: 260px; width: 100%; height: auto; border-radius: 26px; border: 2px solid var(--a-ink); margin-inline: auto; }

/* Checklist on a line */
.a-list { list-style: none; margin: 0; padding: 0 0 0 2rem; position: relative; display: grid; gap: 0; }
.a-list::before { content: ""; position: absolute; left: 0.55rem; top: 1.25rem; bottom: 1.25rem; width: 4px; margin-left: -2px; background: var(--a-line-v); border-radius: 2px; }
.a-list li { position: relative; padding-block: 0.6rem; }
.a-list li::before { content: ""; position: absolute; left: calc(-2rem + 0.55rem - 8px); top: 1.05rem; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 4px solid var(--a-purple); background: var(--a-white); }
.a-list--cols { column-gap: 2.5rem; }
@media (min-width: 720px) { .a-list--cols { grid-template-columns: 1fr 1fr; } .a-list--cols::before { display: none; } }

/* FAQ */
.a-faq { border-top: 2px solid var(--a-ink); max-width: 52rem; }
.a-faq details { border-bottom: 1px solid var(--a-rule); }
.a-faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 1rem; align-items: center;
  padding-block: 1.15rem; font-family: var(--a-head); font-weight: 600; font-size: 1.12rem; min-height: 48px;
}
.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary::after {
  content: ""; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box;
  border: 5px solid var(--a-purple); background: var(--a-white); transition: background-color 0.25s;
}
.a-faq details[open] summary::after { background: var(--a-purple); box-shadow: inset 0 0 0 3px var(--a-white); }
.a-faq details > div { padding: 0 0 1.25rem; }
.a-faq details > div p:last-child { margin-bottom: 0; }

/* Close */
.a-close { background: var(--a-tint); }
.a-close-line { height: 6px; background: var(--a-line); }

/* Service hero */
.a-svc-hero > .a-wrap { padding-block: clamp(2rem, 4.5vw, 4rem); }
.a-svc-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1000px) { .a-svc-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; } }
.a-svc-hero h1 { max-width: 17ch; }
.a-fareline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding-block: 0.85rem; margin: 0 0 1.5rem; border-top: 1px solid var(--a-rule); border-bottom: 1px solid var(--a-rule); max-width: 34rem; }
.a-fareline .a-fare-price { font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.4rem); }
.a-fareline a { font-family: var(--a-head); font-weight: 600; font-size: 0.98rem; margin-left: auto; }
.a-svc-photo img { border-radius: 14px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.a-callout { border: 2px solid var(--a-ink); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); background: var(--a-white); }
.a-callout h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem) !important; }

/* Back-compat: legacy .btn picks up the new shape on every page */
.btn { border-radius: 10px; font-family: var(--a-head); }
.btn--primary { background: var(--a-cta); }
.btn--secondary { border-color: var(--a-ink); color: var(--a-ink); }
.btn--secondary:hover { background: var(--a-tint); color: var(--a-ink); }

/* Reduced motion: everything rests at its final, static keyframe */
@media (prefers-reduced-motion: reduce) {
  .js .a-marker { transition: none; }
  .a-route-pulse { display: none; }
  .a-fare.is-ticking .a-fare-price, .a-fare.is-ticking .a-fare-unit { animation: none; }
  .a-railed::after { transform: none !important; }
  .a-head.is-ahead > .a-roundel { background: linear-gradient(var(--a-white), var(--a-white)) padding-box, var(--a-line) border-box; }
  .action-bar { transition: none; }
}

@media print {
  .site-header::before, .a-railed::before, .a-railed::after, .a-map-svg, .a-marker, .action-bar { display: none !important; }
  .a-close { background: #fff; color: #000; }
}

/* ---------- Service template additions ---------- */
.a-crumb { padding-top: 1.25rem; }
.a-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; font-size: 0.98rem; color: var(--a-muted); }
.a-crumb li + li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--a-purple); margin-right: 0.6rem; vertical-align: 0.1em; }
.a-crumb a { color: var(--a-ink-2); }
.a-facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; border-top: 2px solid var(--a-ink); }
@media (min-width: 820px) { .a-facts { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; } }
.a-facts li { padding-block: 1.2rem; border-bottom: 1px solid var(--a-rule); }
.a-facts h3 { margin: 0 0 0.3rem; }
.a-facts p { margin: 0; color: var(--a-ink-2); }
.a-stats { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--a-ink); }
@media (min-width: 820px) { .a-stats { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; } }
.a-stats li { padding-block: 1.3rem; border-bottom: 1px solid var(--a-rule); }
.a-stats b { display: block; font-family: var(--a-head); font-weight: 700; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; margin-bottom: 0.3rem; }
.a-stats p { margin: 0; color: var(--a-ink-2); }
.a-source { font-size: 0.95rem; color: var(--a-muted); margin-top: 1rem; }
.a-related { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; }
.a-two { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .a-two { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.a-two h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem) !important; }
.a-callout .a-hours { margin-top: 1.25rem; }
.a-callout-phone { font-family: var(--a-head); font-weight: 700; font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.5rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-decoration: none !important; color: var(--a-ink) !important; display: inline-block; margin: 0.25rem 0 0.5rem; }

/* Overrides for legacy mobile-nav rules in styles.css */
.nav-mobile ul.nav-mobile-line { padding: 0 0 0 2.1rem; }
.nav-toggle[aria-expanded="true"] > span.nav-toggle-label { opacity: 1; transform: none; }
.nav-toggle[aria-expanded="true"] > span.nav-toggle-bars { transform: none; opacity: 1; }
body.arden .a-quote blockquote { line-height: 1.5; }
.a-stop a { line-height: 1.35; }

/* Phone and tablet hero order: headline, planner, then the lede, then the line */
@media (max-width: 999px) {
  .a-hero > .a-wrap { display: flex; flex-direction: column; }
  .a-hero-top, .a-hero-grid { display: contents; }
  .a-hero h1 { order: 1; margin-bottom: 1.25rem; }
  .a-hero-grid > div:first-child { order: 2; }
  .a-hero .a-lede { order: 3; margin: 2rem 0 0; }
  .a-hero .a-map { order: 4; margin-top: 2rem; }
}

/* ---------- Round 2 fixes ---------- */
/* 1. Planner fare: unit sits on its own line under the price */
.a-fare { grid-template-columns: 1fr; gap: 0.3rem; }
.a-fare-unit { font-size: 1.02rem; }

/* 2. Fare tables: inset first and last columns from the row edges */
.a-fares th, .a-fares td,
.a-fares th:first-child, .a-fares td:first-child,
.a-fares th:last-child, .a-fares td:last-child { padding: 0.95rem 1rem; }
.a-fares thead th { padding-block: 0.6rem; }
.a-fares caption { padding-left: 0; }

/* 3. Service lines: every column's first line shares one line box */
.a-lines a { align-items: start; padding-block: 1.5rem; }
@media (min-width: 820px) { .a-lines a { padding-inline: 1rem; margin-inline: -1rem; } }
.a-lines h3, .a-lines p, .a-lines .a-aside { line-height: 1.8rem; }
.a-lines h3 { font-size: 1.3rem; align-items: center; }
.a-lines .a-aside { font-size: 1.12rem; }
.a-lines .a-aside small { line-height: 1.4; }

/* 4. Headshots: crop from the top so heads are never cut */
.a-team img, .a-portrait img { object-position: 50% 0%; }
.a-team img { object-position: 50% 8%; }

/* 5. Footer bottom: one tidy band, legal links on the left, a smaller CQC widget on the right */
.footer-bottom {
  border-top: 0; display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
  padding-block: 1.75rem 2.25rem; font-size: 0.95rem; color: var(--a-muted);
}
@media (min-width: 800px) { .footer-bottom { grid-template-columns: 1fr auto; } }
.footer-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.75rem; }
.footer-meta p { margin: 0; }
.footer-meta .footer-legal { gap: 0.5rem 1.25rem !important; font-size: 0.95rem; }
.footer-main { border-bottom-color: var(--a-rule); }
.footer-bottom > .cqc-widget { zoom: 0.72; justify-self: start; }
@media (min-width: 800px) { .footer-bottom > .cqc-widget { justify-self: end; } }
.a-lines h3 { align-items: flex-start; }
.a-lines h3 .a-roundel { margin-top: 0.4rem; }
body .site-footer h2.footer-h, body .site-footer h2.footer-network-title {
  font-family: var(--a-head); font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; margin: 0 0 1rem;
}

/* Chat launcher on phones and tablets: while the page's own Book and Call
   buttons are on screen (and the action bar is tucked away), the launcher
   steps aside so it never covers them; it returns with the action bar. */
@media (max-width: 1099px) {
  .oc-launcher { transition: opacity 0.25s var(--a-ease), transform 0.25s var(--a-ease); }
  body.bar-tucked .oc-launcher:not(.oc-hidden) { opacity: 0; transform: scale(0.85); pointer-events: none; visibility: hidden; transition: opacity 0.25s var(--a-ease), transform 0.25s var(--a-ease), visibility 0s 0.25s; }
}

/* ---------- Call buttons: "Call" rolls to "Dial", the handset rings ---------- */
.a-roll { display: inline-grid; overflow: hidden; vertical-align: bottom; line-height: inherit; height: 1.2em; }
.a-roll > span { grid-area: 1 / 1; display: block; line-height: 1.2em; transition: transform 0.38s var(--a-ease); }
.a-roll-b { transform: translateY(110%); }
a:hover > .a-roll .a-roll-a, a:focus-visible > .a-roll .a-roll-a { transform: translateY(-110%); }
a:hover > .a-roll .a-roll-b, a:focus-visible > .a-roll .a-roll-b { transform: translateY(0); }
.a-ring svg { transform-origin: 50% 50%; }
.a-ring:hover svg, .a-ring:focus-visible svg { animation: a-ring 0.9s var(--a-ease-out) 1; }
@keyframes a-ring {
  0% { transform: rotate(0); }
  10% { transform: rotate(-16deg); } 20% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); }
  50% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); }
  70%, 100% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .a-roll > span { transition: none; }
  .a-ring:hover svg, .a-ring:focus-visible svg { animation: none; }
}

/* ============================================================
   Inner pages: plain hero, on-this-page links, note lists
   ============================================================ */
.a-page-hero > .a-wrap { padding-block: clamp(2rem, 4.5vw, 4rem) clamp(2.5rem, 5vw, 4rem); }
.a-page-hero h1 { max-width: 20ch; margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.a-page-hero .a-lede { margin: 0; }
.a-jump { list-style: none; margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; padding: 1rem 0 0; border-top: 2px solid var(--a-ink); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.a-jump a { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--a-head); font-weight: 600; font-size: 1rem; color: var(--a-ink); text-decoration: none; min-height: 44px; }
.a-jump a::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(var(--a-white), var(--a-white)) padding-box, var(--a-line) border-box; flex: none; }
.a-jump a:hover { color: var(--a-purple-text); text-decoration: underline; text-underline-offset: 0.2em; }
.a-prose { max-width: 68ch; }
.a-notes { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.a-notes li { position: relative; padding-left: 1.6rem; color: var(--a-ink-2); max-width: 68ch; }
.a-notes li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(var(--a-white), var(--a-white)) padding-box, var(--a-line) border-box; }
.a-sec--tint .a-notes li::before, .a-sec--tint .a-jump a::before { background: linear-gradient(var(--a-tint), var(--a-tint)) padding-box, var(--a-line) border-box; }

/* People: lead profiles and the office team (About) */
.a-leads { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.a-leads > li { display: grid; gap: 1.5rem; padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 2px solid var(--a-ink); }
@media (min-width: 820px) { .a-leads > li { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; } }
.a-leads .a-portrait { max-width: 360px; }
.a-leads h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); margin: 0; }
.a-role { font-family: var(--a-head); font-weight: 600; color: var(--a-purple-text); margin: 0.25rem 0 1.1rem !important; }
.a-sub { margin: clamp(3rem, 6vw, 4.5rem) 0 0.5rem; font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.55rem); }
.a-team--office { grid-template-columns: 1fr; gap: 2rem; margin-top: 1.75rem; }
@media (min-width: 720px) { .a-team--office { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.a-team--office img { max-width: 132px; }
.a-team--office p { margin: 0.6rem 0 0; color: var(--a-ink-2); font-size: 1rem; }

/* Credentials: mark tile, heading, paragraph */
.a-creds { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--a-ink); }
@media (min-width: 900px) { .a-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
.a-creds li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.1rem; align-items: start; padding-block: 1.5rem; border-bottom: 1px solid var(--a-rule); }
.a-creds h3 { margin: 0 0 0.4rem; font-size: 1.12rem; line-height: 1.35; }
.a-creds p { margin: 0; color: var(--a-ink-2); }
.a-badges { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 2rem; }
.a-badges img { height: 96px; width: auto; border-radius: 8px; }
.a-badges--sm { margin-top: 1rem; }
.a-badges--sm img { height: 72px; }

/* Eight numbered reasons (Why Orbis) */
.a-eight { list-style: none; counter-reset: eight; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--a-ink); }
@media (min-width: 900px) { .a-eight { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
.a-eight > li { counter-increment: eight; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 1rem; padding-block: 1.6rem; border-bottom: 1px solid var(--a-rule); }
.a-eight > li::before { content: counter(eight, decimal-leading-zero); grid-row: 1 / span 3; font-family: var(--a-head); font-weight: 700; font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; background: var(--a-line); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a-eight h3 { margin: 0 0 0.4rem; font-size: 1.15rem; line-height: 1.35; }
.a-eight p { margin: 0; color: var(--a-ink-2); }
.a-say { font-family: var(--a-head); font-weight: 600; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); color: var(--a-ink); margin-top: 1.5rem !important; }

/* Reviews */
.a-voices--2 { margin-top: 2.5rem; }
@media (min-width: 900px) { .a-voices--2 { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
.a-voices p span { display: block; font-size: 0.95rem; color: var(--a-muted); }
.a-voices p b { display: block; }
.a-stars { display: block; width: 92px; height: 16px; margin-bottom: 0.75rem; background: var(--a-line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.770l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / 18.4px 16px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.770l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / 18.4px 16px repeat-x; }
.a-video--page { max-width: 820px; margin-top: 0.5rem; }
.a-score { margin: 0 !important; padding-top: 1rem; border-top: 2px solid var(--a-ink); display: flex; align-items: baseline; gap: 0.75rem; }
.a-score-n { font-family: var(--a-head); font-weight: 700; font-size: clamp(3rem, 2.4rem + 2.5vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; background: var(--a-line); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a-score-t { font-family: var(--a-head); font-weight: 600; color: var(--a-ink-2); max-width: 12ch; line-height: 1.3; }
.a-wrap > h3.a-sub { margin-top: clamp(3rem, 6vw, 4.5rem); }
.a-eight > li, .a-creds li { align-content: start; }
.a-lines--areas .a-aside { font-size: 0.98rem; color: var(--a-purple-text); }
@media (max-width: 819px) { .a-lines--areas .a-aside { margin-top: 0.4rem; } }

/* ---------- Forms: Contact and Book assessment ---------- */
.a-form-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) { .a-form-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; } }
.a-form-layout .a-tt { margin-top: 0; }
.a-form-layout .a-head + .a-tt { margin-top: 1.75rem; }
.a-notes--lead { margin-top: 2rem; }
.a-notes--lead b { color: var(--a-ink); font-family: var(--a-head); font-weight: 600; }
.a-phone-note { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--a-rule); color: var(--a-ink-2); }
.a-phone-note a { font-family: var(--a-head); font-weight: 600; white-space: nowrap; }
.a-hero-photo { margin: 0; }
.a-hero-photo img { display: block; width: 100%; height: auto; border-radius: 14px; }
.a-contact .a-when { padding-top: 0.3em; }
.a-contact p + p { margin-top: 0.5rem; }
.a-contact-big { font-family: var(--a-head); font-weight: 700; font-size: clamp(1.6rem, 1.4rem + 1vw, 2.1rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--a-ink) !important; text-decoration: none !important; }

.a-form-card { background: var(--a-white); border: 2px solid var(--a-ink); border-radius: 14px; padding: clamp(1.25rem, 3.5vw, 2.25rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
@media (min-width: 1000px) { .a-form-card { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.a-form-card h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem) !important; margin: 0 0 0.5rem; }
.a-form-card > p { color: var(--a-ink-2); margin: 0 0 1.5rem; }
.a-form-card > h2 + form { margin-top: 1.25rem; }
.arden .form-grid { gap: 1.25rem; }
.arden .field label { font-family: var(--a-head); font-weight: 600; font-size: 1rem; color: var(--a-ink); margin-bottom: 0.4rem; }
.arden .req { color: var(--a-purple-text); }
.arden .field input, .arden .field select, .arden .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--a-muted); border-radius: 10px; background: var(--a-white);
  font-family: var(--a-body); font-size: 1.05rem; color: var(--a-ink); box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.arden .field textarea { min-height: 150px; resize: vertical; }
.arden .field input:hover, .arden .field select:hover, .arden .field textarea:hover { border-color: var(--a-ink); }
.arden .field input:focus, .arden .field select:focus, .arden .field textarea:focus {
  outline: none; border-color: var(--a-purple-text); box-shadow: 0 0 0 3px rgba(165, 95, 193, 0.28);
}
.arden .field input::placeholder { color: var(--a-muted); opacity: 1; }
.arden .field .hint { color: var(--a-muted); font-size: 0.95rem; }
.arden .field.has-error input, .arden .field.has-error select, .arden .field.has-error textarea { border-color: #B3261E; border-width: 2px; }
.arden .field-error { font-size: 0.95rem; }
.arden .form-status { border-radius: 10px; font-weight: 600; }
.arden .form-privacy { margin: 1rem 0 0; font-size: 0.95rem; color: var(--a-muted); }
.arden .a-btn:disabled { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }
.a-map-embed { display: block; margin-top: 1.25rem; height: clamp(280px, 40vw, 420px); border: 2px solid var(--a-ink) !important; border-radius: 14px; box-shadow: none !important; }
.a-form-h { margin: 0 0 1.75rem; }
@media (min-width: 720px) { .a-form-layout .a-tt > li { grid-template-columns: 6.5rem minmax(0, 1fr); } }
.a-callout-label { font-size: 1rem !important; font-weight: 600; color: var(--a-purple-text); margin: 0; }
.a-page-hero .a-callout .a-hours dd { max-width: 34ch; }
.a-prose > h3.a-sub { margin-top: 1.75rem; }

/* ---------- Legal pages and 404 ---------- */
.a-updated { margin: 0; font-family: var(--a-head); font-weight: 600; font-size: 0.95rem; color: var(--a-purple-text); }
.a-legal { max-width: 72ch; color: var(--a-ink-2); }
.a-legal > :first-child { margin-top: 0; }
.a-legal h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem) !important; color: var(--a-ink); margin: 2.75rem 0 0.75rem; padding-top: 1.25rem; border-top: 2px solid var(--a-ink); }
.a-legal h2:first-child { margin-top: 0; }
.a-legal h3 { color: var(--a-ink); margin: 1.75rem 0 0.5rem; }
.a-legal p { margin: 0 0 1rem; }
.a-legal strong { color: var(--a-ink); }
.a-legal ul, .a-legal ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.55rem; }
.a-legal li { position: relative; padding-left: 1.6rem; }
.a-legal li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(var(--a-white), var(--a-white)) padding-box, var(--a-line) border-box; }
.a-404 > .a-wrap { padding-block: clamp(3rem, 8vw, 6rem); }
.a-404-line { display: block; width: min(320px, 80%); height: auto; margin-bottom: 1.75rem; }
.a-legal h2 { max-width: none; } .a-legal > h2:first-of-type { margin-top: 0; }
.a-callout { width: fit-content; max-width: 100%; }
