/*
 * The booking page's new design (inc/book-pilot.php, miles-book-pilot.js), and
 * the home page hero's card in its new design, the same board; each loaded
 * only while it is switched on or an editor previews it. Miles's house
 * style (Drew, 28 November 2026): calm and editorial, evergreen and cream,
 * Newsreader over Inter, paper with a faint grid for what is an exhibit,
 * orange for the booking action alone, and the mark in Miles's green.
 */
.miles-book-page--pilot,
.home-pilot-card {
  --bp-deep: #173c36;
  --bp-deep-2: #204944;
  --bp-board: #0f2925;
  --bp-cream: #faf7f2;
  --bp-cream-deep: #f2ede4;
  --bp-sage: #dce7df;
  --bp-sage-soft: #edf2ed;
  --bp-brand: #2c5f5a;
  --bp-ink: #1a2e2a;
  --bp-soft: #536762;
  --bp-mark: #2c5f5a;
  --bp-mark-on-dark: #9fd3be;
  --bp-grid: rgba(44, 95, 90, 0.05);
  --bp-gutter: clamp(20px, 5vw, 72px);
}

/* ------------------------------------------------------------ the hero */

.miles-book-pilot {
  background: var(--bp-deep);
  color: var(--bp-cream);
  padding: clamp(28px, 4vw, 56px) var(--bp-gutter) clamp(40px, 6vw, 88px);
}
.miles-book-pilot__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-areas: "head" "board" "body";
  gap: 28px;
}
.miles-book-pilot__head { grid-area: head; }
.miles-book-pilot__body { grid-area: body; }
.miles-book-board { grid-area: board; }
/* A laptop: the words on the left, the board beside them. A phone: the board straight under the heading. */
@media (min-width: 1024px) {
  .miles-book-pilot__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: "head board" "body board";
    column-gap: clamp(40px, 5vw, 80px);
    row-gap: 0;
    align-items: start;
  }
  .miles-book-pilot__head { align-self: end; }
}
.miles-book-pilot .service-location-breadcrumb ol { margin: 0 0 22px; padding: 0; }
.miles-book-pilot .service-location-breadcrumb,
.miles-book-pilot .service-location-breadcrumb a { color: rgba(250, 247, 242, 0.72); }
.miles-book-pilot__eyebrow {
  margin: 0 0 14px;
  font: 600 12px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-sage);
}
.miles-book-pilot__title {
  margin: 0;
  font-family: Newsreader, "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 3.9vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--bp-cream);
  text-wrap: balance;
}
.miles-book-page--pilot .miles-book-pilot__title .miles-book-pilot__beat {
  display: block;
  margin-top: 0.1em;
  font-style: italic;
  color: var(--bp-sage);
}
.miles-book-page--pilot .miles-book-pilot__title .miles-book-pilot__beat[hidden] { display: none; }
.miles-book-page--pilot .miles-book-pilot__title .miles-book-pilot__when { color: var(--bp-cream); }
.miles-book-pilot__lede {
  margin: 0;
  max-width: 34em;
  font: 400 clamp(17px, 1.5vw, 19px)/1.6 Inter, system-ui, sans-serif;
  color: rgba(250, 247, 242, 0.86);
  text-wrap: pretty;
}
.miles-book-pilot__trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(220, 231, 223, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.miles-book-page--pilot .miles-book-pilot__trust li {
  font: 500 14px/1.5 Inter, system-ui, sans-serif;
  color: rgba(250, 247, 242, 0.82);
}
.miles-book-page--pilot .miles-book-pilot__trust a { color: var(--bp-cream); text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .miles-book-pilot__lede { margin-top: 22px; }
}

/* ------------------------------------------------- the Next free board */

.miles-book-board {
  background: var(--bp-board);
  border: 1px solid rgba(220, 231, 223, 0.14);
  border-radius: 20px;
  padding: 20px clamp(16px, 2vw, 26px) 18px;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.6);
}
.miles-book-board[hidden] { display: none; }
.miles-book-board__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(220, 231, 223, 0.12);
}
.miles-book-board__title {
  margin: 0;
  font: 600 13px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bp-sage);
}
.miles-book-board__stamp {
  margin: 0;
  font: 500 13px/1.3 Inter, system-ui, sans-serif;
  color: rgba(250, 247, 242, 0.62);
}
.miles-book-board__rows { list-style: none; margin: 0; padding: 0; }
.miles-book-board__rows li + li { border-top: 1px solid rgba(220, 231, 223, 0.08); }
.miles-book-board__row {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  width: 100%;
  padding: 14px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--bp-cream);
  position: relative;
}
.miles-book-board__row:focus-visible { outline: 2px solid var(--bp-mark-on-dark); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .miles-book-board__row:hover { background: rgba(250, 247, 242, 0.05); }
}
.miles-book-board__name { display: grid; gap: 3px; min-width: 0; }
.miles-book-board__name strong {
  font: 600 16px/1.3 Inter, system-ui, sans-serif;
  color: var(--bp-cream);
}
.miles-book-board__name small {
  font: 500 14px/1.3 Inter, system-ui, sans-serif;
  color: rgba(250, 247, 242, 0.66);
}
.miles-book-board__row[aria-pressed="true"] .miles-book-board__name strong { color: var(--bp-mark-on-dark); }
.miles-book-board__when { display: flex; gap: 10px; align-items: center; position: relative; }
.miles-book-board__tiles { display: inline-flex; gap: 3px; }
.miles-book-board__tile {
  --tile: 18px;
  display: inline-grid;
  place-items: center;
  width: calc(var(--tile) * 1.08);
  height: calc(var(--tile) * 1.62);
  border-radius: 4px;
  /* Black flaps with ivory letters, as a departure board's are (Drew, 28 November 2026: green tiles on a green board were one green too many). */
  background: linear-gradient(#232524 0 50%, #1b1d1c 50% 100%);
  color: #f6f1e7;
  font: 600 var(--tile)/1 Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 0 rgba(0, 0, 0, 0.5);
}
.miles-book-board__tile::after {              /* the hairline across the middle */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.7);
}
.miles-book-board__tile.is-space { width: calc(var(--tile) * 0.5); background: transparent; box-shadow: none; }
.miles-book-board__tile.is-space::after { display: none; }
.miles-book-board__tile.is-spinning { color: rgba(246, 241, 231, 0.5); }
.miles-book-board__said {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.miles-book-board__foot {
  margin: 12px 0 0;
  font: 500 13px/1.4 Inter, system-ui, sans-serif;
  color: rgba(250, 247, 242, 0.6);
}

/* One diary for everything: each row is its time, with "Book" on the right; "any service" is said once, in the head. */
.miles-book-board.is-any .miles-book-board__row { grid-template-columns: auto minmax(0, 1fr); }
.miles-book-board.is-any .miles-book-board__when { order: -1; }
.miles-book-board.is-any .miles-book-board__name { justify-self: end; }
:is(.miles-book-page--pilot, .home-pilot-card) .miles-book-board.is-any .miles-book-board__name strong { font-size: 15px; color: var(--bp-sage); }
:is(.miles-book-page--pilot, .home-pilot-card) .miles-book-board.is-any .miles-book-board__name strong::after { content: " \2192"; }
:is(.miles-book-page--pilot, .home-pilot-card) .miles-book-board.is-any .miles-book-board__row[aria-pressed="true"] .miles-book-board__name strong { color: var(--bp-mark-on-dark); }

/* A phone: the name above its time, the tiles a little smaller. */
@media (max-width: 640px) {
  .miles-book-board__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .miles-book-board__tile { --tile: 15px; }
  .miles-book-board__when { gap: 8px; }
}
@media (max-width: 640px) {
  .miles-book-board.is-any .miles-book-board__name { display: none; }
}
@media (max-width: 360px) {
  .miles-book-board__tile { --tile: 13px; }
}

/* ---------------------------------------- the booking on a sheet of paper */

.miles-book-page--pilot .miles-appointment-section {
  background: var(--bp-cream);
}
.miles-book-page--pilot .miles-appointment-engine {
  /* The sheet's own margin, so its heading never sits on its edge (Drew, 28 November 2026, on the live page). */
  padding: clamp(18px, 3.2vw, 44px) clamp(14px, 3.2vw, 44px) clamp(14px, 2.4vw, 32px);
  background-color: #fff;
  background-image:
    linear-gradient(var(--bp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 20px;
  box-shadow: 0 40px 80px -36px rgba(26, 46, 42, 0.32), 0 0 0 1px rgba(44, 95, 90, 0.08);
}

/* The hero already says "Book an appointment.": the sheet's own heading is the step's instruction, a size below it. */
.miles-book-page--pilot #book-appointment .miles-appointment-engine__heading h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.12;
}

/* ------------------------------------- what happens next, beside the shop */

.miles-book-after {
  display: grid;
  background: var(--bp-cream-deep);
  color: var(--bp-ink);
}
/* The site's section rhythm pads every section 84 to 108px, with !important (section:where(...) in theme-fixes.css); this one sets its own spacing. */
.miles-book-page--pilot .miles-book-after { padding: 0 !important; }
.miles-book-after__photo { margin: 0; min-height: 240px; }
.miles-book-after__photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.miles-book-after__words { padding: clamp(32px, 5vw, 72px) var(--bp-gutter); }
@media (min-width: 1024px) {
  /* The picture decides the bleed: the shop runs to the window's left edge, the words beside it. */
  .miles-book-after { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
  .miles-book-after__photo { overflow: hidden; border-radius: 0 20px 20px 0; margin: clamp(32px, 4vw, 56px) 0; }
  .miles-book-after__photo img { aspect-ratio: auto; }
  .miles-book-after__words { padding-left: clamp(40px, 5vw, 80px); max-width: 680px; }
}
.miles-book-page--pilot .miles-book-after .miles-book-pilot__eyebrow { color: var(--bp-brand); }
.miles-book-page--pilot .miles-book-after__title {
  margin: 0 0 22px;
  font-family: Newsreader, "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--bp-ink);
}
.miles-book-after__steps { list-style: none; margin: 0; padding: 0; }
.miles-book-after__steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(44, 95, 90, 0.16);
}
.miles-book-after__steps li:last-child { border-bottom: 1px solid rgba(44, 95, 90, 0.16); }
.miles-book-after__no {
  font: 600 13px/1.9 Inter, system-ui, sans-serif;
  letter-spacing: 0.12em;
  color: var(--bp-brand);
}
.miles-book-page--pilot .miles-book-after__steps strong {
  display: block;
  font: 600 17px/1.35 Inter, system-ui, sans-serif;
  color: var(--bp-ink);
}
.miles-book-page--pilot .miles-book-after__steps p {
  margin: 4px 0 0;
  font: 400 16px/1.55 Inter, system-ui, sans-serif;
  color: var(--bp-soft);
}
.miles-book-after__visit { margin-top: 22px; display: grid; gap: 12px; }
.miles-book-page--pilot .miles-book-after__status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 15px/1.4 Inter, system-ui, sans-serif;
  color: var(--bp-ink);
}
.miles-book-page--pilot .miles-book-after__links { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.miles-book-page--pilot .miles-book-after__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--bp-brand);
  border-radius: 999px;
  font: 600 15px/1 Inter, system-ui, sans-serif;
  color: var(--bp-brand);
  text-decoration: none;
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .miles-book-page--pilot .miles-book-after__links a:hover { background: var(--bp-sage-soft); }
}
.miles-book-page--pilot .miles-book-after__links a:focus-visible { outline: 2px solid var(--bp-brand); outline-offset: 2px; }
.miles-book-page--pilot .miles-book-after__note { margin: 0; font: 400 15px/1.5 Inter, system-ui, sans-serif; color: var(--bp-soft); }

/* ------------------------------------------- the home page hero's card */

/*
 * The card is the board, over the shop's photograph: the board's own ground,
 * its long shadow, the card's radius a little rounder than the form's 10px
 * and short of the 22px bubble Drew turned down. Three rows; the tiles take
 * the card's width (a container query), and "Book" gives way where a row
 * would not hold it, as on /book/'s phone.
 */
.home-hero__care-card.home-pilot-card {
  position: relative;
  background: rgba(15, 41, 37, 0.88);
  border: 1px solid rgba(220, 231, 223, 0.16);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(12px) saturate(0.9);
  backdrop-filter: blur(12px) saturate(0.9);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 250, 240, 0.06);
  padding: 22px 26px;
}
@media (min-width: 1024px) {
  .home-hero__care-card.home-pilot-card { width: min(100%, 440px); }
}
/* A bigger board from 1280 (Drew, 28 November 2026: "slightly bigger on desktop"): it takes more of the row, 560px, and 620 from 1600. */
@media (min-width: 1280px) {
  .home-hero--pilot .home-hero__content { width: 54%; }
  .home-hero--pilot .home-hero__aside { width: 46%; }
  .home-hero__care-card.home-pilot-card { width: min(100%, 560px); padding: 30px 34px; }
}
@media (min-width: 1600px) {
  .home-hero__care-card.home-pilot-card { width: min(100%, 620px); }
}
@media (max-width: 1023px) {
  .home-hero__care-card.home-pilot-card { padding: 20px 18px; }
}
.home-pilot-card .home-pilot-card__board {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  container-type: inline-size;
}
/* The views, by the card's class (the site keeps anything [hidden] hidden, with !important): the form as printed;
   the board's blank tiles while Booked is asked (is-waiting); the board once it has rows (is-board). */
.home-pilot-card .home-pilot-card__board { display: none; }
.home-pilot-card.is-waiting .home-pilot-card__board,
.home-pilot-card.is-board .home-pilot-card__board { display: block; }
.home-pilot-card.is-waiting .home-pilot-card__form,
.home-pilot-card.is-board .home-pilot-card__form { display: none; }

/* The site sets every h2 serif and heavier, with !important (theme-fixes.css): this one is the board's label. */
.home-pilot-card h2.miles-book-board__title {
  margin: 0 !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.78) !important;
}
.home-pilot-card .miles-book-board__head { align-items: center; padding-bottom: 14px; border-bottom-color: rgba(255, 250, 240, 0.10); }
/* The board's clock: the site's hours line, as a departures board carries the time. */
.home-pilot-card .miles-book-board__clock {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 14px/1.25 Inter, system-ui, sans-serif;
  color: rgba(246, 241, 231, 0.88);
}
.home-pilot-card .miles-book-board__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; }
.home-pilot-card .miles-book-board__foot .miles-book-board__stamp { font: inherit; color: rgba(246, 241, 231, 0.5); }
.home-pilot-card .miles-book-board__stamp,
.home-pilot-card .miles-book-board__foot { color: rgba(246, 241, 231, 0.6); }
.home-pilot-card .miles-book-board__rows li + li { border-top-color: rgba(255, 250, 240, 0.07); }
.home-pilot-card .miles-book-board.is-any .miles-book-board__name strong { color: rgba(246, 241, 231, 0.92); }
.home-pilot-card .miles-book-board__row { padding: 14px 10px; }
/* A row is 17.2 tiles wide and 40px of gaps (ten tiles of day, seven of time, two of them half-width spaces), with 72px for "Book" beside it, inside the row's 20px of padding: the tile is what is left. */
.home-pilot-card .miles-book-board__tiles { gap: 2px; }
.home-pilot-card .miles-book-board__tile { --tile: clamp(12px, calc(5.8cqi - 7.8px), 20px); }
.home-pilot-card .miles-book-board__name strong { white-space: nowrap; }
@container (max-width: 379px) {
  .home-pilot-card .miles-book-board__tile { --tile: clamp(10px, calc(5.8cqi - 3.6px), 16px); }
  .home-pilot-card .miles-book-board.is-any .miles-book-board__name { display: none; }
}

.home-pilot-card .home-pilot-card__other {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid rgba(246, 241, 231, 0.32);
  border-radius: 999px;
  font: 600 15px/1.2 Inter, system-ui, sans-serif;
  color: #f6f1e7;
  cursor: pointer;
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .home-pilot-card .home-pilot-card__other:hover { background: rgba(250, 247, 242, 0.06); border-color: rgba(246, 241, 231, 0.66); }
}
.home-pilot-card .home-pilot-card__other:focus-visible,
.home-pilot-card .home-pilot-card__back:focus-visible { outline: 2px solid var(--bp-mark-on-dark); outline-offset: 3px; }
.home-pilot-card .home-pilot-card__back {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin: 0 0 12px;
  font: 600 14px/1.3 Inter, system-ui, sans-serif;
  color: var(--bp-sage);
  cursor: pointer;
}
.home-pilot-card .home-pilot-card__back::before { content: "\2190"; }
.home-pilot-card .home-pilot-card__back[hidden] { display: none; }

/*
 * The light: once the tiles have landed, the light that drew the rule under
 * the headline passes along the board, once (miles-book-pilot.js adds it as
 * the flip ends), so the hero's reveal ends on the booking. Never again, and
 * never with reduced motion.
 */
@keyframes miles-board-light { from { transform: translateX(-120%); } to { transform: translateX(260%); } }
.home-pilot-card__light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.home-pilot-card__light::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 232, 0.07) 45%, rgba(255, 248, 232, 0.12) 50%, rgba(255, 248, 232, 0.07) 55%, transparent);
  transform: translateX(-120%);
  animation: miles-board-light 1.4s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .home-pilot-card__light { display: none; }
}

/* ------------------------------------- the home page hero around the board */

/*
 * Drew, 28 November 2026, on the live hero: the card sat low, there was too
 * much green, and the headline was not yet premium. From 768 only: the phone's
 * hero stays as it is ("markedly better", 27 October 2026).
 * - The card is centred on the words (the current design drops it to the
 *   hero's foot from 1500, 238px below the headline on a 1920 screen), and
 *   from 1500 the photograph sits lower in its frame, so the shop sign,
 *   "Yellow fever centre" and all, clears the card and the board stands in
 *   the window.
 * - The tint lifts on the right, so the lit window shows warm behind the
 *   board; the left keeps its green under the headline.
 * - The headline lighter, its lines closer, "made simple" (its <em>) in the
 *   pale sage and upright: the slanted closing phrase stays off, as the most
 *   copied move in generated design. The same words, so nothing for search
 *   moves. The lead in warm cream.
 */
@media (min-width: 768px) {
  .home-hero--pilot .home-hero__aside { align-self: center; }
  /* A print's grain over the photograph, under the words, barely there (an SVG noise tile, 7% white). */
  .home-hero--pilot::before {
    background:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
      linear-gradient(90deg,
        rgba(16, 42, 38, 0.95) 0%,
        rgba(20, 52, 47, 0.88) 32%,
        rgba(20, 44, 40, 0.42) 58%,
        rgba(12, 18, 17, 0.14) 100%),
      linear-gradient(0deg, rgba(12, 22, 20, 0.4), transparent 50%) !important;
  }
  .home-hero--pilot .home-hero__title,
  .home-hero--pilot .home-hero__title .home-hero__word,
  .home-hero--pilot .home-hero__title em {
    font-weight: 400 !important;
    letter-spacing: -0.022em !important;
  }
  .home-hero--pilot .home-hero__title { line-height: 1 !important; }
  .home-hero--pilot .home-hero__title em { color: #cfe0d5 !important; }
  .home-hero--pilot .home-hero__lead { color: rgba(250, 245, 235, 0.86) !important; }
  /* The button and, beside it, a call for anyone who would rather ring. */
  .home-hero--pilot .home-hero__actions { display: flex; align-items: center; flex-wrap: wrap; row-gap: 14px; }
  .home-hero--pilot .home-hero__call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 22px;
    font: 500 17px/1.2 Inter, system-ui, sans-serif;
    color: rgba(250, 245, 235, 0.86);
    text-decoration: none;
  }
  .home-hero--pilot .home-hero__call svg { width: 18px; height: 18px; flex: none; color: #cfe0d5; }
  .home-hero--pilot .home-hero__call strong { color: #f6f1e7; font-weight: 600; border-bottom: 1px solid rgba(246, 241, 231, 0.35); padding-bottom: 2px; }
  .home-hero--pilot .home-hero__call::before,
  .home-hero--pilot .home-hero__call::after { content: none !important; }
  .home-hero--pilot .home-hero__call:focus-visible { outline: 2px solid #cfe0d5; outline-offset: 4px; border-radius: 4px; }
  @media (hover: hover) and (pointer: fine) {
    .home-hero--pilot .home-hero__call:hover strong { border-bottom-color: #f6f1e7; }
  }
  /* Room under the words for the registrations docked on the hero's edge. */
  .home-hero--pilot .home-hero__inner { padding-bottom: 84px; }
}
.home-hero--pilot .home-hero__call { display: none; }
@media (min-width: 768px) {
  .home-hero--pilot .home-hero__call { display: inline-flex; }
}
@media (min-width: 1500px) {
  .home-hero--pilot { background-position: 50% 68% !important; }
}
@media (min-width: 1600px) {
  .home-hero--pilot .home-hero__title { font-size: 92px !important; }
  .home-hero--pilot .home-hero__inner { padding-bottom: 104px; }
}

/* ------------------------- the registrations under the home page hero, on certificate paper */

/*
 * Drew, 28 November 2026: "functional, but I feel like you can do better".
 * In the new design only, on the home page: the registrations docked on the
 * hero's edge from 768, on certificate paper (plain warm stock, a fine frame
 * inside its edge; graph paper read as a worksheet), its edges the headline's
 * and the board's, in ink with the brand green, and the pencil marking the
 * proof (miles-book-pilot.js). The two registers' marks keep their own
 * colours, resized, never redrawn. Elsewhere the bar stays as it is.
 */
@media (min-width: 768px) {
  .home-hero--pilot + .miles-yfvc {
    position: relative;
    z-index: 3;
    margin-top: -84px;
    padding-top: 0 !important;
    background: linear-gradient(transparent 0 84px, var(--color-background, #faf7f2) 84px) !important;
  }
}
@media (min-width: 1500px) {
  .home-hero--pilot + .miles-yfvc { padding-left: 0 !important; padding-right: 0 !important; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__panel { width: calc(min(100% - 252px, 1900px) - 48px); }
}
@media (min-width: 1600px) {
  .home-hero--pilot + .miles-yfvc { margin-top: -104px; background: linear-gradient(transparent 0 104px, var(--color-background, #faf7f2) 104px) !important; }
}
.home-hero--pilot + .miles-yfvc .miles-yfvc__panel {
  position: relative;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  padding: 40px 48px;
  color: #1a2e2a;
  background: #fffdf8;
  border: 0;
  border-radius: 20px;
  outline: 1px solid rgba(44, 95, 90, 0.18);
  outline-offset: -12px;
  box-shadow: 0 50px 100px -40px rgba(10, 30, 26, 0.45), 0 0 0 1px rgba(44, 95, 90, 0.08);
}
.home-hero--pilot + .miles-yfvc .miles-yfvc__cell--yfvc { padding-right: 48px; flex-direction: column; align-items: flex-start; gap: 18px; }
.home-hero--pilot + .miles-yfvc .miles-yfvc__cell--gphc { padding-left: 48px; border-left-color: rgba(44, 95, 90, 0.16); }
/* The pencil's line takes the straight one's place once it is drawn. */
.home-hero--pilot + .miles-yfvc .miles-yfvc__panel.is-pencilled .miles-yfvc__cell--gphc { border-color: transparent; }
.home-hero--pilot + .miles-yfvc .miles-yfvc__marks { flex-direction: row; align-items: center; gap: 14px; }
.home-hero--pilot + .miles-yfvc .miles-yfvc__mark--nathnac { height: 40px; border-radius: 7px; }
.home-hero--pilot + .miles-yfvc .miles-yfvc__mark--yfz { height: 48px; }
.home-hero--pilot + .miles-yfvc .miles-yfvc__copy { align-self: stretch; }
.home-hero--pilot + .miles-yfvc .miles-yfvc__title { max-width: 22ch; color: #1a2e2a; font-size: 28px; font-weight: 500 !important; line-height: 1.15 !important; }
.home-hero--pilot + .miles-yfvc .miles-yfvc__label { margin: 0 0 22px; color: var(--color-brand, #2c5f5a); }
.home-hero--pilot + .miles-yfvc .miles-yfvc__number {
  align-self: flex-start;
  margin: 0 0 24px;
  color: #1a2e2a;
  font: 500 60px/1 Newsreader, "Source Serif 4", Georgia, serif;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
}
.home-hero--pilot + .miles-yfvc .miles-yfvc__blurb { max-width: 40ch; color: #536762; font-size: 16px; }
.home-hero--pilot + .miles-yfvc .miles-yfvc__verify { min-height: 44px; color: var(--color-brand, #2c5f5a); border-color: rgba(44, 95, 90, 0.5); }
.home-hero--pilot + .miles-yfvc .miles-yfvc__verify:hover,
.home-hero--pilot + .miles-yfvc .miles-yfvc__verify:focus-visible { color: #fff; background: var(--color-brand, #2c5f5a); border-color: var(--color-brand, #2c5f5a); }
.home-hero--pilot + .miles-yfvc .miles-yfvc__verify:focus-visible { outline-color: var(--color-brand, #2c5f5a); }
.home-hero--pilot + .miles-yfvc .miles-yfvc__verify::before { background: linear-gradient(105deg, transparent 20%, rgba(44, 95, 90, 0.14) 50%, transparent 80%); }
/* From 1200 the marks stand beside the words, as a register entry's seal does. */
@media (min-width: 1200px) {
  .home-hero--pilot + .miles-yfvc .miles-yfvc__cell--yfvc { flex-direction: row; gap: 32px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__marks { flex-direction: column; gap: 16px; padding-top: 6px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__mark--nathnac { height: 52px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__mark--yfz { height: 68px; }
}
@media (max-width: 1199px) {
  .home-hero--pilot + .miles-yfvc .miles-yfvc__panel { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  /* Where the two stack, the ringed number sits a little in, so its ring stays inside the paper's frame. */
  .home-hero--pilot + .miles-yfvc .miles-yfvc__number { margin-left: 12px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__cell--yfvc { padding-right: 0; padding-bottom: 28px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__cell--gphc { padding-left: 0; padding-top: 28px; border-left: 0; border-top: 1px solid rgba(44, 95, 90, 0.16); }
}
@media (max-width: 767px) {
  .home-hero--pilot + .miles-yfvc .miles-yfvc__panel { padding: 26px 22px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__cell { flex-direction: column; align-items: flex-start; gap: 18px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__title { font-size: 22px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__number { font-size: 44px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__blurb { font-size: 15px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__action { padding-top: 16px; }
  .home-hero--pilot + .miles-yfvc .miles-yfvc__verify { display: inline-flex; width: auto; min-height: 46px; padding: 10px 18px; }
}
/* The pencil: Miles's green, a hand's line; drawn once by miles-book-pilot.js. */
.miles-pencil { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; pointer-events: none; }
.miles-pencil path { fill: none; stroke: var(--color-brand, #2c5f5a); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.miles-pencil--ring path { stroke-width: 1.9; }
.miles-pencil--soft path { stroke-width: 1.8; opacity: 0.85; }

/* ------------------------------------------------------------ the mark */

.miles-book-mark {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.miles-book-mark path {
  fill: none;
  stroke: var(--bp-mark, #2c5f5a);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.miles-book-mark--dark path { stroke: var(--bp-mark-on-dark, #9fd3be); }

/* ==========================================================================
   The home page's "What brings you here today?" in its new design
   ==========================================================================
   The four ways in as a question with four answers (Drew, 28 November 2026:
   the four tiles read as "old hat, a bit templatey ... a lot packed into
   it"). Each answer is its label, its own heading in the house serif and one
   true fact; the answer chosen takes the brand's fill, as a chosen time does,
   and its way in opens beneath, one at a time (miles-book-pilot.js). On a
   phone each opens in place under its answer and a second tap shuts it.
   Without the script there are no answers: the four ways stand one under
   another, each under its own heading. inc/health-hub-page.php,
   miles_ways_render() with `ask`; the Health Hub keeps its tiles. */

.miles-ways--ask {
  --wa-deep: #173c36;
  --wa-paper: #fffdf8;
  --wa-line: rgba(44, 95, 90, 0.16);
  --wa-ink: #1a2e2a;
  --wa-soft: #536762;
  --wa-brand: #2c5f5a;
  padding: 72px 0 104px !important;   /* the site's section rhythm pads every section with !important */
}
.miles-ways--ask .miles-ways__head { display: block; margin-bottom: 32px; }
.miles-ways--ask .miles-ways__head h2 { margin: 0; }
.miles-ways--ask .miles-ways__set { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
/* The tiles' bento names its areas (theme-fixes.css); here each way in takes the next row. */
.miles-ways--ask .miles-ways__way { grid-area: auto; }
.miles-ways--ask:not(.is-asking) .miles-ways__answer { display: none; }

/* ---- the answers ---------------------------------------------------------- */

.miles-ways--ask.is-asking .miles-ways__set { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.miles-ways--ask .miles-ways__answer {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  position: relative;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "kick sign" "q q" "fact fact";
  align-content: start;
  gap: 0 12px;
  width: 100%;
  min-height: 156px;
  margin: 0;
  padding: 22px 22px 22px 24px;
  border: 0;
  border-radius: 18px;
  background: var(--wa-paper);
  box-shadow: inset 0 0 0 1px var(--wa-line);
  color: var(--wa-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, translate 0.25s ease, color 0.25s ease;
}
.miles-ways--ask .miles-ways__answer-kick {
  grid-area: kick;
  color: var(--wa-brand);
  font: 700 13px/1.3 Inter, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.miles-ways--ask .miles-ways__answer-q {
  grid-area: q;
  margin-top: 16px;
  font: 500 25px/1.12 Newsreader, "Source Serif 4", Georgia, serif;
  letter-spacing: -0.012em;
}
.miles-ways--ask .miles-ways__answer-fact {
  grid-area: fact;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--wa-soft);
  font: 500 16px/1.45 Inter, system-ui, sans-serif;
}
.miles-ways--ask .miles-ways__answer-fact .miles-hours-text { color: inherit; }
.miles-ways--ask .miles-ways__hours { display: inline-flex; align-items: center; gap: 8px; }
.miles-ways--ask .miles-ways__hours .miles-clock { flex: none; }
/* A plus that turns to a minus as its way in opens. */
.miles-ways--ask .miles-ways__answer-sign { grid-area: sign; position: relative; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(44, 95, 90, 0.3); }
.miles-ways--ask .miles-ways__answer-sign::before,
.miles-ways--ask .miles-ways__answer-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.25s ease; }
.miles-ways--ask .miles-ways__answer-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
@media (hover: hover) and (pointer: fine) {
  /* translate, not transform: the reveal's rise holds transform once it has played. */
  .miles-ways--ask .miles-ways__answer:hover { box-shadow: inset 0 0 0 1px rgba(44, 95, 90, 0.34), 0 18px 34px -22px rgba(26, 46, 42, 0.35); translate: 0 -2px; }
}
.miles-ways--ask .miles-ways__answer:focus-visible { outline: 3px solid var(--color-cta, #e8734a) !important; outline-offset: 3px; }
/* The answer chosen: the brand's fill, as a chosen time is. */
.miles-ways--ask .miles-ways__answer[aria-expanded="true"] { background: var(--wa-deep); color: #f6f1e7; box-shadow: none; translate: none; }
.miles-ways--ask .miles-ways__answer[aria-expanded="true"] .miles-ways__answer-kick { color: #9fd3be; }
.miles-ways--ask .miles-ways__answer[aria-expanded="true"] .miles-ways__answer-fact { color: rgba(246, 241, 231, 0.8); }
.miles-ways--ask .miles-ways__answer[aria-expanded="true"] .miles-ways__answer-sign { box-shadow: inset 0 0 0 1px rgba(246, 241, 231, 0.4); }
.miles-ways--ask .miles-ways__answer[aria-expanded="true"] .miles-ways__answer-sign::after { transform: translate(-50%, -50%) rotate(0deg); }

/* ---- the way in, under its answer ---------------------------------------- */

.miles-ways--ask.is-asking .miles-ways__way { grid-column: 1 / -1; grid-row: 2; min-width: 0; margin-top: 10px; }
.miles-ways--ask.is-asking .miles-ways__way[hidden] { display: none !important; }
/* Its label and heading are the answer's, said already above it; they stay for a screen reader. */
.miles-ways--ask.is-asking .miles-ways__way > .miles-ways__kicker,
.miles-ways--ask.is-asking .miles-ways__way > .miles-ways__title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.miles-ways--ask .miles-ways__way > .miles-ways__line { font-size: 19px; }

@media (min-width: 768px) {
  /* Travel: the world on the left, the words and the guides beside it. */
  .miles-ways--ask.is-asking .miles-ways__way--trip {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "map line" "map places" "map foot";
    align-items: center;
    column-gap: 48px;
    padding: 36px 48px 36px 36px;
  }
  .miles-ways--ask.is-asking .miles-ways__way--trip > .miles-ways__line { grid-area: line; align-self: end; margin-top: 8px; }
  .miles-ways--ask.is-asking .miles-ways__way--trip > .miles-ways__figure { grid-area: map; align-self: center; margin: 0; }
  .miles-ways--ask.is-asking .miles-ways__way--trip > .miles-ways__places { align-self: start; }

  /* Pharmacy First and wellbeing: the words on the left, the list beside them in two columns. */
  .miles-ways--ask.is-asking .miles-ways__way--unwell,
  .miles-ways--ask.is-asking .miles-ways__way--well {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    padding: 40px 44px;
  }
  .miles-ways--ask.is-asking .miles-ways__way--unwell { grid-template-areas: "line ages" "foot ages"; }
  .miles-ways--ask.is-asking .miles-ways__way--well { grid-template-areas: "line list" ". list"; }
  .miles-ways--ask.is-asking .miles-ways__way > .miles-ways__line { grid-area: line; margin-top: 0; }
  .miles-ways--ask.is-asking .miles-ways__way--unwell > .miles-ways__ages { grid-area: ages; margin: 0; }
  .miles-ways--ask.is-asking .miles-ways__way--unwell > .miles-ways__foot { grid-area: foot; }
  .miles-ways--ask.is-asking .miles-ways__way--well > .miles-ways__index { grid-area: list; margin: 0; }
  .miles-ways--ask.is-asking .miles-ways__rows,
  .miles-ways--ask.is-asking .miles-ways__index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  .miles-ways--ask.is-asking .miles-ways__row:nth-child(-n+2),
  .miles-ways--ask.is-asking .miles-ways__index li:nth-child(-n+2) { border-top: 0; }

  /* Not sure: the person, or the shop, in a column of its own; the words, the hours and the call beside it. */
  .miles-ways--ask.is-asking .miles-ways__way--care {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "photo ." "photo line" "photo foot" "photo .";
    min-height: 0;
    padding: 0;
  }
  .miles-ways--ask.is-asking .miles-ways__way--care::before { display: none; }
  .miles-ways--ask.is-asking .miles-ways__way--care .miles-ways__photo { grid-area: photo; position: relative; inset: auto; z-index: 0; height: auto; min-height: 340px; }
  .miles-ways--ask.is-asking .miles-ways__way--care > .miles-ways__line { margin: 0; padding: 44px 44px 0; }
  .miles-ways--ask.is-asking .miles-ways__way--care > .miles-ways__foot { grid-area: foot; padding: 22px 44px 44px; }
}

/* Pharmacy First: each condition with who it is for as a small tag; each condition's own page sets out the ages. */
.miles-ways--ask.is-asking .miles-ways__way--unwell { background: var(--wa-paper); }
.miles-ways--ask.is-asking .miles-ways__ages-cap,
.miles-ways--ask.is-asking .miles-ways__bar,
.miles-ways--ask.is-asking .miles-ways__scale { display: none; }
.miles-ways--ask.is-asking .miles-ways__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(44, 95, 90, 0.14); }
.miles-ways--ask.is-asking .miles-ways__row:first-child { border-top: 0; }
.miles-ways--ask.is-asking .miles-ways__who { flex: none; padding: 4px 10px; border-radius: 999px; background: #edf2ed; color: var(--wa-brand); font-size: 13px; font-weight: 600; }
.miles-ways--ask.is-asking .miles-ways__index li:first-child { border-top: 0; }
.miles-ways--ask.is-asking .miles-ways__index a { padding: 14px 0; }
/* The photograph whole, in its own colour, nothing over the face. */
.miles-ways--ask.is-asking .miles-ways__way--care .miles-ways__photo img { filter: none; }
.miles-ways--ask.is-asking .miles-ways__way--face .miles-ways__photo img { object-position: 50% 24%; }

/* Two answers a row on a tablet: the way in opens under both rows. */
@media (min-width: 768px) and (max-width: 1099px) {
  .miles-ways--ask.is-asking .miles-ways__set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .miles-ways--ask .miles-ways__answer { grid-row: auto; }
  .miles-ways--ask.is-asking .miles-ways__way { grid-row: 3; }
  .miles-ways--ask.is-asking .miles-ways__way--trip { column-gap: 32px; padding: 32px; }
}
/* Four in a row: a notch points from the answer chosen to what it opened, and every label takes two lines' room, so the four headings start on one line whichever label wraps. */
@media (min-width: 1100px) {
  .miles-ways--ask .miles-ways__answer-kick { min-height: 2.6em; }
  .miles-ways--ask .miles-ways__answer-q { margin-top: 12px; }
  .miles-ways--ask .miles-ways__answer[aria-expanded="true"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; border-radius: 3px; background: var(--wa-deep); transform: translateX(-50%) rotate(45deg); }
}

/* A phone: the answers a list, each opening in place under itself. */
@media (max-width: 767px) {
  .miles-ways--ask { padding: 48px 0 64px !important; }
  .miles-ways--ask .miles-ways__head { margin-bottom: 24px; }
  .miles-ways--ask.is-asking .miles-ways__set { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .miles-ways--ask .miles-ways__answer { grid-row: auto; min-height: 0; padding: 18px 18px 18px 20px; }
  .miles-ways--ask .miles-ways__answer-q { margin-top: 10px; font-size: 22px; }
  .miles-ways--ask .miles-ways__way > .miles-ways__line { font-size: 17px; }
  .miles-ways--ask.is-asking .miles-ways__way { grid-row: auto; grid-column: 1; margin-top: 0; padding: 24px 20px; }
  .miles-ways--ask.is-asking .miles-ways__way--trip { display: flex; }
  .miles-ways--ask.is-asking .miles-ways__way--trip > .miles-ways__line { margin-top: 0; }
  .miles-ways--ask.is-asking .miles-ways__way--unwell,
  .miles-ways--ask.is-asking .miles-ways__way--well { display: block; }
  .miles-ways--ask.is-asking .miles-ways__way--unwell > .miles-ways__line,
  .miles-ways--ask.is-asking .miles-ways__way--well > .miles-ways__line { margin-top: 0; }
  .miles-ways--ask.is-asking .miles-ways__ages,
  .miles-ways--ask.is-asking .miles-ways__index { margin-top: 12px; }
  .miles-ways--ask.is-asking .miles-ways__way--care { display: block; min-height: 0; padding: 0; }
  .miles-ways--ask.is-asking .miles-ways__way--care::before { display: none; }
  .miles-ways--ask.is-asking .miles-ways__way--care .miles-ways__photo { position: relative; inset: auto; z-index: 0; height: 240px; }
  .miles-ways--ask.is-asking .miles-ways__way--care > .miles-ways__line { margin: 0; padding: 24px 20px 0; }
  .miles-ways--ask.is-asking .miles-ways__way--care > .miles-ways__foot { padding: 18px 20px 24px; }
}

/* In motion: the site's reveal brings in the answers and the first way in, in turn; a way in opened by a press rises at once. */
@media (prefers-reduced-motion: no-preference) {
  .miles-ways--ask .miles-ways__set { --reveal-step: 90ms; }
  .miles-ways--ask.is-asking .miles-ways__way.is-opened { animation: miles-ways-open 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .miles-ways--ask .miles-ways__answer,
  .miles-ways--ask .miles-ways__answer-sign::before,
  .miles-ways--ask .miles-ways__answer-sign::after { transition: none; }
}
@keyframes miles-ways-open { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
