/* YCCD 19.1.4 — Hero slider live text visibility.
   The v13 chapter-reveal engine does not observe the hero slider. Keep its copy
   visible independently of that engine, even on slides that are switched later.
   Scoped to the homepage; leaves CMS preview and other site components intact. */
body.page-home .ui-hero-slide .ui-hero-copy-wrap {
  position: relative;
  z-index: 3;
}
body.page-home .ui-hero-slide .ui-hero-copy,
body.page-home .ui-hero-slide .ui-hero-copy[data-v13-reveal] {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  min-width: 0;
}
body.page-home .ui-hero-slide .ui-hero-copy h1,
body.page-home .ui-hero-slide .ui-hero-copy p {
  overflow-wrap: break-word;
}
body.page-home .ui-hero-slide .ui-hero-copy p { white-space: pre-line; }
body.page-home .ui-hero-slide .ui-hero-actions { position: relative; z-index: 2; }
/* Preserve slide-level light/dark type colors and existing button treatments. */
@media (prefers-reduced-motion: reduce) {
  body.page-home .ui-hero-slide .ui-hero-copy { transition: none; }
}

/* The former 370px mobile hero left the CTA links beneath the overlapping
   verification dock. Reserve enough vertical room for the live slide text. */
@media (max-width: 900px) {
  body.v16.page-home .v13-hero-stage,
  body.v16.page-home .v13-hero-copy-wrap {
    min-height: max(var(--v16-mobile-hero, 370px), 560px) !important;
  }
  body.v16.page-home .v13-hero-copy-wrap {
    padding-bottom: 110px !important;
  }
}
