/* Shared layouts for WCC's parent-information pages. */

.subpage-header {
  --compact-brand-opacity: 1;
  --compact-brand-width: 164px;
  --compact-brand-y: 0px;
  --display-brand-opacity: 0;
  position: sticky;
}

.brand--subpage {
  width: 164px;
}

/* Parent pages have one in-flow logo, not the homepage's floating logo. */
.subpage-header .header-inner {
  width: 100%;
  margin-left: 0;
}

.contact-list a {
  overflow-wrap: anywhere;
}

.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 138px) 0 clamp(86px, 10vw, 150px);
  background: var(--cream);
}

.page-hero::after {
  position: absolute;
  right: -7vw;
  bottom: -18vw;
  width: min(52vw, 680px);
  aspect-ratio: 1;
  background: rgba(137, 182, 112, 0.13);
  border-radius: 44% 56% 61% 39% / 54% 39% 61% 46%;
  content: "";
  transform: rotate(18deg);
}

.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: clamp(36px, 7vw, 112px);
}

.page-hero h1 {
  max-width: 12ch;
  margin: 0.15em 0 0.32em;
  font-family: var(--display);
  font-size: clamp(3.8rem, 7.4vw, 7.2rem);
  font-variation-settings: "opsz" 96, "SOFT" 75;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}

.page-hero h1 span {
  display: block;
  margin-top: 0.14em;
  color: var(--logo-green-dark);
  font-style: italic;
  font-weight: 470;
}

.page-hero__lede {
  max-width: 62ch;
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  line-height: 1.7;
}

.page-hero__media {
  position: relative;
  margin: 0;
}

.page-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 45% 55% 46% 54% / 38% 40% 60% 62%;
  box-shadow: 0 36px 70px rgba(16, 61, 67, 0.16);
}

.page-hero__media--wide img {
  aspect-ratio: 5 / 4;
  border-radius: 34px 96px 42px 110px;
}

.page-hero__media figcaption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 7px 11px;
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(16, 61, 67, 0.12);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.page-section {
  padding: clamp(84px, 10vw, 156px) 0;
}

.page-section--paper { background: var(--paper); }
.page-section--sky { background: var(--sky); }
.page-section--leaf { background: var(--mint); }
.page-section--sun { background: #ffe39a; }

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(38px, 6vw, 76px);
}

.section-heading h2,
.story-copy h2,
.contact-panel h2 {
  margin: 0.18em 0 0.3em;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.8vw, 5.8rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.section-heading > p:not(.eyebrow),
.story-copy > p,
.contact-panel > p {
  max-width: 65ch;
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.75;
}

.story-grid,
.contact-grid,
.resource-grid,
.program-grid,
.value-grid,
.donate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
}

.story-grid {
  align-items: center;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.story-grid img,
.contact-grid img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
  border-radius: 38px 110px 44px 92px;
}

.value-card,
.program-card,
.resource-card,
.contact-panel,
.donate-card,
.tuition-panel {
  position: relative;
  padding: clamp(28px, 4vw, 50px);
  background: rgba(255, 253, 247, 0.9);
  border-radius: 34px 16px 42px 22px;
  box-shadow: 0 24px 60px rgba(16, 61, 67, 0.08), inset 0 0 0 1px rgba(16, 61, 67, 0.07);
}

.value-card:nth-child(even),
.program-card:nth-child(even),
.resource-card:nth-child(even) {
  border-radius: 18px 40px 20px 48px;
}

.value-card h3,
.program-card h3,
.resource-card h3,
.donate-card h3 {
  margin: 0 0 0.45em;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.value-card p,
.program-card p,
.resource-card p,
.donate-card p,
.program-card li {
  line-height: 1.65;
}

.program-card__days,
.resource-card__meta {
  margin-bottom: 0.9rem;
  color: var(--logo-green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-card ul,
.fee-list,
.contact-list {
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.program-card li,
.fee-list li,
.contact-list li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.program-card strong,
.fee-list strong {
  display: block;
  color: var(--ink);
}

.tuition-panel {
  padding: clamp(26px, 4vw, 48px);
}

.tuition-table-wrap {
  overflow-x: auto;
  scrollbar-color: var(--logo-green) transparent;
}

.tuition-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tuition-table caption {
  padding-bottom: 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 680;
  text-align: left;
}

.tuition-table th,
.tuition-table td {
  padding: 1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tuition-table thead th {
  color: var(--logo-green-dark);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tuition-table td:last-child,
.tuition-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.resource-card a:not(.button),
.contact-panel a:not(.button),
.donate-card a:not(.button) {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.resource-card__action {
  display: inline-flex;
  margin-top: 1rem;
}

.page-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 10vw, 140px) 0;
  background: var(--plum);
  color: var(--paper);
}

.page-cta .shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.page-cta h2 {
  max-width: 12ch;
  margin: 0.12em 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.page-cta .button {
  flex: 0 0 auto;
}

.subpage-footer .footer-grid {
  padding-top: clamp(68px, 8vw, 110px);
}

.source-note,
.contact-fallback {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 203, 79, 0.17);
  border-left: 4px solid var(--gold);
  border-radius: 4px 16px 16px 4px;
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .brand--subpage {
    width: 146px;
  }

  .page-hero__grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .page-hero__media {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding-top: 64px;
  }

  .page-hero h1 {
    font-size: clamp(3.2rem, 17vw, 5.5rem);
  }

  .page-hero__media img {
    aspect-ratio: 5 / 4;
  }

  .story-grid,
  .contact-grid,
  .resource-grid,
  .program-grid,
  .value-grid,
  .donate-grid {
    grid-template-columns: 1fr;
  }

  .story-grid img,
  .contact-grid img {
    min-height: 310px;
  }

  .page-cta .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .tuition-table caption {
    width: calc(100vw - 64px);
    font-size: clamp(1.6rem, 8.5vw, 2.15rem);
    line-height: 1.05;
  }

  .tuition-table {
    min-width: 620px;
  }

  .tuition-table th,
  .tuition-table td {
    padding: 0.8rem 0.7rem;
  }
}

/* Launch polish v1: shared mobile rhythm for parent-information pages. */
@media (max-width: 760px) {
  .page-hero {
    padding: 48px 0 68px;
  }

  .page-hero::after {
    right: -32vw;
    bottom: -34vw;
    width: 92vw;
    opacity: 0.68;
  }

  .page-hero__grid {
    gap: 30px;
  }

  .page-hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 14vw, 4.25rem);
    line-height: 1.06;
  }

  .page-hero__lede {
    font-size: 1rem;
    line-height: 1.65;
  }

  .page-hero__media {
    width: 100%;
    max-width: none;
  }

  .page-hero__media img,
  .page-hero__media--wide img {
    aspect-ratio: 4 / 3;
    border-radius: 28px 58px 30px 62px;
  }

  .page-section {
    padding: 66px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .story-copy h2,
  .contact-panel h2 {
    font-size: clamp(2.4rem, 11vw, 3.3rem);
    line-height: 1.1;
  }

  .story-grid,
  .contact-grid,
  .resource-grid,
  .program-grid,
  .value-grid,
  .donate-grid {
    gap: 18px;
  }

  .story-grid img,
  .contact-grid img {
    min-height: 280px;
    border-radius: 28px 62px 30px 58px;
  }

  .value-card,
  .program-card,
  .resource-card,
  .contact-panel,
  .donate-card,
  .tuition-panel {
    padding: 24px 20px;
    border-radius: 24px 12px 28px 16px;
  }

  .value-card:nth-child(even),
  .program-card:nth-child(even),
  .resource-card:nth-child(even) {
    border-radius: 14px 28px 16px 30px;
  }

  .page-cta {
    padding: 64px 0 72px;
  }

  .page-cta .shell {
    gap: 26px;
  }

  .page-cta h2 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .subpage-footer .footer-grid {
    padding-top: 0;
  }
}
