/* MD Digital Creations Studio 1.1.2 — scoped compatibility repair.
   Fixes the light strip around the floating nav and restores Kadence transparency.
   Do not change section HTML or override the brand's existing hero/layout CSS. */

/* Kadence's white page canvas was showing behind the separate floating header. */
body.mddc-v1-on.mddc-studio-page {
  background-color: #120920 !important;
}
body.mddc-v1-on.mddc-studio-page :is(#wrapper, #page, .site, #content, .site-content, .site-main, .content-bg) {
  background-color: transparent !important;
}

/* The approved floating pill stays identical; only its surrounding surface changes. */
body.mddc-v1-on .mddc-v1-header {
  margin-bottom: 0 !important;
}
body.mddc-v1-on .mddc-v1-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -36px;
  left: 50%;
  width: 100vw;
  height: calc(100% + 105px);
  transform: translateX(-50%);
  background: linear-gradient(180deg, #160d28 0%, #170e2a 60%, #120920 100%);
  opacity: 1;
  transition: opacity .25s ease;
}
body.mddc-v1-on.mddc-v1-scrolled .mddc-v1-header::before {
  opacity: 0;
}

/* Homepage pasted into Gutenberg as Custom HTML must inherit the same
   layout as the dynamic blocks, including cards, animations and typography. */
body.mddc-migration-page :is(#primary, #main, .content-area) {
  max-width: none !important;
  min-width: 0 !important;
  padding-top: 0 !important;
}
body.mddc-migration-page :is(.entry-content-wrap, .entry-content, .content-bg) {
  background: transparent !important;
  box-shadow: none !important;
}
body.mddc-migration-page .entry-content-wrap {
  padding: 0 !important;
}
body.mddc-migration-page .entry-hero-container,
body.mddc-migration-page .entry-header {
  display: none !important;
}
body.mddc-migration-page .mddc-homepage--auto-scoped {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

/* Native Gutenberg page blocks use this class to enable layout rules from
   kadence-compat.css and wp-layout-fix.css; keep their canvas transparent. */
body.mdcx-page-active .content-bg,
body.mdcx-page-active .entry-content-wrap {
  background-color: transparent !important;
}

@media (max-width: 900px) {
  body.mddc-v1-on .mddc-v1-header { margin-bottom: 0 !important; }
  body.mddc-v1-on .mddc-v1-header::before {
    top: -27px;
    height: calc(100% + 86px);
  }
}
@media (max-width: 620px) {
  body.mddc-v1-on .mddc-v1-header::before {
    top: -24px;
    height: calc(100% + 75px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.mddc-v1-on .mddc-v1-header::before { transition: none; }
}

/* 1.2: floating header should not paint an opaque banner over the hero. */
body.mddc-v1-on .mddc-v1-header::before {display:none!important;content:none!important;background:none!important;}
