/* ============================================
   JENNY FIGMENT — Educators & Parents
   ============================================ */

.educators-hero {
  background: var(--burgundy);
  padding-block: var(--space-16) var(--space-12);
  position: relative;
  overflow: hidden;
}

.educators-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.educators-hero__content {
  position: relative;
  z-index: 1;
  color: var(--cream-light);
}

/* Quick links bar */
.quick-links {
  background: var(--cream);
  border-top: 1px solid var(--pink-soft);
  border-bottom: 1px solid var(--pink-soft);
  padding-block: var(--space-4);
}

.quick-links__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.quick-links__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--burgundy-light);
}

/* Below ~576px, ghost links (transparent background) wrapped onto multiple
   rows read as inconsistently indented — whichever link happens to lead a
   row shows its own invisible left padding, while a row led by the plain
   label doesn't. A single-column stack sidesteps that: every link starts
   at the same left edge regardless of how narrow the screen is. */
@media (max-width: 36em) {
  .quick-links__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

.educators-hero .section-title { color: var(--cream-light); }
.educators-hero .section-subtitle { color: rgba(247, 223, 234, 0.75); }

/* Ghost CTAs on dark panels (must live in CSS so :hover works; inline styles block it) */
.btn.btn--ghost-panel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream-light);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
  transition:
    transform var(--duration-fast) var(--ease-bounce),
    box-shadow var(--duration-fast) var(--ease-smooth),
    background-color var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth),
    color var(--duration-fast) var(--ease-smooth);
}

.btn.btn--ghost-panel:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn.btn--ghost-panel-mid {
  background: rgba(255, 255, 255, 0.15);
  color: var(--cream-light);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
  transition:
    transform var(--duration-fast) var(--ease-bounce),
    box-shadow var(--duration-fast) var(--ease-smooth),
    background-color var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth),
    color var(--duration-fast) var(--ease-smooth);
}

.btn.btn--ghost-panel-mid:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn.btn--ghost-panel-strong {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
  transition:
    transform var(--duration-fast) var(--ease-bounce),
    box-shadow var(--duration-fast) var(--ease-smooth),
    background-color var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth),
    color var(--duration-fast) var(--ease-smooth);
}

.btn.btn--ghost-panel-strong:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Keep Extraordinary Kids CTA on its original hover treatment */
.extraordinary-kids .btn.btn--ghost-panel-strong:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── Audience tabs ──────────────────────────── */
.audience-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.audience-tab {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--burgundy-light);
  transition: all var(--duration-fast);
  font-family: var(--font-body);
}

.audience-tab.is-active,
.audience-tab:hover {
  background-color: var(--page-accent, var(--pink-hot));
  border-color: var(--page-accent, var(--pink-hot));
  color: var(--white);
}

/* ── Resource grid ──────────────────────────── */
.resources-section {
  background-color: var(--cream-light);
}

.resource-filter {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--cream);
  background: var(--white);
  color: var(--burgundy-light);
  transition: all var(--duration-fast);
  font-family: var(--font-body);
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--page-accent-soft, var(--pink-glow));
  border-color: var(--page-accent, var(--pink-hot));
  color: var(--page-accent, var(--pink-hot));
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 48em) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Author's note (grown-up kids) ─────────── */
.grown-up-note {
  border-top: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
}

.grown-up-note__inner {
  text-align: center;
}

.grown-up-note__inner .section-title {
  margin-bottom: var(--space-8);
}

.grown-up-note__prose {
  max-width: 48rem;
  margin-inline: auto;
  text-align: left;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--burgundy);
}

.grown-up-note__prose p {
  margin: 0 0 var(--space-4);
}

.grown-up-note__list {
  margin: 0 0 var(--space-6);
  padding-left: var(--space-6);
  list-style-type: disc;
}

.grown-up-note__list li {
  margin-bottom: var(--space-2);
}

.grown-up-note__list--short {
  margin-bottom: var(--space-4);
}

.grown-up-note__prose p.grown-up-note__signoff {
  margin-top: var(--space-8);
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--burgundy-light);
}

/* ── School Visits CTA block ──────────────── */
.school-visit-cta {
  background: var(--burgundy-warm);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  color: var(--cream-light);
  position: relative;
  overflow: hidden;
}

.school-visit-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--cream-light);
  margin-bottom: var(--space-3);
}

.school-visit-cta__text {
  font-size: var(--text-base);
  color: rgba(247, 223, 234, 0.75);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}

/* ── School Visits Page ──────────────────── */
.visits-hero {
  background-color: var(--cream-paper);
  padding-block: var(--space-16);
}

.visits-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-block: var(--space-8);
}

@media (min-width: 48em) {
  .visits-details {
    grid-template-columns: repeat(3, 1fr);
  }
}

.visits-detail-card {
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  border: 1px solid var(--cream);
}

.visits-detail-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  display: block;
}

.visits-detail-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--page-accent, var(--pink-hot));
  margin-bottom: var(--space-2);
}

.visits-detail-card__value {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--burgundy);
}

/* School visits — photo gallery (arrows + scroll; scroller must min-width:0 inside flex viewport) */
.visits-gallery-section {
  border-top: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
}


.visits-gallery-section .visits-gallery__scroller {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  touch-action: pan-x pinch-zoom;
}

.visits-gallery-section .visits-gallery__strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--space-4);
  width: max-content;
  box-sizing: border-box;
}

.visits-gallery-section .visits-gallery__figure {
  flex: 0 0 auto;
  width: min(21rem, calc(100vw - var(--visits-gallery-nav) * 2 - var(--space-4) * 2 - 2rem));
  max-width: min(21rem, calc(100vw - var(--visits-gallery-nav) * 2 - var(--space-4) * 2 - 2rem));
  margin: 0;
  flex-shrink: 0;
}

@media (min-width: 40em) {
  .visits-gallery-section .visits-gallery__figure {
    width: min(25rem, calc(100vw - var(--visits-gallery-nav) * 2 - 3rem));
    max-width: min(25rem, calc(100vw - var(--visits-gallery-nav) * 2 - 3rem));
  }
}

@media (min-width: 64em) {
  .visits-gallery-section .visits-gallery__figure {
    width: min(27rem, calc(100vw - var(--visits-gallery-nav) * 2 - 4rem));
    max-width: min(27rem, calc(100vw - var(--visits-gallery-nav) * 2 - 4rem));
  }
}


.visits-gallery__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--cream-light);
}

.visits-gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

/* School visits — author promo video embed */
.visits-video {
  position: relative;
  width: 100%;
  max-width: 46rem;
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cream);
  box-shadow: var(--shadow-lg);
}

.visits-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* Inquiry form */
.inquiry-form-section {
  background-color: var(--cream-paper);
  border-top: 1px solid var(--cream);
}

.inquiry-form {
  background: var(--cream-light);
  border: 1px solid var(--cream);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-md);
  max-width: 44rem;
  margin-inline: auto;
}

.inquiry-form__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.inquiry-form__subtitle {
  font-size: var(--text-base);
  color: var(--burgundy-light);
  margin-bottom: var(--space-8);
}

/* Extraordinary Kids section */
.extraordinary-kids {
  background: var(--jenny-purple);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* The "Nominate an Extraordinary Kid" CTA is a .btn--lg, which pairs
   large horizontal padding with white-space: nowrap — on a narrow phone
   there isn't room for the card's own padding, the button's padding, and
   that whole phrase on one line, so it ran past the card's edge. */
@media (max-width: 30em) {
  .extraordinary-kids {
    padding-inline: var(--space-5);
  }

  .extraordinary-kids .btn--lg {
    max-width: 100%;
    white-space: normal;
    padding-inline: var(--space-5);
  }
}

.extraordinary-kids__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-3);
}

.extraordinary-kids__logo-wrap {
  margin: 0 auto var(--space-6);
  max-width: 15rem;
  padding: 0;
}

.extraordinary-kids__logo {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.extraordinary-kids__text {
  font-size: var(--text-lg);
  opacity: 0.85;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

