/* Use the Grade 5 Theory banner's desktop image and text geometry for the top inset. */
main > .tuition-eyebrow-aligned {
  --grade-five-banner-height: calc(clamp(480px, 43vw, 680px) * 285 / 847 + 12px);
  --grade-five-copy-height: calc(56px + 18.7px + clamp(22px, 3.3vw, 46px) * 1.2 + 18px + (26px - 1pt) * 1.4);
  --tuition-eyebrow-inset: calc(24px + max(0px, (var(--grade-five-banner-height) - var(--grade-five-copy-height)) / 2));
}
main > .tuition-eyebrow-aligned > :is(.wrap, .grade-five-copy) {
  align-self: start;
  padding-top: var(--tuition-eyebrow-inset);
}
main > .tuition-eyebrow-aligned > :is(.wrap, .grade-five-copy) > .eyebrow {
  display: block;
  line-height: 18.7px;
  margin-top: 0;
}
@media (max-width: 800px) {
  main > .tuition-eyebrow-aligned { --tuition-eyebrow-inset: 24px; }
}

/* Tighten the space between the testimonial and the first tuition heading. */
main > .tuition-eyebrow-aligned + :is(.professional-endorsement, .grade-five-parent-testimonial) + .wrap {
  padding-top: clamp(36px, 4vw, 54px);
}
