/* Homepage section alignment + Science-style submenu — v62 */

/* The eight numbered homepage chapters begin on one shared vertical rhythm. */
body.home-v253 main > section.section:is(
  #programme,
  #thymus,
  #study,
  #evidence,
  #outcomes,
  #film,
  #leadership,
  #pathway
) {
  padding-top: 104px !important;
}

/* Two media-led sections previously vertically centred their copy, pushing the
   eyebrow farther down. Top-align them so the eyebrow begins at the same section
   offset as the other numbered chapters. */
body.home-v253 #thymus .thymus__layout,
body.home-v253 #outcomes .questionnaire__layout {
  align-items: start !important;
}
body.home-v253 #thymus .thymus__copy,
body.home-v253 #outcomes .questionnaire__copy {
  align-self: start !important;
}

/* Keep the first eyebrow itself free of any accidental top offset. */
body.home-v253 main > section.section:is(
  #programme,
  #thymus,
  #study,
  #evidence,
  #outcomes,
  #film,
  #leadership,
  #pathway
) .eyebrow:first-child {
  margin-top: 0 !important;
}

/* Match the Science-page submenu component rather than spreading items across
   the full shell. */
body.home-v253.home-commercial-nav .home-index {
  min-height: 44px !important;
  height: 44px !important;
  top: 79px !important;
  background: rgba(246,241,235,.98) !important;
  border-top: 1px solid rgba(30,27,29,.075) !important;
  border-bottom: 1px solid rgba(30,27,29,.09) !important;
  box-shadow: 0 6px 18px rgba(28,24,25,.03) !important;
}
body.home-v253.home-commercial-nav .home-index__inner {
  min-height: 44px !important;
  height: 44px !important;
  justify-content: flex-start !important;
  gap: clamp(18px,2.25vw,34px) !important;
  padding-block: 0 !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
body.home-v253.home-commercial-nav .home-index__inner::-webkit-scrollbar {
  display: none !important;
}
body.home-v253.home-commercial-nav .home-index a {
  position: relative !important;
  flex: 0 0 auto !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #716d6b !important;
  font-size: clamp(.625rem,.6rem + .03vw,.6875rem) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .055em !important;
  white-space: nowrap !important;
}
body.home-v253.home-commercial-nav .home-index a::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 100% !important;
  bottom: 0 !important;
  height: 2px !important;
  border-radius: 2px 2px 0 0 !important;
  background: #9e2437 !important;
  transition: right .25s ease !important;
}
body.home-v253.home-commercial-nav .home-index a:hover,
body.home-v253.home-commercial-nav .home-index a:focus-visible,
body.home-v253.home-commercial-nav .home-index a.is-active {
  color: #9e2437 !important;
}
body.home-v253.home-commercial-nav .home-index a:hover::after,
body.home-v253.home-commercial-nav .home-index a:focus-visible::after,
body.home-v253.home-commercial-nav .home-index a.is-active::after {
  right: 0 !important;
}

@media (max-width: 1020px) {
  body.home-v253 main > section.section:is(
    #programme,#thymus,#study,#evidence,#outcomes,#film,#leadership,#pathway
  ) {
    padding-top: 88px !important;
  }
  body.home-v253.home-commercial-nav .home-index { top: 73px !important; }
}

@media (max-width: 760px) {
  body.home-v253 main > section.section:is(
    #programme,#thymus,#study,#evidence,#outcomes,#film,#leadership,#pathway
  ) {
    padding-top: 72px !important;
  }
  body.home-v253.home-commercial-nav .home-index { top: 69px !important; }
  body.home-v253.home-commercial-nav .home-index__inner {
    gap: 22px !important;
    padding-inline: 18px !important;
  }
  body.home-v253.home-commercial-nav .home-index a {
    font-size: .625rem !important;
  }
}
