/* ==========================================================================
   COVE GYM & STUDIO — temporary site
   ==========================================================================
   Contents
     1.  Tokens (palette, type, spacing)
     2.  Reset & base
     3.  Layout helpers
     4.  Typography
     5.  Buttons & links
     6.  Header & navigation
     7.  Hero
     8.  Sections: ethos, included, spaces
     9.  Memberships
     10. Classes & timetable
     11. Form
     12. Find us
     13. FAQ
     14. Footer
     15. Cookie banner
     16. Motion & print
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   --------------------------------------------------------------------------
   PALETTE A (current). To trial Palette B, change only the six brand values
   in the first block below — nothing else in this file hard-codes a colour.

   CONTRAST RULES, measured, do not break them:
     deep water on cream ... 7.9 : 1   default body text
     cream on deep water ... 7.9 : 1   text on dark bands
     cream on --accent-solid 4.9 : 1   the primary button on cream sections
     deep water on --teal .. 5.2 : 1   the primary button inside dark bands
     --teal on cream ....... 1.5 : 1   FAILS. Never a button on cream, never text.
     cocoa on cream ........ 4.0 : 1   FAILS below 18px. Use --ink-muted.
     sand on cream ......... 1.6 : 1   FAILS. Decoration and 40px+ display only.

   The two-part button is forced by the maths, not a preference. Deep water
   is lighter than the navy it replaced, so a fill able to carry deep-water
   text must itself be light — too light to separate from the cream page.
   Hence a dark fill with cream type on cream, and the light aqua only where
   it sits on a dark band.
   ========================================================================== */

:root {
  /* --- Brand palette A -------------------------------------------------- */
  --navy:  #2F4F4F;   /* "Deep water" — ink and dark bands             */
  --cream: #F6F1E7;
  --sand:  #E2BB70;
  --teal:  #8FD3C8;   /* light aqua — accents sitting ON the dark bands */
  --cocoa: #8A7457;
  --oat:   #C4D2D2;

  /* --- Derived inks ----------------------------------------------------- *
   * The brand colours above are surface colours. These darkened members of
   * the same families exist so small text can hit WCAG AA. Do not swap them
   * back to the raw brand colour for text.                                 */
  --ink-muted:    #6F5B42;  /* cocoa family, 5.7:1 on cream — eyebrows, captions */
  --ink-teal:     #25605C;  /* 6.4:1 on cream — links, focus rings, input borders */
  --teal-bright:  #A3DCD2;  /* 5.8:1 on deep water — links on the dark bands      */
  --accent-solid: #1A756B;  /* the primary button on cream, cream type at 4.9:1   */

  /* --- Surfaces & lines ------------------------------------------------- */
  --surface:        var(--cream);
  --surface-raised: #FFFDF8;
  --line:           rgba(47, 79, 79, 0.14);
  --line-strong:    rgba(47, 79, 79, 0.28);
  --line-on-navy:   rgba(246, 241, 231, 0.22);
  --shadow-sm: 0 1px 2px rgba(47, 79, 79, 0.05), 0 6px 18px rgba(47, 79, 79, 0.05);
  --shadow-md: 0 2px 4px rgba(47, 79, 79, 0.06), 0 16px 40px rgba(47, 79, 79, 0.09);

  /* --- Type ------------------------------------------------------------- */
  /* One family across the whole site. Assistant has no italic, so emphasis
     in headings is carried by weight rather than slant — see h1 em below.
     Do not set italic on a heading; the browser would fake a slant. */
  --font-display: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step-hero: clamp(2.75rem, 1.2rem + 6.6vw, 5.75rem);
  --step-h2:   clamp(2rem, 1.15rem + 3.4vw, 3.25rem);
  --step-h3:   clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem);
  --step-price: clamp(2.75rem, 2.1rem + 2.4vw, 3.5rem);
  --step-body: 1.0625rem;          /* 17px */
  --step-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --step-small: 0.9375rem;
  --step-eyebrow: 0.8125rem;       /* 13px */

  /* --- Space ------------------------------------------------------------ */
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --section-y: clamp(4rem, 2.4rem + 6vw, 7.5rem);
  --measure: 34rem;
  --container: 78rem;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --header-h: 68px;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

/* Components below set display, which would otherwise beat the browser's own
   [hidden] rule. Anything marked hidden in the HTML or by JavaScript stays hidden. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
img { background: rgba(47, 79, 79, 0.04); }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus-visible {
  outline: 2px solid var(--ink-teal);
  outline-offset: 2px;
  border-radius: 3px;
}
.on-navy :focus-visible { outline-color: var(--teal-bright); }

::selection { background: var(--sand); color: var(--navy); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 0; left: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--navy); color: var(--cream);
  padding: 0.85rem 1.25rem; font-weight: 600;
  text-decoration: none; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { transform: translateY(0); }


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

/* Navy feature band */
.band-navy {
  background: var(--navy);
  color: var(--cream);
}
.band-navy h2, .band-navy h3 { color: var(--cream); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.section-head p { color: rgba(47, 79, 79, 0.78); font-size: var(--step-lead); }
.band-navy .section-head p { color: var(--oat); }

.grid { display: grid; gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem); }
@media (min-width: 720px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }


/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-hero); letter-spacing: -0.035em; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); line-height: 1.2; letter-spacing: -0.02em; }

/* Emphasis is weight, not slant. Assistant has no italic face, and a faked
   one looks cheap at headline size. */
h1 em, h2 em, h3 em { font-style: normal; font-weight: 600; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--step-lead); line-height: 1.55; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
.band-navy .eyebrow, .eyebrow--on-navy { color: var(--teal-bright); }

/* Sand is only ever allowed on display type — this class is locked to 40px+. */
.display-sand {
  color: var(--sand);
  font-size: max(2.5rem, 1em);
}

.small { font-size: var(--step-small); }
.muted { color: var(--ink-muted); }
.band-navy .muted { color: var(--oat); }


/* ==========================================================================
   5. BUTTONS & LINKS
   ========================================================================== */

a { color: var(--ink-teal); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
.band-navy a, .on-navy a { color: var(--teal-bright); }
.band-navy a:hover, .on-navy a:hover { color: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

/* Primary button, two treatments. On cream it is dark with cream type; on a
   dark band it is the light aqua with deep-water type. See the note at the
   top of the file for why one colour cannot do both jobs here. */
.btn--primary { background: var(--accent-solid); color: var(--cream); }
.btn--primary:hover { background: #166B62; color: var(--cream); }

.band-navy .btn--primary,
.on-navy .btn--primary { background: var(--teal); color: var(--navy); }
.band-navy .btn--primary:hover,
.on-navy .btn--primary:hover { background: var(--teal-bright); color: var(--navy); }

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn--secondary:hover { background: rgba(47, 79, 79, 0.05); color: var(--navy); }

.on-navy .btn--secondary, .band-navy .btn--secondary {
  color: var(--cream);
  border-color: var(--line-on-navy);
}
.on-navy .btn--secondary:hover, .band-navy .btn--secondary:hover {
  background: rgba(246, 241, 231, 0.1);
  color: var(--cream);
}

.btn--block { width: 100%; }

/* --- Light islands on a navy band ------------------------------------- *
 * The membership cards and the form panel are cream, but they sit inside
 * .band-navy / .on-navy. Without this, their links and secondary buttons
 * would inherit the reversed (cream / bright teal) treatment and all but
 * disappear against the cream. Put them back on the cream palette.        */
.on-navy .plan a,
.on-navy .form-panel a,
.band-navy .plan a,
.band-navy .form-panel a { color: var(--ink-teal); }

.on-navy .plan a:hover,
.on-navy .form-panel a:hover,
.band-navy .plan a:hover,
.band-navy .form-panel a:hover { color: var(--navy); }

/* A primary button inside one of these cream islands sits on cream, not on
   the band, so it needs the dark fill back — the light aqua would all but
   vanish on the card. */
.on-navy .plan .btn--primary,
.on-navy .form-panel .btn--primary,
.band-navy .plan .btn--primary,
.band-navy .form-panel .btn--primary {
  background: var(--accent-solid);
  color: var(--cream);
}
.on-navy .plan .btn--primary:hover,
.on-navy .form-panel .btn--primary:hover,
.band-navy .plan .btn--primary:hover,
.band-navy .form-panel .btn--primary:hover {
  background: #166B62;
  color: var(--cream);
}

.on-navy .plan .btn--secondary,
.on-navy .form-panel .btn--secondary,
.band-navy .plan .btn--secondary,
.band-navy .form-panel .btn--secondary {
  color: var(--navy);
  border-color: var(--line-strong);
  background: transparent;
}

.on-navy .plan .btn--secondary:hover,
.on-navy .form-panel .btn--secondary:hover,
.band-navy .plan .btn--secondary:hover,
.band-navy .form-panel .btn--secondary:hover {
  background: rgba(47, 79, 79, 0.05);
  color: var(--navy);
}

.on-navy .plan :focus-visible,
.on-navy .form-panel :focus-visible,
.band-navy .plan :focus-visible,
.band-navy .form-panel :focus-visible { outline-color: var(--ink-teal); }

/* Headings inside a light island: .band-navy h2/h3 is more specific than the
   component's own colour, so it has to be undone here too. */
.on-navy .plan h2, .on-navy .plan h3,
.on-navy .form-panel h2, .on-navy .form-panel h3,
.band-navy .plan h2, .band-navy .plan h3,
.band-navy .form-panel h2, .band-navy .form-panel h3 { color: var(--navy); }

.on-navy .plan .plan__name,
.band-navy .plan .plan__name { color: var(--ink-muted); }

.on-navy .plan .muted, .on-navy .form-panel .muted,
.band-navy .plan .muted, .band-navy .form-panel .muted { color: var(--ink-muted); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }


/* ==========================================================================
   6. HEADER & NAV
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header[data-stuck="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(47, 79, 79, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

/* --- Wordmark ---------------------------------------------------------- *
 * TODO: replace with the final SVG once the logo is chosen. Until then the
 * brand name is set as type — see assets/logo/README.md.                   */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.85rem;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  padding: 0.5rem 0;   /* keeps the tap target at 44px+ */
}
.wordmark:hover { color: var(--navy); }
.wordmark img { height: 1.85rem; width: auto; }
.wordmark__descriptor {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.on-navy .wordmark { color: var(--cream); }
.on-navy .wordmark__descriptor { color: var(--oat); }

@media (max-width: 420px) { .wordmark__descriptor { display: none; } }

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.1rem + 1.4vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0.25rem; right: 0.25rem; bottom: 10px;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }

.nav__cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle__bar {
  display: block; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    margin-left: 0;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav__link {
    min-height: 52px;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
}


/* ==========================================================================
   7. HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 7vw, 6.5rem) clamp(3.5rem, 2rem + 6vw, 6rem);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { margin-bottom: 0.35em; }
.hero__lead { font-size: var(--step-lead); color: rgba(47, 79, 79, 0.8); max-width: 30rem; }
.hero .btn-row { margin-top: 2rem; }

.hero__note {
  margin-top: 1.75rem;
  font-size: var(--step-small);
  color: var(--ink-muted);
}

/* Decorative arc behind the hero. Purely ornamental — aria-hidden in markup. */
.hero__arc {
  position: absolute;
  top: -22%;
  right: -12%;
  width: min(46rem, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(2rem, 4vw, 3.5rem) solid rgba(26, 117, 107, 0.07);
  pointer-events: none;
  z-index: -1;
}

/* Media frame used for hero and section imagery */
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--hero { aspect-ratio: 4 / 3.2; }
.media--square { aspect-ratio: 1; }


/* ==========================================================================
   8. ETHOS / INCLUDED / SPACES
   ========================================================================== */

.ethos__grid { display: grid; gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); }
@media (min-width: 900px) { .ethos__grid { grid-template-columns: 0.85fr 1.15fr; } }
.ethos p + p { margin-top: 0; }

.included {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
}
@media (min-width: 640px) { .included { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .included { grid-template-columns: repeat(3, 1fr); } }

.included__item { display: flex; gap: 1rem; align-items: flex-start; }
.included__icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(26, 117, 107, 0.14);
  color: var(--ink-teal);
}
.band-navy .included__icon { background: rgba(67, 194, 183, 0.16); color: var(--teal-bright); }
.included__icon svg { width: 20px; height: 20px; }
.included__item h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.2rem; }
.included__item p { font-size: var(--step-small); color: rgba(47, 79, 79, 0.72); margin: 0; }
.band-navy .included__item p { color: var(--oat); }

.space-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
}
.band-navy .space-card {
  background: rgba(246, 241, 231, 0.05);
  border-color: var(--line-on-navy);
}
.space-card h3 { margin-bottom: 0.4em; }
.space-card__tags {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
}
.band-navy .tag { border-color: var(--line-on-navy); color: var(--oat); }


/* --- Photography -------------------------------------------------------- *
 * Real photographs of the gym. They are supplied at modest resolution, so
 * the slots are sized close to native rather than blown up — an upscaled
 * photo looks worse than a smaller, sharp one.                             */
.ethos__media {
  margin: 2rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 28rem;
}
.ethos__media img { width: 100%; height: auto; }

/* --- Warming the cool photographs -------------------------------------- *
 * The two photographs taken on the gym floor are lit cool and blue, which
 * reads harder and more equipment-led than the brand wants. Only those carry
 * .photo--warm; the studio photographs are already warm and would go orange
 * if they were graded too.                                                 */
.photo--warm { position: relative; }
.photo--warm img { filter: sepia(0.20) saturate(0.90) brightness(1.05) contrast(0.95); }
.photo--warm::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg,
    rgba(226, 187, 112, 0.18) 0%,
    rgba(246, 241, 231, 0.10) 45%,
    rgba(47, 79, 79, 0.12) 100%);
  mix-blend-mode: soft-light;
}

/* Full-width photograph in the classes section */
.classes__media {
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 2;
  max-height: 30rem;
}
.classes__media img { width: 100%; height: 100%; object-fit: cover; }

.space-card { overflow: hidden; }
.space-card__media {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: rgba(47, 79, 79, 0.06);
}
.space-card__media img { width: 100%; height: 100%; object-fit: cover; }


/* ==========================================================================
   9. MEMBERSHIPS
   ========================================================================== */

.plans { display: grid; gap: clamp(1.25rem, 0.8rem + 1.6vw, 1.75rem); align-items: stretch; }
@media (min-width: 680px)  { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  border: 1px solid transparent;
}
.plan[data-popular="true"] { box-shadow: var(--shadow-md); }

.plan__tag {
  position: absolute;
  top: 0; right: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  transform: translateY(-50%);
  background: var(--sand);        /* sand as a FILL, navy sets the type — 8.8:1 */
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}

.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.plan__amount {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-price);
  line-height: 1;
  letter-spacing: -0.04em;
}
.plan__period { font-size: var(--step-small); color: var(--ink-muted); }
.plan__fee { font-size: var(--step-small); color: var(--ink-muted); margin: 0 0 1.5rem; }

.plan__features { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.7rem; }
.plan__features li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: var(--step-small); line-height: 1.5;
}
.plan__features svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 4px; color: var(--ink-teal); }

.plan__cta { margin-top: auto; }

.plans-note { margin-top: 2rem; font-size: var(--step-small); }


/* --- How it works: three steps ------------------------------------------ *
 * Numbered, with a rule running between them so it reads as a sequence
 * rather than three unrelated cards. The rule is decorative and is drawn
 * with a pseudo-element, so screen readers get a plain ordered list.       */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2rem, 1.4rem + 2vw, 2.5rem);
  counter-reset: step;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { position: relative; padding-top: 0.5rem; }

.step__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

/* the connecting rule */
.step::before {
  content: "";
  position: absolute;
  background: var(--line-strong);
}
@media (min-width: 820px) {
  .step::before {
    top: 2rem;
    left: 3rem;
    right: calc(-1 * clamp(2rem, 1.4rem + 2vw, 2.5rem));
    height: 1px;
  }
  .step:last-child::before { display: none; }
}
@media (max-width: 819px) {
  .step::before {
    left: 1.5rem;
    top: 3.5rem;
    bottom: calc(-1 * clamp(2rem, 1.4rem + 2vw, 2.5rem));
    width: 1px;
  }
  .step:last-child::before { display: none; }
}

.step__title {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  margin-bottom: 0.4em;
  max-width: 18rem;
}

.step__body {
  font-size: var(--step-small);
  color: rgba(47, 79, 79, 0.75);
  max-width: 20rem;
  margin: 0;
}


/* ==========================================================================
   10. CLASSES & TIMETABLE
   ========================================================================== */

.class-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.class-list .tag { font-weight: 400; color: var(--navy); border-color: var(--line-strong); padding: 0.45rem 1rem; font-size: 0.9375rem; }

.new-class {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.new-class:first-of-type { border-top: 1px solid var(--line); }
.new-class__name { font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; letter-spacing: -0.01em; }
.new-class__when { font-weight: 600; font-size: var(--step-small); }
.new-class__detail { font-size: var(--step-small); color: var(--ink-muted); margin-left: auto; }

.timetable-wrap { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.timetable-wrap[hidden] { display: none !important; }

.timetable-heading { margin-bottom: 0.35em; }
.timetable-intro { margin-bottom: 2rem; }

/* --- Timetable controls -------------------------------------------------- */

.tt-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tt-filter__btn {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tt-filter__btn:hover { border-color: var(--navy); }
.tt-filter__btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

/* Day tabs: narrow screens only, where one column of 39 classes is a slog. */
.tt-daybar { display: none; }

.tt-daybar__btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.tt-daybar__btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}
.tt-daybar__btn:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 639px) {
  .tt-daybar { display: flex; gap: 0.35rem; margin-bottom: 1rem; }
  .tt-filter__btn { font-size: 0.875rem; padding: 0.5rem 0.85rem; }
}

.tt-filter__count { margin: 0 0 1.75rem; }

.tt-day[hidden], .tt-item[hidden] { display: none !important; }

.timetable-grid {
  display: grid;
  gap: clamp(1.25rem, 0.9rem + 1.4vw, 1.75rem);
}
@media (min-width: 640px)  { .timetable-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .timetable-grid { grid-template-columns: repeat(3, 1fr); } }

.tt-day {
  border-top: 2px solid var(--navy);
  padding-top: 1rem;
  break-inside: avoid;
}

.tt-day__name {
  font-family: var(--font-body);
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.9rem;
}

.tt-list { list-style: none; margin: 0; padding: 0; }

.tt-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.2rem 0;
  font-size: var(--step-small);
}

.tt-time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- The coloured class block ------------------------------------------- *
 * Matches the printed timetable: Gym classes on warm sand, Studio classes
 * on sage, the time left clear to the side as it is on the printed sheet.
 * Tints sampled from that artwork. Navy sits at 10:1 on both.              */
.tt-class {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(47, 79, 79, 0.05);
  min-width: 0;
}
.tt-item[data-room="Gym"]    .tt-class { background: #DDD0C2; }
.tt-item[data-room="Studio"] .tt-class { background: #BFD3CA; }

.tt-name { line-height: 1.35; min-width: 0; }

.room {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #574734;          /* 5.9:1 on sand, 5.7:1 on sage */
  white-space: nowrap;
}

/* Holiday closures */
.closures {
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.closures__title {
  font-family: var(--font-body);
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin: 0 0 0.75rem;
}
.closures__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.closures__list li { font-size: var(--step-small); line-height: 1.5; }
.closures__list strong { color: var(--cream); }
.closures__list span { color: var(--oat); }

.classes-actions { margin-top: 2.5rem; }


/* ==========================================================================
   11. FORM
   ========================================================================== */

.form-panel {
  background: var(--cream);
  color: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2.6vw, 3rem);
}

.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }

.label { font-size: var(--step-small); font-weight: 600; }
.label .req { color: var(--ink-teal); }

.hint { font-size: 0.875rem; color: var(--ink-muted); }

.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23112337' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ink-teal);
  box-shadow: 0 0 0 3px rgba(26, 117, 107, 0.18);
  outline: none;
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: #B3261E;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.radio-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-set legend { font-size: var(--step-small); font-weight: 600; padding: 0; margin-bottom: 0.6rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice input { accent-color: var(--ink-teal); width: 18px; height: 18px; margin: 0; }
.choice:hover { border-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--ink-teal); background: rgba(26, 117, 107, 0.12); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--step-small);
  line-height: 1.5;
  cursor: pointer;
  padding: 0.4rem 0;
  min-height: 44px;
}
.checkbox input { accent-color: var(--ink-teal); width: 20px; height: 20px; margin: 3px 0 0; flex: 0 0 auto; }

.error-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8C1D18;
  min-height: 0;
}
.error-text:empty { display: none; }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: var(--step-small);
  line-height: 1.55;
  display: none;
}
.form-status[data-state="success"] {
  display: block;
  background: rgba(26, 117, 107, 0.14);
  border: 1px solid rgba(26, 117, 107, 0.45);
  color: var(--navy);
}
.form-status[data-state="error"] {
  display: block;
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.35);
  color: #8C1D18;
}

.form-aside { align-self: start; }
.form-aside dl { margin: 0; display: grid; gap: 1.5rem; }
.form-aside dt {
  font-size: var(--step-eyebrow); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 0.35rem;
}
.form-aside dd { margin: 0; font-size: 1.0625rem; }
.form-aside a { font-weight: 600; }

.form-layout { display: grid; gap: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
@media (min-width: 1000px) { .form-layout { grid-template-columns: 1.6fr 1fr; } }


/* ==========================================================================
   12. FIND US
   ========================================================================== */

.find-grid { display: grid; gap: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
@media (min-width: 880px) { .find-grid { grid-template-columns: 1fr 1fr; } }

.detail-list { margin: 0; display: grid; gap: 1.75rem; }
.detail-list dt {
  font-size: var(--step-eyebrow); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 0.4rem;
}
.detail-list dd { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.detail-list a { font-weight: 600; }

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.map-card__map {
  aspect-ratio: 4 / 3;
  background: rgba(246, 241, 231, 0.08);
}
.map-card__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card__panel { padding: clamp(1.5rem, 1rem + 2vw, 2rem); }
.map-card__panel address {
  font-style: normal;
  font-size: 1.0625rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.map-card__panel .btn--secondary { color: var(--cream); border-color: var(--line-on-navy); }
.map-card__panel .btn--secondary:hover { background: rgba(246, 241, 231, 0.1); }



/* ==========================================================================
   13. FAQ
   ========================================================================== */

.faq { max-width: 48rem; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 0;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink-teal); }

.faq summary .chev {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--ink-teal);
  transition: transform .22s ease;
}
.faq details[open] summary .chev { transform: rotate(180deg); }

.faq__answer { padding: 0 0 1.5rem; }
.faq__answer p { font-size: var(--step-body); color: rgba(47, 79, 79, 0.8); max-width: 42rem; }


/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: var(--oat);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
}
.site-footer a { color: var(--teal-bright); }

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-navy);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-endorse {
  font-size: var(--step-small);
  color: var(--oat);
  margin-top: 1rem;
}

.footer-title {
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin: 0 0 1rem;
}

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; font-size: var(--step-small); }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-list button {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--teal-bright);
  cursor: pointer; text-align: left;
}
.footer-list button:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 2rem;
  font-size: 0.875rem;
}

.footer-address { font-style: normal; line-height: 1.6; }


/* ==========================================================================
   15. COOKIE BANNER
   ========================================================================== */

.consent {
  position: fixed;
  left: var(--gutter);
  bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  z-index: 150;
  width: min(22rem, calc(100vw - (var(--gutter) * 2)));
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.1rem 1.1rem;
}
.consent[hidden] { display: none; }
.consent h2 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}
.consent p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
  max-width: none;
  color: rgba(47, 79, 79, 0.78);
}
.consent .btn-row { gap: 0.5rem; }
.consent .btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}
.consent .small { font-size: 0.75rem; }


/* --- Tap targets -------------------------------------------------------- *
 * Standalone links — phone numbers, email addresses, the footer nav — get a
 * 44px-high hit area. Links inside a running sentence are left alone: WCAG
 * 2.2 exempts them, and padding them out would break the line spacing.      */
.detail-list dd > a,
.form-aside dd > a,
.footer-address a,
.footer-list a,
.footer-list button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-list { gap: 0; }


/* ==========================================================================
   16. MOTION & PRINT
   ========================================================================== */

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

@media print {
  .site-header, .consent, .nav, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}


/* ==========================================================================
   17. PALETTE B — "SEA GLASS" (preview only)
   --------------------------------------------------------------------------
   Switched on by adding ?palette=seaglass to the URL. Nothing here affects
   the live site unless that parameter is present.

   The four supplied colours are:
     Sea glass #7FA39A   Driftwood #A08B74   Sand #E9E1D2   Chalk #F6F3EC

   ⚠️ None of them can carry text. Measured on Chalk:
        Sea glass 2.49:1    Driftwood 2.94:1    Sand 1.17:1
      WCAG AA needs 4.5:1. The darkest supplied colour is not dark enough for
      body copy, and there is nothing to make the dark bands out of either.

   So this preview derives a fifth colour — a warm near-black in the driftwood
   family, #2E2720, at 13.3:1 — plus darkened members of the sea glass and
   driftwood families for links and captions. If the palette is adopted, that
   dark tone needs to be a deliberate brand decision, not something invented
   in a stylesheet.
   ========================================================================== */

:root[data-palette="seaglass"] {
  --navy:  #2E2720;   /* derived: warm near-black, 13.3:1 on Chalk */
  --cream: #F6F3EC;   /* Chalk */
  --sand:  #E9E1D2;   /* Sand */
  --teal:  #7FA39A;   /* Sea glass */
  --cocoa: #A08B74;   /* Driftwood */
  --oat:   #C9BCA8;   /* derived: muted text on the dark band */

  --ink-muted:   #6E5B47;  /* darkened driftwood, 5.8:1 — captions, eyebrows */
  --ink-teal:    #46655B;  /* darkened sea glass, 5.8:1 — links on Chalk     */
  --teal-bright: #A8C7BE;  /* lifted sea glass — links on the dark band      */

  --line:        rgba(46, 39, 32, 0.14);
  --line-strong: rgba(46, 39, 32, 0.28);
  --line-on-navy: rgba(246, 243, 236, 0.18);
  --surface-raised: #FFFDF8;
}

/* Sea glass is lighter than the teal it replaces, so the primary button needs
   the dark ink on it rather than anything lighter — 5.3:1 this way round. */
:root[data-palette="seaglass"] .btn--primary { background: var(--teal); color: var(--navy); }
:root[data-palette="seaglass"] .btn--primary:hover { background: #8FB0A7; color: var(--navy); }
:root[data-palette="seaglass"] ::selection { background: var(--sand); color: var(--navy); }

/* A small flag so nobody mistakes a preview for the real thing */
.palette-flag {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.5rem 1rem;
}
.palette-flag a { color: var(--teal-bright); }


/* ==========================================================================
   18. GREEN ACCENT (preview only)
   --------------------------------------------------------------------------
   ?accent=green keeps Palette A's navy, cream and sand and swaps only the
   interactive colour: the teal #1E9C92, which reads blue, becomes the sea
   glass green #7FA39A.

   It measures better than the teal it replaces. Navy on the green button is
   5.77:1 against the teal's 4.72:1, and the derived link colours clear AA
   comfortably on both the cream and the navy band.
   ========================================================================== */

:root[data-accent="green"] {
  --teal:        #7FA39A;   /* sea glass — buttons and interactive fills   */
  --ink-teal:    #46655B;   /* darkened, 5.7:1 — links on cream            */
  --teal-bright: #A8C7BE;   /* lifted, 8.8:1 — links on the navy band      */
}
:root[data-accent="green"] .btn--primary:hover { background: #8FB0A7; }


/* ==========================================================================
   19. FOREST DARK (preview only)
   --------------------------------------------------------------------------
   ?dark=forest replaces navy with the deep green from the printed timetable,
   #2D4A43, as the ink and the dark bands. Cream, sand and the green accent
   stay.

   Why this rather than a forest-green button: the deep green is almost the
   same value as the navy text it would sit beside — 1.65:1 between them — so
   a button in it stops looking pressable. Dark tones belong in type and
   bands; accents need to be light enough to stand out from the type.

   Forest as the ink reads 8.6:1 on cream. That passes, but it is softer than
   navy's 14.1:1, so the whole page feels gentler and slightly lower contrast.
   ========================================================================== */

:root[data-dark="forest"] {
  --navy: #2D4A43;          /* deep green from the timetable artwork      */
  --teal: #A8CBC1;          /* lifted so forest text on it reads 5.5:1    */
  --ink-teal: #3D6A5E;      /* links on cream, 5.5:1                      */
  --teal-bright: #C9DCD6;   /* links on the dark band, 6.8:1              */
  --oat: #B9CFC8;           /* muted text on the dark band, 5.9:1         */
  --line:         rgba(45, 74, 67, 0.16);
  --line-strong:  rgba(45, 74, 67, 0.30);
}
:root[data-dark="forest"] .btn--primary:hover { background: #B4D3CA; }


/* ==========================================================================
   20. THE PREVIOUS NAVY (preview only)
   --------------------------------------------------------------------------
   ?dark=navy restores the original navy and teal, for comparison against
   the Deep water scheme that is now live.
   ========================================================================== */

:root[data-dark="navy"] {
  --navy: #112337;
  --teal: #1E9C92;
  --ink-teal: #136E67;
  --teal-bright: #43C2B7;
  --oat: #B9AC9C;
  --accent-solid: #1E9C92;
  --line:         rgba(17, 35, 55, 0.14);
  --line-strong:  rgba(17, 35, 55, 0.28);
  --line-on-navy: rgba(246, 241, 231, 0.18);
}
/* the old scheme used one button everywhere: teal fill, navy label */
:root[data-dark="navy"] .btn--primary,
:root[data-dark="navy"] .band-navy .btn--primary,
:root[data-dark="navy"] .on-navy .btn--primary,
:root[data-dark="navy"] .on-navy .plan .btn--primary,
:root[data-dark="navy"] .band-navy .plan .btn--primary,
:root[data-dark="navy"] .on-navy .form-panel .btn--primary,
:root[data-dark="navy"] .band-navy .form-panel .btn--primary {
  background: #1E9C92;
  color: #112337;
}
:root[data-dark="navy"] :focus-visible { outline-color: #136E67; }
