/* Phase 3 — mobile CWV: ScrollSmoother geometry pre-lock + discoverable LCP surfaces */

/* Match ScrollSmoother.create() before JS runs — prevents ~0.245 CLS on init */
body:not(.dm-route-faq):not(.dm-embed-preview) .page-wrapper #smooth-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body:not(.dm-route-faq):not(.dm-embed-preview) .page-wrapper #smooth-content {
  min-height: 100%;
  width: 100%;
}

/* Bilgi Merkezi keeps native scroll (Faz 1 / faq lock parity) */
body.dm-route-faq .page-wrapper #smooth-wrapper,
body.dm-route-faq .page-wrapper #smooth-content {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Hero — HTML-discoverable LCP image (replaces CSS-only background on slide 1) */
.dm-hero-slider .hero-1-bg-stack .hero-1-bg--lcp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border: 0;
  pointer-events: none;
  z-index: 0;
}

.dm-hero-slider .hero-1-bg-stack .hero-1-bg--lcp-img ~ .hero-1-bg[data-dm-motion-target="layer"] {
  z-index: 0;
}

/* Inner page hero — discoverable LCP behind existing .page-title chrome */
.page-title.dm-page-title--has-lcp-img {
  position: relative;
  overflow: hidden;
  background-image: none !important;
}

.page-title.dm-page-title--has-lcp-img .dm-page-title__lcp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  z-index: 0;
}

.page-title.dm-page-title--has-lcp-img > .auto-container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767.98px) {
  .dm-hero-slider .hero-1-bg-stack .hero-1-bg--iframe.dm-hero-iframe--deferred {
    content-visibility: auto;
  }
}