/* v0.3.2 shared image, inner-hero and dark-background eyebrow rules */

/* A comparison supplied as one composed image belongs in a centred media stage. */
.xa-results-carousel .xa-result__images--composite,
.xa-results-carousel .xa-result__images--composite > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.xa-results-carousel .xa-result__images--composite > div {
  width: 100%;
  aspect-ratio: auto;
}

.xa-results-carousel .xa-result__images--composite img {
  display: block;
  flex: 0 1 auto;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Inner-page heroes stay recognisably image-led without occupying a full screen. */
body:not(.xa-home) .xa-inner-hero {
  min-height: 500px;
}

body:not(.xa-home) .xa-inner-hero--long-title,
body.single-xa_success .xa-inner-hero--long-title {
  min-height: 525px;
}

body:not(.xa-home) .xa-inner-hero__content {
  padding-bottom: 52px;
}

body:not(.xa-home) .xa-inner-hero__media img {
  object-position: center top;
}

/* Standard content eyebrow on dark surfaces: light type and a compact red rule. */
.xa-dark-section .xa-kicker,
.xa-dark-section .xa-section-head > span,
.xa-personality-strip__story > div > span,
.xa-buy-panel > span,
.xa-coach-credentials > span {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(5, 18, 25, .72);
}

.xa-dark-section .xa-kicker::before,
.xa-dark-section .xa-section-head > span::before,
.xa-personality-strip__story > div > span::before,
.xa-buy-panel > span::before,
.xa-coach-credentials > span::before {
  content: '';
  width: 3px;
  height: 1.05em;
  flex: 0 0 3px;
  background: var(--xa-red);
}

/* Hero eyebrows remain the stronger red-box treatment. */
.xa-inner-hero__content > span {
  color: #fff;
  text-shadow: none;
}

@media (max-width: 780px) {
  body:not(.xa-home) .xa-inner-hero,
  body:not(.xa-home) .xa-inner-hero--long-title,
  body.single-xa_success .xa-inner-hero--long-title {
    min-height: 440px;
  }

  body:not(.xa-home) .xa-inner-hero__content {
    padding-bottom: 34px;
  }
}

@media (max-width: 420px) {
  body:not(.xa-home) .xa-inner-hero,
  body:not(.xa-home) .xa-inner-hero--long-title,
  body.single-xa_success .xa-inner-hero--long-title {
    min-height: 420px;
  }
}
