/*
 * Star Valley Yoga: site styles.
 * Brand values come from CLAUDE.md / docs/brand.md. Change colors here only, via the tokens.
 * Written mobile-first: base rules are for phones, @media (min-width: ...) adds wider layouts.
 */

/* ---------- Fonts (self-hosted copies of the Google Fonts, Latin characters) ---------- */
@font-face {
  font-family: "Amiko";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/amiko-700-latin.409b03e5c830.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-baskerville-400-latin.054afe25df5f.woff2") format("woff2");
}
@font-face {
  /* One "variable" file covers weights 400 to 700. */
  font-family: "Arimo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/arimo-variable-latin.462df98ac3c1.woff2") format("woff2");
}

/* ---------- Brand tokens ---------- */
:root {
  --cream: #fefae0;          /* page background; text on dark/rust/purple fills */
  --dark-green: #283618;     /* headings, logo wordmark */
  --light-green: #606c38;    /* links, nav, small labels */
  --deep-rust: #8f5a2b;      /* primary buttons / CTAs, cream text on top */
  --light-orange: #dda15e;   /* highlights & badges only, dark-green text on top; never text on cream */
  --pine-charcoal: #2b2f26;  /* body text */
  --transcendence: #44386c;  /* rare accent: workshops, special events */
  --sand-line: #e8e1c4;      /* hairline borders */
  --white: #ffffff;          /* schedule/calendar only; cards are cream with a hairline */

  --font-logo: "Amiko", Arial, sans-serif;
  --font-heading: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Arimo", Arial, Helvetica, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;   /* gaps between page sections on phones */
  --space-8: 96px;   /* gaps between page sections on laptops */

  --radius-button: 999px;  /* pill-shaped buttons */
  --radius-small: 8px;     /* skip link, menu button, swatches */
  --radius-card: 12px;
  --radius-pill: 999px;
  --hairline-width: 1px;
  --hairline: var(--hairline-width) solid var(--sand-line);

  --content-width: 1280px;  /* laptops: use more of the screen */
  --text-width: 760px;   /* long paragraphs: wide, but still comfortable to read */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--pine-charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 27px;
}

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

h1, h2, h3 {
  margin: 0 0 var(--space-3);
  color: var(--dark-green);
  font-family: var(--font-heading);
  font-weight: 400;
}
h1 { font-size: 40px; line-height: 48px; }
h2 { font-size: 28px; line-height: 36px; }
h3 { font-size: 22px; line-height: 30px; }

p, ul, ol, address { margin: 0 0 var(--space-3); }
address { font-style: normal; }

a { color: var(--light-green); text-underline-offset: 3px; }
a:hover { color: var(--dark-green); }

/* A clear focus ring for keyboard users, on everything that can be focused. */
:focus-visible {
  outline: 3px solid var(--dark-green);
  outline-offset: 2px;
}
main:focus { outline: none; }  /* the skip link target, not something you tab to */

.small { font-size: 14px; line-height: 21px; }

/* Hidden on screen but still read out by screen readers (e.g. a label shown as placeholder text). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--light-green);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.label--rust { color: var(--deep-rust); }

.lead { max-width: var(--text-width); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-3);  /* 16px side gutter on phones */
}
.section { padding: var(--space-7) 0; }
.stack > * + * { margin-top: var(--space-4); }

@media (min-width: 768px) {
  .container { padding: 0 var(--space-5); }
  .section { padding: var(--space-8) 0; }
  /* Borders a touch thicker on laptops: 1.5px on sharp (Retina) screens, 2px on others,
     because those screens can't draw half a pixel. */
  :root { --hairline-width: 1.5px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 var(--space-6); }
}
@media (min-width: 768px) and (max-resolution: 1.5dppx) {
  :root { --hairline-width: 2px; }
}

/* ---------- Skip link (visible only when focused with the keyboard) ---------- */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--dark-green);
  color: var(--cream);
  border-radius: var(--radius-small);
}
.skip-link:focus { top: var(--space-3); color: var(--cream); }

/* ---------- Site banner (Settings > Site banner) ----------
   A light-green strip above the header. Cream on light green is about 5.4:1. */
.site-banner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3);
  background: var(--light-green);
  color: var(--cream);
}
.site-banner[hidden] { display: none; }
.site-banner__text {
  flex: 1;
  margin: 0;
  padding: var(--space-2) 0;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
}
.site-banner a { color: var(--cream); font-weight: 700; text-decoration-thickness: 1px; }
.site-banner a:hover { color: var(--cream); text-decoration-thickness: 2px; }
.site-banner :focus-visible { outline-color: var(--cream); }
.site-banner__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;   /* big enough to tap on a phone */
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.site-banner__close:hover { background: rgba(254, 250, 224, 0.15); }
.no-js .site-banner__close { display: none; }  /* closing needs JavaScript */
@media (min-width: 768px) {
  .site-banner { padding-left: 44px; }  /* keeps the text centred on the page, opposite the × */
}

/* ---------- Wordmark (logo) ---------- */
.wordmark {
  margin: 0;
  color: var(--dark-green);
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
a.wordmark:hover { color: var(--dark-green); }
.wordmark--on-dark { color: var(--cream); }

/* ---------- Header and navigation ---------- */
.site-header {
  background: var(--cream);
  border-bottom: var(--hairline);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 64px;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.site-nav__toggle {
  display: none;  /* only shown on phones once JavaScript is running, see below */
  min-height: 44px;  /* big enough to tap */
  padding: 0 var(--space-3);
  background: transparent;
  border: 1px solid var(--light-green);
  border-radius: var(--radius-button);
  color: var(--dark-green);
  font: 700 14px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list a {
  display: inline-block;
  padding: var(--space-2) 0;
  color: var(--light-green);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--dark-green);
  text-decoration: underline;
}

/* Right-hand end of the header: the menu, then the account icon at the far right. */
.site-header__end {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Account icon: a person in a 44px circle (big enough to tap).
   Logged out = outline ("Log in"); logged in = light-green fill, cream person ("My account").
   Laptops: a smaller 36px circle (see the min-width rule below). */
.account-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--light-green);
  border-radius: var(--radius-pill);
  color: var(--dark-green);
  background: transparent;
}
.account-icon:hover { border-color: var(--dark-green); }
/* Cream person on light green: about 5.4:1 (dark green on light green would be too faint). */
.account-icon--in { background: var(--light-green); color: var(--cream); }
/* Keep the person cream on hover, tap and focus too (the site-wide a:hover rule
   would otherwise turn it dark green on the dark-green circle). */
.account-icon--in:hover,
.account-icon--in:active,
.account-icon--in:focus { background: var(--dark-green); color: var(--cream); }
/* On My account itself: a second ring, like the underline on the current menu link. */
.account-icon[aria-current="page"] { outline: 2px solid var(--dark-green); outline-offset: 2px; }
.account-icon__svg { display: block; }
@media (min-width: 768px) {
  .account-icon { width: 36px; height: 36px; }
  .account-icon__svg { width: 18px; height: 18px; }
}

/* Phones: with JavaScript, the menu collapses behind the "Menu" button.
   Without JavaScript the links simply stay visible. */
/* The header sticks to the top of the screen. While you scroll down it slides away to give
   the page room; the moment you scroll up it slides back (site.js adds .is-hidden). */
.site-header {
  position: sticky;  /* also anchors the phone menu panel */
  top: 0;
  z-index: 10;
  transition: transform 0.2s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

/* "Back to top": appears once you're well down a long page (site.js shows it). */
.to-top {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--cream);
  border: 1.5px solid var(--light-green);
  border-radius: var(--radius-pill);
  color: var(--dark-green);
  cursor: pointer;
}
@media (hover: hover) { .to-top:hover { background: var(--dark-green); color: var(--cream); } }
.to-top[hidden] { display: none; }

@media (max-width: 767px) {
  .site-header__end { gap: var(--space-2); }
  .js .site-nav__toggle { display: inline-block; }
  .js .site-nav__list { display: none; }
  /* Open menu: a full-width panel just under the header. */
  .js .site-nav__list.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    padding: var(--space-2) var(--space-3);
    background: var(--cream);
    border-bottom: var(--hairline);
  }
  .site-nav__list.is-open a { display: block; padding: var(--space-3) 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-4) 0;
  background: var(--dark-green);
  color: var(--cream);
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--light-orange); }
.site-footer :focus-visible { outline-color: var(--cream); }
.site-footer__info > * { margin: 0; }
.site-footer__info > * + * { margin-top: var(--space-3); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding: 0; list-style: none; }

/* Instagram and Facebook: side by side, at the bottom on phones and bottom right on laptops. */
.social { display: flex; gap: var(--space-2); padding: 0; list-style: none; }
.site-footer__inner > .social { margin: var(--space-4) 0 0; }
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;  /* big enough to tap */
  height: 44px;
  border: 1px solid var(--cream);
  border-radius: var(--radius-pill);
}

/* Email signup: top of the footer on phones, a compact right-hand column on laptops. */
.site-footer__signup { padding-bottom: var(--space-5); margin-bottom: var(--space-4); border-bottom: 1px solid rgba(254, 250, 224, 0.25); }
@media (min-width: 768px) {
  .site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    grid-template-rows: auto 1fr;  /* row 2 stretches, so the icons line up with the bottom line */
    column-gap: var(--space-6);
    align-items: start;
  }
  .site-footer__info { grid-column: 1; grid-row: 1 / span 2; }
  .site-footer__signup { grid-column: 2; grid-row: 1; padding: 0; margin: 0; border: 0; }
  .site-footer__inner > .social { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; margin: 0; }
  .site-footer__signup .signup__heading { font-size: 17px; line-height: 27px; }
}
.signup > * { margin: 0; }
.signup__heading { font: 400 22px/30px var(--font-heading); color: var(--cream); }
.signup__thanks { margin-top: var(--space-2); }
/* One pill-shaped bar: the email box on the left, the Sign up button inside it on the right. */
.signup__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 480px;
  margin-top: var(--space-3);
  padding: var(--space-1);
  border: 1px solid var(--cream);
  border-radius: var(--radius-pill);
  background: var(--cream);
}
.signup__bar:has(.signup__input:focus-visible) { outline: 3px solid var(--cream); outline-offset: 2px; }
.signup__bar:has([aria-invalid="true"]) { border-color: var(--light-orange); outline: 2px solid var(--light-orange); }
.signup__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 0;
  background: transparent;
  color: var(--pine-charcoal);
  font: 17px/27px var(--font-body);  /* 16px+ stops phones zooming in on tap */
}
.signup__input:focus-visible { outline: none; }  /* the whole bar shows the focus ring instead */
.signup__input::placeholder { color: var(--light-green); opacity: 1; }
/* Light green, not rust: a calmer button for the footer (owner's choice, 2026-11-15). */
.signup__button { flex: none; background: var(--light-green); border-color: var(--light-green); color: var(--cream); }
@media (hover: hover) {
  .signup__button:hover { background: var(--dark-green); border-color: var(--dark-green); color: var(--cream); }
}
.signup__error { margin-top: var(--space-2); color: var(--light-orange); font-weight: 700; }
/* The spam-bot trap: off screen, never seen or tabbed to. */
.signup__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* The no-JavaScript "thanks" page: the same form on a dark green card. */
.signup-band { padding: var(--space-4); border-radius: var(--radius-card); background: var(--dark-green); color: var(--cream); }
.signup-band :focus-visible { outline-color: var(--cream); }

/* ---------- Buttons ---------- */
/* At most one button per section. Other actions use .text-link below. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;  /* big enough to tap */
  padding: var(--space-2) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font: 700 14px/20px var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
/* The main action in a section. */
.button--primary {
  background: var(--deep-rust);
  border-color: var(--deep-rust);
  color: var(--cream);
}
/* Hover colours only where there's a real mouse: on phones a tap "sticks" as hover, so a button
   looked green after tapping it and going back (owner, 2026-11-22). */
@media (hover: hover) {
  .button--primary:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    color: var(--cream);
  }
}
/* A quieter button: light green outline (the Schedule's Today button). */
.button--outline {
  background: transparent;
  border: 1.5px solid var(--light-green);
  color: var(--light-green);
}
@media (hover: hover) {
  .button--outline:hover { border-color: var(--dark-green); color: var(--dark-green); }
}
/* Workshops and special events only. */
.button--event {
  background: var(--transcendence);
  border-color: var(--transcendence);
  color: var(--cream);
}
@media (hover: hover) {
  .button--event:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    color: var(--cream);
  }
}

/* Secondary actions: an all-caps link with an arrow, e.g. "See the schedule ->". */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--light-green);
  font: 700 14px/20px var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.text-link:hover { color: var(--dark-green); text-decoration: underline; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-body);  /* also inside headings (the Schedule's class names) */
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--light-orange);
  color: var(--dark-green);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge--event { background: var(--transcendence); color: var(--cream); }
.badge--free { background: var(--dark-green); color: var(--cream); }  /* free (0-credit) classes */
.badge--quiet { background: transparent; border: var(--hairline); color: var(--light-green); }

/* ---------- Cards ---------- */
.card {
  padding: var(--space-4);
  background: transparent;  /* cream shows through; white is kept for the schedule */
  border: var(--hairline);
  border-radius: var(--radius-card);
}
.card > :last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Page blocks (templates/blocks/) ---------- */

/* A page without a Hero: its title sits closer to the first block. */
.section--title { padding-bottom: 0; }

/* Long text: comfortable line length, tidy spacing. */
.prose { max-width: var(--text-width); }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: var(--space-5); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: var(--space-4); }
.prose li + li { margin-top: var(--space-1); }

/* Button + text link row. */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
}

.photo {
  width: 100%;
  border-radius: var(--radius-card);
}

/* Hero, and Text + photo: stacked on phones, side by side on laptops. */
.hero__inner,
.split {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.split__photo { order: -1; }  /* phones: photo above the text */
@media (min-width: 768px) {
  .hero--photo .hero__inner,
  .split--photo { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .split__photo { order: 1; }
  .split--photo-left .split__photo { order: -1; }
}

/* Instructor cards */
.instructor-list { margin: 0; padding: 0; list-style: none; }
.instructor__photo {
  width: 100%;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-small);
}
.instructor__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-3);
  border: var(--hairline);
  border-radius: 50%;
  color: var(--dark-green);
  font: 28px/1 var(--font-heading);
}
.instructor h3 { margin-bottom: var(--space-1); }

/* Contact: email and studio address from Studio info. */
.contact { max-width: var(--text-width); }
.contact h2 { margin-top: 0; }
.contact__details { display: grid; gap: var(--space-3); margin: var(--space-4) 0 0; }
.contact__details dt { margin: 0 0 var(--space-1); }
.contact__details dd { margin: 0; }
.contact__details address { margin: 0; }

/* Links that jump down the page ("What to expect"): stop with a little space above the heading. */
[id] { scroll-margin-top: 96px; }  /* clear of the header if it slides back in */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Upcoming events: white calendar cards (white is for the schedule and calendar only). */
.events { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; max-width: 880px; }
.event {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-card);
}
.event__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: var(--space-2) 0;
  border: var(--hairline);
  border-radius: var(--radius-small);
  color: var(--dark-green);
}
.event__month { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--deep-rust); }
.event__day { font: 400 28px/36px var(--font-heading); }
.event__body > * { margin: 0; }
.event__body > * + * { margin-top: var(--space-2); }
.event__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.event__tags .label { margin: 0; }
.event__name { font: 400 22px/30px var(--font-heading); color: var(--dark-green); }
.event__when { font-weight: 700; color: var(--dark-green); }
.event__who { color: var(--light-green); }
.event__dates { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); padding: 0; list-style: none; }
.event--cancelled .event__name { text-decoration: line-through; }

/* Photo gallery: same-shape photos, two across on phones, three on laptops. */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
.gallery .photo { width: 100%; height: auto; border-radius: var(--radius-card); }
@media (min-width: 768px) {
  .gallery--1 { grid-template-columns: 1fr; max-width: var(--text-width); }
  .gallery--2, .gallery--4 { grid-template-columns: repeat(2, 1fr); }
}
/* A gallery belongs to the section above it: no big gap between them, and only a small one
   before whatever comes next (e.g. the purple band on Events and Privates). */
.section--gallery { padding-top: 0; padding-bottom: var(--space-5); }
/* Wagtail wraps each block in a div, so look at the wrapper just before the gallery's. */
:has(+ .block-gallery) > .section { padding-bottom: var(--space-5); }

/* Price list: one group of cream cards per kind of price. */
.price-group + .price-group { margin-top: var(--space-6); }
.price-group > .label { margin: 0 0 var(--space-3); }
.price-list { margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) {
  .price-list--pairs > :nth-child(3) { grid-column: 1; }  /* start the second row of two */
}
.price { display: flex; flex-direction: column; align-items: flex-start; }
.price__badge { margin-bottom: var(--space-3); }
.price__name {
  margin: 0;
  font: 400 22px/30px var(--font-heading);
  color: var(--dark-green);
}
.price__amount {
  margin: var(--space-2) 0 var(--space-3);
  font: 400 40px/48px var(--font-heading);
  color: var(--dark-green);
}
.price__per { font: 400 17px/27px var(--font-body); color: var(--pine-charcoal); }
.price__facts { margin: 0; padding: 0; list-style: none; }
.price__facts li + li { margin-top: var(--space-1); }
.price__note { margin: var(--space-3) 0 0; }
.price-group__note { margin: var(--space-3) 0 0; }
/* "Buy ->" sits at the bottom of the card, so cards in a row line up. */
.price__buy { margin-top: auto; padding-top: var(--space-3); }

/* Class list: each class on the weekly timetable, with its days and times. */
.class-list { margin: 0; padding: 0; list-style: none; }
.class-card .label { margin: 0 0 var(--space-2); }
.class-card h3 { margin-top: 0; }
.class-card__times { margin: var(--space-3) 0 0; padding: var(--space-3) 0 0; list-style: none; border-top: var(--hairline); }
.class-card__times li + li { margin-top: var(--space-1); }
.class-card__times strong { color: var(--dark-green); }

/* Call to action band */
.cta {
  padding: var(--space-7) 0;
  text-align: center;
}
@media (min-width: 768px) {
  .cta { padding: var(--space-8) 0; }
}
.cta__inner > * { max-width: var(--text-width); margin-left: auto; margin-right: auto; }
.cta__inner p { margin-bottom: 0; }
.cta .actions { justify-content: center; }
.cta--cream { border-top: var(--hairline); border-bottom: var(--hairline); }
.cta--green { background: var(--dark-green); }
.cta--event { background: var(--transcendence); }
.cta--green h2, .cta--green p,
.cta--event h2, .cta--event p { color: var(--cream); }
.cta--green :focus-visible,
.cta--event :focus-visible { outline-color: var(--cream); }

/* The button on dark bands: cream, so it stands out against green or purple. */
.button--on-dark {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--dark-green);
}
@media (hover: hover) {
  .button--on-dark:hover {
    background: var(--light-orange);
    border-color: var(--light-orange);
    color: var(--dark-green);
  }
}

/* FAQ: questions open and close (the browser's own <details> control). */
.faq {
  max-width: var(--text-width);
  border-top: var(--hairline);
}
.faq__item { border-bottom: var(--hairline); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-3) 0;
  color: var(--dark-green);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  flex: none;
  color: var(--light-green);
  font: 400 24px/1 var(--font-body);
}
.faq__item[open] .faq__question::after { content: "\2212"; }  /* minus sign */
.faq__answer { padding-bottom: var(--space-3); }
.faq__photo { max-width: 400px; margin-top: var(--space-3); }
.faq__photo .photo { height: auto; }

/* ---------- Schedule (the one place white is used) ---------- */
/* Each day: a small caps date on the cream page, then a white card of that day's classes. */
/* One Sunday-Saturday week at a time (owner, 2026-11-22): week heading + Previous/Next week links,
   a date strip that jumps down to each day, then the week's classes. Full content width. */
.week-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
/* Always as tall as the Today button, so the page doesn't jump down when it appears on later weeks. */
.week-nav--top { flex-wrap: nowrap; min-height: 44px; margin-bottom: var(--space-3); }
.week-nav--top .button { flex: none; }
.week-nav__short { display: none; }
@media (max-width: 767px) {
  .week-nav__long { display: none; }
  .week-nav__short { display: inline; }
}
.week-nav--bottom { margin-top: var(--space-5); padding-top: var(--space-2); border-top: var(--hairline); }
.week-nav__title { margin: 0; font-size: 22px; line-height: 30px; }
.week-nav__links { display: flex; flex: 1; flex-wrap: wrap; gap: 0 var(--space-4); margin: 0; }
.week-nav--bottom .week-nav__next { margin-left: auto; }  /* Next week always on the right */

/* ← [7 days] → : the arrows sit straight on the page, no box. */
/* Phones: big arrows in narrow columns with no gap, so the 7 days get the room. */
.daystrip { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 0; margin: 0 0 var(--space-5); }
.daystrip__arrow { display: flex; align-items: center; justify-content: center; color: var(--dark-green); font-size: 26px; text-decoration: none; }
a.daystrip__arrow:hover { color: var(--light-green); }
.daystrip__arrow--off { opacity: 0.3; }
.daystrip__list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; }
.daychip {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 64px;
  padding: var(--space-2) 0;
  border: var(--hairline);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--dark-green);
  text-decoration: none;
}
a.daychip:hover { color: var(--dark-green); border-color: var(--light-green); }
.daychip__wd { color: var(--light-green); font: 700 11px/14px var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; }
.daychip__num { font: 400 19px/24px var(--font-heading); }
.daychip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--light-orange); }  /* this day has classes */
.daychip__dot--none { background: transparent; }
.daychip--today { border-color: var(--deep-rust); box-shadow: inset 0 0 0 1px var(--deep-rust); }
.daychip--today .daychip__wd { color: var(--deep-rust); letter-spacing: 0; }  /* "TODAY" fits a phone-width tile */
.daychip--off { background: transparent; opacity: 0.4; }  /* past, or not posted yet: not a link */

.schedule { max-width: none; }
.schedule__day + .schedule__day { margin-top: var(--space-5); }
.schedule__date {
  margin: 0 0 var(--space-2);
  color: var(--light-green);
  font: 700 14px/20px var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.schedule__list {
  margin: 0;
  padding: 0 var(--space-3);
  list-style: none;
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-card);
}
.schedule__empty { margin: 0; color: var(--light-green); }
.schedule__closed { margin: 0; color: var(--dark-green); font-weight: 700; }

/* One class. Phones: one column, the time on top, a full-width Book button at the bottom.
   Tablets: time on the left, Book on the right. Laptops: one row (time | class | instructor | Book). */
.session {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: var(--space-4) 0;
}
.session + .session { border-top: var(--hairline); }
.session__category {
  grid-row: 2;
  margin: 0 0 var(--space-1);
  color: var(--light-green);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.session__name {
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0;
  font-size: 22px;
  line-height: 30px;
}
.session__time { grid-row: 1; display: flex; align-items: baseline; gap: var(--space-2); margin: 0 0 var(--space-1); }
.session__time time { display: block; color: var(--dark-green); font-weight: 700; line-height: 24px; }
.session__time .small { color: var(--light-green); }
.session__meta {
  grid-row: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-2) 0 0;
}
/* "with Anna": a button that opens the instructor's about card. */
.session__who {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;  /* easy to tap */
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.session__who-name { color: var(--light-green); text-decoration: underline; text-underline-offset: 3px; }
.session__who:hover .session__who-name { color: var(--dark-green); }
.session__role { color: var(--pine-charcoal); font-size: 14px; }
.session__place { font-weight: 700; color: var(--dark-green); }
.session__note { grid-row: 5; margin: var(--space-2) 0 0; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--hairline);
  color: var(--dark-green);
  font: 18px/1 var(--font-heading);
}
/* "About this class": opens and closes (the browser's own <details> control). */
.session__about { grid-row: 6; margin-top: var(--space-2); }
.session__about summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--light-green);
  font: 700 14px/20px var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.session__about summary::-webkit-details-marker { display: none; }
.session__about summary::after { content: "+"; font: 400 20px/1 var(--font-body); }
.session__about[open] summary::after { content: "\2212"; }  /* minus sign */
.session__about summary:hover { color: var(--dark-green); }
.session__about-text { display: none; grid-row: 7; max-width: 60ch; margin: 0; }
.session:has(.session__about[open]) .session__about-text { display: block; }
/* "Book", "Booked ✓", "Full" or "Ended". Phones: full width at the bottom (Book is a full-width rust
   button; the others sit in a hairline pill the same size, so every class ends the same way). */
.session__book { grid-row: 8; display: flex; align-items: center; justify-content: center; min-height: 44px; margin: var(--space-3) 0 0; }
.session__book .button { width: 100%; }
.session__book:not(:has(.button)) { border: var(--hairline); border-radius: var(--radius-pill); }
.session__book.label { color: var(--light-green); }
.button--small { padding: var(--space-1) var(--space-4); }  /* the Schedule's Book pills: still 44px tall to tap */

/* Instructor "about" card: pops up in the middle of the screen; Esc or tapping outside closes it. */
.instructor-pop {
  width: min(480px, calc(100vw - 2 * var(--space-3)));
  max-height: calc(100vh - 2 * var(--space-3));
  overflow: auto;
  padding: var(--space-4);
  background: var(--cream);
  color: var(--pine-charcoal);
  border: var(--hairline);
  border-radius: var(--radius-card);
}
.instructor-pop::backdrop { background: rgb(40 54 24 / 0.6); }  /* dark green, see-through */
.instructor-pop__photo { width: 96px; height: 96px; margin-bottom: var(--space-3); border-radius: 50%; object-fit: cover; }
.instructor-pop__name { margin: 0 0 var(--space-1); font-size: 28px; line-height: 36px; }
.instructor-pop__close { margin-top: var(--space-2); padding: 0; border: 0; background: none; cursor: pointer; }

.session--cancelled .session__title,
.session--cancelled .session__time time { text-decoration: line-through; }
/* Started or over: lighter green, "Ended" instead of Book. */
.session--ended .session__title,
.session--ended .session__time time { color: var(--light-green); }

@media (min-width: 768px) {
  .daystrip { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: var(--space-3); margin-bottom: var(--space-6); }
  .daychip--today .daychip__wd { letter-spacing: 0.1em; }
  .daystrip__arrow { font-size: 24px; }
  .daystrip__list { gap: var(--space-3); }
  .daychip { min-height: 76px; }
  .daychip__num { font-size: 22px; line-height: 30px; }
  .week-nav--bottom { margin-top: var(--space-6); }
  .schedule__day + .schedule__day { margin-top: var(--space-6); }
  .schedule__list { padding: 0 var(--space-5); }
  /* Tablets: time | class | Book */
  .session { grid-template-columns: 112px minmax(0, 1fr) 132px; column-gap: var(--space-4); }
  .session > * { grid-column: 2; }
  .session__category { grid-row: 1; }
  .session__name { grid-row: 2; }
  /* Time and Book are centred on the whole class, "About this class" link included. The About words
     open in their own row below, so they never move the time, instructor or Book. */
  .session__time { grid-column: 1; grid-row: 1 / span 5; align-self: center; display: block; margin: 0; }
  .session__time time { line-height: 30px; }
  .session__meta { grid-row: 3; }
  .session__note { grid-row: 4; }
  .session__about { grid-row: 5; }
  .session__about-text { grid-column: 2 / span 2; grid-row: 6; }
  .session__book { grid-column: 3; grid-row: 1 / span 5; align-self: center; justify-content: flex-end; margin: 0; }
  .session__book .button { width: auto; }
  .session__book:not(:has(.button)) { border: 0; border-radius: 0; }
}
/* Laptops: one row per class. */
@media (min-width: 1024px) {
  .session { grid-template-columns: 112px minmax(0, 1fr) 260px 132px; align-items: center; padding: 20px 0; }
  /* Time, instructor and Book are centred on the whole class (category, name, note, About link) and
     stay put when the About words open below. */
  .session__time { grid-row: 1 / span 4; }
  .session__meta { grid-column: 3; grid-row: 1 / span 4; align-self: center; margin: 0; }
  .session__note { grid-row: 3; }
  .session__about { grid-row: 4; margin-top: var(--space-1); }
  .session__about-text { grid-column: 2 / span 3; grid-row: 5; margin-top: var(--space-1); }
  .session__book { grid-column: 4; grid-row: 1 / span 4; }
}

/* ---------- Style guide page only ---------- */
.swatch {
  height: 64px;
  margin-bottom: var(--space-2);
  border: var(--hairline);
  border-radius: var(--radius-small);
}
/* A clear line between the sample blocks, so you can see where each one starts. */
.sg-divider {
  margin: var(--space-6) 0 var(--space-4);
  border: 0;
  border-top: 3px solid var(--light-green);
}
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- Notices ("Saved.", "You're logged out.") ---------- */
.notices { margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.notice {
  max-width: var(--text-width);
  padding: var(--space-3);
  border: var(--hairline);
  border-left: 4px solid var(--light-green);
  border-radius: var(--radius-card);
  color: var(--dark-green);
  font-weight: 600;
}
.notice + .notice { margin-top: var(--space-2); }
.notice--error { border-left-color: var(--deep-rust); }

/* ---------- Accounts: log in, sign up, codes, My account ---------- */
.account-page__inner { max-width: 560px; }
.account-page .notices { margin: 0 0 var(--space-4); }
.account-page__title { margin-bottom: var(--space-3); }
.account-page__subtitle { margin-bottom: var(--space-3); font-size: 22px; line-height: 30px; }
.account-page__links { display: flex; flex-direction: column; align-items: flex-start; margin-top: var(--space-4); }
.account-page__change { margin-top: var(--space-4); }
.account-page__change summary { color: var(--light-green); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.account-panel { margin-top: var(--space-5); }
/* My account: heading with its Edit link on the right; details shown as text; "✓ Saved". */
.account-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.details-list { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.details-list dt { margin-bottom: 0; }
.details-list dd { margin: 0; }
.saved-note { color: var(--light-green); font-size: 14px; font-weight: 700; white-space: nowrap; }
p.saved-note { margin: 0 0 var(--space-3); }
/* "Save your changes?" box (a <dialog>), shown by site.js before leaving with unsaved details. */
.unsaved-dialog {
  max-width: min(360px, calc(100vw - 2 * var(--space-4)));
  padding: var(--space-5);
  border: var(--hairline);
  border-radius: var(--radius-card);
  background: var(--cream);
  color: var(--pine-charcoal);
}
/* Centred on the screen: browsers centre a dialog with margin: auto, but as the card's last item
   ".card > :last-child" set its bottom margin to 0, which pushed it to the bottom (owner, 2026-11-26). */
.card > .unsaved-dialog, .unsaved-dialog { margin: auto; }
.unsaved-dialog::backdrop { background: rgba(43, 47, 38, 0.55); }
.unsaved-dialog .button { width: 100%; }
.unsaved-dialog__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); }
.unsaved-dialog__links .text-link { min-height: 44px; }
/* My account: credits table and purchase list. */
.table-scroll { overflow-x: auto; margin-bottom: var(--space-3); }
.credit-table { width: 100%; border-collapse: collapse; }
.credit-table th {
  text-align: left;
  color: var(--light-green);
  font: 700 12px/18px var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.credit-table th, .credit-table td { padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: var(--hairline); }
.purchase-list li { display: flex; justify-content: space-between; gap: var(--space-2); padding: var(--space-1) 0; }
/* My account's upcoming classes and the class "ways to pay" list: name on the left, link on the right. */
.booking-list__item, .pay-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}
.booking-list__item + .booking-list__item, .pay-list__item + .pay-list__item { border-top: var(--hairline); }
.booking-list__item .text-link, .pay-list__item form { flex: none; }
.class-facts { margin-bottom: var(--space-4); }
.plain-list { margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.rule { margin: var(--space-5) 0; border: 0; border-top: var(--hairline); }

/* A text link that's really a <button> (log out, send a new code): looks like .text-link. */
.text-link--button { padding: 0; border: 0; background: none; cursor: pointer; }
/* A form button that looks like an ordinary link (e.g. "Forgot your password?" under the password box). */
.link-button { padding: 0; border: 0; background: none; font: inherit; color: var(--light-green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (hover: hover) { .link-button:hover { color: var(--dark-green); } }

/* Forms */
.account-form { margin: 0; }
.account-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-4); }
.field { margin-bottom: var(--space-4); }
.field--check { margin-bottom: var(--space-3); }
.field__label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--dark-green);
  font-weight: 700;
}
.field__group { margin: 0; padding: 0; border: 0; }
.field__group .field__label { padding: 0; }
.field__help { margin: var(--space-1) 0 var(--space-2); color: var(--pine-charcoal); }
.field__help ul { margin: 0; padding-left: var(--space-4); }
.field__error, .field .errorlist { margin: var(--space-2) 0 0; padding: 0; list-style: none; color: var(--deep-rust); font-weight: 700; font-size: 14px; line-height: 21px; }
.field input:not([type="checkbox"], [type="radio"]),
.field select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--light-green);
  border-radius: var(--radius-small);
  background: var(--cream);
  color: var(--pine-charcoal);
  font: 17px/27px var(--font-body);  /* 16px+ stops phones zooming in on tap */
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--light-green); outline-offset: 1px; }
.field--error input, .field--error select { border-color: var(--deep-rust); border-width: 2px; }
/* Password box with the eye button inside its right-hand end. */
.password-box { position: relative; }
.js .password-box input { padding-right: 52px; }  /* room for the eye, so long passwords don't run under it */
.password-box input::-ms-reveal { display: none; }  /* Edge's own eye; ours replaces it */
.password-box__toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;   /* 44px: comfortable tap target */
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--light-green);
  cursor: pointer;
}
.password-box__toggle[hidden] { display: none; }
.password-box__toggle:hover { color: var(--dark-green); }
.password-box__toggle:focus-visible { outline: 3px solid var(--light-green); outline-offset: -3px; }
.password-box__eye-off, .password-box__toggle[aria-pressed="true"] .password-box__eye { display: none; }
.password-box__toggle[aria-pressed="true"] .password-box__eye-off { display: block; }
/* Checkboxes and radio buttons: the whole line is the tap target. */
.field__choice { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) 0; cursor: pointer; }
.field__choice input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--deep-rust); }
.form-errors {
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--deep-rust);
  border-radius: var(--radius-card);
  color: var(--deep-rust);
  font-weight: 700;
}
.form-errors > :last-child { margin-bottom: 0; }

/* Sign in with Google: Google's colours on the logo, our cream button with a hairline. */
.google { margin: var(--space-4) 0; }
.google__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--light-green);
  border-radius: var(--radius-button);
  background: var(--cream);
  color: var(--pine-charcoal);
  font: 600 17px/24px var(--font-body);
  cursor: pointer;
}
.google__button:hover { border-color: var(--dark-green); color: var(--dark-green); }
.or-line { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; color: var(--light-green); }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: var(--hairline); }

@media (min-width: 768px) {
  .google__button { width: auto; min-width: 320px; }
}

/* ---------- Waiver (/account/waiver/) ---------- */
.account-page__inner--wide { max-width: var(--text-width); }
.waiver { margin: var(--space-4) 0 var(--space-6); }
.waiver__title { margin-top: 0; font-size: 22px; line-height: 30px; }
.waiver__heading {
  margin: var(--space-4) 0 var(--space-2);
  font: 700 17px/27px var(--font-body);  /* like the bold section titles on the paper waiver */
  color: var(--dark-green);
}
.waiver__version { color: var(--light-green); }
.waiver__decline { margin: calc(-1 * var(--space-2)) 0 var(--space-3); }
.waiver__decline .field { margin-bottom: 0; }
[data-show-when][hidden] { display: none; }
.waiver-guardian { margin: var(--space-5) 0 var(--space-4); padding-top: var(--space-4); border-top: var(--hairline); }

/* Choice buttons ("I am 18+"): radio buttons that look like pills. The radio dot stays
   visible, so the chosen one is clear even in browsers without :has(). */
.choice-pills { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.choice-pills--stacked { flex-direction: column; }
.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--light-green);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--dark-green);
  font-weight: 700;
  cursor: pointer;
}
.choice-pill input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--dark-green); }
.choice-pill:hover { border-color: var(--dark-green); }
.choice-pill:has(input:checked) { background: var(--dark-green); border-color: var(--dark-green); color: var(--cream); }
.choice-pill:has(input:checked) input { accent-color: var(--cream); }
.choice-pill:has(input:focus-visible) { outline: 3px solid var(--light-green); outline-offset: 2px; }
.choice-pill--block { align-items: flex-start; border-radius: var(--radius-card); padding: var(--space-3); }
.choice-pill--block input { margin-top: 3px; }
.choice-pill__hint { display: block; margin-top: var(--space-1); font-weight: 400; font-size: 14px; line-height: 21px; }
.field__group .choice-pills + .field__help { margin-top: var(--space-2); }

/* Keep a short phrase (e.g. a date range) on one line. */
.nowrap { white-space: nowrap; }

/* ---------- Series landing page (e.g. Yoga 101) ---------- */
.series-top { padding-bottom: 0; }
.series-top__back { margin-bottom: var(--space-3); }
.series-top__intro { max-width: var(--text-width); font-size: 20px; line-height: 30px; }
.series-top__grid { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
@media (min-width: 960px) {
  /* Laptops: photo on the left, the facts and Sign up on the right. */
  .series-top__grid:has(.series-top__photo) { grid-template-columns: 3fr 2fr; align-items: start; }
  .series-top__grid:not(:has(.series-top__photo)) .series-facts { max-width: 520px; }
}
.series-top__photo .photo { width: 100%; border-radius: var(--radius-card); }
.series-facts { padding: var(--space-5) var(--space-4); }
.series-facts__list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-4);
  font-size: 15px;
  line-height: 22px;
}
.series-facts__list dt { margin: 3px 0 0; }
.series-facts__list dd { margin: 0; }
.series-signup > :last-child { margin-bottom: 0; }
.series-signup .small { margin: var(--space-3) 0 0; }
.series-facts .series-signup__button { width: 100%; }
.cta--event .series-signup { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
.cta--event .text-link { color: var(--cream); }

.weeks { max-width: var(--text-width); margin: 0 0 var(--space-3); padding: 0; list-style: none; border-top: var(--hairline); }
.weeks__row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--hairline);
}
.weeks__date { margin: 5px 0 0; }
.weeks__note { max-width: var(--text-width); }

.series-instructor { display: flex; gap: var(--space-3); align-items: flex-start; max-width: var(--text-width); }
.series-instructor__photo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.series-instructor__initial {
  display: flex; align-items: center; justify-content: center;
  background: var(--sand-line); color: var(--dark-green); font: 400 28px/1 var(--font-heading);
}
.series-instructor h3 { margin-bottom: var(--space-1); }

/* Series thank-you page: the waiver box. */
.next-step { border: 2px solid var(--deep-rust); }
.next-step .button { width: 100%; }
