
@charset "UTF-8";
/* StretchLab: rd-hero semantic tokens mapped to theme palette. */
.m-rd-hero {
  --rd-hero-fg: var(--sl-white);
  --rd-hero-subtitle-fg: color-mix(in srgb, var(--sl-white) 88%, transparent);
  --rd-hero-overlay: #0a2533;
  --rd-hero-overlay-strength: 0.45;
  --rd-hero-min-height: clamp(22rem, 52vh, 38rem);
  --rd-hero-content-max: 40rem;
  --rd-hero-font-heading: var(--sl-font-heading);
  --rd-hero-font-body: var(--sl-font-body);
}

/**
 * RD hero — full-bleed media, constrained content. Semantic rd-hero tokens; brand maps in brands/prepend/tokens.css.
 * STYLE tab padding and width: theme rd-module-surface.css; inner uses rd-module-surface__inner.
 */
@layer rd-hero {
  .m-rd-hero {
    --rd-hero-fg: #ffffff;
    --rd-hero-subtitle-fg: color-mix(in srgb, #ffffff 88%, transparent);
    --rd-hero-overlay: #0a2533;
    --rd-hero-overlay-strength: 0.45;
    --rd-hero-content-gradient-from: #05334a;
    --rd-hero-content-gradient-to: rgb(5 51 74 / 0%);
    --rd-hero-min-height: clamp(22rem, 52vh, 38rem);
    --rd-hero-content-max: 40rem;
    --rd-hero-font-heading: system-ui, sans-serif;
    --rd-hero-font-body: system-ui, sans-serif;
    --rd-surface-body-fallback: var(--rd-hero-subtitle-fg);
    container-name: rd-hero;
    container-type: inline-size;
    position: relative;
    isolation: isolate;
    min-height: var(--rd-hero-min-height);
    color: var(--rd-hero-fg);
    font-family: var(--rd-hero-font-body);
  }
  .m-rd-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: var(--rd-hero-overlay);
  }
  .m-rd-hero__media-inner {
    position: absolute;
    inset: 0;
  }
  .m-rd-hero__base {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
  }
  .m-rd-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: color-mix(in srgb, var(--rd-hero-overlay) calc(var(--rd-hero-overlay-strength, 0.45) * 100%), transparent);
  }
  .m-rd-hero__inner {
    position: relative;
    z-index: 3;
    min-height: inherit;
    display: flex;
    flex-direction: column;
  }
  /**
   * Flex shell: vertical alignment for copy on mobile (top / center / bottom).
   */
  .m-rd-hero__stack {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-height: inherit;
    width: 100%;
  }
  /**
   * Desktop: sibling of __media + __inner (not inside __media) so it paints above the media stack and stays visible through transparent inner.
   */
  .m-rd-hero__content-gradient--desk {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, var(--rd-hero-content-gradient-from) 0%, var(--rd-hero-content-gradient-to) 50%);
  }
  .m-rd-hero--align-right .m-rd-hero__content-gradient--desk {
    background: linear-gradient(to left, var(--rd-hero-content-gradient-from) 0%, var(--rd-hero-content-gradient-to) 50%);
  }
  /**
   * Mobile: section-level (full module width, bottom = section bottom). Top = copy top via anchor when supported.
   */
  .m-rd-hero__content-gradient--mob {
    display: none;
    position: absolute;
    inset-inline: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    pointer-events: none;
    background: linear-gradient(to top, var(--rd-hero-content-gradient-from) 0%, var(--rd-hero-content-gradient-to) 50%);
  }
  @media (min-width: 64rem) {
    .m-rd-hero__content-gradient--desk {
      display: block;
    }
  }
  @media (max-width: 63.99rem) {
    .m-rd-hero__content-gradient--mob {
      display: block;
      top: 0;
    }
    /**
     * Anchor: top of gradient = top of .m-rd-hero__layout; bottom = section bottom (full-bleed width on .m-rd-hero).
     */
    @supports (top: anchor(top)) {
      .m-rd-hero__layout {
        anchor-name: --rd-hero-mob-layout;
      }
      .m-rd-hero__content-gradient--mob {
        position-anchor: --rd-hero-mob-layout;
        top: anchor(top);
      }
    }
  }
  /**
   * Extra top padding when rd-nav-header is fixed (and optional announcement).
   * Mirrors responsive --rd-surface-pt-* stacking from rd-module-surface.css.
   */
  .m-rd-hero--reserve-chrome .m-rd-hero__inner {
    padding-top: calc(var(--rd-surface-pt-m, var(--rd-surface-section-py)) + var(--rd-fixed-chrome-height, 0px));
  }
  @media (min-width: 48rem) {
    .m-rd-hero--reserve-chrome .m-rd-hero__inner {
      padding-top: calc(var(--rd-surface-pt-t, var(--rd-surface-pt-m, var(--rd-surface-section-py))) + var(--rd-fixed-chrome-height, 0px));
    }
  }
  @media (min-width: 64rem) {
    .m-rd-hero--reserve-chrome .m-rd-hero__inner {
      padding-top: calc(var(--rd-surface-pt-l, var(--rd-surface-pt-t, var(--rd-surface-pt-m, var(--rd-surface-section-py)))) + var(--rd-fixed-chrome-height, 0px));
    }
  }
  @media (min-width: 80rem) {
    .m-rd-hero--reserve-chrome .m-rd-hero__inner {
      padding-top: calc(var(--rd-surface-pt-d, var(--rd-surface-pt-l, var(--rd-surface-pt-t, var(--rd-surface-pt-m, var(--rd-surface-section-py))))) + var(--rd-fixed-chrome-height, 0px));
    }
  }
  @media (max-width: 63.99rem) {
    .m-rd-hero--mobile-top .m-rd-hero__stack {
      justify-content: flex-start;
    }
    .m-rd-hero--mobile-center .m-rd-hero__stack {
      justify-content: center;
    }
    .m-rd-hero--mobile-bottom .m-rd-hero__stack {
      justify-content: flex-end;
    }
  }
  .m-rd-hero__layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--rd-hero-content-max);
    gap: 1rem;
  }
  .m-rd-hero--align-left .m-rd-hero__layout {
    align-items: flex-start;
    text-align: left;
    margin-inline: 0;
  }
  .m-rd-hero--align-center .m-rd-hero__layout {
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }
  .m-rd-hero--align-right .m-rd-hero__layout {
    align-items: flex-end;
    text-align: right;
    margin-inline: 0 0 0 auto;
  }
  /* Richtext block tags; size matches theme h3 scale. Color: STYLE tab via rd-module-surface__heading. */
  .m-rd-hero__heading :where(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    font-family: var(--sl-h3-font-family, var(--rd-hero-font-heading));
    font-size: var(--sl-h3-font-size);
    font-weight: var(--sl-h3-font-weight);
    letter-spacing: var(--sl-h3-letter-spacing);
    text-transform: var(--sl-h3-text-transform);
    line-height: var(--sl-h3-line-height, 1.12);
    text-wrap: balance;
  }
  .m-rd-hero__subtitle {
    margin: 0;
    max-width: 52ch;
    font-size: clamp(1rem, 1.2vw + 0.85rem, 1.25rem);
    line-height: 1.5;
  }
  .m-rd-hero__subtitle :where(p):last-child {
    margin-bottom: 0;
  }
  .m-rd-hero__subtitle :where(p):first-child {
    margin-top: 0;
  }
  .m-rd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 0.5rem;
  }
  .m-rd-hero--align-center .m-rd-hero__actions {
    justify-content: center;
  }
  .m-rd-hero--align-right .m-rd-hero__actions {
    justify-content: flex-end;
  }
  .m-rd-hero__actions .sl-btn {
    flex-shrink: 0;
  }
}
/*
 * Hero media fill rules live **outside** `@layer rd-hero` so they win over unlayered theme reset
 * (`img` / `video` global rules) and `video_desktop_only` `display: none`.
 */
.m-rd-hero__base :is(img) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.m-rd-hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.m-rd-hero__video--desktop-only {
  display: none;
}

@media (min-width: 64rem) {
  .m-rd-hero__video--desktop-only {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  .m-rd-hero__video,
  .m-rd-hero__video--desktop-only {
    display: none !important;
  }
}