.inner-page { --home-charcoal: #121922; }
.inner-page .site-header {
  background: var(--home-charcoal);
  border-bottom: 0;
  backdrop-filter: none;
}
.inner-page .site-header :is(.brand-name, .brand-city) { color: #fff; }
.inner-page .menu-toggle { color: #fff; background: transparent; border-color: #8a8d96; }
.inner-page .inner-hero { border-top: 0; background: var(--home-charcoal); }
.inner-hero.utility-hero { padding-block: clamp(48px, 7vw, 90px); }
.inner-page .photo-hero .home-hero-copy { max-width: 600px; }
.inner-page .inner-hero :is(.back-link, .blue, .text-link, .location-hours a) { color: #b2c8ed; }
.inner-page .inner-hero .hero-proof { color: #edf5fc; border-color: #8092ad; }
.inner-page .inner-hero :is(address, .location-hours) { color: #edf5fc; }
.inner-page .inner-hero .btn-outline { border-color: #d4dfee; color: #fff; }
.inner-page .photo-hero::after { background: #fff; }
.inner-page .inner-band-white { --inner-band-background: #fff; }
.inner-page .inner-band-cream { --inner-band-background: var(--paper); }
.inner-page .inner-band-navy { --inner-band-background: var(--navy); }
.inner-page :is(.inner-band-white, .inner-band-cream, .inner-band-navy):not(.review-band) {
  background: var(--inner-band-background);
}
.inner-page .section.container:is(.inner-band-white, .inner-band-cream) {
  position: relative;
  isolation: isolate;
}
.inner-page .section.container:is(.inner-band-white, .inner-band-cream)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  box-shadow: 0 0 0 100vmax var(--inner-band-background);
  clip-path: inset(0 -100vmax);
}
.inner-page :is(.flow-card, .value-card, .price-card, .team-card, .blog-card) {
  background-color: #fff;
  border-color: var(--line);
}
.inner-page .blog-card img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; width: 100%; }
.inner-page .review-band .review-card :is(.review-summary, .review-excerpt) { color: #fff; }
@media (min-width: 821px) {
  .inner-page .site-header :is(.main-nav > a:not(.nav-book), .program-menu > summary) { color: #fff; }
}
@media (max-width: 820px) {
  .inner-page .photo-hero-images img { object-position: center 45%; }
  .inner-page .photo-hero-layout { padding-bottom: calc(32px + var(--hero-cut)); }
}
.inner-page .article-hero .article-meta { color: #d4dfee; }
.inner-page .article-cta { background: #fff; border-color: var(--line); }
.inner-page .review-band::before { background: var(--navy); }
.inner-page .review-band + .faq-section::before { display: none; }

.inner-page .review-band .reviews-head p { color: #e4ecf5; }
.inner-page .compact-review-section.review-band::before { background: #fff; }
.inner-page #one-art .small-callout { margin-top: 24px; }
.inner-page .about-hero .photo-hero-images img { object-position: center 62%; }
.inner-page .adult-hero .photo-hero-images img { object-position: center 25%; }
@media (max-width: 820px) {
  .inner-page .about-hero .photo-hero-images { aspect-ratio: 18 / 11; }
  .inner-page .adult-hero .photo-hero-images img { object-position: 70% center; }
}

.inner-page .blog-hero::after { background: var(--paper); }
.inner-page .blog-hero .photo-hero-images img { object-position: center 59%; }
.inner-page .blog-trial h2 { color: #fff; }
.inner-page .blog-trial .gallery-intro { color: #e4ecf5; }
@media (min-width: 821px) {
  .inner-page .blog-hero .photo-hero-layout { min-height: clamp(465px, 44vw, 585px); }
}

/* Program galleries share a single tile shape, with a full grid at each breakpoint. */
.inner-page.program-page .training-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  gap: 18px;
}
.inner-page.program-page .training-gallery-grid.gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inner-page.program-page .training-gallery-grid figure {
  margin: 0;
  grid-column: auto;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 2;
}
.inner-page.program-page .training-gallery-grid figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}
.inner-page.program-women .training-gallery-grid figure:first-child img { object-position: center 30%; }

/* Program pages share a full-bleed hero, with a split option for paired practice. */
.inner-page.program-women .hero-left .photo-hero-images img { object-position: center 32%; }
.inner-page .kids-hero .photo-hero-images img { object-position: center 44%; }
@media (min-width: 821px) {
  .inner-page.program-page .hero-left .photo-hero-layout { min-height: clamp(460px, 43vw, 590px); padding-block: 52px calc(40px + var(--hero-cut)); }
  .inner-page .service-hero .photo-hero-layout { min-height: clamp(390px, 40vw, 525px); }
  .inner-page .tuition-hero .photo-hero-images img { object-position: center 45%; }
}
.inner-page .inner-band-tinted { background: #e4ecf5; }
.inner-page .section.container.inner-band-tinted {
  clip-path: inset(0 -100vmax);
  box-shadow: 0 0 0 100vmax #e4ecf5;
}
.program-section-label { margin-bottom: 16px; font-size: 14px; color: var(--muted); }

/* These excerpts and drafts stay separate from the full review sections. */
.program-intro-notes {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: 26px;
  padding-block: 28px;
  align-items: start;
}
.program-pullquote { margin: 0; padding: 24px; background: #364866; color: #fff; border-radius: 14px; }
.program-pullquote blockquote { margin: 0 0 12px; font-size: clamp(20px, 2.3vw, 28px); font-weight: 750; line-height: 1.35; }
.program-pullquote figcaption { color: #e4ecf5; font-size: 13px; }
.program-coach { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.program-coach img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.program-coach h2 { font-size: 22px; margin-bottom: 4px; }
.program-coach p { margin: 0; }
.program-coach .coach-name { font-size: 13px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.program-page .flow-grid.flow-timeline { grid-template-columns: 1fr; gap: 0; max-width: 810px; border-inline-start: 2px solid #8092ad; }
.program-page .flow-timeline .flow-card { margin-inline-start: 22px; margin-bottom: 12px; min-height: 0; }
.program-page .flow-list { max-width: 850px; padding-inline-start: 24px; }
.program-page .flow-list li { padding-inline-start: 10px; margin-bottom: 20px; }
.program-page .flow-list h3 { margin-bottom: 6px; }

/* All portraits use the same white-backed square crop. */
.inner-page :is(.instructor-photo, .instructor-profile-photo) {
  background: #fff;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
}
.inner-page :is(.team-portrait, .instructor-photo img, .instructor-profile-photo img) {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.inner-page .instructor-photo img { width: min(100%, 240px); }
.inner-page .instructor-profile-photo { width: min(100%, 280px); justify-self: center; }
.inner-page .instructor-profile-hero .instructor-profile-role { color: #d4dfee; }
.inner-page #coaches .team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.inner-page #coaches .team-card { flex: 0 0 calc((100% - 60px) / 4); min-width: 0; }
.inner-page .contact-hero .location-copy { padding: 24px; background: #242528; border-radius: 16px; }
.inner-page .contact-hero .location-map-shell { border-color: #8092ad; }
@media (max-width: 820px) {
  .inner-page.program-page .training-gallery-grid.gallery-3 { grid-template-columns: minmax(0, 1fr); }
  .program-intro-notes { grid-template-columns: minmax(0, 1fr); }
  .inner-page #coaches .team-card { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 600px) {
  .inner-page.program-page .training-gallery-grid.gallery-4 { grid-template-columns: minmax(0, 1fr); }
  .inner-page #coaches .team-card { flex-basis: calc((100% - 20px) / 2); }
  .program-coach { gap: 12px; padding: 16px; }
  .program-coach img { width: 64px; height: 64px; }
}

.program-page .flow-list .flow-index { margin-bottom: 4px; }
@media (max-width: 600px) {
  .inner-page #coaches .team-card { padding: 16px; }
}

/* Keep class steps and nearby bands compact across programs. */
.inner-page.program-page main > .section { padding-block: clamp(32px, 4vw, 54px); }
.inner-page.program-page .pressure-feature-grid { padding-block: clamp(38px, 4vw, 56px); }
.inner-page.program-page .flow-card { min-height: 0; padding: 22px; }
.inner-page.program-page .flow-card .flow-index { margin-bottom: 10px; }
.inner-page.program-page .flow-card p { margin-bottom: 0; }
.program-youth .hero-left::after { background: var(--navy); }
.program-adult-teen .hero-left::after, .program-kids .hero-left::after,
.program-parent-child .hero-left::after, .program-women .hero-left::after { background: #e4ecf5; }
@media (max-width: 820px) {
  .inner-page.program-page .photo-hero-layout { padding-block: 28px calc(24px + var(--hero-cut)); }
}

.program-pullquote a { color: inherit; text-decoration: underline; }
@media (min-width: 821px) {
  .inner-page.program-page:not(.program-adult-teen) .photo-hero-images {
    left: auto;
    width: 66%;
    max-width: 1120px;
  }
  .inner-page.program-page:not(.program-adult-teen) .photo-hero .home-hero-copy {
    width: min(100%, 560px);
    max-width: 49%;
  }
  .inner-page.program-page:not(.program-adult-teen) .photo-hero::before {
    background: linear-gradient(90deg, var(--home-charcoal) 28%, rgba(18, 25, 34, .95) 35%, rgba(18, 25, 34, .64) 44%, transparent 64%);
  }
  .inner-page.program-page:not(.program-adult-teen) .photo-hero-images img { object-position: center 45%; }
  .inner-page.program-page.program-women .photo-hero-images img { object-position: center 32%; }
}

.inner-page .first-visit-hero .photo-hero-images img { object-position: center 40%; }
.inner-page .booking-intro p:not(.eyebrow) { color: #e4ecf5; }

/* Portrait class photos keep both partners visible in the Parent & Child hero. */
@media (min-width: 821px) {
  .inner-page.program-parent-child .photo-hero .photo-hero-images { width: 50%; }
  .inner-page.program-parent-child .photo-hero .photo-hero-images img { object-fit: contain; object-position: center; }
}
@media (max-width: 820px) {
  .inner-page.program-parent-child .photo-hero-images { aspect-ratio: auto; }
  .inner-page.program-parent-child .photo-hero-images img {
    position: relative;
    display: block;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: center;
  }
}

/* Parent & Child class portraits retain their full composition. */
.inner-page.program-parent-child .training-gallery-grid {
  max-width: 900px;
  margin-inline: auto;
  align-items: start;
}
.inner-page.program-parent-child .training-gallery-grid figure { aspect-ratio: auto; }
.inner-page.program-parent-child .training-gallery-grid figure img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
@media (max-width: 820px) {
  .inner-page.program-parent-child .training-gallery-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
}

/* Match the family photograph to the school-history text column. */
#community .community-group-figure { max-width: 850px; }

@media (min-width: 821px) {
  .inner-page.program-parent-child .training-gallery-grid.gallery-2 > figure:last-child:nth-child(3) {
    grid-column: 1 / -1;
    width: calc((100% - 24px) / 2);
    justify-self: center;
  }
}
