/* Only hide legacy visual shells once their isolated replacements have been mounted. */
body.oku-unified-on .screen[data-screen]:not(#screen-intro):not(#screen-tefekkur) > .page-header,
body.oku-unified-on .screen[data-screen]:not(#screen-intro):not(#screen-tefekkur) > .screen-footer,
body.oku-unified-on .oku-standalone-header,
body.oku-unified-on .oku-standalone-footer,
body.oku-unified-on .oku-join-header,
body.oku-unified-on .oku-join-footer,
body.oku-unified-on .oku-join-site-map,
body.oku-unified-on .oku-join-home-map,
body.oku-unified-on .oku-mobile-menu,
body.oku-unified-on #okuMobileMenu,
body.oku-unified-on #soundToggle,
body.oku-unified-on #themeToggle,
body.oku-unified-on .oku-standalone-menu,
body.oku-unified-on .oku-standalone-site-map {display:none!important}
body.oku-unified-on .oku-unified-header,
body.oku-unified-on .oku-unified-footer {display:block!important;visibility:visible!important;opacity:1!important;transform:none!important;position:relative!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;min-height:0!important;left:auto!important;right:auto!important;top:auto!important;margin:0!important;padding:0!important;border:0!important;z-index:20!important}
body.oku-unified-on .oku-unified-footer{z-index:1!important}
body.oku-unified-drawer-open {overflow:hidden!important}
body.oku-unified-on.oku-experience-page{background:#f0ecdf!important}
body.oku-unified-on.oku-experience-page .grain,
body.oku-unified-on.oku-experience-page .intro-flower,
body.oku-unified-on.oku-experience-page [class*="petal"],
body.oku-unified-on.oku-experience-page [class*="blood-ambient"],
body.oku-unified-on.oku-experience-page [data-nesimi-ambient],
body.oku-unified-on.oku-experience-page .nesimi-air-drops {display:none!important;animation:none!important}
@media(max-width:1279px){
 body.oku-unified-on .oku-unified-header{z-index:999!important}
}

html[data-oku-theme="dark"] body.oku-unified-on.oku-join-body,
html[data-oku-theme="dark"] body.oku-unified-on.oku-experience-page {background:#393733!important;color:#f0ecdf!important}

/* v31.41: hide leftover legacy sitemap generated by cached old scripts. */
body.oku-unified-on .oku-section-hub{display:none!important}


/* v31.42 — Language chooser must paint ABOVE the Atlas / Trail hero cards.
   The shadow host is an independent stacking context. */
body.oku-unified-on.oku-experience-page > .oku-unified-header,
body.oku-unified-on.oku-clean-standalone > .oku-unified-header,
body.oku-unified-on.oku-join-body > .oku-unified-header {
 position:relative!important;
 z-index:2147480000!important;
 isolation:isolate!important;
 overflow:visible!important;
}
body.oku-unified-on.oku-experience-page #okuStandaloneExperience,
body.oku-unified-on.oku-clean-standalone #okuStandaloneExperience{
 position:relative!important;
 z-index:1!important;
}

/* Hide legacy header during the shared-header initial mount to prevent an old header flash. */
body:not(.oku-unified-on) .screen[data-screen]:not(#screen-intro):not(#screen-tefekkur) > .page-header,
body:not(.oku-unified-on).oku-join-body > .oku-join-header,
body:not(.oku-unified-on).oku-experience-page > .oku-standalone-header{visibility:hidden!important}
body.oku-goals-body>.oku-unified-header,body.oku-goals-body>.oku-unified-footer{display:block!important;width:100%!important;position:relative!important;z-index:20!important}

/* v31.84.2 — In mobile home, the verse determines the height of its card.
   The previous 44%-height absolute copy was clipping longer Arabic verses and translations. */
@media (max-width:900px){
 body.oku-unified-on #screen-home .home-daily-card{
   height:auto!important;
   min-height:420px!important;
   padding-bottom:72px!important;
 }
 body.oku-unified-on #screen-home .home-daily-copy{
   position:relative!important;
   left:auto!important;
   top:auto!important;
   transform:none!important;
   width:100%!important;
   height:auto!important;
   max-height:none!important;
   margin:clamp(58px,12vw,80px) auto 0!important;
   overflow:visible!important;
   align-content:start!important;
   gap:clamp(10px,2.7vw,18px)!important;
 }
}
