/* Caffery's Dance & Gymnastics — public site styles. Mobile first.
   Spacing follows one scale (--s-*) so every gap on the site lines up. */

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* color: one crimson palette for Caffery's and Crimson Elite */
  --ink: #18151a;
  --ink-2: #4a4448;
  --muted: #6b6468;
  --coral: #c4142f; /* bright crimson: accents, underlines */
  --coral-dark: #b3122d; /* crimson: buttons, links, labels */
  --coral-darker: #7a0f1f; /* deep crimson */
  --night: #0f0d0e; /* near-black surfaces */
  --blush: #f6eef0; /* soft tinted panels */
  --blush-2: #efe1e4;
  --cream: #faf9fa; /* page background */
  --white: #ffffff;
  --line: #ebe5e7;
  --line-2: #ddd4d7;
  --green: #1f7a4d;
  --on-dark: #eadcdf; /* text on dark surfaces */
  --on-dark-accent: #ffb3bf;
  --crimson-band:
    repeating-linear-gradient(115deg, transparent 0 56px, rgb(255 255 255 / 3%) 56px 58px),
    radial-gradient(120% 120% at 85% 0%, #c4142f 0%, #7a0f1f 42%, #0f0d0e 92%);

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --section-y: 56px;
  --gutter: 20px;
  --wrap: 1200px;

  /* shape: cards, small tiles, buttons/chips/tabs, tags */
  --radius: 14px;
  --radius-sm: 10px;
  --r-ctrl: 8px;
  --r-tag: 4px;
  --shadow-card: 0 1px 2px rgb(24 21 26 / 4%), 0 10px 28px rgb(24 21 26 / 6%);
  --shadow-sm: 0 1px 2px rgb(28 26 27 / 5%);
  --shadow: 0 1px 2px rgb(28 26 27 / 4%), 0 8px 24px rgb(28 26 27 / 7%);
  --shadow-lg: 0 2px 4px rgb(28 26 27 / 4%), 0 18px 40px rgb(28 26 27 / 10%);
  --header-h: 68px;

  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-y: 72px;
  }
}
@media (min-width: 1140px) {
  :root {
    --gutter: 40px;
    --section-y: 96px;
    --header-h: 88px;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  /* Pages never slide sideways on phones, even if something is a few pixels too wide.
     Set on html only: an overflow rule on body would make body its own scroll box and
     break the sticky header (and iPhones ignore it for sideways swipes anyway). */
  overflow-x: clip;
  overscroll-behavior-x: none;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--coral-dark);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--coral-darker);
}
/* Easy reading on phones: no single word stranded on the last line of a paragraph. */
p,
li,
dd,
blockquote,
figcaption {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
.h3 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 1.55rem + 1.9vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.55rem, 1.35rem + 0.9vw, 2.15rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h3,
.h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 var(--s-4);
}
:focus-visible {
  outline: 3px solid var(--coral-dark);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus {
  top: var(--s-2);
  color: #fff;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: 760px;
}
.muted {
  color: var(--muted);
}
.icon {
  flex: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border-radius: var(--r-ctrl);
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap; /* a button label never breaks onto two lines */
  max-width: 100%;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--coral-dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--coral-darker);
  color: #fff;
}
.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-lg {
  min-height: 54px;
  padding: 0 var(--s-6);
  font-size: 1.03rem;
}
.btn-block {
  width: 100%;
  justify-content: flex-start;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}

/* ---------- announcement bar ---------- */
.announce-bar {
  background: var(--ink);
  color: #fff;
  font-size: 0.93rem;
  line-height: 1.45;
  padding: 10px 0;
  text-align: center;
}
.announce-bar strong {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
}
.announce-msg {
  color: #e9dfe1;
}
.announce-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: var(--s-3);
  color: var(--on-dark-accent);
  font-weight: 700;
}
.announce-link:hover {
  color: #fff;
}
@media (max-width: 639px) {
  .announce-bar {
    font-size: 0.9rem;
    padding: var(--s-2) 0;
  }
  /* The full message is on the homepage card; keep the bar to one line. */
  .announce-bar:has(.announce-link) .announce-msg {
    display: none;
  }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid, no backdrop-filter: a filter would trap the fixed phone menu inside the header. */
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.utility {
  display: none;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.utility-inner {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-5);
  height: 38px;
  align-items: center;
}
.utility a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  text-decoration: none;
}
.utility a:hover {
  color: var(--coral-dark);
}
.utility .icon {
  color: var(--muted);
}
.utility-portal {
  font-weight: 700;
  color: var(--ink) !important;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: var(--header-h);
}
.brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 52px;
  height: 52px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  margin-top: 3px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-dark);
}
.header-register {
  min-height: 44px;
  padding: 0 var(--s-5);
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: -8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle:hover {
  background: var(--blush);
}
.menu-toggle .i-close,
.nav-open .menu-toggle .i-open {
  display: none;
}
.nav-open .menu-toggle .i-close,
.menu-toggle .i-open {
  display: inline-flex;
}

/* Phone/tablet menu panel */
.main-nav {
  /* Phones: a full-screen sheet with its own top row (logo, Register, close). */
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(var(--s-7) + env(safe-area-inset-bottom));
  background: var(--white);
}
.nav-sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 calc(-1 * var(--gutter)) var(--s-3);
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-sheet-head .brand {
  margin-right: auto;
  min-width: 0;
}
/* The menu's link style mustn't restyle the logo and Register button in its top row. */
.main-nav .nav-sheet-head a {
  min-height: 0;
  padding: 0;
  font-size: inherit;
}
.main-nav .nav-sheet-head .brand {
  color: var(--ink);
}
.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
@media (min-width: 1024px) {
  .nav-sheet-head {
    display: none;
  }
}
.nav-open .main-nav {
  display: block;
}
.nav-open,
html.page-locked {
  overflow: hidden;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: var(--s-2) var(--s-1);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
}
.main-nav a[aria-current='page'] {
  color: var(--coral-dark);
}
.main-nav .sub {
  padding: 0 0 var(--s-3) var(--s-4);
}
.main-nav .sub a {
  min-height: 46px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-2);
}
.sub-toggle {
  display: none;
}
.nav-mobile-extra a {
  color: var(--coral-dark);
}

/* Grid columns may shrink below their content's natural width (otherwise one long word or
   a row of chips can push a 320px phone sideways). */
.finder > *,
.news-layout > *,
.hero-grid > *,
.program-hero-grid > *,
.footer-grid > *,
.visit-grid > *,
.simple-grid > * {
  min-width: 0;
}
h1,
h2,
.section-title {
  overflow-wrap: break-word;
}

/* Small phones under 375px (Android 360px, original iPhone SE 320px): tighter brand and Register so the menu button fits. */
@media (max-width: 374px) {
  .header-inner {
    gap: 6px;
  }
  .brand img {
    width: 38px !important;
    height: 38px !important;
  }
  .brand-name {
    font-size: 1rem !important;
  }
  .brand-sub {
    display: none;
  }
  .header-register {
    padding: 0 10px !important;
    font-size: 0.78rem;
  }
}
/* Small phones: logo + name + Register + menu must fit in 375px. */
@media (max-width: 419px) {
  .header-inner {
    gap: var(--s-2);
  }
  .brand {
    gap: var(--s-2);
  }
  .brand img {
    width: 46px;
    height: 46px;
  }
  .brand-name {
    font-size: 1.12rem;
  }
  .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
  .header-register {
    padding: 0 var(--s-4);
  }
}

@media (min-width: 640px) {
  .brand img {
    width: 60px;
    height: 60px;
  }
}
@media (min-width: 1024px) {
  .brand img {
    width: 68px;
    height: 68px;
  }
  .brand-name {
    font-size: 1.5rem;
  }
  .brand-sub {
    font-size: 0.72rem;
  }
}

@media (min-width: 1024px) {
  .utility {
    display: block;
  }
  .menu-toggle,
  .main-nav > ul > li.nav-mobile-extra,
  .main-nav > ul > li.nav-mobile-only {
    display: none;
  }
  .header-inner {
    gap: var(--s-4);
  }
  .main-nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    background: none;
    overflow: visible;
  }
  .main-nav > ul {
    display: flex;
    align-items: center;
    gap: var(--s-1);
  }
  .main-nav > ul > li {
    display: flex;
    align-items: center;
    border: 0;
  }
  .main-nav > ul > li > a {
    position: relative;
    min-height: 44px;
    padding: 0 9px;
    border-radius: var(--r-ctrl);
    font-size: 0.97rem;
    font-weight: 650;
    white-space: nowrap;
  }
  .main-nav > ul > li > a:hover {
    color: var(--coral-dark);
  }
  .main-nav > ul > li > a[aria-current='page']::after {
    content: '';
    position: absolute;
    left: var(--s-3);
    right: var(--s-3);
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--coral);
  }
  .has-sub > a {
    padding-right: 2px !important;
  }
  .has-sub > a[aria-current='page']::after {
    right: 0 !important;
  }
  .sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 34px;
    margin-right: var(--s-1);
    border: 0;
    border-radius: var(--r-tag);
    background: none;
    color: var(--muted);
    cursor: pointer;
  }
  .sub-toggle:hover {
    color: var(--ink);
  }
  .main-nav .sub {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 248px;
    padding: var(--s-2);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 60;
  }
  /* Keeps the menu open while the pointer crosses the gap. */
  .main-nav .sub::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
  }
  .has-sub:hover .sub,
  .has-sub:focus-within .sub,
  .has-sub.open .sub {
    display: block;
  }
  .main-nav .sub a {
    min-height: 42px;
    padding: 0 var(--s-3);
    border-radius: var(--r-ctrl);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
  }
  .main-nav .sub a:hover {
    background: var(--blush);
    color: var(--ink);
  }
}

/* ---------- page header ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  padding: var(--s-7) 0 var(--s-6);
  background: var(--blush);
}
/* Faint logo watermark so header bands feel like Caffery's, not a template. */
@media (min-width: 900px) {
  .page-header::after {
    content: '';
    position: absolute;
    right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    top: 50%;
    width: 260px;
    height: 260px;
    transform: translateY(-50%) rotate(-8deg);
    background: url('/assets/logo-512.png') center / contain no-repeat;
    opacity: 0.07;
    pointer-events: none;
  }
  .page-header .wrap {
    position: relative;
    z-index: 1;
  }
}
@media (min-width: 768px) {
  .page-header {
    padding: var(--s-8) 0 var(--s-7);
  }
}
.page-header h1 {
  margin-bottom: var(--s-3);
}
.page-header .lead {
  max-width: 660px;
  margin: 0;
}
.page-header .lead p:last-child {
  margin-bottom: 0;
}
.eyebrow {
  margin: 0 0 var(--s-3);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-dark);
}
.eyebrow a {
  text-decoration: none;
}
.lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- sections ---------- */
.section {
  padding: var(--section-y) 0;
}
.section-tight {
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
}
@media (min-width: 768px) {
  .section-tight {
    padding-top: var(--s-7);
    padding-bottom: var(--s-7);
  }
}
.section-title {
  margin-bottom: var(--s-5);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-5);
}
.section-head .section-title {
  margin: 0;
}
.empty {
  padding: var(--s-5);
  background: var(--white);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--ink-2);
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose ul,
.prose ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.25em;
}
.prose li {
  margin-bottom: var(--s-2);
}
.prose li::marker {
  color: var(--coral);
}
.prose h2,
.prose h3 {
  margin-top: var(--s-6);
}
.prose > :first-child {
  margin-top: 0;
}
.prose blockquote {
  margin: 0 0 var(--s-5);
  padding: var(--s-1) 0 var(--s-1) var(--s-5);
  border-left: 3px solid var(--coral);
  color: var(--ink-2);
  font-size: 1.1rem;
}

/* ---------- hero ---------- */
/* Split layout: copy on the left, a framed 4:3 slideshow on the right. Photos show
   at ~640px wide, so typical 1100px studio photos stay sharp, and 4:3 matches most
   of their originals so little is cropped. */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--s-6);
  padding-top: 0;
  padding-bottom: var(--s-6);
}
.hero-media {
  order: -1;
  margin: 0 calc(-1 * var(--gutter));
}
.slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2a2527;
}
.slides,
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
}
.slide {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slide.is-active {
  opacity: 1;
}
.slide-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide.is-fit .slide-img {
  object-fit: contain;
}
.slide-backdrop {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(22px) brightness(0.75) saturate(1.1);
}
.slide-controls {
  position: absolute;
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 2;
  display: flex;
  gap: 6px;
}
.slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: var(--ink);
  box-shadow: 0 2px 10px rgb(0 0 0 / 18%);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.slide-btn:hover {
  background: #fff;
  transform: scale(1.05);
}
.slide-btn .i-play,
.slideshow.is-paused .slide-btn .i-pause {
  display: none;
}
.slideshow.is-paused .slide-btn .i-play {
  display: block;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--coral-dark);
}
.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.hero-copy h1 {
  margin-bottom: var(--s-4);
  font-size: clamp(1.9rem, 1.35rem + 1.6vw, 2.75rem);
  line-height: 1.05;
}
.hero-sub {
  max-width: 34ch;
  margin-bottom: var(--s-5);
  font-size: 1.15rem;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.hero-actions .btn {
  flex: 1 1 200px;
}
@media (min-width: 640px) {
  .hero-media {
    margin: 0;
  }
  .hero-grid {
    padding-top: var(--s-6);
  }
  .slideshow {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  .hero-actions .btn {
    flex: 0 0 auto;
  }
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: center;
    gap: var(--s-8);
    padding-top: var(--s-8);
    padding-bottom: var(--s-8);
  }
  .hero-media {
    order: 0;
    position: relative;
  }
  /* A soft brand-colored offset behind the photo. */
  .hero-media::before {
    content: '';
    position: absolute;
    inset: 22px -22px -22px 22px;
    border-radius: var(--radius);
    background: var(--coral);
    opacity: 0.16;
  }
  .slide-controls {
    right: var(--s-4);
    bottom: var(--s-4);
  }
}

/* ---------- quick tasks ---------- */
.quick {
  padding: var(--s-6) 0 var(--s-7);
  background: var(--white);
}
.quick-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
.quick-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  height: 100%;
  min-height: 112px;
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.quick-tile .icon {
  box-sizing: content-box;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--blush);
  color: var(--coral-dark);
}
.quick-tile:hover {
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .quick {
    padding: var(--s-7) 0 var(--s-7);
  }
  .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-4);
  }
}
@media (min-width: 1024px) {
  .quick-tile {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 88px;
    padding: var(--s-4) var(--s-5);
    font-size: 1.04rem;
  }
}

/* ---------- news ---------- */
.news {
  background: var(--white);
}
.news-grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}
.news-card {
  position: relative;
  padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + 4px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--coral);
}
.news-card h3 {
  margin-bottom: var(--s-2);
}
.news-card p {
  color: var(--ink-2);
}
.news-card > :last-child {
  margin-bottom: 0;
}
.news-card .text-link {
  min-height: 0;
}

/* ---------- programs ---------- */
.find {
  padding-top: var(--s-7);
}
.section-sub {
  margin: var(--s-2) 0 0;
  color: var(--ink-2);
}
.program-chev {
  display: none;
}
/* Phones: compact rows (thumbnail · name · ages · arrow) instead of tall photo cards. */
@media (max-width: 559px) {
  .find .program-grid {
    gap: var(--s-2);
  }
  .find .program-card {
    flex-direction: row;
    align-items: center;
    min-height: 88px;
  }
  .find .program-img {
    flex: none;
    width: 96px;
    height: 88px;
    aspect-ratio: auto;
  }
  .find .program-body {
    flex: 1;
    padding: var(--s-3) var(--s-4);
  }
  .find .program-body h3 {
    font-size: 1.08rem;
  }
  .find .program-body .program-age {
    margin-bottom: 0 !important;
  }
  .find .program-more {
    display: none;
  }
  .find .program-chev {
    display: inline-flex;
    padding-right: var(--s-4);
    color: var(--coral-dark);
  }
}
.join-steps {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-6) 0 0;
  padding: var(--s-5);
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .join-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
  }
}
.join-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  line-height: 1.45;
}
.join-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--coral-dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
}
.join-steps strong {
  font-family: var(--font-head);
}
.join-help {
  margin: var(--s-4) 0 0;
  color: var(--ink-2);
  text-align: center;
}
.program-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 560px) {
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .program-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-5);
  }
  .program-grid-wide {
    grid-template-columns: repeat(3, 1fr);
  }
}
.program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.program-card:hover {
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.program-card:hover h3,
.program-card:hover .h3 {
  color: var(--coral-dark);
}
.program-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blush);
}
.program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.program-card:hover .program-img img {
  transform: scale(1.03);
}
.img-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, var(--blush-2), var(--blush));
}
.program-body {
  padding: var(--s-4) var(--s-5) var(--s-5);
}
.program-body h3,
.program-body .h3 {
  margin-bottom: var(--s-1);
}
.program-body p {
  margin-bottom: var(--s-3);
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
}
.program-body > :last-child {
  margin-bottom: 0;
}
.program-age {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-dark) !important;
  margin-bottom: var(--s-2) !important;
}
.program-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-1);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--coral-dark);
}
.program-card:hover .program-more .icon {
  transform: translateX(3px);
}
.program-more .icon {
  transition: transform 0.15s;
}
.program-age-lg {
  font-size: 0.86rem !important;
}
.program-hero {
  padding: var(--s-7) 0;
  background: var(--blush);
}
.program-hero-grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
.program-hero .lead {
  margin-bottom: var(--s-5);
}
.program-hero-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .program-hero {
    padding: var(--s-8) 0;
  }
  .program-hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--s-8);
  }
}

/* ---------- about ---------- */
.about-band {
  /* Soft pink band: separates "About" from the white news section and warms the page before the dark awards bar. */
  background: var(--blush);
}
.about-grid,
.about-page-grid,
.simple-grid {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
.about-photo img,
.simple-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-8);
    align-items: center;
  }
  .about-page-grid,
  .simple-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: var(--s-8);
  }
}
.about-copy .btn {
  margin-top: var(--s-3);
}
.family-quote {
  margin: 0 0 var(--s-5);
  padding: 0;
}
.family-quote p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--coral-dark);
}

/* ---------- photos ---------- */
.photo-strip,
.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
}
@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
  }
}
@media (min-width: 1024px) {
  .photo-strip,
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-4);
  }
}
.photo-strip a,
.photo-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--blush);
}
.photo-strip img,
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-strip a:hover img,
.photo-grid a:hover img {
  transform: scale(1.04);
}

/* ---------- awards ---------- */
.awards {
  background: var(--blush);
}
.award-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .award-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--s-4);
  }
}
.award {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.award-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}
.award-icon {
  display: inline-flex;
  color: var(--coral);
}
.award p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.35;
}
.awards-inline {
  margin-top: var(--s-8);
}

/* ---------- visit ---------- */
.visit-grid {
  display: grid;
  gap: var(--s-5);
}
.visit-grid .section-title {
  margin-bottom: var(--s-3);
}
.visit-address {
  font-size: 1.1rem;
}
.visit-actions {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .visit-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-8);
    align-items: center;
  }
}

/* ---------- documents ---------- */
.doc-grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 768px) {
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .doc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
  }
}
.doc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-4);
  border-radius: var(--radius-sm);
  background: var(--blush);
  color: var(--coral-dark);
}
.doc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.doc-body h3 {
  margin-bottom: var(--s-1);
  font-size: 1.12rem;
}
.doc-season {
  margin-bottom: var(--s-3);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-dark);
}
.doc-desc {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
}
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-2);
}
.doc-actions .btn {
  flex: 1 1 auto;
  white-space: nowrap;
  min-height: 46px;
  padding: 0 var(--s-4);
  font-size: 0.94rem;
}
.attire-section + .attire-section {
  margin-top: var(--s-7);
}
.attire-reqs {
  margin-bottom: var(--s-4);
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* "Ready to sign up?" */
.signup-box {
  display: grid;
  gap: var(--s-4);
  align-items: center;
  margin-top: var(--s-7);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--radius);
  background: var(--crimson-band);
  color: var(--on-dark);
}
.signup-box h2 {
  margin-bottom: var(--s-2);
  color: #fff;
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
}
.signup-box p {
  margin: 0;
}
.signup-box a:not(.btn) {
  color: var(--on-dark-accent);
}
.signup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.signup-actions .btn {
  flex: 1 1 180px;
}
.signup-box .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 35%);
}
.signup-box .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}
@media (min-width: 900px) {
  .signup-box {
    grid-template-columns: 1fr auto;
    gap: var(--s-7);
    padding: var(--s-6) var(--s-7);
  }
  .signup-actions .btn {
    flex: 0 0 auto;
  }
}
.reg-steps {
  margin: 0 0 var(--s-6);
}

/* "More for parents" links at the bottom of pages */
.next-steps {
  display: grid;
  gap: var(--s-3);
  padding-top: var(--s-2);
  padding-bottom: var(--s-8);
}
@media (min-width: 768px) {
  .next-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
  }
}
.next-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 60px;
  padding: 0 var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.next-link .icon:first-child {
  color: var(--coral-dark);
}
.next-link .icon:last-child {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.15s;
}
.next-link:hover {
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.next-link:hover .icon:last-child {
  transform: translateX(3px);
  color: var(--coral-dark);
}

/* ---------- registration ---------- */
.reg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 900px) {
  .reg-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }
}
.reg-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.reg-card.reg-open {
  border-color: #f0c9cc;
  box-shadow: inset 0 3px 0 var(--coral);
}
.reg-card > * {
  margin: 0;
}
.reg-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
}
.reg-top h2 {
  margin: 0;
  font-size: 1.3rem;
}
.reg-card .prose {
  color: var(--ink-2);
}
.reg-dates {
  font-weight: 700;
  color: var(--ink-2);
}
.reg-card .btn {
  margin-top: var(--s-2);
  width: 100%;
}
@media (min-width: 640px) {
  .reg-card .btn {
    align-self: flex-start;
    width: auto;
  }
}
.reg-closed-note {
  color: var(--muted);
}
.portal-note {
  margin: var(--s-5) 0 0;
}
.portal-note .text-link {
  min-height: 0;
}

/* ---------- calendar ---------- */
.calendar-embed {
  margin-top: var(--s-5);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 75vh;
  min-height: 520px;
  border: 0;
}
.printable {
  margin-top: var(--s-7);
}
.printable-img {
  display: block;
  max-width: 820px;
}
.printable-img img {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* ---------- galleries ---------- */
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-6) var(--s-5);
}
@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery-card {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.gallery-cover {
  aspect-ratio: 3 / 2;
  margin-bottom: var(--s-3);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blush);
}
.gallery-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover img {
  transform: scale(1.03);
}
.gallery-card:hover .h3 {
  color: var(--coral-dark);
}
.gallery-card .h3 {
  margin-bottom: 2px;
}
.gallery-card p {
  margin: 0;
  font-size: 0.94rem;
}
.back-link {
  margin-bottom: var(--s-4);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(15 12 14 / 95%);
  color: #fff;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pinch-zoom; /* one finger = our swipe; two fingers still zoom */
}
.lightbox[open] {
  display: flex;
}
/* The page behind the photo viewer or the search stays put. */
html.lb-open,
html.lb-open body,
html.search-open,
html.search-open body {
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgb(15 12 14 / 95%);
}
.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0; /* without this the photo's full size (1600px) stretches the viewer past the screen */
  max-width: 100%;
  max-height: 100%;
  will-change: transform;
  margin: 0;
  padding: 64px var(--s-2) var(--s-5);
}
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: var(--r-tag);
}
.lightbox figcaption {
  min-height: 1.4em;
  margin-top: var(--s-3);
  text-align: center;
  font-size: 0.96rem;
  color: #eee;
}
.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  cursor: pointer;
}
.lb-btn:hover {
  background: rgb(255 255 255 / 24%);
}
.lb-close {
  top: var(--s-3);
  right: var(--s-3);
}
.lb-prev {
  left: var(--s-2);
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: var(--s-2);
  top: 50%;
  transform: translateY(-50%);
}
.lb-count {
  position: absolute;
  top: 24px;
  left: var(--s-5);
  font-size: 0.9rem;
  color: #ccc;
}

/* ---------- teachers ---------- */
.staff-group + .staff-group {
  margin-top: var(--s-7);
}
.staff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}
/* Teachers in the dashboard's order; the columns are set further down. */
@media (min-width: 768px) {
  .staff-list {
    gap: var(--s-5);
  }
}
.staff-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.staff-photo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--blush);
}
.staff-director .staff-photo {
  width: 150px;
}
@media (min-width: 768px) {
  .staff-director .staff-photo {
    width: 240px;
  }
}
.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staff-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 8px;
  text-align: center;
}
.staff-photo .staff-placeholder img {
  width: 48%;
  height: auto;
  max-width: 96px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
}
.staff-placeholder small {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-2);
}
.staff-body {
  flex: 1;
  min-width: 0;
}
.staff-body h3 {
  margin-bottom: 2px;
}
.staff-role {
  margin-bottom: var(--s-2);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--coral-dark);
}
.staff-bio > .prose {
  font-size: 1rem;
  color: var(--ink-2);
}
.staff-bio details .prose {
  margin-top: var(--s-3);
}
.staff-bio summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--coral-dark);
  cursor: pointer;
}
.staff-bio[open] summary {
  margin-bottom: var(--s-2);
}
.staff-bio .prose {
  font-size: 1rem;
  color: var(--ink-2);
}


/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: var(--s-3);
}
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.faq[open] {
  border-color: var(--line-2);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 60px;
  padding: var(--s-3) var(--s-5);
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  color: var(--coral-dark);
  transition: transform 0.2s;
}
.faq[open] summary .icon {
  transform: rotate(180deg);
}
.faq .prose {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--ink-2);
}
.faq-more {
  margin-top: var(--s-6);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--s-8);
  }
}
.contact-cards {
  display: grid;
  align-content: start;
  gap: var(--s-3);
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  min-height: 76px;
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-card .icon {
  margin-top: 2px;
  color: var(--coral-dark);
}
.contact-card strong {
  display: block;
  font-family: var(--font-head);
}
.contact-card em {
  display: block;
  font-size: 0.94rem;
  color: var(--muted);
}
.contact-card span {
  overflow-wrap: anywhere;
}
.contact-card:hover {
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.contact-grid .section-title {
  margin-bottom: var(--s-3);
}
.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}
.map-embed {
  margin-top: var(--s-5);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- footer ---------- */
.site-footer {
  padding-top: var(--s-7);
  background: var(--ink);
  color: #e6dddf;
  font-size: 1rem;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer p {
  margin: 0;
}
.footer-top {
  display: grid;
  gap: var(--s-5);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.footer-logo {
  flex: none;
  width: 56px;
  height: 56px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}
.footer-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #fff;
}
.footer-tag {
  font-size: 0.92rem;
  color: #c9bfc2;
}
.footer-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
}
.footer-act-main {
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 52px;
}
.site-footer .footer-act-main:hover {
  text-decoration: none;
}
.footer-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 8%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}
.site-footer .footer-act:hover {
  background: rgb(255 255 255 / 15%);
  text-decoration: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6) var(--s-5);
  padding-top: var(--s-6);
}
.footer-visit {
  grid-column: 1 / -1;
  display: grid;
  align-content: start;
  gap: var(--s-2);
  line-height: 1.55;
}
/* Phones: the header shows the logo and the buttons cover call, email and directions. */
@media (max-width: 899px) {
  .site-footer {
    padding-top: var(--s-6);
  }
  /* The address stays: it's what someone in the car is looking for. */
  .footer-brand {
    display: none;
  }
  .footer-top {
    padding-bottom: var(--s-5);
  }
  .footer-grid {
    gap: var(--s-5);
    padding-top: var(--s-5);
  }
  .footer-visit {
    gap: var(--s-1);
  }
}
.footer-h {
  margin: 0 0 var(--s-2);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9ea5;
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.site-footer .muted {
  color: #b9aeb1;
  font-size: 0.92rem;
}
.social {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(255 255 255 / 9%);
  transition: background-color 0.15s;
}
.social a:hover {
  background: var(--coral-dark);
}
.footer-bottom {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(255 255 255 / 12%);
  text-align: center;
  font-size: 0.86rem;
  color: #b9aeb1;
}
.footer-hours {
  margin-top: var(--s-2);
  font-size: 0.92rem;
  color: #c9bfc2;
}
.footer-hours p {
  margin: 0;
}
.footer-area {
  max-width: 60ch;
  font-size: 0.8rem;
  color: #8f8487;
}
@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .footer-actions {
    display: flex;
    align-items: center;
    gap: var(--s-2);
  }
  .footer-act-main {
    order: 4;
    margin-left: var(--s-3);
  }
  .footer-act {
    flex-direction: row;
    gap: var(--s-2);
    min-height: 48px;
    padding: 0 var(--s-4);
    border-radius: var(--r-ctrl);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--s-7);
  }
  .footer-visit {
    grid-column: auto;
  }
  .footer-links a {
    min-height: 38px;
  }
  .footer-bottom {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    align-items: center;
    text-align: left;
  }
  .footer-area {
    justify-self: center;
    text-align: center;
  }
  .footer-copy {
    order: 3;
  }
}

/* ---------- built class schedules ---------- */
.sched-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.day-chips {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 2px var(--gutter);
}
.day-chips::-webkit-scrollbar {
  display: none;
}
@media (min-width: 640px) {
  .day-chips {
    margin: 0;
    padding: 2px 0;
    flex-wrap: wrap;
  }
}
.chip {
  flex: none;
  min-height: 42px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctrl);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover {
  border-color: var(--ink);
}
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.day-grid {
  display: grid;
  gap: var(--s-4);
  align-items: start;
}
@media (min-width: 768px) {
  .day-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }
}
@media (min-width: 1100px) {
  .day-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.day-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.day-card[hidden] {
  display: none;
}
.day-title {
  margin: 0;
  padding: var(--s-4) var(--s-5);
  font-size: 1.05rem;
  background: var(--blush);
}
.class-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.class-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
}
.class-row + .class-row {
  border-top: 1px solid var(--line);
}
.class-time {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--coral-dark);
  white-space: nowrap;
  padding-top: 2px;
}
.class-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.class-name {
  font-weight: 700;
  line-height: 1.35;
}
.class-meta {
  font-size: 0.92rem;
  color: var(--ink-2);
}
.class-note {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 380px) {
  .class-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
.sched-back {
  margin-top: var(--s-6);
}

/* ---------- built shoe lists ---------- */
.checklist {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.checklist + .checklist,
.checklist + .doc-grid {
  margin-top: var(--s-3);
}
.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  min-height: 64px;
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  list-style: none;
}
.checklist-head::-webkit-details-marker {
  display: none;
}
.checklist-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.checklist-head .doc-desc {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.checklist-toggle {
  flex: none;
  display: inline-flex;
  color: var(--coral-dark);
  transition: transform 0.2s;
}
.checklist[open] .checklist-toggle {
  transform: rotate(180deg);
}
.checklist[open] > .checklist-head {
  border-bottom: 1px solid var(--line);
}
.checklist > .checklist-groups,
.checklist > .checklist-note,
.checklist > .checklist-print {
  margin: 0;
  padding: var(--s-4) var(--s-5) 0;
}
.checklist > :last-child {
  padding-bottom: var(--s-5);
}
.checklist-groups {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 768px) {
  .checklist-groups {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--s-5) var(--s-6);
  }
}
.checklist-group h3 {
  margin: 0 0 var(--s-2);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.checklist-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist-group li {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) 0;
}
.checklist-group li + li {
  border-top: 1px solid var(--line);
}
.check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--coral-dark);
}
.check-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.check-details {
  font-size: 0.95rem;
  color: var(--ink-2);
}
.check-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 0.9rem;
  font-weight: 700;
}
.checklist-note {
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------- event calendar ---------- */
.cal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.months {
  display: grid;
  gap: var(--s-6);
}
.month-title {
  margin-bottom: var(--s-3);
  font-size: 1.25rem;
}
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.event {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
}
.event + .event {
  border-top: 1px solid var(--line);
}
.event-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 56px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--blush);
  color: var(--coral-dark);
  line-height: 1.05;
  text-align: center;
}
.cat-closed .event-date {
  background: var(--ink);
  color: #fff;
}
.event-mon {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.event-day {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
}
.event-to {
  font-size: 0.66rem;
  font-weight: 700;
}
.event-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.event-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-2);
}
.event-title {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
}
.event-when {
  font-size: 0.94rem;
  color: var(--ink-2);
}
.event-desc {
  font-size: 0.95rem;
  color: var(--ink-2);
}
.event-link {
  min-height: 36px;
}
.event-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-tag);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #efeaea;
  color: var(--ink-2);
}
.event-pill.pill-closed {
  background: var(--ink);
  color: #fff;
}
.event-pill.pill-show {
  background: var(--blush-2);
  color: var(--coral-darker);
}
.event-pill.pill-deadline {
  background: #fff3cf;
  color: #7a5a00;
}
.event-pill.pill-event {
  background: #e3f0fb;
  color: #1d4f7a;
}

/* homepage "Already a Caffery's family?" */
.family-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* phones: one per row */
  gap: var(--s-2);
  margin: 0 0 var(--s-6);
  padding: 0;
  list-style: none;
}
.family-links a {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
}
.family-links a:hover {
  border-color: var(--coral);
}
.family-links .icon {
  color: var(--coral-dark);
}
.news-layout {
  display: grid;
  gap: var(--s-7);
}
.news-layout .section-title {
  font-size: 1.25rem;
}
@media (min-width: 900px) {
  .news-layout.has-both {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--s-7);
  }
  .news-layout.has-both .news-grid {
    grid-template-columns: 1fr;
  }
}
.upcoming {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.upcoming-item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
}
.upcoming-item + .upcoming-item {
  border-top: 1px solid var(--line);
}
.upcoming-item .event-date {
  width: 48px;
  min-height: 48px;
}
.upcoming-item .event-day {
  font-size: 1.15rem;
}
.upcoming-item .event-body {
  flex: 1;
}

/* ---------- Crimson Elite on the main site ---------- */

.crimson-promo {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 56px, rgb(255 255 255 / 3%) 56px 58px),
    radial-gradient(120% 120% at 85% 0%, #c4142f 0%, #7a0f1f 42%, #0f0d0e 92%);
  color: var(--on-dark);
  isolation: isolate;
}
.crimson-promo-grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .crimson-promo-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--s-8);
  }
}
.crimson-promo h2 {
  margin: var(--s-3) 0 var(--s-3);
  color: #fff;
  font-style: italic;
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.crimson-promo p {
  max-width: 46ch;
  font-size: 1.08rem;
}
.crimson-promo-kicker {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  background: #b3122d;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  font-size: 0.74rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  transform: skewX(-10deg);
}
.crimson-promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0 var(--s-5);
  padding: 0;
  list-style: none;
}
.crimson-promo-chips li {
  padding: 6px 14px;
  border: 1.5px solid rgb(255 255 255 / 35%);
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  transform: skewX(-10deg);
}
.crimson-promo-btn {
  background: #fff;
  color: #7a0f1f;
  border-radius: var(--r-ctrl);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
}
.crimson-promo-btn:hover {
  background: var(--on-dark);
  color: #7a0f1f;
}
/* Collage: one big shot and two smaller ones, straight edges, even gaps. */
.crimson-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: clamp(240px, 52vw, 440px);
}
.cc-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #4a0a14;
  box-shadow: 0 14px 34px rgb(0 0 0 / 35%);
}
.cc-1 {
  grid-row: 1 / 3;
}
/* The photo fills its frame edge to edge (no dark strip at the bottom). */
.cc-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-frame.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #c4142f, #5a0b18);
  color: rgb(255 255 255 / 70%);
}
@media (min-width: 900px) {
  .crimson-collage {
    height: 440px;
  }
}
@media (max-width: 899px) {
  .crimson-collage {
    order: -1;
  }
}
.crimson-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding: var(--s-5);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #7a0f1f, #0f0d0e);
  color: var(--on-dark);
  text-decoration: none;
}
.crimson-callout strong {
  color: #fff;
}
.crimson-callout:hover {
  color: #fff;
}
.crimson-callout-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.sub-programs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.sub-programs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.sub-programs a:hover {
  border-color: var(--coral);
}
.sub-programs strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
}
.sub-programs .program-age {
  margin: 2px 0 0;
}
.sub-program-text {
  display: block;
  margin-top: var(--s-1);
  color: var(--ink-2);
}
.sub-programs .icon {
  flex: none;
  color: var(--coral-dark);
}

/* ---------- class finder ---------- */
.finder {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}
@media (min-width: 960px) {
  .finder {
    grid-template-columns: 340px 1fr;
    gap: var(--s-7);
  }
  .finder-filters {
    position: sticky;
    top: calc(var(--header-h) + var(--s-4));
  }
}
.finder-filters {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.finder-filters fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.finder-filters legend,
.finder-q > span {
  display: block;
  margin-bottom: var(--s-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}
.chip-set {
  /* Chips share the row evenly and fill it edge to edge (no empty space on the right). */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 6px;
}
/* Phones: an exact 6-column grid. Ages make two full rows (13+ widens to finish the
   second row) and the six days fill one row. */
@media (max-width: 899px) {
  .chip-set {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .chip-set > :last-child:nth-child(6n + 5) {
    grid-column: span 2;
  }
  .chip-set > :last-child:nth-child(6n + 4) {
    grid-column: span 3;
  }
}
.chip-set:has(input[name='type']) {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}
.chip-check {
  position: relative;
  cursor: pointer;
}
.chip-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip-check span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctrl);
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  user-select: none;
}
.chip-check abbr {
  text-decoration: none;
}
.chip-check:hover span {
  border-color: var(--ink);
}
.chip-check input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip-check.is-off span {
  border-color: var(--line-2);
  border-style: dashed;
  background: #f4f1f1;
  color: var(--muted);
  text-decoration: line-through;
  cursor: not-allowed;
}
.chip-check.is-off:hover span {
  border-color: var(--line);
}
/* A greyed chip that's still picked (from a shared link) stays visibly picked. */
.chip-check.is-off input:checked + span {
  background: var(--ink-2);
  color: #fff;
}
.chip-check input:focus-visible + span {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.finder-q input {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: inherit;
}
.finder-all {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: 0.92rem;
  color: var(--ink-2);
  cursor: pointer;
}
.finder-all input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--coral-dark);
}
.finder-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.finder-filters.is-live .finder-submit {
  display: none;
}
.finder-count {
  margin: 0 0 var(--s-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.finder-day + .finder-day {
  margin-top: var(--s-5);
}
.finder-day[hidden],
.finder-card[hidden] {
  display: none;
}
.finder-day-title {
  margin: 0 0 var(--s-2);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-dark);
}
.finder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.finder-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-1) var(--s-4);
  align-items: center;
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.finder-time {
  grid-column: 1 / -1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-2);
}
/* Day and time are separate lines that never break inside (e.g. "Wednesday" / "4:15 – 5:00 pm"). */
.finder-time span {
  white-space: nowrap;
}
.finder-time .ft-day {
  margin-right: 6px;
  color: var(--ink);
  font-weight: 800;
}
.finder-name {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}
.finder-meta,
.finder-fits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--s-2) 0 0;
}
.finder-fits:empty {
  display: none;
}
.finder-meta .tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 var(--s-2);
  border-radius: var(--r-tag);
  background: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
}
.finder-meta .tag-gymnastics {
  background: #e7f0fb;
  color: #1f4f8a;
}
.finder-meta .tag-dance {
  background: var(--blush);
  color: var(--coral-dark);
}
.finder-meta .tag-invite {
  background: #fff3d6;
  color: #7a5200;
}
.finder-fits span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d7a46;
}
.finder-cta .btn {
  min-height: 44px;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .finder-card {
    grid-template-columns: minmax(8.5rem, max-content) minmax(0, 1fr) auto;
  }
  .finder-time {
    grid-column: auto;
    align-self: start;
    padding-top: 3px;
  }
  .finder-time .ft-day {
    display: block;
    margin: 0 0 2px;
  }
}
@media (max-width: 479px) {
  .finder-filters {
    padding: var(--s-4);
  }
  .finder-card {
    padding: var(--s-3) var(--s-4);
  }
  .finder-cta .btn {
    min-height: 40px;
    padding: 0 var(--s-4);
    font-size: 0.92rem;
  }
}
.finder-panel > summary {
  display: none;
}
@media (max-width: 959px) {
  .finder-panel > summary {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    min-height: 52px;
    padding: 0 var(--s-4);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .finder-panel > summary::-webkit-details-marker {
    display: none;
  }
  .finder-summary {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .finder-edit {
    color: var(--coral-dark);
    font-size: 0.9rem;
  }
  .finder-panel[open] > summary {
    margin-bottom: var(--s-3);
  }
  .finder-panel[open] .finder-edit {
    display: none;
  }
}
@media (min-width: 960px) {
  .finder-panel {
    position: sticky;
    top: calc(var(--header-h) + var(--s-4));
  }
  .finder-filters {
    position: static;
  }
}
.finder-empty {
  padding: var(--s-6) var(--s-5);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  text-align: center;
}
.finder-empty h2 {
  margin-top: 0;
  font-size: 1.25rem;
}
.finder-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}
.finder-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
}
.finder-note strong,
.finder-note span span {
  display: block;
}
.finder-note span span {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.finder-help {
  margin-top: var(--s-5);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.quick-finder {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm, 0 2px 10px rgb(0 0 0 / 5%));
}
.quick-finder fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.quick-finder legend {
  margin-bottom: var(--s-2);
  font-family: var(--font-head);
  font-weight: 700;
}
.quick-finder .btn {
  justify-self: start;
}
@media (min-width: 900px) {
  .quick-finder {
    grid-template-columns: auto auto minmax(max-content, 1fr);
    align-items: end;
    gap: var(--s-6);
  }
  /* Live picker (no button): ages and days split the width by how many chips each has,
     so every chip is the same size and the box is filled. */
  .quick-finder.is-live {
    grid-template-columns: 11fr 6fr;
    gap: var(--s-6);
  }
  .quick-finder .btn {
    justify-self: end;
  }
}
@media (max-width: 479px) {
  .quick-finder .btn {
    justify-self: stretch;
  }
}
.quick-finder.is-live .qf-submit {
  display: none;
}
.qf-results {
  margin-top: var(--s-5);
}
.qf-results[hidden] {
  display: none;
}
.qf-all {
  margin-top: var(--s-4);
}
.qf-all[hidden] {
  display: none;
}
.find-browse {
  margin-top: var(--s-7);
}
.find-browse h3 {
  margin: 0;
  font-size: 1.15rem;
}

/* ---------- program tabs (Dance: Overview · Preschool · … · Register) ---------- */
.program-tabs {
  position: sticky;
  top: var(--sticky-top, var(--header-h));
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.program-tabs ul {
  display: flex;
  gap: var(--s-2);
  margin: 0 calc(-1 * var(--gutter));
  padding: var(--s-2) var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.program-tabs ul::-webkit-scrollbar {
  display: none;
}
.program-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 var(--s-4);
  border-radius: var(--r-ctrl);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.93rem;
  white-space: nowrap;
  text-decoration: none;
}
.program-tabs a:hover {
  background: var(--blush);
}
.program-tabs a[aria-current='page'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
/* Phones: every tab visible as a grid of buttons — no hidden sideways swipe. */
@media (max-width: 899px) {
  .program-tabs {
    position: static;
  }
  .program-tabs ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: var(--s-3) 0;
    overflow: visible;
  }
  .program-tabs a {
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0 var(--s-2);
    border: 1px solid var(--line);
    border-radius: var(--r-ctrl);
    white-space: nowrap;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
  }
  .program-tabs li:only-child,
  .program-tabs li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media (min-width: 900px) {
  .program-tabs ul {
    margin: 0;
    padding: var(--s-3) 0;
  }
}

/* ---------- search landing pages (/classes/dance-classes-for-5-year-olds) ---------- */
.landing-head .lead {
  max-width: 46ch;
}
.landing {
  display: grid;
  gap: var(--s-7);
  max-width: 880px;
}
.landing-about {
  margin: 0;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.landing-more {
  margin-top: var(--s-5);
}
.landing-faq dl {
  margin: 0 0 var(--s-4);
}
.landing-faq dt {
  margin-top: var(--s-4);
  font-family: var(--font-head);
  font-weight: 700;
}
.landing-faq dd {
  margin: var(--s-1) 0 0;
  color: var(--ink-2);
}
.landing-links .section-title {
  margin-top: var(--s-5);
  font-size: 1.1rem;
}
.landing-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.landing-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctrl);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.landing-links a:hover {
  border-color: var(--coral);
  background: var(--blush);
}
.topic-links {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.program-includes {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--coral-dark);
}
.bio-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-2);
}
.bio-text.is-open {
  display: block;
}
.bio-text .prose > :last-child {
  margin-bottom: 0;
}
.bio-more {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--coral-dark);
  font: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
}
/* Phones: small photo beside the name, like a contact card. */
@media (max-width: 639px) {
  .staff-card,
  .staff-director .staff-card {
    flex-direction: row;
    gap: var(--s-4);
    padding: var(--s-4);
  }
  .staff-photo,
  .staff-director .staff-photo {
    width: 76px;
  }
  .bio-text {
    -webkit-line-clamp: 3;
  }
}
.doc-print {
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ---------- tuition at a glance (Registration page) ---------- */
.price-card {
  max-width: 760px;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.price-card + .doc-grid,
.price-card + .price-card {
  margin-top: var(--s-5);
}
.price-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-3);
}
.price-head h3 {
  margin: 0;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table caption {
  margin-bottom: var(--s-2);
  text-align: left;
  font-weight: 700;
  color: var(--ink-2);
}
.price-table th,
.price-table td {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.price-table td {
  padding-left: var(--s-4);
  text-align: right;
  white-space: nowrap;
}
.price-table td strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
}
@media (max-width: 479px) {
  .price-table td {
    white-space: normal;
  }
}
.price-note {
  margin: var(--s-4) 0 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  background: var(--blush);
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------- PDFs / flyers as pages ---------- */
.doc-view {
  max-width: 960px;
}
.doc-tools {
  margin: 0 0 var(--s-4);
}
.doc-pages {
  display: grid;
  gap: var(--s-4);
}
.doc-page {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 6px 24px rgb(0 0 0 / 7%);
}
.doc-page img {
  display: block;
  width: 100%;
  height: auto;
}
.doc-text {
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.doc-text summary {
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
}
.doc-text p {
  margin: var(--s-3) 0 0;
  color: var(--ink-2);
}
.doc-fallback {
  margin: var(--s-5) 0;
}
.newhome {
  display: grid;
  gap: var(--s-6);
}
.newhome-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  max-width: 720px;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.newhome-address > div {
  flex: 1;
  min-width: 180px;
}
.newhome-address strong,
.newhome-address span {
  display: block;
}
.newhome-address strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.newhome-flyer {
  max-width: 900px;
}

/* ---------- awards bar above the footer ---------- */
.trust-bar {
  background: var(--coral-darker);
  color: #fff;
}
.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2) var(--s-6);
  margin: 0 auto;
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.trust-bar li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-bar .icon {
  color: var(--on-dark-accent);
  fill: var(--on-dark-accent);
}
@media (max-width: 639px) {
  .trust-bar ul {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- phone menu: tiles you tap ---------- */
.nav-tiles {
  display: grid;
  gap: var(--s-5);
  padding-top: var(--s-2);
}
@media (max-width: 1023px) {
  .main-nav > .nav-desktop {
    display: none;
  }
}
@media (min-width: 1024px) {
  .nav-tiles {
    display: none;
  }
}
.program-tiles,
.app-tiles {
  margin: 0;
  padding: 0;
  list-style: none;
}
.program-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.main-nav .program-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  height: 100%;
  min-height: 112px;
  padding: var(--s-3);
  border-radius: var(--radius);
  background: var(--blush);
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}
.program-tile[aria-current='page'] {
  box-shadow: inset 0 0 0 2px var(--coral);
}
.program-tile .app-icon {
  background: var(--coral-dark);
  color: #fff;
}
.program-tile-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  line-height: 1.2;
}
.program-tile-text span {
  font-family: var(--font-body, inherit);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.app-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4) var(--s-2);
}
.main-nav .app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--coral-dark);
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
}
.app-tile[aria-current='page'] .app-icon {
  background: var(--coral-dark);
  color: #fff;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  min-height: 48px;
  margin-bottom: var(--s-2);
  padding: 0 var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctrl);
  background: var(--cream);
  color: var(--muted);
  font: inherit;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
}
.search-toggle {
  display: none;
}
@media (min-width: 1024px) {
  .nav-search {
    display: none;
  }
  .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: calc(-1 * var(--s-2));
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ink);
    cursor: pointer;
  }
  .search-toggle:hover {
    background: var(--blush);
    color: var(--coral-dark);
  }
}

/* ---------- search dialog ---------- */
.search-dlg {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  margin: 8vh auto auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgb(0 0 0 / 30%);
  overflow: hidden;
}
.search-dlg,
.search-results {
  overscroll-behavior: contain; /* scrolling the results never scrolls the page */
}
.search-dlg::backdrop {
  background: rgb(28 26 27 / 55%);
}
.search-box {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
.search-field {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.search-field input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 0;
  outline: none;
  background: none;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
.search-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.search-close:hover {
  background: var(--blush);
}
.search-results {
  list-style: none;
  margin: 0;
  padding: var(--s-2);
  overflow-y: auto;
}
.search-results a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
}
.search-results li[aria-selected='true'] a,
.search-results a:hover {
  background: var(--blush);
}
.sr-title {
  font-family: var(--font-head);
  font-weight: 700;
}
.sr-kind {
  flex: none;
  padding: 2px var(--s-2);
  border-radius: var(--r-tag);
  background: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
}
.search-hint {
  margin: 0;
  padding: var(--s-4) var(--s-5) var(--s-5);
  color: var(--ink-2);
}
.search-hint:empty {
  display: none;
}
.search-start {
  padding: var(--s-4) var(--s-5) 0;
}
.search-start[hidden] {
  display: none;
}
.search-label {
  margin: 0 0 var(--s-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-examples {
  /* Example chips keep their whole word and stretch so every row is filled edge to edge. */
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.search-examples button {
  flex: 1 1 auto;
  white-space: nowrap;
  padding: 0 var(--s-3) !important;
}
.search-examples button {
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctrl);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.search-examples button:hover {
  border-color: var(--coral);
  background: var(--blush);
}
.search-start:not([hidden]) + .search-results {
  padding-top: 0;
}
.sr-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sr-sub {
  font-size: 0.9rem;
  color: var(--ink-2);
}

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

/* =====================================================================
   Crimson Elite theme, site-wide.
   Caffery's takes on the athletic look of the Crimson Elite page: deeper crimson,
   heavy italic uppercase headlines, slanted labels, dark streaked banners and
   square-ish buttons. Body text stays plain for easy reading.
   ===================================================================== */

/* Athletic display type for page titles and section titles. */
h1,
.section-title,
.finder-day-title {
  font-style: italic;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.01em;
}
h1 {
  line-height: 1;
}
.section-title {
  line-height: 1.05;
}
.section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 10px;
  background: var(--coral);
  transform: skewX(-20deg);
}
.section-head .section-title::after {
  margin-bottom: 0;
}
/* Long headings inside page text stay normal case. */
.prose h2,
.prose h3 {
  font-style: normal;
  text-transform: none;
}

/* Small labels above titles: slanted crimson tags. */
.eyebrow,
.hero-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 0;
  background: var(--coral-dark);
  box-shadow: none;
  font-style: italic;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  transform: skewX(-10deg);
}
.hero-eyebrow::before {
  display: none;
}
.eyebrow a {
  color: #fff;
}

/* Dark crimson banners: homepage top, page headers, program pages. */
.hero,
.page-header,
.program-hero {
  background: var(--crimson-band);
  color: var(--on-dark);
}
.hero h1,
.page-header h1,
.program-hero h1 {
  color: #fff;
}
.hero .hero-sub,
.page-header .lead,
.program-hero .lead {
  color: var(--on-dark);
}
.program-hero .program-age {
  color: var(--on-dark-accent);
}
.page-header::after {
  filter: brightness(0) invert(1);
  opacity: 0.06;
}
.hero .btn-primary,
.page-header .btn-primary,
.program-hero .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--coral-darker);
  box-shadow: 0 10px 30px rgb(0 0 0 / 30%);
}
.hero .btn-primary:hover,
.page-header .btn-primary:hover,
.program-hero .btn-primary:hover {
  background: #f3e6e9;
  color: var(--coral-darker);
}
.hero .btn-outline,
.page-header .btn-outline {
  border-color: rgb(255 255 255 / 55%);
  color: #fff;
}

/* One card style everywhere: white, thin border, the same soft shadow, the same corners. */
.program-card,
.finder-card,
.doc-card,
.checklist,
.staff-card,
.day-card,
.news-card,
.upcoming,
.contact-card,
.faq,
.finder-filters,
.quick-finder,
.newhome-address,
.family-links a,
.sub-programs a,
.doc-text {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
/* Soft tinted panels and icon tiles share one look too. */
.landing-about,
.finder-note,
.main-nav .program-tile {
  border-radius: var(--radius);
  background: var(--blush);
}
.app-icon,
.doc-icon,
.quick-tile .icon {
  border-radius: var(--radius-sm);
  background: var(--blush);
  color: var(--coral-dark);
}

/* Buttons and chips: square-ish, bold, uppercase. */
.btn {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Search: result text takes the room, the label sits right; quick links get icon tiles. */
.search-results .sr-text {
  flex: 1;
}
.sr-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blush);
  color: var(--coral-dark);
}
@media (min-width: 640px) {
  .search-results.is-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px var(--s-2);
  }
}
.search-results.is-quick .sr-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-results.is-quick .sr-text {
  min-width: 0;
}
/* Phones: a full-screen search sheet (like the iPhone's own search), not a floating card. */
@media (max-width: 639px) {
  .search-dlg {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .search-box {
    height: 100%;
  }
  .search-results {
    flex: 1;
    padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom));
  }
  .search-field {
    padding-top: calc(var(--s-3) + env(safe-area-inset-top));
  }
  .search-start {
    padding-top: var(--s-4);
  }
  .search-field input {
    font-size: 1.05rem; /* 16px+ keeps iPhone from zooming in on focus */
  }
}

/* Program cards without a photo show the program's icon. */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-dark);
}

@media print {
  .site-header,
  .announce-bar,
  .site-footer,
  .next-steps,
  .slide-controls {
    display: none;
  }
}
.signup-box a[href^='tel:'],
.join-help a[href^='tel:'] {
  white-space: nowrap;
}
.section-tight > .signup-box:first-child {
  margin-top: 0;
}

/* ---------- "Kind of class" icon tiles (finder page + homepage picker) ---------- */
.type-tiles {
  display: grid;
  gap: 6px;
}
.type-kinds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.type-styles {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 6px;
}
.type-tile span {
  flex-direction: column;
  gap: 4px;
  min-height: 62px;
  padding: 8px 2px;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
}
.type-kinds .type-tile span {
  flex-direction: row;
  gap: 8px;
  min-height: 48px;
  font-size: 0.95rem;
}
.type-tile .icon {
  flex: none;
  color: var(--coral-dark);
}
.type-tile input:checked + span .icon {
  color: #fff;
}
.type-tile.is-off .icon {
  opacity: 0.4;
}
.quick-finder .qf-types {
  grid-column: 1 / -1;
}
/* Wide homepage picker: all the kinds of class in one even row. */
@media (min-width: 900px) {
  .quick-finder .type-tiles {
    grid-template-columns: 2fr 8fr;
  }
  .quick-finder .type-styles {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .quick-finder .type-kinds .type-tile span {
    flex-direction: column;
    gap: 4px;
    min-height: 62px;
    font-size: 0.78rem;
  }
}

/* The result count as a sentence: "5 Gymnastics ✕ classes for 9-year-olds ✕". */
.finder-count {
  line-height: 2;
}
.pick-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 1px;
  padding: 1px 6px 1px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: baseline;
  cursor: pointer;
}
.pick-x .icon {
  padding: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.pick-x:hover {
  background: var(--blush);
}
/* Desktop sidebar: same even 6-column grid as phones (ages fill two rows, days one). */
@media (min-width: 960px) {
  .finder-filters .chip-set {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .finder-filters .chip-set > :last-child:nth-child(6n + 5) {
    grid-column: span 2;
  }
  .finder-filters .chip-set > :last-child:nth-child(6n + 4) {
    grid-column: span 3;
  }
}

/* Level tiles: the name plus a few words on who it's for. */
.level-tiles {
  display: grid;
  gap: 6px;
}
.level-tile span {
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
}
.level-tile strong {
  font-size: 0.92rem;
  white-space: nowrap;
}
.level-tile small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.level-tile input:checked + span small {
  color: rgb(255 255 255 / 80%);
}
.finder-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.finder-meta .tag-full {
  background: var(--ink);
  color: #fff;
}

/* Search box: the same kinds of class as one tap each. */
.search-kinds {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: var(--s-3);
}
.search-kinds a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 6px 2px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctrl);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
}
.search-kinds a:hover,
.search-kinds a:focus-visible {
  border-color: var(--ink);
}
.search-kinds svg {
  color: var(--coral-dark);
}
@media (min-width: 640px) {
  .search-kinds {
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }
}

/* ---------- forms parents fill in (waiting list, party booking) ---------- */
.form-card {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.form-card fieldset {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-1);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
}
.form-step span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral-dark);
  color: #fff;
  font-size: 0.9rem;
}
.form-row {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-field {
  display: grid;
  gap: 6px;
  align-content: start; /* side-by-side fields line up even when one has a hint */
  min-width: 0;
}
select.form-input {
  appearance: none;
  padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.form-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}
.form-optional {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
}
.form-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 1rem; /* 16px+ so iPhones don't zoom in */
  color: var(--ink);
}
textarea.form-input {
  min-height: 88px;
  resize: vertical;
}
.form-input:focus {
  outline: 3px solid var(--coral);
  outline-offset: 1px;
  border-color: var(--ink);
}
.form-hint,
.form-small {
  font-size: 0.85rem;
  color: var(--muted);
}
.form-small {
  margin: 0;
  text-align: center;
}
.form-note {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  background: var(--blush);
}
.form-error {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border: 1px solid #e7a3b0;
  border-radius: var(--radius-sm);
  background: #fdecef;
  color: #8f0e2e;
  font-weight: 700;
}
.form-submit {
  width: 100%;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-done {
  justify-items: center;
  text-align: center;
}
.form-done-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--coral-dark);
}
.form-done-big {
  margin: 0;
  font-size: 1.15rem;
}
/* Party times: a month heading, then one row per date with its open times. */
.party-month-title {
  margin: var(--s-2) 0 var(--s-2);
  font-size: 1rem;
  color: var(--coral-dark);
}
.party-day {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.party-date {
  font-size: 0.95rem;
  white-space: nowrap;
}
.party-date strong {
  display: block;
  font-family: var(--font-head);
}
.party-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  gap: 6px;
}
.party-slot span {
  white-space: nowrap;
  font-size: 0.9rem;
  padding: 0 4px;
}
.party-day {
  grid-template-columns: 4.25rem minmax(0, 1fr);
}
.party-months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
}
.chip-btn {
  min-height: 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctrl);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.chip-btn[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.party-month[hidden] {
  display: none;
}
.party-cta {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-5) 0;
  padding: var(--s-5);
  border-radius: var(--radius);
  background: var(--blush);
}
.party-cta h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.party-cta p {
  margin: 0;
}
@media (min-width: 640px) {
  .party-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.party-faq {
  margin: var(--s-6) 0 var(--s-4);
}
.price-soon {
  color: var(--muted);
  font-style: italic;
}
.price-discount {
  margin: var(--s-3) 0 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  background: var(--blush);
}
.nowrap {
  white-space: nowrap;
}
input.form-input,
select.form-input {
  height: 50px;
}
.form-label,
.form-optional {
  line-height: 1.3;
}

/* ---------- phone menu, refined ----------
   Program tiles: icon beside the words (shorter, every tile the same height).
   Quick links: cards that fill the row, icon over label, Register filled in. */
.nav-tiles {
  gap: var(--s-4);
}
.program-tiles {
  gap: 8px;
}
.main-nav .program-tile {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
}
.program-tile .app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.program-tile-text {
  min-width: 0;
}
.program-tile-text strong {
  font-size: 1rem;
}
.program-tile-text span {
  display: block;
  margin-top: 2px;
  line-height: 1.25;
  font-size: 0.8rem;
}
.app-tiles {
  gap: 8px;
}
.main-nav .app-tile {
  justify-content: center;
  gap: 6px;
  height: 76px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.8rem;
  line-height: 1.15;
  white-space: nowrap;
}
.main-nav .app-tile .icon {
  color: var(--coral-dark);
}
.main-nav .app-tile:active {
  background: var(--blush);
}
.main-nav .app-tile.is-primary {
  border-color: var(--coral-dark);
  background: var(--coral-dark);
  color: #fff;
}
.main-nav .app-tile.is-primary .icon {
  color: #fff;
}
.main-nav .app-tile[aria-current='page'] {
  border-color: var(--coral-dark);
  box-shadow: inset 0 0 0 1px var(--coral-dark);
}
/* Very narrow phones: program words get the room. */
@media (max-width: 359px) {
  .main-nav .program-tile {
    gap: 8px;
    padding: 10px;
  }
  .program-tile .app-icon {
    width: 36px;
    height: 36px;
  }
}
/* Programs as full-width rows: nothing wraps, everything lines up. */
.program-tiles {
  grid-template-columns: 1fr;
}
.main-nav .program-tile {
  min-height: 64px;
  padding: 10px 14px 10px 10px;
}
.program-tile-text {
  flex: 1;
}
.program-tile-text span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.program-tile > .icon {
  flex: none;
  color: var(--coral-dark);
}
.main-nav .nav-where {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 0.88rem;
  text-decoration: none;
}
.nav-where .icon {
  color: var(--coral-dark);
}
@media (min-width: 640px) {
  .program-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
.main-nav .nav-where span {
  white-space: nowrap;
}

/* ---------- phone menu, compact: the whole menu fits on one screen on most phones ----------
   Every target stays at least 44px tall (Apple's minimum for a comfortable tap). */
.nav-tiles {
  gap: 10px;
  padding-top: 0;
}
.nav-search {
  min-height: 44px;
  margin-bottom: 10px;
}
.program-tiles,
.app-tiles {
  gap: 6px;
}
.main-nav .program-tile {
  min-height: 52px;
  gap: 10px;
  padding: 7px 12px 7px 8px;
}
.program-tile .app-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.program-tile .app-icon .icon {
  width: 22px;
  height: 22px;
}
.program-tile-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
}
.program-tile-text span {
  margin-top: 0;
}
.main-nav .app-tile {
  height: 62px;
  gap: 4px;
}
.main-nav .app-tile .icon {
  width: 22px;
  height: 22px;
}
.main-nav .nav-where {
  min-height: 40px;
}
/* Short screens (iPhone SE, small Androids, landscape): a little tighter still. */
@media (max-height: 700px) {
  .main-nav .program-tile {
    min-height: 46px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .program-tile .app-icon {
    width: 34px;
    height: 34px;
  }
  .main-nav .app-tile {
    height: 54px;
    gap: 2px;
  }
  .main-nav .app-tile .icon {
    width: 20px;
    height: 20px;
  }
}

/* ---------- phone menu: one rhythm ----------
   The same gap between every item and every section (--nav-gap); items grow on taller phones
   so the menu fills the screen without scrolling. */
.main-nav {
  --nav-gap: 8px;
  --nav-row: 48px;
  --nav-card: 60px;
}
.main-nav:focus {
  outline: none;
}
@media (min-height: 740px) {
  .main-nav {
    --nav-gap: 10px;
    --nav-row: 56px;
    --nav-card: 72px;
  }
}
@media (min-height: 840px) {
  .main-nav {
    --nav-gap: 12px;
    --nav-row: 60px;
    --nav-card: 78px;
  }
}
.nav-sheet-head {
  margin-bottom: var(--nav-gap);
}
.nav-search {
  margin-bottom: var(--nav-gap);
}
.nav-tiles {
  gap: var(--nav-gap);
}
.program-tiles,
.app-tiles {
  gap: var(--nav-gap);
}
.main-nav .program-tile,
.main-nav .program-tile[class] {
  min-height: var(--nav-row);
  padding-top: 0;
  padding-bottom: 0;
}
.main-nav .app-tile,
.main-nav .app-tile[class] {
  height: var(--nav-card);
}
.main-nav .app-tile[aria-current='page'] {
  box-shadow: none;
}
.main-nav .nav-where {
  min-height: 44px;
  margin-top: calc(var(--nav-gap) * -0.5);
}
/* Behind the open phone menu, the page itself is white too (no dark edges peeking out). */
html:has(body.nav-open),
body.nav-open {
  background: var(--white);
}
/* iPhone Safari (iOS 26) ignores theme-color and tints the screen edges from what is at the top of the page:
   with the menu open, nothing dark (the announcement bar) is left up there to show in the corners. */
@media (max-width: 1023px) {
  body.nav-open .announce-bar {
    visibility: hidden;
    background: var(--white);
  }
}

/* ---------- footer link groups ----------
   Phones: stacked full-width rows; tap one to open it. Wider screens: open columns. */
.footer-group > summary {
  list-style: none;
}
.footer-group > summary::-webkit-details-marker {
  display: none;
}
@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: var(--s-2);
  }
  .footer-group {
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }
  .footer-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    cursor: pointer;
  }
  .footer-group > summary .footer-h {
    margin: 0;
    font-size: 0.85rem;
  }
  .footer-group > summary .icon {
    color: #ff9ea5;
    transition: transform 0.2s;
  }
  .footer-group[open] > summary .icon {
    transform: rotate(180deg);
  }
  .footer-group .footer-links {
    padding-bottom: var(--s-3);
  }
  .footer-group .footer-links a {
    min-height: 46px;
    font-size: 1.02rem;
  }
}
@media (min-width: 900px) {
  .footer-group > summary {
    cursor: default;
  }
  .footer-group > summary .icon {
    display: none;
  }
}

/* A program without a photo yet: a designed brand tile (deep red, big white icon), not an empty box. */
.program-card .img-placeholder {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(115deg, transparent 0 34px, rgb(255 255 255 / 5%) 34px 36px),
    radial-gradient(120% 120% at 80% 0%, var(--coral) 0%, var(--coral-dark) 45%, var(--night) 100%);
  color: #fff;
}
.program-card .img-placeholder .icon {
  width: 64px;
  height: 64px;
  stroke-width: 1.6;
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / 30%));
}
@media (max-width: 559px) {
  .find .program-card .img-placeholder .icon {
    width: 34px;
    height: 34px;
  }
}

/* ---------- inner pages: slimmer banners, roomier, designed page text ---------- */
/* Banners: about a third shorter, so the content starts higher on the screen. */
.page-header {
  padding: var(--s-6) 0 var(--s-5);
}
.program-hero {
  padding: var(--s-5) 0;
}
.program-hero-img img {
  aspect-ratio: 16 / 9;
  max-height: 340px;
}
.program-hero .lead {
  margin-bottom: 0;
}
.program-hero .program-age,
.program-hero .program-age-lg {
  color: #ffdde2 !important; /* readable on the brightest red of the banner (4.5:1 or better) */
}
@media (min-width: 768px) {
  .page-header {
    padding: var(--s-7) 0 var(--s-6);
  }
}
@media (min-width: 900px) {
  .program-hero {
    padding: var(--s-6) 0;
  }
  .program-hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--s-7);
  }
}
@media (max-width: 899px) {
  .program-hero-img img {
    max-height: 240px;
  }
}

/* Page text sits on a white card: bigger type, clear headings, list items as tidy rows. */
.prose-panel {
  padding: var(--s-6) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 1.125rem;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .prose-panel {
    padding: var(--s-7) var(--s-8);
  }
}
.prose-panel h2,
.prose-panel h3 {
  position: relative;
  margin: var(--s-7) 0 var(--s-4);
  padding-bottom: var(--s-2);
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.55rem);
  line-height: 1.25;
}
.prose-panel h2::after,
.prose-panel h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
}
.prose-panel > :first-child {
  margin-top: 0;
}
.prose-panel p {
  margin: 0 0 var(--s-4);
}
.prose-panel ul {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}
.prose-panel ul li {
  position: relative;
  margin: 0;
  padding: var(--s-3) var(--s-4) var(--s-3) calc(var(--s-4) + 30px);
  border-radius: var(--radius-sm);
  background: var(--blush);
}
/* A red check in a circle in front of each item. */
.prose-panel ul li::before {
  content: '';
  position: absolute;
  left: var(--s-4);
  top: calc(var(--s-3) + 0.85em - 11px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.prose-panel ol {
  margin: 0 0 var(--s-5);
  padding-left: 1.4em;
}
.prose-panel ol li {
  margin-bottom: var(--s-2);
  padding-left: var(--s-1);
}
.prose-panel ol li::marker {
  color: var(--coral-dark);
  font-family: var(--font-head);
  font-weight: 800;
}
.prose-panel strong {
  color: var(--ink);
}
.prose-panel blockquote {
  margin: 0 0 var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 0;
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 1.15rem;
}
@media (max-width: 559px) {
  .prose-panel {
    padding: var(--s-5) var(--s-4);
    font-size: 1.0625rem;
  }
}

/* "Gymnastics classes this season": one tidy row per class. */
.season-list {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}
.season-row {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.season-row > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.season-row h3 {
  margin: 0;
  font-size: 1.08rem;
}
.season-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.season-times span {
  padding: 4px 10px;
  border-radius: var(--r-tag);
  background: var(--blush);
  font-size: 0.92rem;
  white-space: nowrap;
}
@media (min-width: 700px) {
  .season-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .season-times {
    justify-content: flex-end;
  }
}
.season-row .tag {
  padding: 2px 8px;
  border-radius: var(--r-tag);
  background: #f1eeee;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Homepage headline on phones: sized so the longest word ("MIDDLETOWN'S") always fits on one line,
   lines balanced, and words are never split in the middle. */
.hero-copy h1 {
  text-wrap: balance;
}
@media (max-width: 600px) {
  .hero-copy h1 {
    overflow-wrap: normal;
    font-size: min(1.85rem, calc(8vw - 2px));
    line-height: 1.02;
  }
  .hero-sub {
    font-size: 1.05rem;
  }
}

/* Season list rows: name, ages and class length, every time with its end, and a Register button. */
.season-row {
  grid-template-columns: minmax(0, 1fr);
}
.season-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.season-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.season-len {
  font-size: 0.88rem;
  color: var(--muted);
}
.season-times {
  justify-content: flex-start !important;
}
.season-times .is-full {
  background: var(--line);
  color: var(--muted);
}
.season-times em {
  font-style: normal;
  font-weight: 700;
}
.season-cta .btn {
  width: 100%;
}
@media (min-width: 700px) {
  .season-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .season-cta .btn {
    width: auto;
  }
}

/* Styles show after Dance or Gymnastics is picked. */
.type-tile[hidden],
.type-styles[hidden] {
  display: none;
}
.type-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Homepage picker on wide screens: Dance and Gymnastics as two wide buttons across the box (same height
   as the age and day buttons), the hint under them, and the styles in one even row once one is picked. */
@media (min-width: 900px) {
  .quick-finder .type-tiles {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .quick-finder .type-kinds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-finder .type-kinds .type-tile span,
  .quick-finder .type-kinds .type-tile span[class] {
    flex-direction: row;
    gap: 10px;
    min-height: 48px;
    font-size: 1rem;
  }
  .quick-finder .type-styles {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .quick-finder .type-hint {
    margin-top: -2px;
  }
}

/* Season rows, roomier and always the same shape: name, then ages · length, then the times. */
.season-list {
  gap: var(--s-3);
}
.season-row {
  gap: var(--s-4);
  padding: var(--s-5) var(--s-5);
}
.season-row > .season-main {
  display: grid;
  gap: 10px;
}
.season-row h3 {
  font-size: 1.12rem;
  line-height: 1.3;
}
.season-times {
  gap: 8px;
}
.season-times span {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
@media (min-width: 700px) {
  .season-row {
    gap: var(--s-6);
    padding: var(--s-5) var(--s-6);
  }
}

/* ---------- program pages: page text + "At a glance" card ----------
   Wide screens: text column (comfortable reading width) beside a card that stays in view.
   Phones: the card comes first, so the basics are on screen right under the banner. */
.program-layout {
  display: grid;
  gap: 0;
}
.program-main {
  min-width: 0;
}
.program-glance {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  margin-top: var(--s-6);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.program-glance h2 {
  margin: 0;
  font-size: 1.15rem;
}
.program-glance dl {
  display: grid;
  gap: 0;
  margin: 0;
}
.program-glance dl > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.program-glance dt {
  color: var(--muted);
  font-size: 0.92rem;
}
.program-glance dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  text-align: right;
}
.glance-link {
  justify-self: center;
  font-size: 0.95rem;
}
.glance-call {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
@media (max-width: 999px) {
  .program-layout.has-aside .program-glance {
    order: -1;
  }
}
@media (min-width: 1000px) {
  .program-layout.has-aside {
    grid-template-columns: minmax(0, 760px) 320px;
    justify-content: center;
    gap: var(--s-7);
  }
  .program-glance {
    position: sticky;
    top: calc(var(--header-h) + 80px);
    margin-top: var(--s-7);
  }
}
.program-layout:not(.has-aside) .program-main {
  max-width: 760px;
  margin-inline: auto;
  width: 100%;
}
.program-glance {
  align-self: start;
}
@media (min-width: 1000px) {
  .program-glance {
    top: calc(var(--header-h) + 100px);
  }
}
.type-all-label {
  font-weight: inherit;
}

/* Dance · Gymnastics · Both: three even buttons (icon over the word where space is tight). */
.type-kinds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.type-kinds .type-tile span,
.type-kinds .type-tile span[class] {
  flex-direction: column;
  gap: 4px;
  min-height: 62px;
  font-size: 0.85rem;
}
.type-both-icons {
  display: inline-flex;
  gap: 2px;
  font-weight: inherit;
}
.type-both-icons .icon {
  color: var(--coral-dark);
}
.type-tile input:checked + span .type-both-icons .icon {
  color: #fff;
}
@media (min-width: 900px) {
  .quick-finder .type-kinds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-finder .type-kinds .type-tile span,
  .quick-finder .type-kinds .type-tile span[class] {
    flex-direction: row;
    gap: 10px;
    min-height: 48px;
    font-size: 1rem;
  }
}

/* All · Dance · Gymnastics over the results: one segmented control, counts in each tab. */
.kind-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 var(--s-4);
  padding: 4px;
  border-radius: 999px;
  background: #efe9ea;
}
.kind-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.kind-tab:hover {
  background: rgb(255 255 255 / 60%);
}
.kind-tab[aria-pressed='true'] {
  background: var(--white);
  color: var(--coral-darker);
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
.kind-tab[aria-disabled='true'] {
  color: var(--muted);
  opacity: 0.55;
  cursor: not-allowed;
}
.kind-count {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgb(0 0 0 / 7%);
  font-size: 0.8rem;
  text-align: center;
}
.kind-tab[aria-pressed='true'] .kind-count {
  background: var(--coral-dark);
  color: #fff;
}
@media (min-width: 700px) {
  .kind-tabs {
    display: inline-grid;
    grid-template-columns: repeat(3, auto);
  }
  .kind-tab {
    padding: 0 18px;
  }
}
.legend-optional {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
}
/* Phones: tabs share the row by label length so "Gymnastics 12" always fits. */
@media (max-width: 699px) {
  .kind-tabs {
    display: flex;
  }
  .kind-tab {
    flex: 1 1 auto;
    gap: 6px;
    padding: 0 8px;
    font-size: 0.9rem;
  }
}
@media (max-width: 374px) {
  .kind-tabs {
    gap: 2px;
    padding: 3px;
  }
  .kind-tab {
    gap: 4px;
    padding: 0 5px;
    font-size: 0.8rem;
  }
  .kind-count {
    min-width: 0;
    padding: 1px 5px;
    font-size: 0.72rem;
  }
}

/* ---------- homepage: "Discover all that Caffery's has to offer" band under the banner ----------
   Left-aligned text and an even 3 x 2 grid of buttons (no orphan on its own row). Wide screens: side by side. */
.discover-band {
  padding: var(--s-6) 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.discover-inner {
  display: grid;
  gap: var(--s-5);
}
.discover-inner .eyebrow {
  margin: 0 0 var(--s-2);
}
.discover-inner .section-title {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.3rem);
}
.discover-text p {
  margin: 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.discover-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.discover-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 76px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}
.discover-links a .icon {
  width: 22px;
  height: 22px;
  color: var(--coral-dark);
}
.discover-links a:hover {
  border-color: var(--coral-dark);
}
@media (min-width: 900px) {
  .discover-band {
    padding: var(--s-7) 0;
  }
  .discover-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--s-7);
    align-items: center;
  }
  .discover-text p {
    font-size: 1.06rem;
  }
  .discover-links {
    gap: 12px;
  }
  .discover-links a {
    height: 92px;
    font-size: 0.95rem;
  }
}

/* ---------- menu panel: phones full screen, desktop slides out from the right ---------- */
.nav-backdrop {
  display: none;
}
/* Phones: the panel's contents sit straight in the full-screen menu. */
.nav-drawer {
  display: contents;
}
.menu-label {
  display: none;
}
/* Phones keep the menu to one screen (these pages are in the footer); the desktop panel lists them. */
.nav-more {
  display: none;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav .nav-more a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
@media (min-width: 1024px) {
  /* The bar: logo, the main programs, search, Register, Menu. */
  .menu-toggle {
    display: inline-flex;
    gap: 8px;
    width: auto;
    height: 44px;
    margin-right: 0;
    padding: 0 14px 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-ctrl, 10px);
  }
  .menu-toggle .icon {
    width: 22px;
    height: 22px;
  }
  .menu-label {
    display: inline;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
  }
  .nav-drawer {
    display: none;
  }
  .nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 75;
    width: 100%;
    border: 0;
    background: rgba(29, 26, 28, 0.45);
    cursor: pointer;
    animation: nav-fade 0.2s ease-out;
  }
  .nav-open .nav-drawer {
    --gutter: 24px;
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(440px, 100vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 var(--gutter) var(--s-6);
    background: var(--white);
    box-shadow: -16px 0 48px rgba(29, 26, 28, 0.2);
    animation: nav-slide 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nav-open .nav-drawer .nav-sheet-head,
  .nav-open .nav-drawer .nav-search {
    display: flex;
  }
  .nav-open .nav-drawer .nav-tiles {
    display: grid;
  }
  /* Roomy but even, whatever the window height. */
  .nav-drawer {
    --nav-gap: 10px;
    --nav-row: 54px;
    --nav-card: 70px;
  }
  .nav-drawer .program-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--nav-gap);
  }
  .nav-drawer .program-tile {
    min-height: var(--nav-row);
  }
  .nav-drawer .app-tile {
    height: var(--nav-card);
  }
  .nav-drawer .nav-more {
    display: flex;
    padding-top: var(--s-2);
    border-top: 1px solid var(--line);
  }
}
@keyframes nav-slide {
  from {
    transform: translateX(100%);
  }
}
@keyframes nav-fade {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-open .nav-drawer,
  .nav-open .nav-backdrop {
    animation: none;
  }
}

/* ---------- price tables: sentences wrap instead of running out of the card ---------- */
.price-table td.is-text {
  width: 62%;
  white-space: normal;
  text-align: right;
}

/* ---------- registration page ---------- */
.reg-layout {
  display: grid;
  gap: var(--s-5);
}
.reg-main {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-top: 5px solid var(--coral-dark);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.reg-main-top {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.reg-main-top h2 {
  margin: 6px 0 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.15;
}
.reg-main-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--coral-dark);
  color: #fff;
}
.reg-main-text p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.6;
}
.reg-main-actions {
  display: grid;
  gap: 10px;
}
.reg-main-actions .btn {
  justify-content: center;
}
.reg-main-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.reg-how {
  padding: var(--s-5);
  border-radius: var(--radius);
  background: var(--blush);
}
.reg-how h2 {
  margin: 0 0 var(--s-4);
  font-size: 1.2rem;
}
.reg-how ol {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.reg-how li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.reg-how li > div {
  display: grid;
  gap: 2px;
}
.reg-how li span:not(.reg-how-num) {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.5;
}
.reg-how-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--coral-dark);
  font-family: var(--font-head);
  font-weight: 800;
}
.reg-how-fee {
  margin: var(--s-4) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
}
.reg-more {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reg-more-card {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.reg-more-card:hover {
  border-color: var(--coral-dark);
}
.reg-more-card > .icon {
  flex: none;
  color: var(--muted);
}
.reg-more-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blush);
  color: var(--coral-dark);
}
.reg-more-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}
.reg-more-text strong {
  font-family: var(--font-head);
  font-size: 1rem;
}
.reg-more-text span {
  color: var(--muted);
  font-size: 0.9rem;
}
.reg-prices {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}
.reg-prices .price-card {
  margin: 0;
}
@media (min-width: 700px) {
  .reg-main-actions {
    display: flex;
    flex-wrap: wrap;
  }
  .reg-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .reg-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--s-6);
    align-items: start;
  }
  .reg-main {
    padding: var(--s-6);
  }
  .reg-more {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .reg-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop Menu button: an outline button the same size and lettering as Register beside it. */
@media (min-width: 1024px) {
  .menu-toggle {
    height: 44px;
    padding: 0 16px 0 12px;
    border: 2px solid var(--line-2);
    border-radius: var(--r-ctrl);
    background: var(--white);
  }
  .menu-toggle:hover {
    border-color: var(--ink);
    background: var(--white);
  }
  .menu-label {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

/* ---------- header, calmer ----------
   One bar on desktop (the phone/email row is in the Menu panel), a light announcement you can close,
   a slimmer bar once you scroll, and a clear marker on the section you're in. */
.announce-bar {
  background: var(--blush);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.announce-bar strong {
  color: var(--ink);
}
.announce-msg {
  color: var(--ink-2);
}
.announce-link,
.announce-link:hover {
  color: var(--coral-dark);
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
}
.announce-inner p {
  margin: 0;
  min-width: 0;
}
.announce-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: -6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.announce-close:hover {
  background: rgba(0, 0, 0, 0.06);
}
.announce-bar[hidden] {
  display: none;
}
.header-portal {
  display: none;
}
@media (min-width: 1024px) {
  .utility {
    display: none;
  }
  .header-portal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 4px;
    color: var(--ink-2);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .header-portal:hover {
    color: var(--coral-dark);
  }
  .header-portal .icon {
    color: var(--muted);
  }
  .header-inner,
  .brand img,
  .brand-name {
    transition: height 0.2s ease, width 0.2s ease, font-size 0.2s ease;
  }
  /* Everything that sits under the header (program tabs, sticky cards) follows it up. */
  html.is-scrolled {
    --header-h: 66px;
  }
  html.is-scrolled .brand img {
    width: 46px;
    height: 46px;
  }
  html.is-scrolled .brand-name {
    font-size: 1.25rem;
  }
  /* The section you're in: red text and a solid red underline. */
  .main-nav > ul > li > a[aria-current='page'] {
    color: var(--coral-dark);
  }
  .main-nav > ul > li > a[aria-current='page']::after {
    left: 9px;
    bottom: 2px;
    height: 3px;
    background: var(--coral-dark);
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-inner,
  .brand img,
  .brand-name {
    transition: none;
  }
}
@media (min-width: 1024px) {
  .program-tabs {
    top: calc(var(--header-h) + 1px);
  }
}

/* Header button when registration isn't open: "Classes" on phones, "Find a class" on wider screens. */
.hr-long {
  display: none;
}
@media (min-width: 640px) {
  .hr-long {
    display: inline;
  }
  .hr-short {
    display: none;
  }
}
@media (min-width: 1024px) {
  .main-nav > ul > li > a {
    padding-inline: 7px;
  }
}

/* Desktop bar fits from 1240px: Parent Portal is an icon (also in the Menu panel), tighter gaps,
   and on the narrowest laptops search and Portal live in the Menu panel only. */
@media (min-width: 1024px) {
  .header-inner {
    gap: 12px;
  }
  .header-portal {
    padding: 0 8px;
    border-radius: var(--r-ctrl);
  }
  .header-portal .icon {
    color: var(--ink-2);
  }
  .header-portal:hover {
    background: var(--blush);
  }
  .search-toggle {
    margin-left: 0;
  }
}
/* Narrower laptops: Parent Portal (and below 1360px, search) are in the Menu panel instead. */
@media (min-width: 1024px) and (max-width: 1439px) {
  .header-portal {
    display: none;
  }
}
@media (min-width: 1024px) and (max-width: 1359px) {
  .search-toggle {
    display: none;
  }
}
@media (min-width: 1024px) {
  /* A little wider than the page text (not full width) so the bar never crowds. */
  .site-header .wrap {
    max-width: calc(1320px + 2 * var(--gutter));
  }
}
@media (min-width: 1024px) {
  .header-inner {
    gap: 10px;
  }
  .main-nav > ul > li > a {
    padding-inline: 6px;
  }
}

.nav-about {
  border-top: 1px solid var(--line);
}
.nav-about > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  list-style: none;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-about > summary::-webkit-details-marker {
  display: none;
}
.nav-about[open] > summary .icon {
  transform: rotate(180deg);
}
.nav-about ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin: 0 0 var(--s-2);
  padding: 0;
  list-style: none;
}
.main-nav .nav-about a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ---------- Menu, desktop: a card under the Menu button (only what the bar doesn't show) ---------- */
.nav-mega {
  display: none;
}
@media (min-width: 1024px) {
  /* Search lives in the Menu card, so the bar doesn't need its own icon. */
  .search-toggle {
    display: none !important;
  }
  .header-inner {
    position: relative;
  }
  .nav-open .nav-drawer {
    display: none;
  }
  .nav-open .nav-backdrop {
    top: var(--menu-top, 0px);
    background: rgba(29, 26, 28, 0.6);
  }
  .nav-open .nav-mega {
    display: grid;
    gap: var(--s-4);
    position: absolute;
    top: calc(100% + 8px);
    right: var(--gutter);
    z-index: 80;
    width: 620px;
    max-height: calc(100vh - var(--menu-top, 0px) - 24px);
    overflow-y: auto;
    padding: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 24px 48px rgba(29, 26, 28, 0.2);
    animation: mega-drop 0.16s ease-out;
  }
  .nav-mega:focus {
    outline: none;
  }
  .mega-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-ctrl);
    background: var(--cream);
    color: var(--muted);
    font: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: text;
  }
  .mega-search:hover {
    border-color: var(--ink);
  }
  .mm-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
  }
  .mega-label {
    margin: 0 0 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mm-cols ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .main-nav .mm-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 4px 8px;
    margin: 0 -8px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
  }
  .main-nav .mm-link:hover,
  .main-nav .mm-link[aria-current='page'] {
    background: var(--blush);
  }
  .mm-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--blush);
    color: var(--coral-dark);
  }
  .mm-link:hover .mm-icon {
    background: var(--white);
  }
  .mm-text {
    display: grid;
    min-width: 0;
  }
  .mm-text strong {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .mm-text small {
    color: var(--muted);
    font-size: 0.8rem;
  }
  .mm-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    padding-top: var(--s-3);
    border-top: 1px solid var(--line);
  }
  .main-nav .mm-foot a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
  }
  .main-nav .mm-foot a:hover {
    color: var(--coral-dark);
  }
  .mm-foot .icon {
    color: var(--coral-dark);
  }
}
@media (min-width: 1024px) and (max-width: 1359px) {
  .header-portal {
    display: none !important;
  }
}
@media (min-width: 1360px) {
  .header-portal {
    display: inline-flex !important;
  }
}
@keyframes mega-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-open .nav-mega {
    animation: none;
  }
}

/* At a glance card: long button labels ("Call to ask about joining") wrap inside the card instead of
   stretching it past its edge. */
.program-glance > * {
  min-width: 0;
}
.program-glance .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding-block: 10px;
}
.program-glance dd {
  overflow-wrap: anywhere;
}

/* Register page on the smallest phones: the big buttons wrap instead of widening the card. */
.reg-layout > *,
.reg-main > * {
  min-width: 0;
}
.reg-main .btn {
  white-space: normal;
  line-height: 1.25;
  padding-block: 12px;
}
@media (max-width: 374px) {
  .reg-main {
    padding: var(--s-4);
  }
  .reg-main .btn-lg {
    padding-inline: var(--s-4);
  }
}

/* Program tabs on wider screens: centered under the header (auto margins keep it safe if they ever
   need to scroll sideways). */
@media (min-width: 900px) {
  .program-tabs li:first-child {
    margin-left: auto;
  }
  .program-tabs li:last-child {
    margin-right: auto;
  }
}

/* Phone menu: the logo link at the top is a full-size tap target too. */
.main-nav .nav-sheet-head .brand {
  min-height: 44px;
}

/* ---------- search inside the open menu: type and results appear right there ---------- */
.search-box.in-menu {
  max-height: none;
}
.search-box.in-menu .search-field {
  padding: 0 6px 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctrl);
  background: var(--cream);
}
.search-box.in-menu .search-field:focus-within {
  border-color: var(--ink);
  background: var(--white);
}
.search-box.in-menu .search-field input {
  min-height: 48px;
  font-size: 1rem;
}
.search-box.in-menu .search-close,
.search-box.in-menu .search-start,
.search-box.in-menu .search-results.is-quick {
  display: none;
}
.search-box.in-menu .search-results {
  padding: 6px 0 0;
  overflow: visible;
}
.search-box.in-menu .search-results a {
  padding: 8px 10px;
}
.search-box.in-menu .search-hint {
  padding: 12px 4px 0;
}
.main-nav .search-box.in-menu a {
  min-height: 48px;
}
.menu-search {
  margin-bottom: var(--nav-gap, 12px);
}
/* While typing, the results replace the rest of the menu. */
.main-nav.is-searching .nav-tiles,
.main-nav.is-searching .mm-cols,
.main-nav.is-searching .mm-foot {
  display: none;
}
@media (min-width: 1024px) {
  .nav-mega .menu-search {
    margin-bottom: 0;
  }
}

/* Sign-up box buttons wrap on the smallest phones instead of widening the page. */
.signup-actions .btn {
  white-space: normal;
  line-height: 1.25;
  padding-block: 12px;
}

/* ---------- Our New Home: text with the address card beside it on wide screens ---------- */
.newhome-main {
  display: grid;
  gap: var(--s-6);
  min-width: 0;
}
.newhome-call {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (min-width: 1000px) {
  .newhome {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--s-7);
    align-items: start;
    max-width: calc(1120px + 2 * var(--gutter));
  }
  .newhome-main {
    grid-column: 1;
    grid-row: 1;
  }
  .newhome-address {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    padding: var(--s-5);
  }
  .newhome-address .btn {
    justify-content: center;
  }
  .newhome-flyer {
    max-width: none;
  }
}
@media (min-width: 1024px) {
  .mm-col {
    display: grid;
    gap: var(--s-4);
    align-content: start;
  }
}
.newhome-address .app-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
}

/* Flyers in the banner: the whole picture, no cropping. */
.program-hero-img.is-tall {
  display: flex;
  justify-content: center;
}
.program-hero-img.is-tall img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  aspect-ratio: auto;
  object-fit: contain;
}
@media (max-width: 899px) {
  .program-hero-img.is-tall img {
    max-height: 460px;
  }
}

/* ---------- info pages: text centered with a side card (like the program pages) ---------- */
.simple-aside h2 {
  margin: 0;
}
.simple-aside .simple-img img {
  border-radius: var(--radius-sm);
}
.simple-aside .glance-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}
.simple-links {
  display: grid;
  margin: 0;
  padding: var(--s-2) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.simple-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.simple-links a:hover {
  color: var(--coral-dark);
}
.simple-links .icon {
  color: var(--coral-dark);
}
/* Phones: the text first, the card after it. */
@media (max-width: 999px) {
  .program-layout.has-aside .simple-aside {
    order: 0;
    margin-bottom: var(--s-6);
  }
}

/* Desktop bar: programs, Birthday Parties and Events, Parent Portal, Menu. The Register button is a phone
   thing; on desktop, Register is in every program dropdown and the Menu. */
@media (min-width: 1024px) {
  .header-register {
    display: none;
  }
  .header-portal {
    display: inline-flex !important;
  }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .header-portal {
    display: none !important;
  }
}

/* ---------- desktop: thin top row of quick links above the program bar ---------- */
@media (min-width: 1024px) {
  .utility {
    display: block !important;
    background: var(--cream);
  }
  .utility-inner {
    justify-content: space-between;
    height: 40px;
  }
  .utility-links {
    display: flex;
    align-items: center;
    gap: var(--s-5);
  }
  .utility a {
    font-weight: 600;
  }
  .utility a[aria-current='page'] {
    color: var(--coral-dark);
  }
  .utility a[aria-current='page'] .icon {
    color: var(--coral-dark);
  }
  /* Once you scroll, only the program bar stays. */
  html.is-scrolled .utility {
    display: none !important;
  }
}

/* ---------- desktop header, tighter: shorter rows, smaller logo, same readable text ---------- */
@media (min-width: 1024px) {
  :root {
    --header-h: 74px;
  }
  html.is-scrolled {
    --header-h: 62px;
  }
  .brand img {
    width: 54px;
    height: 54px;
  }
  .brand-name {
    font-size: 1.35rem;
  }
  .brand-sub {
    font-size: 0.66rem;
  }
  html.is-scrolled .brand img {
    width: 44px;
    height: 44px;
  }
  html.is-scrolled .brand-name {
    font-size: 1.2rem;
  }
  .utility-inner {
    height: 34px;
  }
  .utility {
    font-size: 0.84rem;
  }
  .main-nav > ul > li > a {
    font-size: 0.95rem;
  }
  .menu-toggle,
  .header-portal {
    height: 42px;
    min-height: 42px;
  }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .header-portal {
    display: none !important;
  }
}

/* ---------- header buttons: one smaller outlined style (Register in red) ---------- */
.header-register,
.header-register[class] {
  min-height: 40px;
  padding: 0 14px;
  border-width: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.header-register.is-register {
  border-color: var(--coral-dark);
  background: var(--white);
  color: var(--coral-dark);
}
.header-register.is-register:hover {
  background: var(--coral-dark);
  color: #fff;
}
@media (min-width: 1024px) {
  .header-register {
    display: inline-flex;
  }
  /* The bar already has Parent Portal on desktop. */
  .header-register.is-portal {
    display: none;
  }
  .header-portal,
  .menu-toggle {
    height: 40px;
    min-height: 40px;
    padding: 0 14px 0 12px;
    border: 2px solid var(--line-2);
    border-radius: var(--r-ctrl);
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    gap: 8px;
  }
  .header-portal:hover,
  .menu-toggle:hover {
    border-color: var(--ink);
    background: var(--white);
    color: var(--ink);
  }
  .header-portal .icon {
    color: var(--ink-2);
  }
  .menu-label {
    font-size: 0.82rem;
  }
  .menu-toggle .icon {
    width: 20px;
    height: 20px;
  }
  .header-inner {
    gap: 8px;
  }
}

/* Menu card: "Get in touch" first, three even buttons. */
@media (min-width: 1024px) {
  .mm-contact-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .main-nav .mm-contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--blush);
    color: var(--ink);
    text-decoration: none;
  }
  .main-nav .mm-contact-btn:hover {
    border-color: var(--coral-dark);
  }
  .mm-contact-btn .icon {
    flex: none;
    color: var(--coral-dark);
  }
  .mm-contact-btn > span {
    display: grid;
    min-width: 0;
  }
  .mm-contact-btn strong {
    font-family: var(--font-head);
    font-size: 0.92rem;
  }
  .mm-contact-btn small {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Header buttons, a size down and lighter: thinner outline, smaller letters. */
.header-register,
.header-register[class] {
  min-height: 36px;
  padding: 0 12px;
  border-width: 1.5px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}
@media (min-width: 1024px) {
  .header-portal,
  .menu-toggle {
    height: 36px;
    min-height: 36px;
    padding: 0 12px 0 10px;
    border-width: 1.5px;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    gap: 6px;
  }
  .menu-label {
    font-size: 0.76rem;
  }
  .header-portal .icon,
  .menu-toggle .icon {
    width: 17px;
    height: 17px;
  }
}

/* Contact page: the message form under the call / email / visit cards. */
.contact-form {
  margin-top: var(--s-2);
}
.contact-form-h {
  margin: 0 0 var(--s-2);
  font-size: 1.25rem;
}

/* ---------- Contact page: a row of three, then the form and the map half and half ---------- */
.contact-page {
  display: grid;
  gap: var(--s-5);
}
.contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.contact-row .contact-card {
  min-width: 0;
}
.contact-row .contact-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.contact-split {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}
.contact-split .contact-form {
  margin-top: 0;
}
.contact-side {
  display: grid;
  gap: var(--s-4);
}
.contact-side .map-embed {
  margin-top: 0;
}
.contact-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
}
.contact-extras .contact-social {
  margin: 0;
}
/* Phones: the three as small tiles (icon and word) so the form is right there. */
@media (max-width: 699px) {
  .contact-row .contact-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 84px;
    padding: 10px 6px;
    text-align: center;
  }
  .contact-row .contact-card span {
    font-size: 0;
  }
  .contact-row .contact-card strong {
    font-size: 0.92rem;
  }
  .contact-row .contact-card em {
    display: none;
  }
}
@media (min-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
  .contact-side .map-embed {
    aspect-ratio: auto;
    height: 460px;
  }
}

/* Contact: three cards the same height and layout; the map as tall as the form. */
.contact-row .contact-card span {
  display: grid;
  gap: 2px;
}
.contact-row .contact-card small {
  color: var(--muted);
  font-size: 0.86rem;
}
@media (min-width: 900px) {
  .contact-row .contact-card {
    align-items: flex-start;
  }
  .contact-split {
    align-items: stretch;
  }
  .contact-side {
    display: flex;
    flex-direction: column;
  }
  .contact-side .map-embed {
    flex: 1;
    height: auto;
    min-height: 420px;
  }
}
@media (max-width: 699px) {
  .contact-row .contact-card small {
    display: none;
  }
}

/* ---------- program pages: the class list as one refined table ---------- */
.season-table {
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.sl-row {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
}
.sl-row + .sl-row {
  border-top: 1px solid var(--line);
}
.sl-row h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}
.sl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.sl-meta .tag {
  margin: 0;
}
.sl-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.sl-times span {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--cream);
  font-size: 0.92rem;
  white-space: nowrap;
}
.sl-times span.is-full {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.35);
}
.sl-times em {
  font-style: normal;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.sl-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  font-size: 0.9rem;
}
.sl-status a {
  color: var(--coral-dark);
  font-weight: 700;
}
.sl-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.sl-open {
  background: #e3f4e8;
  color: #1d6b37;
}
.sl-full {
  background: #fde8ea;
  color: var(--coral-dark);
}
.sl-invite {
  background: var(--cream);
  color: var(--ink-2);
}
.sl-row.is-full h3 {
  color: var(--ink-2);
}
.season-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
@media (min-width: 760px) {
  .sl-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) 170px;
    align-items: center;
    gap: 16px;
  }
  .sl-status {
    justify-content: flex-end;
    text-align: right;
  }
}

/* Class finder: the same short status as the program pages (no big button on every class). */
.finder-cta.sl-status {
  margin: 0;
}
@media (min-width: 760px) {
  .finder-cta.sl-status {
    justify-content: flex-end;
  }
}

/* Contact: the thank-you card stays compact instead of stretching to the map's height. */
.contact-sent {
  display: grid;
  gap: var(--s-4);
  align-self: start;
}
.contact-sent-head {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}
.contact-sent-head p {
  margin: 4px 0 0;
  color: var(--ink-2);
}
.contact-sent-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e3f4e8;
  color: #1d6b37;
}
.contact-sent-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--cream);
  font-size: 0.95rem;
}
.contact-sent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Phone menu: Get in touch row at the top (three even buttons). */
.nav-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nav-gap, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav .nav-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 14px;
  background: var(--coral-dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.main-nav .nav-contact a[aria-current='page'] {
  background: var(--ink);
}
@media (min-width: 1024px) {
  .nav-contact {
    display: none;
  }
}
.main-nav .nav-contact a {
  min-height: 44px;
}

/* Class list, tighter: name on the left, times on the right, a status only when there is one. */
.sl-row {
  padding: 12px 18px;
}
.sl-meta {
  margin-top: 3px;
}
.sl-status:empty {
  display: none;
}
@media (min-width: 760px) {
  .sl-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px 16px;
  }
  .sl-times {
    justify-content: flex-end;
  }
  .sl-status {
    min-width: 0;
  }
}

/* Phone tabs: long labels wrap inside their button instead of widening the page. */
@media (max-width: 899px) {
  .program-tabs li {
    min-width: 0;
  }
  .program-tabs a {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}
@media (max-width: 899px) {
  .program-tabs ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .program-tabs ul a,
  .program-tabs.is-crimson ul a {
    white-space: normal;
  }
}

/* ---------- class finder results: one line per class on wider screens ---------- */
.finder-card .finder-cta:empty {
  display: none;
}
@media (min-width: 760px) {
  .finder-card {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 6px 16px;
    padding: 12px 16px;
  }
  .finder-card .finder-time {
    grid-column: auto;
  }
  .finder-card .finder-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
  }
  .finder-card .finder-meta {
    margin: 0;
  }
  .finder-card .finder-fits {
    flex-basis: 100%;
    margin: 0;
  }
  .finder-card .finder-name {
    font-size: 1rem;
  }
}

/* Phone menu polish: contact buttons have room for their labels; an odd last About link spans the row. */
.main-nav .nav-contact a {
  gap: 6px;
  padding: 0 4px;
  font-size: 0.92rem;
}
.nav-about li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
/* Three even tile columns at every phone width (1fr let "Parent Portal" widen its column). */
.app-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 374px) {
  .main-nav .app-tile span {
    font-size: 0.8rem;
  }
  /* Small phones: every program row puts its age line under the name, so they all match. */
  .main-nav .program-tile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

/* Schedule day buttons on phones: an even grid (All days + six days in two rows), nothing cut off at the edge. */
@media (max-width: 639px) {
  .day-chips {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    flex: 1 1 100%;
    width: 100%;
    overflow: visible;
    margin: 0;
    padding: 2px 0;
  }
  .day-chips .chip {
    justify-content: center;
    padding-inline: 4px;
    white-space: nowrap;
    text-align: center;
  }
}

/* ---------- Menus, parent-first ---------- */
/* Dance & Gymnastics dropdown: two labeled columns, what to enroll in and what to plan. */
@media (min-width: 1024px) {
  .has-sub:hover .sub.sub-groups,
  .has-sub:focus-within .sub.sub-groups,
  .has-sub.open .sub.sub-groups {
    display: grid;
  }
  .main-nav .sub.sub-groups {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 0 var(--s-5);
    width: 580px;
    padding: var(--s-4);
  }
  .sub-group li.sub-divider {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .sub-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .sub-group .mega-label {
    margin: 0 0 4px;
    padding: 0 var(--s-3);
  }
  .main-nav .sub-group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    white-space: nowrap;
  }
  .main-nav .sub-group small {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
  }
  /* Birthday Parties has no dropdown, so it lines up with the labels beside it. */
  .nav-desktop > .nav-plain {
    display: flex;
    align-items: center;
  }
}
/* Phone menu: seven core rows, a little slimmer so more fits on the first screen. */
.main-nav .nav-drawer .program-tiles {
  gap: 6px;
}
.main-nav .nav-drawer .program-tile {
  min-height: 52px;
  padding-block: 4px;
}
.main-nav .nav-drawer .program-tile .app-icon {
  width: 38px;
  height: 38px;
}
.main-nav .nav-drawer .app-tile {
  height: 68px;
}
/* Phones: three planning links instead of a wall of eight tabs; other programs close the page. */
.program-quick,
.program-also {
  display: none;
}
@media (max-width: 759px) {
  .program-tabs.is-long {
    display: none;
  }
  .program-quick {
    display: block;
    padding-block: var(--s-3);
    border-bottom: 1px solid var(--line);
  }
  .program-quick ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-block: 0;
    list-style: none;
  }
  .program-quick a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
  .program-also {
    display: block;
  }
  .program-also ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .program-also a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 var(--s-4);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
  }
}
/* iPad landscape: the same bar, tightened so all five offerings fit. */
@media (min-width: 1024px) and (max-width: 1099px) {
  .site-header .wrap {
    padding-inline: 16px;
  }
  .header-inner {
    gap: 8px;
  }
  .brand-text .brand-sub {
    font-size: 0.56rem;
  }
  .nav-desktop {
    gap: 0 !important;
  }
  .nav-desktop > li > a {
    padding-inline: 5px !important;
    font-size: 0.82rem;
  }
  .nav-desktop .sub-toggle {
    width: 18px;
  }
  .menu-toggle {
    padding-inline: 8px !important;
  }
}
@media (max-width: 374px) {
  .main-nav .nav-drawer .app-tile {
    padding-inline: 1px;
  }
  .main-nav .nav-drawer .app-tile span {
    font-size: 0.72rem;
  }
}

/* ---------- Desktop dropdowns: centered under their label ---------- */
@media (min-width: 1024px) {
  .main-nav .sub {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Menu button: solid while its card is open, so it's clear what's open and what closes it. */
@media (min-width: 1024px) {
  .nav-open .menu-toggle,
  .nav-open .menu-toggle:hover {
    border-color: var(--coral-dark);
    background: var(--coral-dark);
    color: #fff;
  }
}

/* Menu card: every section heading has the same line and the same space under it. */
@media (min-width: 1024px) {
  .nav-mega .mm-contact .mega-label {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav-mega .mm-cols .mega-label {
    margin-bottom: 12px;
  }
}

/* Desktop: Register lives in the top row, last and in red; the bar keeps the programs and Parent Portal. */
@media (min-width: 1024px) {
  .header-inner .header-register.is-register {
    display: none !important;
  }
  .utility a.utility-register,
  .utility a.utility-register .icon {
    color: var(--coral-dark);
  }
  .utility a.utility-register {
    font-weight: 700;
  }
}

/* Phone menu: Call, Directions and Contact, one tap each. */
.nav-contact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 1024px) {
  .mm-contact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Headlines: numbers with hyphens stay on one line. */
.nb {
  white-space: nowrap;
}

/* Phones: a comfortable finger-size tap area on small links, without moving or resizing what's drawn. */
@media (max-width: 899px) {
  .announce-link,
  .finder-cta a,
  .text-link,
  .check-link {
    padding-block: 10px;
    margin-block: -10px;
  }
  .finder-cta a {
    padding-inline: 8px;
    margin-inline: -8px;
  }
  .doc-text > summary {
    padding-block: 8px;
    margin-block: -8px;
  }
  .announce-close {
    position: relative;
  }
  .announce-close::after,
  .header-register::after {
    content: '';
    position: absolute;
    inset: -6px;
  }
  .header-register {
    position: relative;
  }
}


/* Section tabs (not Cheer, which has its own): a soft rose band so the bar isn't missed. */
.program-tabs:not(.is-crimson) {
  background: var(--blush-2);
  border-bottom: 0;
}
.program-tabs:not(.is-crimson) a {
  background: #fff;
  border: 1px solid rgb(122 15 31 / 18%);
  color: var(--ink);
}
.program-tabs:not(.is-crimson) a:hover {
  background: #fff;
  border-color: var(--coral-dark);
  color: var(--coral-dark);
}
.program-tabs:not(.is-crimson) a[aria-current='page'] {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: #fff;
}

/* Dance styles: one card per style (from the page text under "Explore our dance styles"). */
.style-cards {
  display: grid;
  gap: var(--s-3);
  margin: 0 0 var(--s-5);
}
.style-card {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.style-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
}
.prose-panel .style-card .style-head h3,
.prose-panel .style-card .style-head h4 {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}
.style-age {
  padding: 3px 10px;
  border-radius: var(--r-tag);
  background: var(--blush-2);
  color: var(--coral-darker);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.prose-panel .style-card p {
  margin: 0;
}
.prose-panel .style-card .style-tag {
  margin-top: var(--s-1);
  color: var(--coral-dark);
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}
.prose-panel .style-card .style-text {
  margin-top: var(--s-2);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}
.prose-panel .style-card .style-level {
  margin-top: var(--s-2);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Find a class in the banner: white so it stands out on the dark red. */
.program-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
}
.btn.btn-hero-sched {
  background: transparent;
  border-color: rgb(255 255 255 / 70%);
  color: #fff;
}
.btn.btn-hero-sched:hover {
  background: rgb(255 255 255 / 12%);
  border-color: #fff;
  color: #fff;
}
.btn.btn-hero-find {
  background: #fff;
  border-color: #fff;
  color: var(--coral-dark);
}
.btn.btn-hero-find:hover {
  background: var(--blush);
  border-color: var(--blush);
  color: var(--coral-darker);
}

/* Full width program pages (Dance, Gymnastics): one column, top to bottom. */
.program-layout.is-full .program-main {
  max-width: none;
}

/* Explore boxes: more room and darker text, easier to read. */
.style-cards {
  gap: var(--s-5);
}
.style-card {
  padding: var(--s-6) var(--s-7);
  background: var(--white);
}
.prose-panel .style-card .style-tag {
  margin-top: var(--s-2);
  font-size: 0.92rem;
}
.prose-panel .style-card .style-text {
  margin-top: var(--s-4);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose-panel .style-card .style-level {
  margin-top: var(--s-4);
  font-size: 0.95rem;
}
@media (max-width: 767px) {
  .style-card {
    padding: var(--s-5) var(--s-4);
  }
}

/* Programs page: every card the same height, Learn more lined up along the bottom. */
.program-grid-even > li {
  display: flex;
}
.program-grid-even .program-card {
  width: 100%;
}
.program-grid-even .program-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.program-grid-even .program-body .text-link {
  margin-top: auto;
}
.program-grid-even {
  grid-auto-rows: 1fr; /* every row the height of the tallest card */
}

/* Sign-up band: white main button so it stands out on the red. */
.signup-box .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--coral-dark);
}
.signup-box .btn-primary:hover {
  background: var(--blush);
  border-color: var(--blush);
  color: var(--coral-darker);
}

/* Accessibility pass: nothing under 12px; links on the red band stay readable. */
.brand-sub,
.brand-text .brand-sub {
  font-size: 0.75rem !important;
  letter-spacing: 0.02em;
}
.eyebrow,
.hero-eyebrow,
.event-pill,
.event-mon,
.event-to {
  font-size: 0.75rem;
}
.event-date {
  width: 64px;
}
.event-to {
  white-space: nowrap;
}
.signup-box a:not(.btn) {
  color: #ffdde2;
}

/* The sign-up band sits closer to the page content. */
.program-layout:has(.prose-panel) + .wrap.section-tight:has(> .signup-box) {
  padding-top: 0;
}

/* This photo has a thin white strip down its right edge in the file itself: zoom a hair so it's cut off. */
.program-hero-img:not(.is-tall) {
  overflow: hidden;
  border-radius: var(--radius);
}
img[src*='b639a40a645545e2'] {
  transform: scale(1.012);
}

/* Homepage age and day buttons are links straight to Find a class. */
a.chip-check {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.chip-check:focus-visible span {
  outline: 3px solid var(--coral-dark);
  outline-offset: 2px;
}

/* You & Me and Preschool, above the age buttons and in the Find a class levels. */
.quick-finder .chip-check span {
  min-height: 58px;
}
.chip-named span {
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}
.chip-named small {
  font-family: var(--font-body, inherit);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-2);
}
.quick-finder .age-set {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.quick-finder .age-set > .chip-named {
  grid-column: span 3;
}
.quick-finder .age-set > :nth-last-child(-n + 3) {
  grid-column: span 2;
}
@media (min-width: 1200px) {
  .quick-finder .age-set {
    grid-template-columns: repeat(2, minmax(92px, 1.9fr)) repeat(9, minmax(0, 1fr));
  }
  .quick-finder .age-set > .chip-named,
  .quick-finder .age-set > :nth-last-child(-n + 3) {
    grid-column: auto;
  }
}

/* Homepage finder: headings line up, and day names fit on the smallest phones. */
.quick-finder.is-live { align-items: start; }
@media (max-width: 360px) {
  .quick-finder .chip-check span { padding: 0 1px; font-size: 0.8rem; }
}

/* Headings moved up one level for reading order keep their look. */
.prose-panel h2.h3,
.prose-panel h3.h4 {
  font-family: var(--font-head);
}
.prose-panel .style-card .style-head h3::after {
  display: none;
}
.prose h3.h4 {
  font-size: 1rem;
}

/* Search in the top row on desktop, beside Events, Calendar and Contact. */
.utility-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.utility-search:hover {
  color: var(--coral-dark);
}

/* Phones, Find a class: "See 6 classes" stays in reach while picking filters. */
.finder-jump {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  min-height: 52px;
  border: 0;
  border-radius: var(--r-ctrl);
  background: var(--coral-dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 28%);
  cursor: pointer;
}
.finder-jump[hidden] {
  display: none;
}
.finder-count {
  scroll-margin-top: calc(var(--sticky-top, var(--header-h)) + 12px);
}

/* The top bar is always one line. The message shows only when it fits (site.js); a long title ends in "…". */
.announce-inner p {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
}
.announce-bar strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announce-msg {
  flex: 0 100 auto;
  min-width: 0;
  margin-left: 0.35em;
  overflow: hidden;
}
.announce-msg.is-cut {
  display: none;
}
.announce-link {
  flex: none;
}

/* The footer address opens directions. */
.footer-address {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 35%);
  text-underline-offset: 3px;
}
.map-apps {
  margin: 10px 0 0;
  font-size: 0.95rem;
}
@media (max-width: 599px) {
  /* Phones: icon above the word, so every label has room (even with larger iPhone text). */
  .main-nav .nav-contact a {
    flex-direction: column;
    gap: 4px;
    min-height: 60px;
    padding: 8px 6px;
    font-size: 0.86rem;
    line-height: 1.1;
  }
}

/* ---------- owner's list, Nov 2026 ---------- */
/* Home: what the class finder covers. */
.find-note {
  margin: var(--s-2) 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}
/* Home: five program cards (Crimson Cheer added): the odd one out spans the row on tablets. */
@media (min-width: 560px) and (max-width: 1023px) {
  .find .program-grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .find .program-grid > li:last-child:nth-child(odd) .program-img {
    aspect-ratio: 21 / 9;
  }
}
/* Events page: Book now band above the dates. */
.book-band {
  margin: 0 0 var(--s-6);
}
/* A flyer with a calendar date: a small picture that opens the flyer. */
.event-flyer {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  width: 96px;
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral-dark);
  text-align: center;
  text-decoration: none;
}
.event-flyer img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.event-flyer:hover span {
  text-decoration: underline;
}
@media (max-width: 479px) {
  .event {
    flex-wrap: wrap;
  }
  .event-flyer {
    flex-direction: row;
    width: auto;
    margin-left: 72px;
  }
  .event-flyer img {
    width: 56px;
    height: 70px;
  }
}
/* Desktop bar: a little more room between the programs now that Register left the header. */
@media (min-width: 1260px) {
  .main-nav > ul.nav-desktop {
    gap: var(--s-3);
  }
  .main-nav > ul.nav-desktop > li > a {
    padding-inline: 8px;
  }
}
@media (min-width: 1360px) {
  .main-nav > ul.nav-desktop {
    gap: var(--s-4);
  }
}

/* A wide banner (Birthday Parties) shows whole in the page header: no crop, its own shape. */
.program-hero-img.is-wide img {
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  object-fit: contain;
  box-shadow: 0 18px 40px rgb(0 0 0 / 35%);
}

/* ---------- Bigger studio name in the header (Lindsay, Nov 2026) ----------
   Last in the file so it wins over the earlier, tighter header rules. */
.site-header .brand-name {
  font-size: 1.6rem;
}
.site-header .brand-text .brand-sub {
  margin-top: 4px;
  font-size: 0.82rem !important;
}
html.is-scrolled .site-header .brand-name {
  font-size: 1.4rem;
}
@media (min-width: 1280px) {
  .site-header .brand-name {
    font-size: 1.6rem;
  }
  .site-header .brand-text .brand-sub {
    font-size: 0.76rem !important;
  }
}
@media (min-width: 1440px) {
  .site-header .brand-name {
    font-size: 1.75rem;
  }
  .site-header .brand-text .brand-sub {
    font-size: 0.86rem !important;
  }
}
/* Laptops and iPad landscape: the program bar needs the room. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header .brand-name {
    font-size: 1.45rem;
  }
  .site-header .brand-text .brand-sub {
    font-size: 0.75rem !important;
  }
}
/* Phones: room for the Parent Portal and menu buttons. */
@media (max-width: 479px) {
  .site-header .brand-name {
    font-size: 1.4rem;
  }
  .site-header .brand-text .brand-sub {
    font-size: 0.72rem !important;
  }
}
@media (max-width: 374px) {
  .site-header .brand-name {
    font-size: 1.1rem !important;
  }
}

/* Teachers: two across on wide screens, except Lindsay (the owner), who gets the full width. */
@media (min-width: 768px) {
  .staff-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .staff-list.staff-director {
    grid-template-columns: 1fr;
  }
}

/* A program's flyer: shown whole, at a readable size. */
.program-flyer .doc-pages {
  max-width: 680px;
}
.program-flyer .doc-page img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Full Studio Schedule: one day at a time, every room side by side ---------- */
.room-days .room-day {
  border-radius: var(--radius);
}
.room-grid {
  display: grid;
  gap: 0;
}
.room-col + .room-col {
  border-top: 1px solid var(--line);
}
.room-name {
  margin: 0;
  padding: var(--s-3) var(--s-5) 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-dark);
}
.room-free {
  margin: 0;
  padding: var(--s-2) var(--s-5) var(--s-4);
  color: var(--muted);
  font-size: 0.9rem;
}
/* Phones and tablets: rooms stacked, empty rooms left out. */
@media (max-width: 1023px) {
  .room-col.is-empty {
    display: none;
  }
}
/* Computers: the rooms as columns, the time above the class name. */
@media (min-width: 1024px) {
  .room-grid.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room-grid.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .room-grid.n-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .room-grid.n-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .room-col + .room-col {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .room-name {
    padding: var(--s-3) var(--s-4) var(--s-2);
    border-bottom: 1px solid var(--line);
  }
  .room-col .class-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: var(--s-3) var(--s-4);
  }
  .room-free {
    padding: var(--s-3) var(--s-4);
  }
}
/* Printing from the browser: every day, one per page, no tabs. */
@media print {
  .room-days .room-day[hidden] {
    display: block;
  }
  .room-day {
    break-after: page;
  }
  .sched-bar,
  .signup-box,
  .sched-back {
    display: none;
  }
  .room-grid.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room-grid.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .room-grid.n-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .room-grid.n-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .room-col.is-empty {
    display: block;
  }
}

/* Menu card: wide enough for three columns, and a long label ("Full Studio Schedule") wraps inside its
   column instead of running into the next one. */
@media (min-width: 1024px) {
  .nav-open .nav-mega {
    width: min(760px, calc(100vw - 2 * var(--gutter)));
  }
  .mm-cols > * {
    min-width: 0;
  }
  .mm-text strong {
    white-space: normal;
    text-wrap: balance;
    line-height: 1.2;
  }
}

/* A picture much wider or taller than its frame (a logo on a program card, a flyer) is shown whole, with a
   blurred copy of itself filling the rest of the frame (Img frame=…). */
:where(.program-img, .cc-frame, .staff-photo):has(> .img-backdrop) {
  position: relative;
  overflow: hidden;
  background: #1d1a1c;
}
.img-backdrop {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px) !important;
  height: calc(100% + 48px) !important;
  max-width: none;
  object-fit: cover;
  filter: blur(22px) brightness(0.8) saturate(1.1);
  transform: none !important;
}
img.is-fit {
  position: relative;
  object-fit: contain !important;
}
.cc-frame img.is-fit {
  position: absolute;
}

/* Homepage flyers: two side by side on a computer, one at a time on a phone. Swipe, scroll or use the
   arrows; each flyer snaps into place. A flyer shows whole, over a blurred copy of itself. */
.flyers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.flyers-nav {
  display: flex;
  gap: 8px;
}
.flyers-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--white, #fff);
  color: var(--ink);
  cursor: pointer;
}
.flyers-btn:hover:not(:disabled) {
  border-color: var(--coral-dark);
  color: var(--coral-dark);
}
.flyers-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.flyers-btn[data-flyers-prev] .icon {
  transform: scaleX(-1);
}
.flyers-track {
  --gap: var(--s-4);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: var(--gap);
  margin: 0;
  padding: 4px 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.flyers-track::-webkit-scrollbar {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .flyers-track {
    scroll-behavior: auto;
  }
}
@media (min-width: 768px) {
  .flyers-track {
    grid-auto-columns: calc((100% - var(--gap)) / 2);
  }
  .flyers-track.is-single {
    justify-content: center;
  }
}
.flyer {
  scroll-snap-align: start;
  min-width: 0;
}
.flyer-link {
  position: relative;
  display: block;
  aspect-ratio: 17 / 22;
  max-height: 80vh;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1d1a1c;
  box-shadow: 0 10px 28px rgb(0 0 0 / 14%);
}
.flyer-link:focus-visible {
  outline: 3px solid var(--coral-dark);
  outline-offset: 3px;
}
.flyer-bg {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(22px) brightness(0.8);
}
.flyer-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.flyer-link:hover .flyer-img {
  transform: scale(1.02);
}
.flyer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flyer-title {
  margin: 0;
  padding: 8px 14px;
  border-radius: var(--radius-sm, 10px);
  background: var(--coral-dark);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.flyer-link {
  width: 100%;
}
.flyer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flyer-actions .btn {
  flex: 1 1 140px;
  justify-content: center;
}
/* Keep a flyer and its buttons on one screen. */
.flyer-link {
  aspect-ratio: auto;
  height: min(68vh, 620px);
  max-height: none;
}
@media (max-width: 767px) {
  .flyer-link {
    height: auto;
    aspect-ratio: 17 / 22;
    max-height: 72vh;
  }
}
/* Hidden screen-reader text in a flyer's buttons stays inside the scroller (no sideways page scroll). */
.flyer {
  position: relative;
}

/* Party booking form: wide enough that the note and the questions sit on one line each. */
.party-wrap {
  max-width: 1080px;
}
.party-wrap .form-note,
.party-wrap .form-label {
  max-width: none;
}
/* Add 30 minutes: a checkbox with its label. */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: var(--s-3);
  cursor: pointer;
}
.form-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--coral-dark);
}

/* A button for something that isn't open yet ("Online booking coming soon"): looks like a button, isn't one. */
.btn-soon,
.btn-soon:hover {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  background: transparent;
}

/* Private lessons: what they are on the left, the request form on the right (stacked on phones). */
.private-grid {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
@media (min-width: 900px) {
  .private-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
}
.private-lead {
  margin: 0 0 var(--s-4);
  font-size: 1.15rem;
  line-height: 1.5;
}
.private-points {
  display: grid;
  gap: 14px;
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
}
.private-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.private-points .icon {
  flex: none;
  margin-top: 2px;
  color: var(--coral-dark);
}

/* Phone menu: the first row holds four quick links (icon over label so all four fit). */
.nav-contact.nav-quick {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.main-nav .nav-quick a {
  flex-direction: column;
  gap: 4px;
  min-height: 60px;
  padding: 6px 2px;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Full Studio Schedule: a short line under each room's name, and the room's open time in grey. */
.room-note {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.class-row.is-open {
  background: repeating-linear-gradient(135deg, var(--cream) 0 8px, var(--white) 8px 16px);
}
.class-row.is-open .class-name {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}
.class-row.is-open .class-time {
  color: var(--muted);
}
/* Phones: every room shows (its open time is useful too). */
@media (max-width: 1023px) {
  .room-col.is-empty {
    display: block;
  }
}
.room-line {
  display: block;
}

/* Full Studio Schedule on computers (and in print): a time grid. Every 5 minutes is one row, so blocks line up
   across the rooms and a block's height is its length. Phones keep the room-by-room list. */
.room-table {
  display: none;
}
@media (min-width: 1024px) {
  .room-days .room-grid {
    display: none;
  }
  .room-table {
    --rt-step: 20px;
    display: grid;
    grid-template-columns: 52px repeat(var(--rt-cols, 6), minmax(0, 1fr));
    column-gap: 0;
    position: relative;
    padding: 0 var(--s-3) var(--s-4) 0;
  }
  .room-table.n-3 { --rt-cols: 3; }
  .room-table.n-4 { --rt-cols: 4; }
  .room-table.n-5 { --rt-cols: 5; }
  .room-table.n-6 { --rt-cols: 6; }
  .rt-head {
    grid-row: 1;
    padding: var(--s-3) var(--s-3) var(--s-2);
    margin-bottom: var(--s-2);
    border-bottom: 2px solid var(--coral-dark);
    font-family: var(--font-display, inherit);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--coral-dark);
  }
  .rt-hour {
    grid-column: 1;
    align-self: start;
    transform: translateY(-50%);
    padding-right: 8px;
    text-align: right;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
  }
  .rt-line {
    grid-column: 2 / -1;
    align-self: start;
    border-top: 1px dashed var(--line-2);
    pointer-events: none;
  }
  .rt-block {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 2px 3px;
    padding: 6px 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-left: 3px solid var(--coral-dark);
    border-radius: 8px;
    background: var(--white);
    line-height: 1.2;
  }
  .rt-block .class-time {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--coral-dark);
  }
  .rt-block .class-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
  }
  .rt-block .class-meta,
  .rt-block .class-note {
    font-size: 0.74rem;
    color: var(--muted);
  }
  .rt-block.is-short .class-note {
    display: none;
  }
  .rt-block.is-open {
    z-index: 0;
    border: 1px dashed var(--line-2);
    background: repeating-linear-gradient(135deg, var(--cream) 0 8px, var(--white) 8px 16px);
  }
  .rt-block.is-open .class-time {
    color: var(--muted);
  }
  .rt-block.is-open .class-name {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
}
@media print {
  .room-days .room-grid {
    display: none;
  }
  .room-table {
    --rt-step: 14px;
    display: grid;
    grid-template-columns: 40px repeat(6, minmax(0, 1fr));
  }
}
.signup-box .signup-desc p {
  margin: 0 0 4px;
}

/* Designer credit: the same quiet grey as the copyright; last in the footer, at the right on computers. */
.footer-credit {
  margin: 0;
  font-size: 0.82rem;
  color: rgb(255 255 255 / 45%);
}
.footer-credit a {
  color: rgb(255 255 255 / 62%);
  text-decoration: none;
}
.footer-credit a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (min-width: 1024px) {
  .footer-credit {
    order: 4;
    grid-column: -2 / -1;
    justify-self: end;
  }
}
