/* Local review only: shared spacing and headings. FAQ stays original. */
/* Align this page's module edges with the navigation and existing Hero. */
body.page-subtitle-removal[data-service-page] main > section > .wrap,
body.page-subtitle-removal[data-service-page] main > .wrap {
  max-width: 73rem;
  padding-inline: 1.5rem;
}

@media (max-width: 48rem) {
  body.page-subtitle-removal[data-service-page] main > section > .wrap,
  body.page-subtitle-removal[data-service-page] main > .wrap {
    padding-inline: 1.25rem;
  }
}

body[data-service-page] main .preview-service-hero-actions {
  margin-top: 16px;
}

/* Give spare width to the copy instead of leaving an empty area before the videos. */
@media (min-width: 761px) {
  body[data-service-page] :is(.merged-video-hero, .hardcoded-merged-hero).sample-stage.wrap {
    grid-template-columns: minmax(0, 1fr) min(476px, 50%);
    column-gap: 56px;
  }

  body[data-service-page] :is(.merged-video-hero, .hardcoded-merged-hero) .sample-copy-column {
    max-width: none;
  }

  body[data-service-page] :is(.merged-video-hero, .hardcoded-merged-hero) .product-video-card {
    width: calc((100% - 16px) / 2);
  }
}

body[data-service-page] main > section:not(:first-child):not(#faq) {
  padding-block: 100px;
}

body[data-service-page] main #choose-removal-method {
  /* The supplied HTML has an older inline stylesheet using !important. */
  padding-top: 200px !important;
}

body[data-service-page] main > section:not(:first-child):not(#faq) > .wrap > header {
  max-width: 880px;
  margin: 0 auto 48px;
  text-align: center;
}

body[data-service-page] main > section:not(:first-child):not(#faq) h2,
body[data-service-page] main .final h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
  text-align: center;
}

body[data-service-page] main > section:not(:first-child):not(#faq) > .wrap > header h2 {
  margin: 0;
}

body[data-service-page] main > section:not(:first-child):not(#faq) > .wrap > header > p {
  margin: 16px auto 0;
  text-align: center;
}

body[data-service-page] main .final {
  flex-direction: column;
  gap: 16px;
  padding: 48px 40px;
  margin-block: 0 100px;
  text-align: center;
}

body[data-service-page] main .final > div {
  width: 100%;
}

body[data-service-page] main .final p {
  margin: 16px auto 0;
}

/* Keep media wrappers so grid placement, subtitles and controls stay unchanged. */
body[data-service-page] main .preview-captioned-media {
  min-width: 0;
}

body[data-service-page] main .quality-story:nth-child(even) > .preview-captioned-media {
  grid-column: 2;
  grid-row: 1;
}

@media (max-width: 700px) {
  body[data-service-page] main > section:not(:first-child):not(#faq) {
    padding-block: 64px;
  }

  body[data-service-page] main #choose-removal-method {
    padding-top: 96px !important;
  }

  body[data-service-page] main > section:not(:first-child):not(#faq) > .wrap > header {
    margin-bottom: 36px;
  }

  body[data-service-page] main > section:not(:first-child):not(#faq) h2,
  body[data-service-page] main .final h2 {
    font-size: 27px;
  }

  body[data-service-page] main #assessment h2 {
    font-size: 27px !important;
  }

  body[data-service-page] main .final {
    padding: 32px 24px;
    margin-bottom: 64px;
  }

}

@media (max-width: 640px) {
  body[data-service-page] main .quality-story:nth-child(even) > .preview-captioned-media {
    grid-column: 1;
    grid-row: 1;
  }
}

/* One continuous subtitle-source panel; confined to this page and section. */
body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-panel {
  padding: 24px;
  /* Reserve the existing inset while removing the visible outer line. */
  border: 1px solid transparent;
  border-radius: 22px;
  background: linear-gradient(120deg, #fffaf7, #f6f4fc);
}

body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-top,
body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-bottom {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-topline {
  font-size: 15px;
  line-height: 1.7;
}

body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5deec;
}

body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-summary {
  margin: 0 0 8px;
  color: #334155;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-pair {
  background: none;
}

/* Only the approved contextual service links gain an underline on interaction. */
body[data-service-page] a[data-service-cross-link]:hover,
body[data-service-page] a[data-service-cross-link]:focus-visible {
  text-decoration-line: underline;
  text-underline-offset: 3px;
}

/* Reuse the existing clean frame with an English subtitle, as on the homepage. */
html[lang="en"] body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-localized-before {
  container-type: inline-size;
}

html[lang="en"] body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-subtitle {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 10%;
  color: #fff;
  font-size: 3.5cqw;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: .18cqw #24252a;
  paint-order: stroke fill;
  text-shadow: 0 .15cqw .3cqw rgba(0, 0, 0, .8);
  pointer-events: none;
}

@media (max-width: 700px) {
  body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-panel {
    padding: 18px;
  }

  body.page-subtitle-removal[data-service-page] #choose-removal-method .routing-ref-bottom {
    margin-top: 18px;
    padding-top: 18px;
  }
}
