:root {
  --color-dark: #1a1a1a;
  --color-light: #f5f0eb;
  --color-accent: #b08a5c;
  /* WCAG AA text contrast (4.5:1) fails for --color-accent on the site's light
     backgrounds (cream/white/tan, ~2.3-2.8:1); this darker variant is for TEXT
     specifically on those backgrounds. --color-accent itself stays unchanged
     for icons and for text already on dark bands, where it already passes. */
  --color-accent-text: #7a5f3f;
  --color-white: #ffffff;
  --color-text-on-dark: #f1ede7;
  --color-text-on-light: #1a1a1a;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Allura", cursive;
  --font-body: "Inter", "DM Sans", -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Anchor-link offset.
   .site-header is position:fixed and sits below the 36px .utility-bar, so the
   two together cover the top of the viewport. Without this, every hash link
   scrolls its target to top:0 and the section heading lands UNDERNEATH the
   header. Affects every anchor on the site: Fall's and Summer's age cards,
   about.html#instructors (including the /faculty/* redirects), the footer's
   faq.html#attendance-absences on all 17 pages, /contact/ -> /#contact, and
   programs.html#attendance-policies.
   Set on the scroll container so it covers real anchor clicks, scrollIntoView,
   and on-load hash jumps in one rule, with no per-target attributes.
   Values are measured header+utility height plus ~12px of breathing room:
   118px above 1200, 100px from 600 to 1200, 95px below 600. */
html {
  scroll-padding-top: 130px;
}

@media (max-width: 1200px) {
  html {
    scroll-padding-top: 112px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 107px;
  }
}

body {
  font-family: var(--font-body);
  color: var(--color-text-on-light);
  background: var(--color-light);
  line-height: 1.6;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  z-index: 1000;
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  padding: 0.9rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* Inter 700 is not loaded; map bold text to the loaded 600 face to avoid faux-bold */
strong {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.eyebrow-script {
  /* Font treatment lives in the shared Allura rule at the END of this file
     (one source of truth with .script-heading); only spacing lives here. */
  margin-bottom: 0.5rem;
}

h1, h2, h3, .hero-slide-heading {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-solid {
  background: var(--color-text-on-light);
  color: var(--color-light);
  border-color: var(--color-text-on-light);
}
.btn-solid:hover {
  opacity: 0.85;
}

.btn-outline-light {
  color: var(--color-light);
  border-color: var(--color-light);
}
.btn-outline-light:hover {
  background: var(--color-light);
  color: var(--color-dark);
}

.btn-outline-dark {
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.btn-outline-dark:hover {
  background: var(--color-dark);
  color: var(--color-light);
}

.btn-outline-tan {
  color: #e0d8d0;
  border-color: #e0d8d0;
}
.btn-outline-tan:hover {
  background: #e0d8d0;
  color: var(--color-dark);
}

/* Utility bar: announcement text + phone number, sits above the main site header */
.utility-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  z-index: 51;
  background: #000000;
  color: var(--color-text-on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.utility-bar-alert {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-bar-phone {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.utility-bar-phone:hover {
  color: var(--color-accent);
}

/* Header / nav */
.site-header {
  background: transparent;
  color: var(--color-text-on-dark);
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: background-color 0.3s ease;
}

.site-header.scrolled {
  background: #26292b;
}

.nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo {
  display: block;
  margin-left: 40px;
}
.logo img {
  display: block;
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav a {
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--color-accent);
}

.main-nav a.active {
  color: #e0d8d0;
  border-bottom: 1px solid #e0d8d0;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-on-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer (hidden on desktop) */
.mobile-nav {
  display: none;
  flex-direction: column;
  list-style: none;
  background: #26292b;
  /* No side padding here: the links own it, so the hover highlight and the
     divider rules span the full width of the drawer instead of sitting inset. */
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid #383b3d;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav a.active {
  color: #e0d8d0;
}

/* Rollover: tan row, dark blue text. Placed after the .active rule so it wins
   the equal-specificity tie on the current page's link too. */
.mobile-nav a:hover,
.mobile-nav a:focus,
.mobile-nav a:active {
  background: #e0d8d0;
  color: #26292b;
}

/* Enroll Now sits last in the drawer: styled like every other link (no button
   outline), with a little breathing room below it. */
.mobile-nav-enroll {
  margin-bottom: 1rem;
}

.site-header.menu-open .mobile-nav {
  max-height: 520px;
}

/* Hero: full-bleed background image, text overlay on the left */
.hero {
  position: relative;
  min-height: 575px;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 100%);
}

.hero-overlay-text {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 136px 2rem 0;
  color: var(--color-text-on-dark);
}

.hero-overlay-text h1,
.hero-overlay-text .hero-slide-heading {
  font-size: clamp(48px, 9vw, 90px);
  line-height: 0.95;
  margin-bottom: 1.25rem;
  max-width: none;
}

.hero-overlay-text p {
  max-width: 36ch;
  margin-bottom: 1.75rem;
  color: #ece7df;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Hero carousel (homepage): stacked slides, fades between them, 5s interval via hero-carousel.js */
.hero-carousel {
  position: relative;
  min-height: 575px;
  overflow: hidden;
  background-color: var(--color-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0) 100%);
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e0d8d0;
  margin-bottom: 0.75rem;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background: #fff;
}

.hero-scroll {
  position: absolute;
  right: 28px;
  bottom: 36px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

/* Mission / Join split band (homepage) */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem;
}

.panel p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
  max-width: 42ch;
}

.panel-dark {
  background: #26292b;
  color: var(--color-text-on-dark);
}

.panel-dark .eyebrow-script,
.panel-dark .text-link {
  color: var(--color-accent);
}

.panel-dark .text-link {
  border-bottom-color: var(--color-accent);
}

.panel-tan {
  background: #e0d8d0;
  color: var(--color-dark);
}

.panel-tan .eyebrow-script {
  color: var(--color-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  border-bottom: 1px solid var(--color-accent-text);
  padding-bottom: 4px;
  width: fit-content;
}

/* Feature row (homepage, icons) */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.feature {
  padding-left: 1.75rem;
  border-left: 1px solid #ddd5cb;
}

.feature:first-child {
  padding-left: 0;
  border-left: none;
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.feature h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.85rem;
  color: #5a534c;
  line-height: 1.6;
}

/* Find Your Flow: dark program overview band (About page) */
.flow-section {
  background: #26292b;
  color: var(--color-text-on-dark);
  text-align: center;
  padding: 5rem 3rem;
}

.flow-intro {
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.flow-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.flow-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.flow-lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #c9c2b8;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.flow-item:first-child {
  border-left: none;
}

.flow-icon {
  width: 52px;
  height: 52px;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.flow-item h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.flow-item p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #b8b1a7;
  margin-bottom: 1.75rem;
}

.flow-item .btn {
  margin-top: auto;
  padding: 0.6rem 1.6rem;
  font-size: 0.72rem;
}

@media (max-width: 1024px) {
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
  .flow-item:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .flow-section {
    padding: 3.5rem 1.5rem;
  }
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .flow-item {
    border-left: none;
    padding: 0;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Mission band: left text box (tan, slightly less than half), right image (slightly more than half) */
.mission {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  background: var(--color-light);
}

.mission-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 4rem;
}

.mission-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 1rem 0 1.75rem;
}

.mission-image {
  background-color: #3a342f;
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

/* Group photo band above team section */
.group-photo {
  width: 100%;
  aspect-ratio: 16 / 6;
  background-color: #3a342f;
  background-size: cover;
  background-position: center;
}

.team {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  text-align: center;
  padding: 4rem 2rem 5rem;
}

.team .eyebrow-script {
  display: block;
  color: var(--color-accent);
}

.team h2 {
  font-size: 2.25rem;
  margin-bottom: 3rem;
}

.team-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5; /* real headshots are portrait; was 1/1 in the placeholder era */
  margin: 0 auto 1rem;
  background-color: #4a433c;
  background-size: cover;
  background-position: center;
}

/* The 12 beyond the leadership row stay hidden until "Meet the Full Team" */
.team-hidden {
  display: none;
}

.team-grid.revealed .team-hidden {
  display: block;
}

.team-member h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-member span {
  display: block;
  font-size: 0.8rem;
  color: #b8b0a4;
  margin-bottom: 0.5rem;
}

.team-bio {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cfc8bd;
  text-align: left;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.team-bio.expanded {
  -webkit-line-clamp: none;
}

.team-email {
  display: block;
  font-size: 0.78rem;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  word-break: break-all; /* long addresses must not overflow the narrow card */
}

.team-readmore {
  background: none;
  border: none;
  padding: 0 0 2px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  cursor: pointer;
}

/* .btn styling assumes an <a>; the reveal control is a <button> */
button.team-reveal {
  font-family: var(--font-body);
  background: transparent;
  cursor: pointer;
}

.team-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Testimonial: tan band and image split evenly */
.testimonial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--color-light);
}

.testimonial-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem;
}

.testimonial blockquote {
  max-width: 42ch;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--color-text-on-light);
}

.testimonial cite {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.testimonial-image {
  background-color: #2a2522;
  background-size: cover;
  background-position: center;
  min-height: 380px;
}

/* FAQ accordion */
.faq-section {
  background: var(--color-light);
  padding: 5rem 2rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ddd5cb;
}

.faq-item:first-child {
  border-top: 1px solid #ddd5cb;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text-on-light);
}

.faq-cat {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.faq-cat-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-text-on-light);
}

.faq-cat-icon svg {
  width: 100%;
  height: 100%;
}

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #8d857b;
  transition: transform 0.25s ease;
}

.faq-chevron svg {
  width: 100%;
  height: 100%;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  padding-left: calc(22px + 1.1rem);
}

.faq-answer p {
  padding-bottom: 1.5rem;
  padding-left: calc(22px + 1.1rem);
  max-width: 65ch;
  line-height: 1.7;
  color: #4a443e;
}

.faq-answer a {
  color: var(--color-accent-text);
  border-bottom: 1px solid var(--color-accent-text);
}

.faq-answer ol {
  padding-left: calc(22px + 1.1rem + 1.2rem);
  padding-bottom: 1.5rem;
  max-width: 65ch;
}

.faq-answer ol li {
  line-height: 1.7;
  color: #4a443e;
  margin-bottom: 0.3rem;
}

.faq-item.active .faq-answer {
  max-height: 3200px; /* longest FAQ answer measures ~2300px at 375px wide; keep headroom */
}

/* News page: browse by month (sidebar + list) */
.news-browse {
  background: var(--color-light);
  padding: 5rem 2rem;
}

.news-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3.5rem;
}

.month-nav {
  display: flex;
  flex-direction: column;
}

.month-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a534c;
}

.month-link.active {
  background: #e0d8d0;
  color: var(--color-dark);
  font-weight: 600;
}

.news-month-heading {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-list-item {
  display: flex;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid #ddd5cb;
}

.news-list-item:first-child {
  padding-top: 0;
}

.news-list-thumb {
  flex-shrink: 0;
  width: 140px;
  aspect-ratio: 4 / 3;
  background-color: #cdbfae; /* fallback tint while the photo loads or if a path breaks */
  background-size: cover;
  background-position: center;
}

.news-list-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.news-list-content p {
  font-size: 0.9rem;
  color: #5a534c;
  line-height: 1.6;
  margin-bottom: 0.6rem;
  max-width: 60ch;
}

/* Centered button row under a content block. Named for the News page's old
   View All News button (removed Session 17), but still used by Recital's
   View Full Gallery button; rename to something generic at WP conversion. */
.news-view-all {
  text-align: center;
  margin-top: 3rem;
}

/* Fall page: program age label (used on the program pathway cards) */
.program-age {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Summer page: live Jackrabbit class filter (DIY tabbed openings widget) */
.class-filter-section {
  background: var(--color-light);
  text-align: center;
  padding: 5rem 2rem;
}

.class-filter-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.class-filter-intro {
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  color: #4a443e;
}

.class-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.class-filter-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-dark);
  background: transparent;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.class-filter-tab span {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: none;
  opacity: 0.65;
}

.class-filter-tab:hover {
  background: rgba(26, 26, 26, 0.08);
}

.class-filter-tab.active {
  background: var(--color-dark);
  color: var(--color-light);
}

.class-filter-panels {
  width: 100%;
  padding: 0 20px;
  text-align: left;
}

.class-filter-panel {
  display: none;
  background: #fff;
  border: 1px solid #e0d8d0;
  border-radius: 4px;
  padding: 1.5rem;
  min-height: 120px;
}

.class-filter-panel.active {
  display: block;
}

.class-filter-note {
  max-width: 760px;
  margin: 2rem auto 0;
  font-size: 0.8rem;
  color: #7a7368;
  line-height: 1.6;
}

/* Adult & Fitness page: Acuity Scheduling embed */
.acuity-embed {
  max-width: 900px;
  margin: 0 auto;
}

/* Closing CTA */
.cta-band {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-band h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: #141414;
  color: #cfc8bd;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  display: block;
  height: 90px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.footer-studio p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-social {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-social a {
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
}

.parent-hub h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hub-list {
  list-style: none;
}

.hub-list li {
  margin-bottom: 0.6rem;
}

.hub-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #cfc8bd;
  transition: color 0.2s ease;
}

.hub-list a:hover {
  color: var(--color-accent);
}

.hub-list-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.hub-list-icon svg {
  width: 100%;
  height: 100%;
}

/* Footer third column: Quick Resources text link list */
.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #cfc8bd;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #2c2c2c;
  font-size: 0.75rem;
  color: #7a746b;
  display: flex;
  justify-content: space-between;
}

/* Tablet */
@media (max-width: 1024px) {
  .mission-text,
  .testimonial-text {
    padding: 3rem 2.5rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
  .feature:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }
  .feature:nth-child(even) {
    padding-left: 1.75rem;
    border-left: 1px solid #ddd5cb;
  }
  .news-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .month-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .month-link {
    padding: 0.6rem 1rem;
  }
}

/* Tablet and below: swap text nav for hamburger drawer */
@media (max-width: 1100px) {
  .main-nav,
  .nav-enroll {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
  .logo {
    margin-left: 0;
  }
  .logo img {
    height: 32px;
  }
  .hero-overlay-text {
    padding-top: 126px;
  }
  .home-split {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 3rem 2.5rem;
  }
  .mission {
    grid-template-columns: 1fr;
  }
  .mission-image {
    min-height: 280px;
  }
  .testimonial {
    grid-template-columns: 1fr;
  }
  .testimonial-image {
    min-height: 240px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .nav-wrap {
    padding: 0.85rem 1.25rem;
  }
  .utility-bar {
    padding: 0 1.25rem;
    font-size: 0.65rem;
    gap: 0.5rem;
  }
  .hero,
  .hero-carousel {
    min-height: 480px;
  }
  .hero-overlay-text {
    padding: 116px 1.25rem 0;
  }
  .hero-scroll {
    display: none;
  }
  .panel {
    padding: 2.5rem 1.25rem;
  }
  .feature-row {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem;
    gap: 2rem;
  }
  .feature,
  .feature:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .mission-text,
  .testimonial-text {
    padding: 2.5rem 1.25rem;
  }
  .testimonial blockquote {
    max-width: none;
  }
  .team {
    padding: 3rem 1.25rem 3.5rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
  .news-browse {
    padding: 3rem 1.25rem;
  }
  .news-list-item {
    flex-direction: column;
    gap: 1rem;
  }
  .news-list-thumb {
    width: 100%;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .class-filter-section {
    padding: 3rem 1.25rem;
  }
  .class-filter-tabs {
    gap: 0.5rem;
  }
  .class-filter-tab {
    padding: 0.6rem 1rem;
    font-size: 0.72rem;
  }
  .class-filter-panel {
    padding: 1rem;
  }
  .footer-studio,
  .parent-hub {
    text-align: left;
  }
}

/* Summer page: camp cards, summer session band, feature trio */
.camps-section {
  background: var(--color-light);
  padding: 4.5rem 3rem 5rem;
  text-align: center;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 2.5rem;
}

.camp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.camp-photo {
  aspect-ratio: 4 / 5;
  background-color: #cdbfae; /* fallback tint while the photo loads or if a path breaks */
  background-size: cover;
  background-position: center;
}

/* Summer's card photos are near-square per the summer mockup (Fall keeps 4:5);
   also matches the native aspect of the crops taken from that mockup. */
.summer-camps .camp-photo {
  aspect-ratio: 8 / 7;
}

.camp-card h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 1.1rem 0 0.35rem;
}

.camp-meta {
  font-size: 0.85rem;
  color: #5a534c;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

/* Summer Session split band: image left, text on a warm cream panel right */
.session-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #eae4dd;
}

.session-text {
  padding: 5rem 3rem 5rem 4rem;
}

.session-text h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  margin-bottom: 1rem;
}

.session-schedule {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.session-text p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 1.25rem;
}

.session-image {
  align-self: stretch;
  min-height: 380px;
  background-color: #cdbfae; /* fallback while the photo loads or if a path breaks */
  background-size: cover;
  background-position: center;
}

.band-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-text);
  margin-bottom: 1.1rem;
}

/* Full-bleed band wrapper: .feature-row itself has max-width:1300px + margin:0
   auto (a centered column), so painting the background directly on it would
   leave gaps at the sides on wide screens. This wrapper owns the background and
   spans the full viewport; .summer-features stays the centered content column.
   (.feature-row deliberately has no background of its own, so any wrapper color
   shows through.) */
.summer-features-band {
  background: #26292b;
  color: var(--color-text-on-dark);
}

.summer-features {
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.summer-features .feature {
  border-left: none;
  padding-left: 0;
}

.summer-features .feature-icon {
  display: block;
  margin: 0 auto 1.1rem;
}

.summer-features .feature p {
  max-width: 30ch;
  margin: 0 auto 1rem;
  color: #b8b1a7;
}

/* Boxed CTA on a dark band: same on-dark recipe as .pathways-tier2-band's
   .explore-link override (Fall's tier-2 band is the other dark section
   using this component). */
.summer-features .explore-link {
  color: var(--color-text-on-dark);
  border-color: #4a4d4f;
}

.summer-features .explore-link:hover {
  background: var(--color-text-on-dark);
  border-color: var(--color-text-on-dark);
  color: var(--color-dark);
}

@media (max-width: 1024px) {
  .camp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summer-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .camps-section {
    padding: 3rem 1.25rem 3.5rem;
  }

  .camp-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .session-band {
    grid-template-columns: 1fr;
  }

  .session-text {
    padding: 3rem 1.5rem;
  }

  .session-image {
    min-height: 260px;
  }

  .summer-features {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* FAQ page: centered dark panel CTA (Still have questions?) */
.faq-cta {
  display: flex;
  justify-content: center;
  background: #26292b;
  color: var(--color-text-on-dark);
}

.faq-cta-text {
  padding: 4.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.faq-cta-text h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  margin-bottom: 1rem;
}

.faq-cta-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 44ch;
  margin: 0 auto 2rem;
  color: #cfc8bd;
}

.btn-solid-tan {
  background: #e0d8d0;
  color: #1a1a1a;
  border-color: #e0d8d0;
}

.btn-solid-tan:hover {
  background: transparent;
  color: #e0d8d0;
}

@media (max-width: 600px) {
  .faq-cta-text {
    padding: 3rem 1.5rem;
  }

  .faq-cat {
    gap: 0.8rem;
  }

  .faq-answer h4,
  .faq-answer p {
    padding-left: 0;
  }
}

/* Fall page: program pathways cards, tier-2 tan band, season CTA */
.explore-link {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-on-light);
  border: 1px solid #ccc3b8;
  padding: 0.55rem 1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.explore-link:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-light);
}

.camp-card .program-age {
  margin: 0 0 0.35rem;
}

.pathways-tier2-band {
  /* Standalone section (sibling of .camps-section, not a nested div) so the
     dark background is full-bleed with no light padding/margin from a parent
     showing through around it. */
  background: #26292b;
  color: var(--color-text-on-dark);
  padding: 3.5rem 2rem;
}

.pathways-tier2-band .camp-meta {
  color: #b8b1a7; /* muted body-copy tone for text on dark bands */
}

.pathways-tier2-band .program-age {
  color: var(--color-accent); /* the darker --color-accent-text fails here; original gold passes on this dark band */
}

.pathways-tier2-band .explore-link {
  color: var(--color-text-on-dark);
  border-color: #4a4d4f;
}

.pathways-tier2-band .explore-link:hover {
  background: var(--color-text-on-dark);
  border-color: var(--color-text-on-dark);
  color: var(--color-dark);
}

.pathways-tier2 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 920px;
}

.season-cta {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  background: #26292b;
  color: var(--color-text-on-dark);
}

.season-cta-text {
  padding: 5rem 3rem 5rem 4rem;
}

.season-cta-text h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  margin-bottom: 1rem;
}

.season-cta-text p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 40ch;
  margin-bottom: 2rem;
  color: #cfc8bd;
}

.season-cta-image {
  align-self: stretch;
  min-height: 360px;
  background-color: #1c1916; /* fallback while the photo loads or if a path breaks */
  background-size: cover;
  background-position: center;
}

@media (max-width: 1024px) {
  .pathways-tier2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .pathways-tier2-band {
    padding: 2rem 1.25rem;
  }

  .pathways-tier2 {
    grid-template-columns: 1fr;
  }

  .season-cta {
    grid-template-columns: 1fr;
  }

  .season-cta-text {
    padding: 3rem 1.5rem;
  }

  .season-cta-image {
    min-height: 240px;
  }
}

/* Performances page: Nutcracker feature, performance cards, recital dates band */
/* Full-bleed 50/50 split: image flush to the section edges (same pattern as
   .session-band and .season-cta), text column carries its own padding. */
.nutcracker-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--color-light);
}

.nutcracker-image {
  min-height: 380px;
  background-color: #2a211c; /* fallback while the photo loads or if a path breaks */
  background-size: cover;
  background-position: center;
}

.nutcracker-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5rem 3rem 5rem 4rem;
}

.feature-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-text);
  margin-bottom: 0.9rem;
}

.nutcracker-text h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  margin-bottom: 1rem;
}

.nutcracker-text > p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 42ch;
  margin-bottom: 1.75rem;
  color: #4a443e;
}

.event-details {
  list-style: none;
  margin-bottom: 2rem;
}

.event-details li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: #3a342f;
  margin-bottom: 0.85rem;
}

.event-detail-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.event-detail-icon svg {
  width: 100%;
  height: 100%;
}

.perf-cards-section {
  background: var(--color-white);
  padding: 50px 3rem 5rem;
}

.perf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.perf-photo {
  aspect-ratio: 5 / 4;
  background-color: #cdbfae; /* fallback tint while the photo loads or if a path breaks (cards still on placeholders override this inline) */
  background-size: cover;
  background-position: center;
  margin-bottom: 1.1rem;
}

.perf-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.perf-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #5a534c;
  margin-bottom: 1rem;
}

.recital-dates {
  background: #26292b;
  color: var(--color-text-on-dark);
  text-align: center;
  padding: 4rem 2rem;
}

.recital-dates .text-link {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.recital-dates-title {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 2.5rem;
}

.recital-dates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.recital-date {
  padding: 0 1.5rem;
}

.recital-date + .recital-date {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.recital-date h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.recital-division {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}


.recital-dates-note {
  font-size: 0.85rem;
  color: #b8b0a6;
}

@media (max-width: 1024px) {
  .perf-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .nutcracker-feature {
    grid-template-columns: 1fr;
  }

  .nutcracker-text {
    padding: 3rem 1.5rem;
  }

  .nutcracker-image {
    min-height: 260px;
  }

  .perf-cards-section {
    padding: 50px 1.5rem 3.5rem;
  }

  .perf-cards {
    grid-template-columns: 1fr;
  }

  .recital-dates-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .recital-date + .recital-date {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
  }
}

/* ============================================================
   Script accent headings (Allura), one flourish per page:
   Summer "Summer Camps", Fall "Program Pathways",
   Programs "Company Program", Performances "The Nutcracker".
   Appended last so equal-specificity ties resolve to this rule;
   .prog-copy h2.script-heading outranks programs.css's .prog-copy h2
   (that sheet loads after main.css on programs.html).
   ============================================================ */
/* Single source of truth for the Allura treatment (script eyebrows AND script
   headings). Allura's x-height is much smaller than Dancing Script's, so the
   clamp is larger to hold the same visual size. 400 is Allura's only weight;
   anything heavier gets faux-bolded and loses the thin monoline look.
   Must stay at the end of the file: .script-heading beats .section-label and
   .nutcracker-text h2 on source order; keep any later additions above this. */
.eyebrow-script,
.script-heading,
h2.script-heading,
.prog-copy h2.script-heading {
  font-family: var(--font-script);
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 400;
  color: var(--color-accent-text);
  line-height: 1.15;
}

.script-heading {
  text-transform: none;
  letter-spacing: normal;
}

/* Fall page: Programs By Age row 1 (5 age tiers: Bitty-Junior). Row 2 (JII/Teen/
   Senior) reuses the existing .pathways-tier2 / .pathways-tier2-band pattern.
   Appended here (after .script-heading) so these win over the earlier base
   .camp-grid responsive rules at the same breakpoints. */
.pathways-tier1 {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1300px;
}
@media (max-width: 1024px) {
  .pathways-tier1 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pathways-tier1 { grid-template-columns: 1fr; }
}

/* Fall page: light 3-column feature row, mirrors .summer-features' column
   count and breakpoints; sits directly on the body's light background. */
.fall-features {
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.fall-features .feature {
  border-left: none;
  padding-left: 0;
}
.fall-features .feature-icon {
  display: block;
  margin: 0 auto 1.1rem;
}
.fall-features .feature p {
  max-width: 30ch;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .fall-features { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
}
@media (max-width: 600px) {
  .fall-features { grid-template-columns: 1fr; padding: 3rem 1.25rem; gap: 2rem; }
}

/* News page: month panels (JS-driven via styles/news-months.js, same show/hide
   pattern as .class-filter-panel) */
.news-month-panel {
  display: none;
}
.news-month-panel.active {
  display: block;
}

/* News page: "Coming in [month]" teaser list under a month's headline cards */
.news-teaser {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd5cb;
}
.news-teaser-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-text);
  margin-bottom: 0.75rem;
}
.news-teaser p {
  font-size: 0.9rem;
  color: #5a534c;
  line-height: 1.7;
}

/* News page: sub-section wrapper inside a month panel (Upcoming Dates, Staff
   Emails, etc.), separated from the headline cards above it */
.news-subsection {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #ddd5cb;
}
.news-subsection > p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4a443e;
  max-width: 68ch;
  margin-bottom: 1rem;
}
.recital-resource-panel > p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4a443e;
  margin-bottom: 1rem;
}
.recital-resource-panel > p:last-child {
  margin-bottom: 0;
}
.recital-resource-panel .text-list li {
  font-size: 0.92rem;
  color: #4a443e;
}
.news-subsection ol {
  padding-left: 1.2rem;
  margin: 0.75rem 0 1rem;
}
.news-subsection ol li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4a443e;
  margin-bottom: 0.3rem;
}

/* Inline prose links inside News subsections (Parent Portal step, staff
   mailtos): same accent recipe as .faq-answer a. Values match .text-link
   exactly, so .text-link anchors inside subsections are unaffected even
   though this rule outranks them on specificity. */
.news-subsection a {
  color: var(--color-accent-text);
  border-bottom: 1px solid var(--color-accent-text);
}

/* News page: Upcoming Dates list */
.news-dates-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.news-dates-list li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4a443e;
}
.news-dates-list .news-date {
  color: var(--color-accent-text);
  font-weight: 600;
  margin-right: 0.4rem;
}

/* News page: staff directory */
.news-staff-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}
.news-staff-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.news-staff-item .news-staff-title {
  display: block;
  font-size: 0.8rem;
  color: #5a534c;
  margin-bottom: 0.2rem;
}
.news-staff-item a {
  font-size: 0.88rem;
  color: var(--color-accent-text);
  border-bottom: 1px solid var(--color-accent-text);
}

@media (max-width: 700px) {
  .news-staff-list {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 701px) {
  .news-staff-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
  }
}

/* Shared accent-checkmark list: same visual recipe as programs.css' page-scoped
   .prog-benefits, promoted here so a second page (Recital) can use it without
   duplicating the rule. (.prog-benefits itself is left as-is for now, out of
   scope for this change - a future pass could point it at this class instead.) */
.accent-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.75rem;
  width: 100%;
  max-width: 760px;
}
.accent-checklist li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.97rem;
  line-height: 1.4;
}
.accent-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}
@media (max-width: 600px) {
  .accent-checklist { grid-template-columns: 1fr; }
}

/* Recital page: Recital Resources quick-link tiles (text tiles, not photo
   cards - none of these links have real photography yet, unlike Programs'
   card grid, so a lighter icon+label tile fits without overpromising imagery) */
.recital-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}
.recital-resource-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 1.2rem;
  background: var(--color-white);
  border: 1px solid #e0d8d0;
  color: inherit;
  text-decoration: none;
  font-family: inherit;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.recital-resource-tile:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.recital-resource-tile svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}
.recital-resource-tile.active {
  background: var(--color-dark);
  color: var(--color-light);
  border-color: var(--color-dark);
}
@media (max-width: 1024px) {
  .recital-resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .recital-resource-grid { grid-template-columns: 1fr; }
}

/* Recital page: content panel that swaps per selected Resource tile (JS-driven
   via styles/recital-resource-tabs.js, same show/hide pattern as .class-filter-panel) */
.recital-resource-panels {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  text-align: left;
}
.recital-resource-panel {
  display: none;
  background: var(--color-white);
  border: 1px solid #e0d8d0;
  padding: 2.5rem 3rem;
}
.recital-resource-panel.active {
  display: block;
}
@media (max-width: 600px) {
  .recital-resource-panel {
    padding: 2rem 1.5rem;
  }
}

/* Shared plain bullet list for policy-style copy (Recital Costumes panel), a
   lighter-weight companion to .accent-checklist's checkmark treatment, which
   implies "included" rather than a plain informational point */
.text-list {
  list-style: none;
  margin: 0 0 1rem;
}
.text-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.text-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Recital page: Photo Gallery (CSS multi-column masonry, no JS needed) */
.recital-gallery {
  column-count: 3;
  column-gap: 1.25rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}
.recital-gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background-color: #cdbfae;
}
@media (max-width: 860px) {
  .recital-gallery { column-count: 2; }
}
@media (max-width: 600px) {
  .recital-gallery { column-count: 1; }
}

/* Calendar page: month cards in a true masonry mosaic (CSS multi-column,
   calendar-highlight.js marks the current month via .current). A CSS Grid
   version was tried first for strict left-to-right month order, but with
   varying card heights, grid rows size to their tallest card, leaving visible
   dead space under every shorter card in that row (e.g. March's 1 event next
   to April's 4). Multi-column packs tight with no gaps, at the cost of a
   different reading pattern: top-to-bottom within a column, then the next
   column over, rather than strictly left-to-right. Months still land in
   sequential chunks per column, so it still reads sensibly. */
.cal-mosaic {
  column-count: 3;
  column-gap: 1.5rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}
.cal-month-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: var(--color-white);
  border: 1px solid #e0d8d0;
  padding: 1.75rem 1.75rem 1.5rem;
}
/* Current-month highlight: a darker tan already used elsewhere on the site
   (Fall's "Mini" card color), not a new one-off value. The accent gold used
   for .cal-month-name elsewhere is too close in tone to read clearly against
   this darker tan, so the highlighted card swaps the month name to the dark
   token instead. */
.cal-month-card.current {
  background: #cbb9a5;
  border-color: #b3a08b;
}
.cal-month-card.current .cal-month-name {
  color: var(--color-dark);
}
.cal-month-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent-text);
  margin-bottom: 1.1rem;
}
.cal-month-events {
  list-style: none;
}
.cal-month-events li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a443e;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid #f0ebe3;
}
.cal-month-events li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cal-event-date {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
@media (max-width: 860px) {
  .cal-mosaic { column-count: 2; }
}
@media (max-width: 600px) {
  .cal-mosaic { column-count: 1; }
}

/* Dress Code page: 5 style-category cards (Ballet, Jazz/Contemporary,
   Hip Hop/Tap, Boys, Company), each with Attire/Shoes/Hair sub-lists. */
.dress-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 2.5rem auto 0;
}
.dress-card {
  background: var(--color-white);
  border: 1px solid #e0d8d0;
  padding: 1.5rem 1.35rem;
  text-align: left;
}
.dress-card-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-accent-text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0d8d0;
}
.dress-sub-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0.9rem 0 0.35rem;
}
/* :first-of-type would match the card's first span, which is always the
   .dress-card-label, so target the sub-label that directly follows it. */
.dress-card-label + .dress-sub-label {
  margin-top: 0;
}
.dress-card ul {
  list-style: none;
}
.dress-card li {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #4a443e;
}
@media (max-width: 1024px) {
  .dress-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .dress-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dress-grid { grid-template-columns: 1fr; }
}

/* Shared horizontal event-card row (Auditions timeline, Competition Team
   events): simple date/detail cards, no photo or link, same white-card-
   with-border recipe already used by .dress-card / .prog-card / etc. */
.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
}
.event-card {
  background: var(--color-white);
  border: 1px solid #e0d8d0;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.event-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent-text);
  margin-bottom: 0.5rem;
}
.event-card-detail {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a443e;
}
@media (max-width: 700px) {
  .event-cards { grid-template-columns: 1fr; }
}

/* Compact hero modifier (small pages: Dress Code, Employment, Auditions,
   Alumni, Community Events, Competition Team): roughly half the standard
   hero height, flat charcoal only (no photo planned for these), centered
   text instead of the site-wide left-aligned hero. The class owns the
   background color (must match the fixed .utility-bar/.site-header.scrolled
   charcoal above it) and disables the base .hero::before gradient, which
   is designed to darken the LEFT edge for left-aligned text over photos
   and would otherwise turn this flat band into a lopsided vignette.
   .hero-overlay-text p normally isn't centered as a block (only its text
   would be, via text-align), so its max-width column gets auto margins. */
.hero-compact {
  min-height: 290px;
  background-color: #26292b;
}
.hero-compact::before {
  content: none;
}
.hero-compact .hero-overlay-text {
  /* Top padding must clear the full fixed header stack: 36px utility bar
     + nav (2rem padding + ~50px Enroll button, the tallest flex item)
     = ~118px on desktop. Only top/bottom are set (longhand, NOT the
     padding shorthand) so the base rule's side padding and the mobile
     media queries' narrower gutters still apply to compact heroes. */
  padding-top: 124px;
  padding-bottom: 30px;
  text-align: center;
}
.hero-compact .hero-overlay-text p {
  margin-left: auto;
  margin-right: auto;
}

/* White section band: alternating-background override previously repeated
   as inline styles on multiple pages; use with .camps-section. */
.section-white {
  background: var(--color-white);
}

/* About page "Our Story": clamp to 5 lines until expanded, same technique
   as .team-bio's line-clamp toggle. */
.mission-story:not(.expanded) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.mission-vision {
  font-weight: 600;
}

.mission-readmore {
  margin-top: 0.5rem;
}

/* Summer page: "Why Dance at EDS This Summer?" benefit grid. Reuses the
   .feature-row base card recipe (icon/h3/p), centered with no dividers like
   .summer-features/.fall-features, just sized for 7 items instead of 3. */
.why-dance-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2.75rem 2rem;
  text-align: center;
  margin-top: 1rem;
}

.why-dance-grid .feature {
  border-left: none;
  padding-left: 0;
}

.why-dance-grid .feature-icon {
  margin: 0 auto 1rem;
}

.why-dance-grid .feature p {
  max-width: 32ch;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .why-dance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-dance-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* News page: newsletter signup band. Dark #26292b directly above the footer,
   same approved placement pattern as About's cta-band. The form posts to the
   real Mailchimp audience (embed-style action; u/id verified against the
   account's hosted signup page) and opens Mailchimp's confirmation in a new
   tab. The archive link below it goes to the self-updating campaign archive. */
.newsletter-band {
  background: #26292b;
  color: var(--color-text-on-dark);
  text-align: center;
  padding: 5rem 2rem;
}

.newsletter-band .text-link,
.newsletter-band .eyebrow-script {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.newsletter-band h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  margin: 0.25rem 0 1rem;
}

.newsletter-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #b8b1a7;
  max-width: 52ch;
  margin: 0 auto 2.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(224, 216, 208, 0.35); /* brand tan at low alpha, quiet on the dark band */
  color: var(--color-text-on-dark);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.newsletter-form input[type="email"]::placeholder {
  color: #8d8880;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
}

.newsletter-form .btn {
  flex-shrink: 0;
}

.newsletter-archive {
  font-size: 0.9rem;
  color: #b8b1a7;
  margin-top: 1.75rem;
}

@media (max-width: 600px) {
  .newsletter-band {
    padding: 3.5rem 1.25rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* Inline prose links inside Recital Resources panels (Costume Info's
   exchange form link): same accent recipe as .news-subsection a. */
.recital-resource-panel a {
  color: var(--color-accent-text);
  border-bottom: 1px solid var(--color-accent-text);
}

/* ---------------------------------------------------------------------------
   Live Class Openings: responsive fix for the Jackrabbit tables
   ---------------------------------------------------------------------------
   Jackrabbit's OpeningsJS embed document.write()s its own <style> block plus a
   10-column <table class="responsive-table">. That stylesheet IS responsive,
   but its stacked-card breakpoint is @media (min-width: 475px), which is far
   too low for a table this wide: at a 768px viewport the Description column
   collapses to 90px and a single class row renders 1408px tall (measured).

   We can't edit their stylesheet, but it's injected into the body with modest
   specificity, so prefixing every selector with .class-filter-panel (one extra
   class) wins the cascade without !important. These rules re-apply their own
   narrow-viewport card layout all the way up to 1100px, the same breakpoint
   where the site's nav collapses, so "site is in tablet/mobile mode" and
   "class tables are in card mode" are one rule, not two.

   Below 1100px each class reads as a labeled card (their td[data-title]:before
   labels do the work); at 1101px and up the real table returns unchanged. */
@media (max-width: 1100px) {
  .class-filter-panel .responsive-table tbody,
  .class-filter-panel .responsive-table tr,
  .class-filter-panel .responsive-table th,
  .class-filter-panel .responsive-table td {
    display: block;
  }

  /* Re-hide the column headers: in card mode the per-cell data-title labels
     replace them (kept accessible rather than display:none, same as theirs). */
  .class-filter-panel .responsive-table thead {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    overflow: hidden;
  }

  /* One bordered card per class, and no zebra striping (it reads as stripes
     across cards rather than alternating rows once rows are blocks). */
  .class-filter-panel .responsive-table tbody tr {
    border: 2px solid rgba(94, 93, 82, 1);
    margin-bottom: 1em;
    background-color: transparent;
  }

  .class-filter-panel .responsive-table tbody tr:last-of-type {
    margin-bottom: 0;
  }

  /* Restore the "Days: Mon" style inline field labels. Theirs has no gap after
     the floated label, so it collides with the Description paragraph. */
  .class-filter-panel .responsive-table tbody td[data-title]:before {
    content: attr(data-title);
    float: left;
    margin-right: 0.9em;
    font-size: 0.9em;
    color: rgba(94, 93, 82, 0.75);
  }

  .class-filter-panel .responsive-table tbody td[data-title].jr-reg-col:before {
    content: '';
  }

  /* Value right, label left, on one line per field. The [data-type] selector
     is spelled out because their currency rule centres it at equal
     specificity, and theirs is injected after this stylesheet. */
  .class-filter-panel .responsive-table tbody td,
  .class-filter-panel .responsive-table tbody td[data-type='currency'] {
    text-align: right;
  }

  /* Their table layout pins Ages to a 90px column, which in card mode leaves
     the value stranded beside its label instead of at the card's right edge. */
  .class-filter-panel .responsive-table tbody tr td[data-title='Ages'] {
    width: auto;
  }

  /* Short values that should never wrap onto a second line next to the label
     ("3 yrs - 5 yrs" was breaking mid-range). */
  .class-filter-panel .responsive-table tbody td[data-title='Ages'],
  .class-filter-panel .responsive-table tbody td[data-title='Days'],
  .class-filter-panel .responsive-table tbody td[data-title='Times'] {
    white-space: nowrap;
  }

  /* The one genuinely long field: label on its own line, paragraph below it at
     full card width, so it doesn't wrap around a floated label. */
  .class-filter-panel .responsive-table tbody td[data-title='Description'] {
    text-align: left;
  }

  .class-filter-panel .responsive-table tbody td[data-title='Description']:before {
    float: none;
    display: block;
    margin: 0 0 0.2rem;
  }

  .class-filter-panel .responsive-table tbody th[scope='row'],
  .class-filter-panel .responsive-table tbody :first-child {
    text-align: left;
  }

  /* Their container margin (5% 3% narrow / 2em auto wide) doubles up on the
     padding our own panel already provides; reclaim it for card width. */
  .class-filter-panel .jr-container {
    margin: 0;
  }
}

/* Safety net at every width: a table that ends up wider than its panel scrolls
   inside the panel instead of pushing the whole page sideways. */
.class-filter-panel {
  overflow-x: auto;
}

@media (max-width: 600px) {
  /* Phone: the section, the panels wrapper and the panel were each adding side
     padding, leaving cards only 241px wide inside a 375px screen. */
  .class-filter-panels {
    padding: 0;
  }

  .class-filter-panel {
    padding: 0.75rem;
  }
}
