/**
 * Resonant LMS-XP5 GI Content Typography v2.9.6
 * Loaded after style.css and typography-v2.9.5.css.
 */
:root {
  --type-top-display: clamp(48px, 4vw, 64px);
  --type-page-title: clamp(40px, 3vw, 52px);
  --type-section-title: clamp(34px, 2.8vw, 44px);
  --type-feature-title: clamp(30px, 2.35vw, 38px);
  --type-card-title: clamp(20px, 1.7vw, 28px);
}

/* Page titles remain below the unchanged home display heading. */
body:not(.home) .rs-page-hero .rs-page-hero__title,
body:not(.home) .rs-contact-hero .rs-page-hero__title,
body:not(.home) .rs-policy-hero .rs-page-hero__title {
  font-size: var(--type-page-title);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

/* Default article sections use the section-title level, not the Hero level. */
.rs-product-section h2,
.rs-heading,
.rs-experience h2,
.rs-contact-flow h2,
.rs-contact-side > h2,
.rs-contact-form-card > h2,
.rs-contact-privacy h2,
.rs-policy-intro h2,
.rs-policy-cta h2,
.entry-content > h2,
.rs-section-heading {
  font-size: var(--type-section-title);
  line-height: 1.28;
  letter-spacing: -0.03em;
  line-break: strict;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
  word-break: auto-phrase;
}

/* Feature titles are deliberately one level below section boundaries. */
.rs-product-section .rs-feature-row .rs-feature-heading,
.rs-feature-item h2,
.rs-feature-item h3,
.feature-item h2,
.feature-item h3,
.feature-heading {
  font-size: var(--type-feature-title);
  line-height: 1.35;
  letter-spacing: -0.035em;
  line-break: strict;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
  word-break: auto-phrase;
}

/* Card headings stay below feature titles throughout lower-level pages. */
.rs-card h3,
.rs-product-card h3,
.rs-function-grid h3,
.rs-contact-flow__card h3,
.rs-policy-card h3,
.rs-archive-card h2,
.entry-content > h3 {
  font-size: var(--type-card-title);
  line-height: 1.4;
  letter-spacing: -0.018em;
}

/* Flex wrapping exposes only semantic phrase boundaries as break points. */
.rs-feature-heading__phrases,
.rs-section-heading__phrases {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  column-gap: 0.26em;
  row-gap: 0.08em;
}

.rs-feature-heading__phrases > .rs-heading-phrase,
.rs-section-heading__phrases > .rs-heading-phrase {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
}

.rs-feature-heading__phrases > .rs-heading-text,
.rs-section-heading__phrases > .rs-heading-text {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

/* Feature block hierarchy: number → eyebrow → title → body → image. */
.rs-feature-row > div {
  min-width: 0;
}

.rs-feature-list .rs-feature-index {
  margin-bottom: 12px;
  color: rgba(239, 43, 36, 0.34);
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.rs-feature-row .rs-eyebrow {
  margin-bottom: 8px;
}

.rs-feature-row .rs-feature-heading {
  margin-top: 0;
  margin-bottom: 18px;
  max-width: 18em;
}

.rs-product-split .rs-section-heading,
.rs-story-panel .rs-section-heading {
  max-width: 21em;
}

@media (max-width: 820px) {
  :root {
    --type-page-title: clamp(32px, 9.5vw, 40px);
    --type-section-title: clamp(28px, 7vw, 36px);
    --type-feature-title: clamp(25px, 6vw, 32px);
    --type-card-title: clamp(18px, 5vw, 24px);
  }

  .rs-feature-list .rs-feature-index {
    font-size: clamp(26px, 7vw, 34px);
  }

  .rs-feature-row .rs-feature-heading,
  .rs-product-split .rs-section-heading,
  .rs-story-panel .rs-section-heading {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .rs-feature-heading__phrases,
  .rs-section-heading__phrases {
    column-gap: 0.2em;
  }
}
