/* --lib-color-inverse/-deep deliberately NOT migrated across this file:
   a real Section-level fixed dark-band identity (same legitimate,
   page-author-set case as inner-page-hero.css above). */
.lib-text-highlights-media {
  padding-block: var(--lib-space-section-y);
  color: var(--lib-color-inverse);
  background: var(--lib-color-deep);
  border-block: 0.0625rem solid var(--lib-color-border-inverse-soft);
}

.lib-text-highlights-media__container {
  width: var(--lib-container-wide);
  margin-inline: auto;
  padding-inline: var(--lib-space-container-x);
}

.lib-text-highlights-media__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--lib-space-16);
}

.lib-text-highlights-media__heading {
  --lib-section-heading-title-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--lib-space-6);
}

.lib-text-highlights-media__lead {
  max-width: var(--lib-content-measure);
  margin: 0 0 var(--lib-space-4);
  color: var(--lib-color-inverse);
  opacity: 0.82;
  line-height: 1.7;
}

.lib-text-highlights-media__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--lib-space-6);
  margin-top: var(--lib-space-6);
}

.lib-text-highlights-media__highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--lib-space-5);
}

.lib-text-highlights-media__icon {
  flex-shrink: 0;
  font-size: var(--lib-font-size-subheading);
}

.lib-text-highlights-media__icon--svg {
  display: inline-flex;
  width: var(--lib-text-highlights-icon-size, 1.5rem);
  height: var(--lib-text-highlights-icon-size, 1.5rem);
  color: var(--lib-icon-brand);
}

.lib-text-highlights-media__icon--svg svg {
  width: 100%;
  height: 100%;
}

/* Verbatim customer quote backing the answer (2026-10-14). */
.lib-text-highlights-media__quote {
  margin: var(--lib-space-8) 0 0;
  padding-left: var(--lib-space-5);
  border-left: 0.1875rem solid var(--lib-border-brand);
}

/* Host themes style a bare blockquote (border, padding, quote marks); the
   figure above owns the look, so the blockquote is reset to plain text. */
.lib-text-highlights-media__quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.lib-text-highlights-media__quote blockquote::before,
.lib-text-highlights-media__quote blockquote::after {
  content: none;
}

.lib-text-highlights-media__quote blockquote p {
  margin: 0;
  font-size: var(--lib-font-size-base);
  font-style: italic;
  line-height: 1.6;
}

.lib-text-highlights-media__quote figcaption {
  margin-top: var(--lib-space-2);
  font-size: var(--lib-font-size-body-sm);
  font-weight: 700;
}

.lib-text-highlights-media__quote figcaption span {
  margin-left: var(--lib-space-2);
  font-weight: 400;
}

/* quote.url: the source line links to the original review. */
.lib-text-highlights-media__quote .lib-text-highlights-media__quote-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--lib-color-primary, currentColor);
  text-underline-offset: 0.2em;
}

.lib-text-highlights-media__quote .lib-text-highlights-media__quote-link:hover,
.lib-text-highlights-media__quote .lib-text-highlights-media__quote-link:focus-visible {
  color: var(--lib-color-primary, currentColor);
}

.lib-text-highlights-media__highlight strong {
  display: block;
  margin-bottom: var(--lib-space-1);
  font-size: var(--lib-font-size-base);
}

.lib-text-highlights-media__highlight p {
  margin: 0;
  color: var(--lib-color-inverse);
  opacity: 0.75;
  font-size: var(--lib-font-size-body-sm);
  line-height: 1.55;
}

.lib-text-highlights-media__photo-frame {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--lib-radius-lg);
}

.lib-text-highlights-media__photo {
  width: 100%;
  height: 100%;
  background: var(--lib-gradient-deep);
}

/* Photo follows the text column's height (2026-10-14): the frame stretches
   to the row instead of a fixed 4:3 box, so neither column leaves an empty
   area beside the other. Desktop only; the stacked mobile layout keeps its
   own ratio below. */
@media (min-width: 800.02px) {
  .lib-text-highlights-media__grid {
    align-items: stretch;
  }

  .lib-text-highlights-media__visual {
    display: flex;
  }

  .lib-text-highlights-media__photo-frame {
    position: relative;
    flex: 1;
    aspect-ratio: auto;
    min-height: 20rem;
  }

  /* Out of flow, so the photo's own intrinsic height never sets the row. */
  .lib-text-highlights-media__photo-frame > .lib-text-highlights-media__photo {
    position: absolute;
    inset: 0;
  }
}

@media (max-width: 800px) {
  .lib-text-highlights-media__grid {
    grid-template-columns: 1fr;
    gap: var(--lib-space-10);
  }

  .lib-text-highlights-media__photo-frame {
    aspect-ratio: 16 / 9;
  }
}

/* Real photo (WordPress runtime, 2026-10-09). */
img.lib-text-highlights-media__photo {
  display: block;
  object-fit: cover;
}

/* Light variant (2026-10-09): the section was dark-only, so placing it
   right after a dark hero produced two consecutive dark sections, which
   the composition rhythm rule forbids (RHYTHM_DARK_SEQUENCE). */
.lib-text-highlights-media--light {
  color: var(--lib-text-primary);
  background: transparent;
}

.lib-text-highlights-media--light .lib-text-highlights-media__lead,
.lib-text-highlights-media--light .lib-text-highlights-media__highlight p {
  color: var(--lib-text-secondary);
  opacity: 1;
}

.lib-text-highlights-media--light .lib-text-highlights-media__highlight strong {
  color: var(--lib-text-primary);
}
