/* ================================================
   Beyond Young Academy — 2026 Design System
   Community art-and-academics academy · Millburn, NJ
   ================================================ */

:root {
  /* Brand greens — extracted from awning, tablecloth, tinsel */
  --awning:       #1f5b3a;  /* primary green — buttons, headlines, accents */
  --awning-dark:  #14401f;  /* deep green — footer, hover, headlines on light */
  --tablecloth:   #2d7a4a;  /* mid green — gradients, secondary surfaces */
  --tinsel:       #4ea868;  /* bright green — small accents, highlights */

  /* Warm accents */
  --chair-yellow: #f4c842;  /* eyebrow rules, CTA accents, motto */
  --balloon-red:  #e74848;  /* alerts, special callouts (sparingly) */
  --plaza-brick:  #a85a3a;  /* tertiary warm — illustrations, photo treatments */
  --tan:          #c8a675;  /* muted warm neutral */

  /* Ivory / stone / ink neutrals (paper-based) */
  --ivory-50:   #fbf8f1;    /* page background */
  --ivory-100:  #f4efe3;    /* secondary surfaces, inset rows */
  --ivory-200:  #ece5d2;
  --stone-300:  #d9d2be;    /* borders, dividers */
  --stone-400:  #98917f;
  --stone-600:  #7a7363;    /* secondary text */
  --ink-800:    #2a2a24;    /* body text */
  --ink-900:    #15140f;

  /* Type families */
  --font-display: 'Playfair Display', 'Source Serif 4', Georgia, serif;
  --font-serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius — restrained, slightly architectural */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  /* Shadows — warm-cast, subtle */
  --shadow-sm: 0 1px 2px rgba(20, 64, 31, 0.06);
  --shadow-md: 0 2px 6px rgba(20, 64, 31, 0.08), 0 1px 2px rgba(20, 64, 31, 0.04);
  --shadow-lg: 0 12px 32px rgba(20, 64, 31, 0.15);

  --maxw: 1180px;
  --gutter: 48px;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory-50);
  color: var(--ink-800);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--awning-dark);
  margin: 0 0 0.4em;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--awning); }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.65rem; line-height: 1.1; }
h4 { font-size: 1.2rem; line-height: 1.2; }

p { margin: 0 0 1em; color: var(--ink-800); }

a { color: var(--awning); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--awning-dark); }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Eyebrow with horizontal yellow rules ============ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--awning);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow.with-rules::before,
.eyebrow.with-rules::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--chair-yellow);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--awning);
  color: #fff;
}
.btn-primary:hover {
  background: var(--awning-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--awning-dark);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--ink-900);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--awning-dark);
  border-color: var(--awning-dark);
}
.btn-ghost:hover {
  background: var(--awning-dark);
  color: #fff;
}
.btn-arrow::after { content: "→"; transition: transform 0.18s; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============ Top bar ============ */
.topbar {
  background: var(--awning);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 12px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a {
  color: var(--chair-yellow);
  text-decoration: none;
}
.topbar a:hover { color: #fff; }

/* ============ Nav ============ */
.nav {
  background: var(--ivory-50);
  border-bottom: 2px solid var(--awning);
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--awning-dark);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.nav-brand-name small {
  display: block;
  font-style: italic;
  font-size: 11px;
  color: var(--stone-600);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-800);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--awning); }
.nav-links .nav-cta {
  background: var(--awning);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s;
}
.nav-links .nav-cta:hover { background: var(--awning-dark); color: #fff !important; }

/* Prevent multi-word nav items ("Summer Camp", "Parent Portal") from
   wrapping to two lines when the nav gets tight. Reduce link padding +
   gap a touch on mid-width viewports so everything still fits one row. */
.nav-links a { white-space: nowrap; }
.nav-links .nav-cta { line-height: 1.1; }

/* Borderless cart icon — sits next to the avatar/Parent-Portal button.
   Count badge only shows when the cart has items (driven by data-empty
   on the parent link, which the page JS toggles). */
.nav-links .nav-cta--icon {
  background: transparent !important;
  color: var(--ink-800) !important;
  padding: 6px 8px;
  letter-spacing: 0;
  text-transform: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.nav-links .nav-cta--icon:hover {
  background: transparent !important;
  color: var(--awning) !important;
}
.nav-links .nav-cta--icon svg { display: block; }
.nav-links .nav-cta--icon .cart-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--awning);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 16px;
  text-align: center;
}
.nav-links .nav-cta--icon[data-empty="true"] .cart-count { display: none; }

/* Auth-aware nav slot — the static "Parent Portal" link renders into
   [data-auth-cta], and nav-auth.js may swap it for an avatar+dropdown
   when a Supabase session resolves. We intentionally do NOT hide the
   slot while JS runs — the brief 100–300 ms flash of "Parent Portal"
   → avatar is less jarring than the 2-second hide-then-reveal we tried
   earlier (which surfaced as a persistent banner-flash on every nav). */
[data-auth-cta] {
  /* Reserve enough horizontal room so the avatar swap doesn't reflow
     the rest of the nav. ~120px covers either "Parent Portal" text or
     a 36px avatar centered. */
  min-width: 120px;
  text-align: center;
  display: inline-block;
}

/* "NEW" pill that sits next to a nav link */
.nav-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  background: var(--chair-yellow);
  color: var(--awning-dark);
  border-radius: 100px;
  vertical-align: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--awning-dark);
}

/* ============ Hero (home — full-bleed photo with overlaid text) ============ */
.hero-photo {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter);
  color: #fff;
  border-bottom: 4px solid var(--awning);
  background: var(--awning-dark);
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 30, 15, 0.45) 0%, rgba(10, 30, 15, 0.70) 100%);
}
.hero-photo-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-photo .eyebrow {
  color: var(--chair-yellow);
}
.hero-photo .eyebrow.with-rules::before,
.hero-photo .eyebrow.with-rules::after {
  background: var(--chair-yellow);
}
.hero-photo h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 22px auto 18px;
  max-width: 16ch;
  text-shadow: 0 2px 16px rgba(20, 64, 31, 0.45);
}
.hero-photo h1 em {
  font-style: italic;
  color: var(--chair-yellow);
}
.hero-prefix {
  display: block;
  margin-bottom: 4px;
}
.hero-flip {
  position: relative;
  display: inline-flex;
  justify-content: center;
  overflow: hidden;
  vertical-align: baseline;
  color: var(--chair-yellow);
  font-style: italic;
  min-width: 7ch;
  line-height: 1.15;
}
.hero-flip::before {
  content: "\00a0";
  visibility: hidden;
}
.hero-flip-word {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(150%);
  transition:
    transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 450ms ease;
  will-change: transform, opacity;
}
.hero-flip-word.is-active {
  opacity: 1;
  transform: translateY(0);
}
.hero-flip-word.is-past {
  opacity: 0;
  transform: translateY(-150%);
}
.hero-photo p.lead {
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto;
  text-shadow: 0 1px 10px rgba(20, 64, 31, 0.5);
}

/* ============ Hero (inner pages — ivory text + photo strip below) ============ */
.hero {
  padding: 72px var(--gutter) 56px;
  background: var(--ivory-50);
  text-align: center;
}
.hero h1 {
  font-weight: 500;
  margin: 20px auto 16px;
  max-width: 18ch;
}
.hero p.lead {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-800);
  max-width: 56ch;
  margin: 0 auto;
}
.hero-band {
  height: 480px;
  background: url('photo-art-class.jpg') center/cover no-repeat;
  border-top: 1px solid var(--stone-300);
  border-bottom: 4px solid var(--awning);
  position: relative;
}
.hero-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 64, 31, 0.25));
  pointer-events: none;
}

/* ============ Announcement banner (e.g. school bus, open house) ============ */
.announce {
  background: var(--awning-dark);
  color: #fff;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  border-bottom: 4px solid var(--chair-yellow);
}
.announce-icon {
  font-size: 32px;
  line-height: 1;
}
.announce-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.announce-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chair-yellow);
}
.announce-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}
.announce-title em { font-style: italic; color: var(--chair-yellow); }
.announce-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chair-yellow);
  color: var(--awning-dark);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  white-space: nowrap;
}
.announce-cta:hover {
  background: #fff;
  color: var(--awning-dark);
  transform: translateY(-1px);
}

/* ============ Pathways (home — Tryout / Fall / Summer) ============ */
.pathways {
  padding: 64px var(--gutter) 80px;
  background: var(--ivory-50);
}
.path-header {
  text-align: center;
  margin-bottom: 48px;
}
.path-header h2 {
  margin-top: 12px;
  letter-spacing: -0.012em;
}

.path {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stone-300);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.path:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.path-banner {
  padding: 32px 28px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.path-banner::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.15;
}
.path-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
  position: relative;
}
.path-banner h3 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
}
.path-banner h3 em { font-style: italic; }
.path-banner .when {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  opacity: 0.9;
  position: relative;
}

.path-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.path-desc {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone-600);
  margin: 0 0 18px;
}
.path-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--awning);
  color: #fff;
  text-align: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: auto;
  transition: background 0.18s;
}
.path-action:hover { background: var(--awning-dark); color: #fff; }

/* Tryout (feature row) */
.path-feature {
  max-width: var(--maxw);
  margin: 0 auto 24px;
  flex-direction: row;
}
.path-feature .path-banner {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  background:
    linear-gradient(to right, rgba(20, 64, 31, 0.85) 0%, rgba(20, 64, 31, 0.55) 100%),
    url('photo-tryout.jpg') center/cover no-repeat,
    var(--awning-dark);
}
.path-feature .path-banner h3 { font-size: 40px; }
.path-feature .path-body {
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 28px 36px;
}
.path-feature .path-desc {
  margin: 0;
  flex: 1;
  font-size: 16px;
  color: var(--ink-800);
}
.path-feature .path-action {
  margin: 0;
  white-space: nowrap;
  padding: 16px 28px;
  flex: 0 0 auto;
  align-self: center;
}

/* Fall + Summer grid */
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: start;
}
.path-fall .path-banner {
  background:
    linear-gradient(to right, rgba(20, 64, 31, 0.78) 0%, rgba(31, 91, 58, 0.55) 100%),
    url('photo-fall-classes.jpg') center/cover no-repeat,
    var(--awning-dark);
}
.path-summer .path-banner {
  background:
    linear-gradient(to right, rgba(244, 200, 66, 0.85) 0%, rgba(244, 200, 66, 0.55) 100%),
    url('photo-summer-camp.jpg') top center/cover no-repeat,
    var(--chair-yellow);
  color: var(--awning-dark);
}
.path-summer .path-banner h3 { color: var(--awning-dark); }
.path-summer .path-action { background: var(--awning-dark); }
.path-summer .path-action:hover { background: var(--ink-900); color: #fff; }

/* Italic emphasis on banner headlines pops as warm gold against green washes */
.path-banner em { color: var(--chair-yellow); font-style: italic; }
/* Summer (yellow wash) keeps em in awning-dark for contrast */
.path-summer .path-banner em { color: var(--awning-dark); }

/* Class row list (used inside Fall + Summer) */
.class-list {
  display: grid;
  /* Constrain the implicit column to the container width. Without this the
     auto-sized grid track grows to the widest row's max-content (the nowrap
     grade label + arrow), so each .class-row overflowed its parent .path
     (which has overflow:hidden) and the → arrow got clipped on narrow phones. */
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}
.class-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;                 /* guarantees a gap between label and arrow */
  padding: 10px 14px;        /* a touch more right room so the arrow never kisses the edge */
  box-sizing: border-box;
  border-radius: var(--radius-md);
  background: var(--ivory-100);
  color: var(--ink-800);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.class-row:hover {
  background: var(--ivory-50);
  border-color: var(--awning);
  color: var(--awning-dark);
}
.class-row .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  /* If the label is wider than the row (narrow phones), truncate it rather
     than letting it shove the → arrow past the row edge — the parent .path
     has overflow:hidden, which was clipping the pushed-out arrow. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.class-row .arrow {
  font-size: 14px;
  color: var(--awning);
  font-weight: 600;
  flex: 0 0 auto;            /* arrow keeps its full width, never squeezed/clipped */
}
.badge-new {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--awning);
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
  top: -1px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--awning-dark);
  color: #fff;
  padding: 48px var(--gutter);
  text-align: center;
}
.footer-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--chair-yellow);
  margin-bottom: 8px;
}
.footer-addr {
  font-family: var(--font-serif);
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 4px;
}
.footer-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 16px;
}
.footer-meta a { color: var(--chair-yellow); }
.footer-meta a:hover { color: #fff; }

/* ============ Inner page hero (about/programs/enrollment/contact) ============ */
.page-hero {
  padding: 64px var(--gutter) 40px;
  background: var(--ivory-50);
  text-align: center;
}
.page-hero .breadcrumb {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: var(--stone-600); }
.page-hero .breadcrumb a:hover { color: var(--awning); }
.page-hero h1 {
  margin: 0 auto 16px;
  max-width: 22ch;
}
.page-hero p.lead {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-800);
  max-width: 60ch;
  margin: 0 auto;
}
/* Photo hero variant — used on About page */
.page-hero--photo {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter);
  color: #fff;
  border-bottom: 4px solid var(--awning);
  background:
    linear-gradient(180deg, rgba(10, 30, 15, 0.40) 0%, rgba(10, 30, 15, 0.65) 100%),
    url('photo-storefront.jpg') center / cover no-repeat,
    var(--awning-dark);
}
.page-hero--photo .inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero--photo .eyebrow { color: var(--chair-yellow); }
.page-hero--photo .eyebrow.with-rules::before,
.page-hero--photo .eyebrow.with-rules::after { background: var(--chair-yellow); }
.page-hero--photo h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 22px auto 18px;
  max-width: 16ch;
  text-shadow: 0 2px 16px rgba(20, 64, 31, 0.45);
}
.page-hero--photo h1 em { font-style: italic; color: var(--chair-yellow); }
.page-hero--photo p.lead {
  color: rgba(255,255,255,0.96);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto;
  text-shadow: 0 1px 10px rgba(20, 64, 31, 0.5);
}

.page-band {
  height: 200px;
  background: var(--awning) center/cover no-repeat;
  border-top: 1px solid var(--stone-300);
  border-bottom: 4px solid var(--awning);
  position: relative;
}
.page-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 64, 31, 0.30));
  pointer-events: none;
}

/* ============ Generic content section ============ */
.section {
  padding: 72px var(--gutter);
}
.section--inset {
  background: var(--ivory-100);
  border-top: 1px solid var(--stone-300);
  border-bottom: 1px solid var(--stone-300);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 { margin-top: 12px; }
.section-head p {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--stone-600);
}

/* ============ About — story / values ============ */
.story {
  max-width: 720px;
  margin: 0 auto;
}
.story p {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-800);
  margin-bottom: 1.2em;
}
.story p.lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--awning-dark);
  font-style: italic;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.value-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
}
.value-card h3 {
  font-size: 1.25rem;
  color: var(--awning-dark);
  margin-bottom: 8px;
}
.value-card p {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone-600);
  margin: 0;
}

/* ============ Programs — photo wall + studio cards ============ */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.photo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ivory-100);
  cursor: zoom-in;
  display: block;
  text-decoration: none;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s, filter 0.2s;
}
.photo-tile:hover img {
  transform: scale(1.04);
  filter: brightness(0.92);
}
.photo-tile .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(20, 64, 31, 0.88));
  color: var(--ivory-100);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  padding: 28px 14px 10px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.photo-tile:hover .caption,
.photo-tile:focus-visible .caption { opacity: 1; }
.photo-tile:focus-visible {
  outline: 2px solid var(--awning);
  outline-offset: 2px;
}

.gallery-section { margin-bottom: 56px; }
.gallery-section:last-child { margin-bottom: 0; }
.gallery-section-head {
  text-align: center;
  margin-bottom: 24px;
}
.gallery-section-head h3 {
  font-size: 1.6rem;
  color: var(--awning-dark);
  margin: 6px 0 4px;
}
.gallery-section-head h3 em { font-style: italic; color: var(--awning); }
.gallery-section-head .meta {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--stone-600);
  font-size: 14px;
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 64, 31, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px 80px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--chair-yellow);
  font-size: 14px;
  background: rgba(20, 64, 31, 0.85);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  max-width: 80%;
  text-align: center;
}
.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
  font-family: var(--font-sans);
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
@media (max-width: 540px) {
  .lightbox { padding: 16px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.studio-card {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.studio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--awning);
}
.studio-card .pill {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ivory-100);
  color: var(--awning);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.studio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--awning-dark);
}
.studio-card p {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-600);
  flex-grow: 1;
  margin-bottom: 16px;
}
.studio-card .ages {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--awning);
  font-weight: 600;
}

/* Programs filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid var(--stone-300);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-800);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover {
  border-color: var(--awning);
  color: var(--awning);
}
.filter-btn.active {
  background: var(--awning);
  color: #fff;
  border-color: var(--awning);
}

/* ============ Programs — values with photos ============ */
.values-photo-section { padding: 80px var(--gutter); background: var(--ivory-50, #faf9f6); }
.values-photo-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.values-photo-left { padding-top: 8px; }
.values-photo-left h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-top: 12px; }
.values-photo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-photo-card {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.value-photo-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.value-photo-body { padding: 20px 22px 24px; }
.value-photo-body h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--awning-dark);
  margin-bottom: 8px;
}
.value-photo-body p {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-600);
  margin: 0;
}

/* ============ Programs — classes sidebar layout ============ */
.classes-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.classes-sidebar { position: sticky; top: 100px; }
.classes-sidebar h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin-bottom: 28px;
  line-height: 1.25;
}
.filter-bar--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 0;
}
.filter-bar--stacked .filter-btn {
  text-align: left;
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

/* Studio cards with photos */
.studio-grid--photo {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
}
.studio-card--photo {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-direction: column;
}
.studio-card-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.studio-card-img .pill {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  background: rgba(255,255,255,0.92);
  color: var(--awning-dark);
  backdrop-filter: blur(4px);
}
.studio-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.studio-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--awning-dark);
}
.studio-card-body p {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--stone-600);
  flex-grow: 1;
  margin-bottom: 14px;
}
.studio-card-body .ages {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--awning);
  font-weight: 600;
  margin-top: auto;
}

/* Policy grid */
.policy-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.policy-card {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  padding: 28px 28px 30px;
}
.policy-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--awning-dark);
  margin-bottom: 12px;
}
.policy-card p {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-600);
  margin-bottom: 12px;
}
.policy-card ul {
  padding-left: 18px;
  margin: 0;
}
.policy-card ul li {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-800);
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .policy-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============ Programs — enrollment steps section ============ */
.enroll-steps-section { background: var(--ivory-50, #faf9f6); border-top: 1px solid var(--stone-300); }
.enroll-steps-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 320px;
  gap: 48px;
  align-items: start;
}

/* Two-up "talk to us" callout (text + photo). Used on schedule.html and
   enrollment.html. Replaces the inline `grid-template-columns: 1fr 1fr` that
   used to sit on .enroll-steps-layout — that inline rule beat the ≤900px
   stylesheet breakpoint, so the two columns never collapsed on tablet/phone
   (right half squished, eyebrow heading clipped). This class collapses cleanly. */
.cta-split {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .cta-split { grid-template-columns: 1fr; gap: 28px; }
}
.enroll-steps-left { padding-top: 8px; }
.enroll-steps-left h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 12px; margin-bottom: 16px; }
.enroll-steps-left p {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone-600);
}
.enroll-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-content: start;
}
.enroll-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.enroll-step-num {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--awning);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
}
.enroll-step-body h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--awning-dark);
  margin-bottom: 4px;
}
.enroll-step-body p {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--stone-600);
  margin: 0;
}
.enroll-steps-cta {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.enroll-steps-photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
}

/* btn-outline variant */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--awning);
  color: var(--awning);
  background: transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--awning); color: #fff; }

/* ============ Enrollment — grade + week pickers ============ */
.grade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.grade-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--ink-800);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.grade-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--awning);
  color: var(--awning-dark);
}
.grade-card::after {
  content: "→";
  position: absolute;
  bottom: 22px;
  right: 24px;
  font-size: 1.3rem;
  color: var(--awning);
  font-weight: 600;
  transition: transform 0.2s;
}
.grade-card:hover::after { transform: translateX(3px); }
.grade-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--awning);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.grade-card:nth-child(1) .grade-badge { background: var(--awning); }
.grade-card:nth-child(2) .grade-badge { background: var(--tablecloth); }
.grade-card:nth-child(3) .grade-badge { background: var(--tinsel); color: var(--awning-dark); }
.grade-card:nth-child(4) .grade-badge { background: var(--awning-dark); }
.grade-card:nth-child(5) .grade-badge { background: var(--chair-yellow); color: var(--awning-dark); }
.grade-card:nth-child(6) .grade-badge { background: var(--plaza-brick); }
.grade-card h3 {
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--awning-dark);
}
.grade-card .ages {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--stone-600);
  margin-bottom: 8px;
}
.grade-card .reg {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--awning);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.week-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory-100);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-decoration: none;
  color: var(--ink-800);
  text-align: center;
  transition: background 0.15s, border-color 0.15s, transform 0.2s;
}
.week-card:hover {
  background: var(--ivory-50);
  border-color: var(--awning);
  color: var(--awning-dark);
  transform: translateY(-2px);
}
.week-card .wknum {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--awning);
  margin-bottom: 6px;
}
.week-card .wkdates {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--awning-dark);
  line-height: 1.2;
  margin-bottom: 8px;
}
.week-card .reg {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--awning);
  margin-top: auto;
}

/* Enrollment steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto 40px;
}
.step {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-300);
  position: relative;
}
.step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: var(--awning);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.step h4 {
  margin: 8px 0 8px;
  font-size: 1.05rem;
  color: var(--awning-dark);
}
.step p {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--stone-600);
  margin: 0;
}

/* ============ Contact — address card + form + map ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.contact-info dt {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-top: 24px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--awning-dark);
}
.contact-info dd a {
  color: var(--awning-dark);
  text-decoration: none;
}
.contact-info dd a:hover { color: var(--awning); }

.form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-300);
}
.form label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--stone-600);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-md);
  font: inherit;
  font-family: var(--font-serif);
  background: var(--ivory-50);
  margin-bottom: 16px;
  color: var(--ink-800);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--awning);
  outline-offset: 1px;
  background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; margin-top: 4px; }

.map-embed {
  margin-top: 40px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stone-300);
}
.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ============ BPA award slideshow (used on competition.html) ============ */
.slideshow {
  max-width: var(--maxw);
  margin: 0 auto;
}
.slideshow-stage {
  position: relative;
  background: var(--awning-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slideshow-stage .photo-tile {
  display: block;
  width: 100%;
  height: 100%;
}
.slideshow-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--awning-dark);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, transform 0.15s;
  z-index: 2;
}
.slideshow-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.slideshow-prev { left: 16px; }
.slideshow-next { right: 16px; }
.slideshow-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 100px;
  z-index: 2;
}
.slideshow-caption {
  text-align: center;
  margin: 16px auto 0;
  max-width: 56ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--stone-600);
  min-height: 1.5em;
}
.slideshow-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.slideshow-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--ivory-100);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.slideshow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slideshow-thumb:hover { transform: translateY(-2px); }
.slideshow-thumb.is-active {
  border-color: var(--awning);
  box-shadow: 0 4px 12px rgba(20, 64, 31, 0.22);
}

/* ============ Page TOC sidebar (sticky floating, used on programs.html + competition.html) ============ */
.page-toc {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(20, 64, 31, 0.10);
  max-width: 220px;
  z-index: 50;
  font-family: var(--font-sans);
}
.page-toc-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 12px;
}
.page-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}
.page-toc a {
  font-size: 13px;
  color: var(--ink-800);
  text-decoration: none;
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.page-toc a:hover {
  color: var(--awning-dark);
  background: var(--ivory-50);
  border-color: var(--stone-300);
}
.page-toc a.is-active {
  color: var(--awning-dark);
  font-weight: 600;
  border-color: var(--awning);
  background: var(--ivory-50);
}
/* TOC hides whenever it would overlap content; --maxw is 1180px + ~480px of room on each side */
@media (max-width: 1500px) {
  .page-toc { display: none; }
}

/* ============ Competition 2-col layout (sticky left sidebar + content) ============ */
.competition-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  align-items: start;
}
.competition-main {
  min-width: 0;
}
.competition-main-head {
  padding: 64px var(--gutter) 48px;
  text-align: center;
  border-bottom: 2px solid var(--awning);
  background: var(--ivory-50);
}
.competition-main-head .eyebrow {
  color: var(--awning);
}
.competition-main-head h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  color: var(--ink-900);
}
.competition-main-head h1 em {
  font-style: italic;
  color: var(--awning);
}

/* Inside the 2-col layout: compact sections so each fits in one viewport when
   clicked from the sidebar (no internal scroll within a section under normal
   1080p+ desktops). Override the default 72px padding from .section. */
.competition-main .section,
.competition-main .section--inset {
  padding-top: 40px;
  padding-bottom: 40px;
}
.competition-main .competition-row {
  gap: 36px;
}
.competition-main .stat-card {
  padding: 28px 28px;
}
.competition-main .stat-card-num {
  font-size: 1.6rem;
}
.competition-main .competition-pitch li {
  padding: 4px 0;
}
.competition-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 24px 20px 24px 32px;
  font-family: var(--font-sans);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.competition-sidebar-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 14px;
  padding: 0 10px;
}
.competition-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}
.competition-sidebar-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-800);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.competition-sidebar-list a .ico {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  width: 20px;
  text-align: center;
}
.competition-sidebar-list a:hover {
  background: var(--ivory-100);
  color: var(--awning-dark);
}
.competition-sidebar-list a.is-active {
  background: var(--ivory-100);
  color: var(--awning-dark);
  font-weight: 600;
  border-left-color: var(--awning);
}
.competition-sidebar-top {
  font-weight: 600 !important;
  color: var(--stone-600) !important;
  font-size: 12px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.competition-sidebar-top:hover {
  color: var(--awning-dark) !important;
  background: var(--ivory-100);
}
.competition-sidebar-top.is-active {
  background: transparent !important;
  color: var(--stone-600) !important;
  border-left-color: transparent !important;
  font-weight: 600 !important;
}
.competition-sidebar-sep {
  height: 1px;
  background: var(--stone-300);
  margin: 8px 12px;
  list-style: none;
}

/* Below 900px: collapse sidebar, show horizontal chip bar instead */
@media (max-width: 900px) {
  .competition-layout { grid-template-columns: 1fr; }
  .competition-sidebar { display: none; }
}
@media (min-width: 901px) {
  .competition-chips--mobile { display: none; }
}

/* ============ Sticky chip nav (mobile only on competition.html) ============ */
.competition-chips {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--gutter);
  background: var(--ivory-50);
  border-bottom: 1px solid var(--stone-300);
  box-shadow: 0 4px 12px rgba(20, 64, 31, 0.05);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-sans);
}
.competition-chips::-webkit-scrollbar { height: 4px; }
.competition-chips::-webkit-scrollbar-thumb { background: var(--stone-300); border-radius: 999px; }
.competition-chips-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-600);
  padding: 0 6px;
}
.competition-chips a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--stone-300);
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.competition-chips a:hover {
  background: var(--ivory-100);
  border-color: var(--awning);
  color: var(--awning-dark);
}
.competition-chips a.is-active {
  background: var(--awning);
  border-color: var(--awning-dark);
  color: #fff;
  font-weight: 600;
}
.competition-chip-top {
  background: var(--awning-dark) !important;
  border-color: var(--awning-dark) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.competition-chip-top:hover {
  background: var(--awning) !important;
  color: #fff !important;
}
/* When a real section is active, the Top chip should NOT also pulse green.
   It's a fixed "return" affordance, never a current-position indicator. */
.competition-chip-top.is-active {
  background: var(--awning-dark) !important;
  color: #fff !important;
}
@media (max-width: 540px) {
  .competition-chips { padding: 10px 16px; gap: 6px; }
  .competition-chips-label { display: none; }
  .competition-chips a { font-size: 12px; padding: 6px 12px; }
}

/* Sections need top breathing room so they don't slide under the sticky chip
   bar (~52px tall on desktop, ~46px on mobile) when scrolled to via anchor. */
#awards, #bpa, #amc, #math-kangaroo, #sat-act-isee, #scholastic-arts-writing,
#scholastic-research, #bpa-students-gain, #more-competitions {
  scroll-margin-top: 60px;
}

/* ============ Competition rows (reusable per-competition section, used on competition.html) ============ */
.competition-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.competition-row--reverse > :first-child { order: 2; }
.competition-body h2 { margin-bottom: 12px; }
.competition-body p.lede {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--stone-600);
  margin: 4px 0 20px;
}
.competition-pitch {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}
.competition-pitch li {
  position: relative;
  padding-left: 34px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-800);
}
.competition-pitch .check {
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--awning);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.competition-schedule {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-800);
  padding: 14px 18px;
  background: #fff;
  border-left: 3px solid var(--awning);
  border-radius: 4px;
  margin: 0 0 24px;
}
.competition-poster {
  display: block;
  width: 100%;
  background: var(--ivory-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(20, 64, 31, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.competition-poster img {
  display: block;
  width: 100%;
  height: auto;
}
.competition-poster:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(20, 64, 31, 0.22);
}

/* Stat card — used in place of a poster when a competition has no flyer image */
.stat-card {
  background: var(--awning);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 12px 32px rgba(20, 64, 31, 0.22);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stat-card-icon {
  font-size: 56px;
  line-height: 1;
}
.stat-card-rows {
  display: grid;
  gap: 16px;
}
.stat-card-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.stat-card-row:first-of-type { border-top: 0; padding-top: 0; }
.stat-card-num {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--chair-yellow);
  min-width: 96px;
  max-width: 120px;
  flex-shrink: 0;
  word-break: break-word;
  line-height: 1.1;
}
.stat-card-label {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

/* ============ Teachers grid (used on programs.html #teachers, and standalone teachers.html) ============ */
.teachers-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.teacher-card {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.teacher-photo {
  aspect-ratio: 3 / 4;
  background: var(--ivory-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--stone-300);
  background-size: cover;
  background-position: center top;
  position: relative;
}
.teacher-info {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.teacher-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--awning-dark);
  margin-bottom: 4px;
}
.teacher-subject {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--awning);
  font-weight: 600;
  margin-bottom: 12px;
}
.teacher-bio {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--stone-600);
  flex: 1;
}

/* ============ BPA Sun Business Competition feature ============ */
.bpa-feature {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.bpa-flyer {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(20, 64, 31, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bpa-flyer:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(20, 64, 31, 0.22);
}
.bpa-flyer img { width: 100%; height: auto; display: block; }
.bpa-body p.lede {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone-600);
  margin: 16px 0 24px;
}
.bpa-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-800);
}
.bpa-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bpa-facts .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--awning);
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .path-feature .path-banner { flex: 0 0 30%; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .topbar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 11px;
  }

  .nav { padding: 14px var(--gutter); }
  .nav-links {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ivory-50);
    padding: 20px;
    border-bottom: 2px solid var(--awning);
    box-shadow: 0 6px 20px rgba(20, 64, 31, 0.12);
    gap: 16px;
    align-items: stretch;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links .nav-cta { text-align: center; justify-content: center; }

  .hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
  .hero p.lead { font-size: 17px; }
  .hero-band { height: 360px; }

  .hero-photo { min-height: 70vh; padding: 60px var(--gutter); }
  .hero-photo h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
  .hero-photo p.lead { font-size: 17px; }

  .announce {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px var(--gutter);
  }
  .announce-text { text-align: center; align-items: center; }
  .announce-title { font-size: 18px; }

  .path-feature {
    flex-direction: column;
  }
  .path-feature .path-banner {
    flex: none;
    min-height: 200px;
  }
  .path-fall .path-banner,
  .path-summer .path-banner { min-height: 200px; }
  .path-feature .path-body {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px 28px 28px;
  }
  .path-feature .path-action { width: 100%; }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .grade-grid { grid-template-columns: 1fr 1fr; }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .studio-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .photo-wall { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  /* Programs — stack values + classes layouts on tablet/mobile */
  .values-photo-section { padding: 56px var(--gutter); }
  .values-photo-layout { grid-template-columns: 1fr; gap: 28px; }
  .values-photo-cards { grid-template-columns: 1fr 1fr; }
  .classes-layout { grid-template-columns: 1fr; gap: 32px; }
  .classes-sidebar { position: static; top: auto; }
  .studio-grid--photo { grid-template-columns: 1fr 1fr; }

  /* Programs — stack enrollment-steps 3-col layout on tablet/mobile */
  .enroll-steps-layout { grid-template-columns: 1fr; gap: 32px; }
  .enroll-steps-photo { aspect-ratio: 16 / 9; }

  /* BPA feature — stack on tablet/mobile, cap image width so portrait flyer doesn't dominate */
  .bpa-feature { grid-template-columns: 1fr; gap: 32px; }
  .bpa-flyer { max-width: 360px; margin: 0 auto; }

  /* Teachers grid */
  .teachers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Competition rows — stack on tablet/mobile */
  .competition-row { grid-template-columns: 1fr; gap: 32px; }
  .competition-row--reverse > :first-child { order: 0; }
  .competition-poster { max-width: 360px; margin: 0 auto; aspect-ratio: 3/4; }
  .stat-card { max-width: 420px; margin: 0 auto; padding: 32px 28px; }

  /* Slideshow — tighten on tablet/mobile */
  .slideshow-stage { aspect-ratio: 4 / 3; }
  .slideshow-btn { width: 38px; height: 38px; font-size: 18px; }
  .slideshow-prev { left: 10px; }
  .slideshow-next { right: 10px; }
}

@media (max-width: 540px) {
  /* ── Spacing ── */
  .section { padding: 44px var(--gutter); }
  .section--inset { padding: 44px var(--gutter); }
  .site-footer { padding: 36px var(--gutter); }

  /* ── Sections & heads ── */
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 15px; }
  .path-header { margin-bottom: 28px; }
  .gallery-section { margin-bottom: 36px; }
  .gallery-section-head h3 { font-size: 1.35rem; }

  /* ── Headings ── */
  h3 { font-size: 1.45rem; }
  .path-banner h3 { font-size: 26px; }
  .path-feature .path-banner h3 { font-size: 30px; }

  /* ── Hero ── */
  .hero { padding: 48px var(--gutter) 40px; }
  .hero-band { height: 260px; }
  .hero-photo { min-height: 60vh; padding: 48px var(--gutter); }
  .hero-photo h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }

  /* ── Page hero (inner pages) ── */
  .page-hero { padding: 40px var(--gutter) 24px; }
  .page-hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .page-hero p.lead { font-size: 17px; line-height: 1.55; }

  /* ── Pathways / home cards ── */
  .pathways { padding: 44px var(--gutter) 56px; }
  .path-feature .path-banner,
  .path-fall .path-banner,
  .path-summer .path-banner { min-height: 160px; }

  /* ── Grids ── */
  .grade-grid, .values-grid, .studio-grid, .steps {
    grid-template-columns: 1fr;
  }
  /* Keep week-grid at 2 cols — 10 items in 1 col is too long */
  .week-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Class rows ── */
  .class-row .label { font-size: 13px; }

  /* ── Nav brand ── */
  .nav-brand-name { font-size: 16px; }
  .nav-brand-name small { font-size: 10px; }

  /* ── Photo wall ── */
  .photo-wall { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* ── Contact form ── */
  .form { padding: 20px 16px; }

  /* ── Programs ── */
  .values-photo-cards { grid-template-columns: 1fr; }
  .studio-grid--photo { grid-template-columns: 1fr; }
  .enroll-steps-grid { grid-template-columns: 1fr; }

  /* Teachers grid */
  .teachers-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Photo page-hero (About) — h1 has its own clamp + higher specificity,
     so the generic .page-hero h1 rule above can't reach it. Tighten here. */
  .page-hero--photo { min-height: 70vh; padding: 56px var(--gutter); }
  .page-hero--photo h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .page-hero--photo p.lead { font-size: 17px; }

  /* Announce / bus banner — already column at 900px; tighten box + title here */
  .announce { padding: 16px 20px; }
  .announce-title { font-size: 17px; }
  .announce-eyebrow { font-size: 10px; }

  /* CTA split-layouts (enrollment + schedule contact blocks) carry an inline
     grid-template-columns:1fr 1fr that beats the stylesheet — force single col. */
  .enroll-steps-layout { grid-template-columns: 1fr !important; gap: 28px !important; }
}

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