/* Banner for inner pages: the home hero's rounded deep-teal card, shorter, with the header floating on it, a breadcrumb trail, the page's own title and one sentence.
   A photo, when the page has one, fills the right side under the same scrim. */
.brxe-section.st-pagehero {
  position: relative; isolation: isolate; display: block; width: auto;
  margin: var(--space-sm) var(--space-sm) 0; padding: 0;
  /* The same height as the home hero, so every page opens on the same card. */
  min-height: min(46rem, calc(100svh - var(--space-lg)));
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-deep); color: var(--color-on-deep);
  font-family: var(--font-body); font-weight: 400;
}
/* The page's featured image fills the right side like the home hero's photo (token from clinic.php); none, none drawn. */
.brxe-section.st-pagehero:not(.has-photo)::after {
  content: ""; position: absolute; inset: 0 0 0 auto; z-index: -2; width: 64%;
  background: var(--st-page-photo, none) 50% 35% / cover no-repeat;
  -webkit-mask-image: var(--photo-ramp); mask-image: var(--photo-ramp);
}
.brxe-section.st-pagehero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--color-deep) 78%, transparent) 0%, transparent 28%),
    var(--scrim-ease);
}
.brxe-image.st-pagehero__bg { position: absolute; inset: 0 0 0 auto; height: 100%; display: block; width: 62%; max-width: none; z-index: -2; margin: 0; -webkit-mask-image: var(--photo-ramp); mask-image: var(--photo-ramp); }
.brxe-image.st-pagehero__bg img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 35%; }

.brxe-container.st-pagehero__inner {
  display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: var(--container); min-height: inherit; margin-inline: auto;
  padding: calc(var(--space-3xl) + var(--space-lg)) calc(var(--gutter) + var(--space-sm)) var(--space-xl);
}
.brxe-block.st-pagehero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); max-width: 44rem; min-width: 0; }
.brxe-breadcrumbs.st-pagehero__crumbs { margin: 0 0 var(--space-xs); font-size: var(--text-sm); color: color-mix(in oklab, var(--color-on-deep) 78%, transparent); }
.st-pagehero__crumbs .item, .st-pagehero__crumbs .separator { color: inherit; font-size: inherit; }
.st-pagehero__crumbs a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-on-deep) 40%, transparent); text-underline-offset: 0.2em; }
.st-pagehero__crumbs a:focus-visible { outline: 2px solid var(--color-on-deep); outline-offset: 3px; border-radius: var(--space-3xs); }
.brxe-heading.st-pagehero__title {
  max-width: 22ch; margin: 0;
  font-family: var(--font-display); font-size: var(--text-display-s); font-weight: var(--display-weight); font-synthesis: none;
  letter-spacing: var(--tracking-display); line-height: 1.06; text-wrap: balance; overflow-wrap: break-word; min-width: 0; color: var(--color-on-deep);
}
.brxe-text-basic.st-pagehero__lede { max-width: 48ch; margin: 0; font-size: var(--text-lead); line-height: 1.45; color: color-mix(in oklab, var(--color-on-deep) 88%, transparent); }
.brxe-block.st-pagehero__actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }

@media (hover: hover) and (pointer: fine) {
  .st-pagehero__crumbs a:hover { text-decoration-color: var(--color-on-deep); }
}
@media (max-width: 60rem) {
  .brxe-section.st-pagehero { margin: var(--space-xs) var(--space-xs) 0; border-radius: var(--radius-card); }
  .brxe-container.st-pagehero__inner { padding: calc(var(--space-3xl) + var(--space-lg)) var(--gutter) var(--space-xl); }
  .brxe-image.st-pagehero__bg { inset: 0; width: auto; opacity: 0.35; -webkit-mask-image: none; mask-image: none; }
  .brxe-section.st-pagehero:not(.has-photo)::after { inset: 0; width: auto; opacity: 0.35; -webkit-mask-image: none; mask-image: none; }
}

/* The banner's text settles in once, in sequence: a short rise and fade, ease-out, staggered by 60 ms. CSS only, so it needs no script and is skipped under reduced motion. */
@keyframes st-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .st-pagehero__copy > *, .st-hero__copy > * { animation: st-rise 640ms var(--ease-out) both; }
  .st-pagehero__copy > :nth-child(2), .st-hero__copy > :nth-child(2) { animation-delay: 60ms; }
  .st-pagehero__copy > :nth-child(3), .st-hero__copy > :nth-child(3) { animation-delay: 120ms; }
  .st-pagehero__copy > :nth-child(4), .st-hero__copy > :nth-child(4) { animation-delay: 180ms; }
}

/* The first-visit card in the Prices banner, compact so the banner keeps the home hero's height. */
.brxe-section.st-pagehero .st-firstvisit { gap: var(--space-sm); padding: var(--space-md) var(--space-lg); }
.brxe-section.st-pagehero .st-firstvisit__row { padding: var(--space-xs) 0; }
.brxe-section.st-pagehero .st-firstvisit__price { font-size: var(--text-lg); }
