/* Shared content rhythm. A boundary combines 24px below + 32px above,
   matching the homepage's approved 56px desktop spacing. Heroes, forms,
   articles and the review collage keep their own internal layouts. */
:root {
  --section-space-before: 32px;
  --section-space-after: 24px;
  --section-content-gap: 32px;
}

/* The animated boarding day owns its scroll runway and sticky-stage padding.
   Do not turn that deliberate scroll distance into a normal section gap. */
main > .section:not(.boarding-day.is-enhanced) {
  padding-top: var(--section-space-before);
  padding-bottom: var(--section-space-after);
}

/* The mat-check guide is a content block outside the photo hero. Its bottom
   margin participates in the same boundary as the next section padding. */
main > .hero-mat-check.wrap { margin-bottom: var(--section-space-after); }

/* Last-child text/disclosure margins should not silently add a second gutter.
   Deliberate CTA, illustration and grid spacing remains component-owned. */
main > .section > .wrap > :is(p, ul, ol):last-child,
main > .section .section-head > :last-child,
main > .section .card > :is(p, ul, ol):last-child,
main > .section .faq > details:last-child {
  margin-bottom: 0;
}

/* Nonanimated section introductions share a clear header-to-content gap.
   The boarding scene has compact controls with its own responsive rhythm. */
main > .section:not(.boarding-day) .section-head {
  margin-bottom: var(--section-content-gap);
}

@media (max-width: 960px) {
  :root {
    --section-space-before: 24px;
    --section-content-gap: 24px;
  }
}

/* With motion disabled the boarding day becomes ordinary document content. */
@media (prefers-reduced-motion: reduce), print {
  main > .section.boarding-day.is-enhanced {
    padding-top: var(--section-space-before);
    padding-bottom: var(--section-space-after);
  }
}
