/* Home source hero and discovery refinements. Load after the source styles.
   Intentionally excludes the marquee, checkmark blocks, header and footer. */

/* Replace the hero's empty 18/21-row tracks with the same visual hierarchy.
   Background video, poster, visibility states and native toggle stay untouched. */
body[data-riot-layout~="home"] [data-section-id="6a0616f912e1375228ef8c14"] {
  min-height: 0;
}

body[data-riot-layout~="home"] [data-section-id="6a0616f912e1375228ef8c14"] .content-wrapper {
  padding-top: clamp(112px, 11vw, 160px);
  padding-bottom: clamp(80px, 7vw, 112px);
}

body[data-riot-layout~="home"] .fe-6a0616f912e1375228ef8c13 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(4, auto);
  grid-template-areas: "eyebrow" "headline" "summary" "intro";
  gap: 32px;
  padding-inline: clamp(20px, 4vw, 64px);
  overflow: visible;
  box-sizing: border-box;
}

body[data-riot-layout~="home"] .fe-6a0616f912e1375228ef8c13 > .fe-block {
  min-width: 0;
  min-height: 0;
  height: auto;
}

body[data-riot-layout~="home"] .fe-block-63e0937084472cc4ecd9 {
  grid-area: headline;
}

body[data-riot-layout~="home"] .fe-block-88a10ae6dff12c5ce83f {
  grid-area: eyebrow;
}

body[data-riot-layout~="home"] .fe-block-ce2112361719207d8a07 {
  grid-area: summary;
  width: min(100%, 42rem);
  justify-self: center;
}

body[data-riot-layout~="home"] .fe-block-yui_3_17_2_1_1778783951535_1210 {
  grid-area: intro;
  width: min(100%, 20rem);
  justify-self: center;
}

body[data-riot-layout~="home"] .fe-6a0616f912e1375228ef8c13 > .fe-block > .sqs-block {
  height: auto;
  min-height: 0;
  padding: 0;
}

body[data-riot-layout~="home"] #block-63e0937084472cc4ecd9 h2,
body[data-riot-layout~="home"] #block-88a10ae6dff12c5ce83f h1,
body[data-riot-layout~="home"] #block-ce2112361719207d8a07 h1 {
  margin-block: 0;
}

/* The two source spacer paragraphs remain in the DOM, including their break. */
body[data-riot-layout~="home"] #block-ce2112361719207d8a07 p {
  margin-block: 0;
}

/* Keep all four linked discovery cards and their existing colors / rounded motif.
   Photos now establish their own native height instead of a tall cover crop;
   the existing gradient caption becomes the natural continuation of each card. */
body[data-riot-layout~="home"] .riot-discover-static__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch;
}

body[data-riot-layout~="home"] .riot-discover-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
}

body[data-riot-layout~="home"] .riot-discover-tile img {
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  align-self: start;
}

body[data-riot-layout~="home"] .riot-discover-tile__overlay {
  min-height: 0;
  align-content: start;
  gap: .65rem;
}

body[data-riot-layout~="home"] .riot-discover-tile__overlay strong {
  line-height: 1.04;
}

body[data-riot-layout~="home"] .riot-discover-tile__overlay small {
  max-width: none;
  line-height: 1.4;
}

/* Retain native CTA appearance, with a lower bound on the primary tap area. */
body[data-riot-layout~="home"] #block-yui_3_17_2_1_1778783951535_1210 .sqs-block-button-element,
body[data-riot-layout~="home"] #block-yui_3_17_2_1_1778788397549_4536 .sqs-block-button-element,
body[data-riot-layout~="home"] #block-d8a99373164d29f98cb2 .sqs-block-button-element {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 960px) {
  body[data-riot-layout~="home"] .riot-discover-static__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body[data-riot-layout~="home"] [data-section-id="6a0616f912e1375228ef8c14"] .content-wrapper {
    padding-top: 112px;
    padding-bottom: 88px !important;
  }

  body[data-riot-layout~="home"] .fe-6a0616f912e1375228ef8c13 {
    gap: 16px;
    padding-inline: 6vw;
  }

  body[data-riot-layout~="home"] #block-63e0937084472cc4ecd9 h2 {
    font-size: clamp(1.9rem, 9.2vw, 3.5rem);
    line-height: 1.02;
  }

  /* Only these exact source grids become content-sized on phones.
     Direct children only: nested benefit stacks and their checkmarks keep
     their original row structure, icon dimensions and alignment. */
  body[data-riot-layout~="home"] .fe-6a061a0d718b9b51c810a936,
  body[data-riot-layout~="home"] .fe-6a1a12fd39722178e6a6dc04,
  body[data-riot-layout~="home"] .fe-6a062861ee99504d2ce2e26a,
  body[data-riot-layout~="home"] .fe-6a34709ae1d77663fcc302eb {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 24px;
    padding: 32px 6vw;
    overflow: visible;
    box-sizing: border-box;
  }

  body[data-riot-layout~="home"] .fe-6a061a0d718b9b51c810a936 > .fe-block,
  body[data-riot-layout~="home"] .fe-6a1a12fd39722178e6a6dc04 > .fe-block,
  body[data-riot-layout~="home"] .fe-6a062861ee99504d2ce2e26a > .fe-block,
  body[data-riot-layout~="home"] .fe-6a34709ae1d77663fcc302eb > .fe-block {
    grid-area: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
  }

  body[data-riot-layout~="home"] [data-section-id="6a061a0d718b9b51c810a937"] .content-wrapper,
  body[data-riot-layout~="home"] [data-section-id="6a1a12fd39722178e6a6dc05"] .content-wrapper,
  body[data-riot-layout~="home"] [data-section-id="6a062861ee99504d2ce2e26b"] .content-wrapper,
  body[data-riot-layout~="home"] [data-section-id="6a34709ae1d77663fcc302ec"] .content-wrapper {
    padding: 0 !important;
  }

  body[data-riot-layout~="home"] [data-section-id="6a34709ae1d77663fcc302ec"] {
    min-height: 0 !important;
  }

  /* Source phone order is heading, offer copy, CTA; the DOM is unchanged. */
  body[data-riot-layout~="home"] .fe-6a34709ae1d77663fcc302eb {
    grid-template-areas: "plan-heading" "plan-copy" "plan-cta";
  }

  body[data-riot-layout~="home"] .fe-6a34709ae1d77663fcc302eb > .fe-block-f93ed473fac90d610ce1 {
    grid-area: plan-heading;
  }

  body[data-riot-layout~="home"] .fe-6a34709ae1d77663fcc302eb > .fe-block-f036794077a9973a1199 {
    grid-area: plan-copy;
  }

  body[data-riot-layout~="home"] .fe-6a34709ae1d77663fcc302eb > .fe-block-d8a99373164d29f98cb2 {
    grid-area: plan-cta;
  }

  /* Native aspect-ratio variables already exist on these two source images.
     No guessed ratio and no rules for the decorative checkmark images. */
  body[data-riot-layout~="home"] #block-yui_3_17_2_1_1780171242757_14722 .fluid-image-component-root,
  body[data-riot-layout~="home"] #block-yui_3_17_2_1_1778788397549_5494 .fluid-image-component-root {
    position: relative;
    width: 100%;
    height: auto !important;
    aspect-ratio: var(--image-component-native-aspect-ratio);
  }

  body[data-riot-layout~="home"] #block-yui_3_17_2_1_1780171242757_14722 .fluid-image-animation-wrapper,
  body[data-riot-layout~="home"] #block-yui_3_17_2_1_1778788397549_5494 .fluid-image-animation-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body[data-riot-layout~="home"] .riot-flow-proof {
    padding: 2rem 1.15rem;
  }

  body[data-riot-layout~="home"] .riot-flow-proof-grid {
    margin-top: 0;
    gap: .85rem;
  }
}

@media (max-width: 680px) {
  body[data-riot-layout~="home"] .riot-discover-static {
    padding: 2.5rem 1.15rem;
  }

  body[data-riot-layout~="home"] .riot-discover-static__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
