/* ==========================================================================
   Site Header
   Matches Figma "Navigation_rcmplatform" (node 6038:6994) — logo, primary
   nav with a hover/focus dropdown, and CTA. Nav items are placeholders
   until the primary menu is wired up through a nav walker.
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-tertiary);
}

/* The WP admin toolbar is `position: fixed; z-index: 99999` at the very
   top of the viewport. Without this, our sticky header's `top: 0` sticks
   directly underneath it once the page scrolls, hiding the logo and the
   nav toggle (and its X) behind the toolbar for logged-in users. Heights
   match WP core's own #wpadminbar breakpoint (782px, not our 61.25rem
   nav breakpoint). */
body.admin-bar .app-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .app-header {
    top: 46px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-block-end: 0;
  width: 100%;
}

/* Sticky footer: main grows to fill any leftover space below short
   content, pushing .app-footer to the bottom of the viewport instead of
   leaving it floating right under a short <article>. */
#site-content {
  flex: 1 0 auto;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem; /* 68px */
  max-width: var(--content-max-width);
  margin-inline: auto;
}

.header-content {
  display: flex;
  align-items: center;
  gap: var(--space-s); /* 24px */
  min-width: 0;
}

.brand {
  display: flex;
  flex-shrink: 0;
  color: var(--logo);
}

.brand-logo {
  display: block;
  height: 2.5rem; /* 40px */
  width: auto;
  color: inherit;
}

.nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu-item {
  position: relative;
  height: 4.25rem; /* 68px, fills the header so hover/focus areas meet the edge */
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.nav__menu-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs); /* 4px */
  height: 100%;
  padding-inline: var(--space-xs); /* 16px */
  border: none;
  background: none;
  font-family: inherit;
  font-size: var(--body-m-font-size);
  line-height: var(--body-m-line-height);
  font-variation-settings:
    "wght" var(--body-m-font-weight),
    "wdth" var(--wdth-value);
  letter-spacing: var(--body-m-letter-spacing);
  color: var(--text-primary);
  white-space: nowrap;
  cursor: pointer;
}

.nav__menu-link:hover,
.nav__menu-link:focus-visible,
.nav__menu-link.is-current {
  color: var(--link-hover);
}

.nav__menu-link:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: -2px;
}

.nav__menu-chevron {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: var(--bg-primary);
  border-radius: 0 0 var(--radius-1) var(--radius-1);
  box-shadow: 0 0.1875rem 0.5rem rgba(0, 0, 0, 0.15); /* 0px 3px 8px, per Figma */
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
  z-index: 10;
}

.nav__menu-item.has-submenu:hover .nav__submenu,
.nav__menu-item.has-submenu:focus-within .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__submenu-item {
  position: relative;
  margin-bottom: 0;
}

/* Inset divider between rows (not after the last one), matching Figma's
   per-row divider (left/right: 16px, bottom: 0) instead of a full-bleed
   border. */
.nav__submenu-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: var(--space-xs);
  right: var(--space-xs);
  bottom: 0;
  height: 1px;
  background-color: var(--border-tertiary);
}

.nav__submenu-link {
  display: flex;
  align-items: center;
  height: 2.5rem; /* 40px */
  padding-inline: var(--space-xs); /* 16px */
  margin-bottom: 0;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav__submenu-link:hover,
.nav__submenu-link:focus-visible {
  background-color: var(--bg-hover);
  color: var(--link-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

/* ==========================================================================
   Mobile nav toggle + full-screen slide-in panel
   Hidden above the 61.25rem (980px) breakpoint, where the horizontal nav
   with its hover/focus-within dropdown (above) is used instead.
   ========================================================================== */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.nav-toggle-icon--close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon--open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon--close {
  display: inline-block;
}

/* Locks background scroll while the full-screen mobile panel is open. */
body.nav-open {
  overflow: hidden;
}

@media all and (max-width: 61.25rem) {
  .nav-toggle {
    display: inline-flex;
  }

  /* Slides in from the right, below the still-visible sticky header (which
     keeps the now-close icon reachable to dismiss it). */
  #primary-navigation {
    position: fixed;
    top: 4.25rem; /* header height */
    right: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--bg-primary);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
  }

  #primary-navigation.is-open {
    transform: translateX(0);
  }

  /* Same admin-bar accounting as .app-header above, so the panel starts
     right below the (now correctly offset) header instead of under it. */
  body.admin-bar #primary-navigation {
    top: calc(4.25rem + 32px);
  }

  @media screen and (max-width: 782px) {
    body.admin-bar #primary-navigation {
      top: calc(4.25rem + 46px);
    }
  }

  .nav__menu {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2xs) 0 0;
  }

  .nav__menu-item {
    /* Overrides the desktop base rule's `display: flex; align-items: center`
       (a row, sized to a fixed-height header cell) — that was laying the
       trigger link and its .nav__submenu sibling out side by side instead
       of stacking the submenu below the trigger. */
    display: block;
    height: auto;
    width: 100%;
    border-bottom: 1px solid var(--border-tertiary);
  }

  .nav__menu-link {
    display: flex;
    height: auto;
    width: 100%;
    padding: var(--space-s);
    justify-content: space-between;
    font-size: var(--title-m-font-size);
    line-height: var(--title-m-line-height);
    font-variation-settings:
      "wght" var(--title-m-font-weight),
      "wdth" var(--wdth-value);
    letter-spacing: var(--title-m-letter-spacing);
    white-space: normal;
  }

  /* Tints the trigger row while its submenu is open, so the two read as
     one continuous block instead of the chevron flip being the only cue. */
  .nav__menu-item.has-submenu.is-expanded > .nav__menu-link {
    background-color: var(--bg-neutral-2);
  }

  .nav__menu-chevron {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
  }

  .nav__menu-item.has-submenu.is-expanded .nav__menu-chevron {
    transform: rotate(180deg);
  }

  /* Collapsed accordion instead of the desktop floating dropdown — there's
     no hover on touch, so .has-submenu items expand in place on tap.
     max-height starts at 0 here; mobile-nav.js sets an explicit inline
     max-height (measured from scrollHeight) on open so the slide matches
     the real content height instead of an arbitrary fixed number. */
  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: var(--bg-neutral-2);
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: max-height 0.25s ease;
  }

  .nav__submenu-item {
    border-top: 1px solid var(--border-tertiary);
  }

  .nav__submenu-link {
    padding: var(--space-xs) var(--space-s) var(--space-xs) var(--space-l);
    font-size: var(--body-m-font-size);
    color: var(--text-weak);
    white-space: normal;
  }
}

/* ==========================================================================
   Site Footer
   Matches Figma "Footer" (node 6029:2753) — always dark regardless of the
   light/dark theme toggle, using mm20-foundation's "-dark" section tokens
   (previously unused outside .button--dark*).
   ========================================================================== */

.app-footer {
  margin-top: auto;
  background-color: var(--bg-primary-dark);
}

.footer-container {
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  padding: var(--space-2xl) 0; /* 96px block, 40px inline */
}

.footer-brand {
  display: flex;
  color: var(--text-primary-dark);
}

.footer-brand-logo {
  display: block;
  height: 2.5rem; /* 40px */
  width: auto;
  color: inherit;
}

/* .row's own column-gap already matches --space-11 (32px) — this just adds
   the row-gap for when .col-1-3's built-in tablet/mobile collapse stacks
   the three columns. */
.footer-columns {
  row-gap: var(--space-l); /* 48px */
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}

.footer-social-link {
  display: flex;
  color: var(--text-primary-dark);
  font-size: 1.25rem; /* 20px glyph box */
  line-height: 1;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--text-accent-hover);
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--border-focus-dark);
  outline-offset: 2px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(
    --space-2xs
  ); /* 8px, tuned for the address/phone/trademark/copyright rhythm */
  text-align: center;
  grid-column-start: 5; /* holds its original position now that .footer-social is narrower (span 3, not 4) */
}

/* The logo needs more separation from the legal text below it than the
   8px gap above is tuned for. */
.footer-legal .footer-brand {
  margin-bottom: var(--space-s); /* 24px */
}

.footer-address,
.footer-trademark,
.footer-copyright {
  margin: 0;
  font-size: var(--body-s-font-size);
  line-height: var(--body-s-line-height);
  font-variation-settings:
    "wght" var(--body-s-font-weight),
    "wdth" var(--wdth-value);
  letter-spacing: var(--body-s-letter-spacing);
  color: var(--text-primary-dark);
}

.footer-phone {
  display: inline-block;
  font-size: var(--body-m-font-size);
  line-height: var(--body-m-line-height);
  font-variation-settings:
    "wght" var(--body-m-font-weight),
    "wdth" var(--wdth-value);
  letter-spacing: var(--body-m-letter-spacing);
  color: var(--text-primary-dark);
  text-decoration: none;
}

.footer-phone:hover,
.footer-phone:focus-visible {
  color: var(--text-accent-hover);
}

.footer-cta-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* This specific CTA calls for plain white border/text rather than
   .button--dark-outline's default azure600 — background, border-style,
   and padding all already come from .button--dark-outline.button--small. */
.footer-cta {
  color: var(--text-primary-dark);
}

/* .col-1-3 goes full-width starting at the grid's 8-column tablet tier
   (see mm20-foundation.css) — center the CTA once it's no longer sharing
   a row with the other two columns, rather than leaving it flush right
   against a now full-width edge. */
@media all and (max-width: 61.25rem) {
  .footer-cta-col {
    justify-content: center;
  }

  .footer-legal {
    grid-column-start: auto;
  }

  .footer-social {
    grid-column: 1 / -1;
    justify-content: center;
    gap: var(--space-m);
  }
}

.hero {
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero h1 {
  color: white;
  background: linear-gradient(
    93deg,
    rgba(255, 255, 255, 0) 1.43%,
    var(--text-text, #fff) 38.07%,
    var(--text-text, #fff) 56.39%,
    rgba(255, 255, 255, 0) 93.04%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

/* ==========================================================================
   Video Intro
   Matches Figma "intro_section" (node 6417:3187) + its hover-state text
   overlay (node 6516:54037) — a muted autoplaying video whose headline/CTA
   overlay is hidden until hover/focus.
   ========================================================================== */

.video-intro {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl); /* 96px */
}

.video-intro__cloud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  object-fit: cover;
  object-position: bottom center;
}

.video-intro__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l);
  grid-column-start: 2;
  grid-column-end: 12;
}

@media all and (max-width: 61.25rem) {
  .video-intro__container {
    grid-column: 1 / -1;
  }
}

.video-intro__headline-top {
  max-width: 50ch;
  text-align: center;
  text-wrap: balance;
}

.video-intro__frame {
  position: relative;
  width: 100%;
  max-width: 69.25rem; /* 1108px */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-7); /* 24px */
  background-color: var(--bg-primary-dark);
}

.video-intro__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   FAQ
   Matches Figma "faq_section" (node 6417:3384) — an accordion of
   independently-toggling question/answer pairs (see
   assets/js/components/faqs.js).
   ========================================================================== */

.faq {
  padding-block: var(--space-2xl); /* 96px */
}

/* Grid-column-3-to-11 (8 of 12 columns, 2-column margin each side) — a
   true grid offset instead of a max-width/margin-auto hack, since this
   grid has no .col-offset-* utility. Collapses to full-width once the
   tablet tier only has 8 columns to spare (see mm20-foundation.css). */
.faq__list {
  grid-column-start: 3;
  grid-column-end: 11;
}

@media all and (max-width: 61.25rem) {
  .faq__list {
    grid-column: 1 / -1;
  }
}

.faq__item {
  border-bottom: 1px solid var(--border-tertiary);
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xs); /* 4px */
  width: 100%;
  padding-block: var(--space-6); /* 12px */
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.faq__trigger:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.faq__question {
  font-size: var(--body-l-font-size);
  line-height: var(--body-l-line-height);
  font-variation-settings:
    "wght" var(--body-l-font-weight),
    "wdth" var(--wdth-value);
  letter-spacing: var(--body-l-letter-spacing);
  color: var(--link-primary);
}

.faq__chevron {
  flex-shrink: 0;
  font-size: 1.375rem; /* 22px */
  color: var(--link-primary);
  transition: transform 0.2s ease;
}

.faq__trigger:hover .faq__question,
.faq__trigger:hover .faq__chevron {
  color: var(--link-hover);
}

.faq__item.is-expanded .faq__chevron {
  transform: rotate(180deg);
}

.faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq__answer {
  padding: var(--space-xs); /* 16px */
  font-size: var(--body-l-font-size);
  line-height: var(--body-l-line-height);
  font-variation-settings:
    "wght" var(--body-l-font-weight),
    "wdth" var(--wdth-value);
  letter-spacing: var(--body-l-letter-spacing);
  color: var(--text-primary);
}

.faq__answer p {
  margin-bottom: var(--space-xs);
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Quote
   Matches Figma "quote_section" (node 6417:3390) — a dark pull-quote card
   with an optional bottom-anchored headshot photo.
   ========================================================================== */

.quote {
  padding-block: 0 var(--space-2xl); /* 0 top, 96px bottom, per the design */
}

/* Same grid-column-3-to-11 offset as .faq__list — see that comment. */
.quote__card {
  display: flex;
  align-items: flex-end;
  grid-column-start: 3;
  grid-column-end: 11;
  background-color: var(
    --bg-brand-primary-2-dark
  ); /* purple800, matches Figma's bg-brand-weak */
  border-radius: var(--radius-3); /* 6px */
  overflow: hidden;
}

@media all and (max-width: 61.25rem) {
  .quote__card {
    grid-column: 1 / -1;
  }
}

.quote__headshot-frame {
  flex-shrink: 0;
  max-width: 12.25rem; /* 196px */
  height: auto; /* 100px */
  width: 100%;
}

.quote__headshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.quote__content {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-7); /* 16px */
  min-width: 0;
  padding: var(--space-m); /* 32px */
}

.quote__mark {
  flex-shrink: 0;
  font-size: 2rem; /* 32px */
  line-height: 1;
  color: var(--text-accent); /* azure300, matches the asset's #43AEFF exactly */
}

.quote__text {
  margin: 0;
  font-family: inherit;
  font-style: normal;
  font-size: var(--paragraph-s-font-size);
  line-height: var(--paragraph-s-line-height);
  font-variation-settings:
    "wght" var(--paragraph-s-font-weight),
    "wdth" var(--wdth-value);
  letter-spacing: var(--paragraph-s-letter-spacing);
  color: var(--text-primary-dark);
}

.quote__attribution {
  margin: 0;
  font-size: var(--body-s-font-size);
  line-height: var(--body-s-line-height);
  font-variation-settings:
    "wght" var(--body-s-font-weight),
    "wdth" var(--wdth-value);
  letter-spacing: var(--body-s-letter-spacing);
  color: var(--text-primary-dark);
}

@media all and (max-width: 47.9375rem) {
  .quote__card {
    flex-direction: column-reverse;
    align-items: center;
  }

  .quote__headshot-frame {
    width: 100%;
    height: auto;
  }
}

/* ==========================================================================
   Form CTA
   Matches Figma "Form Section" (node 6650:101841) — intro copy, a
   decorative arrow, and a form card. The card's actual form is a Pardot
   embed added later; .form-cta__pardot-form is just a placeholder target.
   ========================================================================== */

.form-cta {
  background-color: var(
    --bg-success
  ); /* green50, matches bg-success-weak exactly */
  padding-block: var(--space-2xl); /* 96px */
}

/* Below 61.25rem, .form-cta__intro/.form-cta__card go full-width and
   stack — row-gap gives them breathing room once stacked, since plain
   .row doesn't set one by default. */
.form-cta .row {
  row-gap: var(--gap-wide); /* 32px */
}

/* Three real grid columns: a 1-column left margin (row starts at line 2),
   4 columns of intro text, 1 column for the arrow, 6 columns for the
   card — 1 + 4 + 1 + 6 = 12, flush with the row's right edge. */
.form-cta__intro {
  grid-column-start: 2;
  grid-column-end: span 4;
}

.form-cta__arrow-col {
  display: flex;
  align-items: flex-start;
  grid-column-end: span 1;
}

.form-cta__heading {
  margin: 0 0 var(--space-xs);
  font-size: var(--display-s-font-size);
  line-height: var(--display-s-line-height);
  font-variation-settings:
    "wght" var(--display-s-font-weight),
    "wdth" var(--wdth-value);
  letter-spacing: var(--display-s-letter-spacing);
  color: var(--text-primary);
}

.form-cta__description {
  margin: 0;
  max-width: 38ch;
  text-wrap: pretty;
  font-size: var(--body-l-font-size);
  line-height: var(--body-l-line-height);
  font-variation-settings:
    "wght" var(--body-l-font-weight),
    "wdth" var(--wdth-value);
  letter-spacing: var(--body-l-letter-spacing);
  color: var(--text-primary);
}

.form-cta__arrow {
  font-size: 1.375rem; /* 22px */
  color: var(--text-primary);
}

.form-cta__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-m); /* 32px */
  grid-column-end: span 6;
  padding: var(--space-m); /* 32px */
  background-color: var(--bg-primary);
  border-radius: var(--radius-3); /* 6px */
}

.form-cta__card-heading {
  margin: 0;
  font-size: var(--headline-l-font-size);
  line-height: var(--headline-l-line-height);
  font-variation-settings:
    "wght" var(--headline-l-font-weight),
    "wdth" var(--wdth-value);
  letter-spacing: var(--headline-l-letter-spacing);
  color: var(--text-primary);
}

/* Placeholder sizing so the layout doesn't jump once the real Pardot
   embed replaces this — roughly matches the two-input form in the design. */
.form-cta__pardot-form {
  min-height: 9rem;
}

/* Below this tier there isn't room for a 1+4+1+6 = 12-column split — intro
   and card go full-width and stack (matches .faq__list/.quote__card's
   collapse point). The arrow stays (rather than hiding), moved to the
   left edge and rotated to point down into the stacked card below it
   instead of right at a column that's no longer there. */
@media all and (max-width: 61.25rem) {
  .form-cta__intro,
  .form-cta__card,
  .form-cta__arrow-col {
    grid-column: 1 / -1;
  }

  .form-cta__arrow {
    transform: rotate(45deg);
  }
}

/* ==========================================================================
   Split Content
   Matches Figma "cta_section" (node 6650:101684) — an eyebrow/heading/
   description/button stack on the left, an image on the right, split
   evenly. Same bg-success-weak green as .form-cta by default.
   ========================================================================== */

.split-content {
  background-color: var(--bg-success); /* green50, matches bg-success-weak exactly */
  padding-block: var(--space-2xl); /* 96px */
}

.split-content .row {
  align-items: center;
}

/* 1fr margin / text / media / 1fr margin, laid directly on the row's 12
   columns (1 + 5 + 5 + 1 = 12) — same overall inset as
   .video-intro__container, just split into two named halves instead of a
   wrapper + flexbox, so .split-content--reverse can swap sides by
   swapping two grid-column values instead of reordering markup. */
.split-content__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m); /* 32px, between the copy stack and the button */
  grid-row: 1;
  grid-column: 2 / 7;
}

.split-content__media {
  grid-row: 1;
  grid-column: 7 / 12;
}

.split-content--reverse .split-content__text {
  grid-column: 7 / 12;
}

.split-content--reverse .split-content__media {
  grid-column: 2 / 7;
}

@media all and (max-width: 61.25rem) {
  .split-content__text,
  .split-content__media,
  .split-content--reverse .split-content__text,
  .split-content--reverse .split-content__media {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  /* Desktop's left/right swap doesn't apply once everything stacks —
     .split-content--reverse-mobile controls stacking order instead,
     independently of .split-content--reverse. */
  .split-content--reverse-mobile .split-content__text {
    order: 2;
  }

  .split-content--reverse-mobile .split-content__media {
    order: 1;
  }
}

.split-content__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs); /* 16px, eyebrow/heading/description rhythm */
}

.split-content__eyebrow {
  margin: 0;
  color: var(--text-weak);
}

.split-content__heading,
.split-content__description {
  margin: 0;
}

.split-content__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Page Intro
   Matches Figma "Content" (node 6516:54975) — a heading/description stack
   on the left, a decorative avatar graphic on the right.
   ========================================================================== */

.page-intro {
  padding-block: var(--space-2xl); /* 96px */
}

.page-intro__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs); /* 16px */
  grid-row: 1;
  grid-column: 1 / 9; /* 8 of 12 columns */
}

.page-intro__heading,
.page-intro__description {
  margin: 0;
}

.page-intro__media {
  grid-row: 1;
  grid-column: 10 / -1; /* 3 of 12 columns, flush with the row's right edge */
}

/* Reversed: each side keeps its own width (8 vs 3 columns) but swaps which
   edge it sits against — .page-intro__text moves to the right (still 8
   columns), .page-intro__media moves to the left (still 3 columns). */
.page-intro--reverse .page-intro__text {
  grid-column: 5 / -1;
}

.page-intro--reverse .page-intro__media {
  grid-column: 1 / 4;
}

@media all and (max-width: 61.25rem) {
  .page-intro__text,
  .page-intro__media,
  .page-intro--reverse .page-intro__text,
  .page-intro--reverse .page-intro__media {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  /* Desktop's left/right swap doesn't apply once everything stacks —
     .page-intro--reverse-mobile controls stacking order instead,
     independently of .page-intro--reverse. */
  .page-intro--reverse-mobile .page-intro__text {
    order: 2;
  }

  .page-intro--reverse-mobile .page-intro__media {
    order: 1;
  }
}

.page-intro__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Divider
   Just an <hr>, spaced via the same "Clone - Settings" background/spacing
   fields as every other component. .divider__line's border-top-color is
   set inline per-instance from the 'line_color' field (default #eaeaea).
   ========================================================================== */

.divider {
  padding-block: var(--space-xl); /* overridden per-instance by top/bottom spacing, when set */
}

.divider__line {
  margin: 0;
  height: 0;
  border: none;
  border-top: 1px solid #eaeaea;
}
