/* One deliberate dark palette, in either OS appearance. Follow site tokens. */
:root{
 color-scheme:dark;
 --shell-safe-top:env(safe-area-inset-top,0px);
 --shell-safe-left:env(safe-area-inset-left,0px);
 --shell-safe-right:env(safe-area-inset-right,0px);
 --shell-safe-bottom:env(safe-area-inset-bottom,0px);
 --shell-top-offset:var(--shell-safe-top);
}
html{background:var(--bg,#080e10);scroll-padding-top:calc(90px + var(--shell-top-offset))}
body{padding-top:var(--shell-top-offset);padding-left:var(--shell-safe-left);padding-right:var(--shell-safe-right);padding-bottom:var(--shell-safe-bottom)}
header.site-header,.site-header .site-nav,.site-header .discover-panel{
 opacity:1;filter:none;-webkit-backdrop-filter:none;backdrop-filter:none;
 -webkit-mask-image:none;mask-image:none;background-image:none;
}
header.site-header{background-color:var(--bg,#080e10)}
.site-header .site-nav,.site-header .discover-panel{background-color:var(--panel,#0d1518)}
.site-header .header-cta{background:var(--bg,#080e10)}
/* Real, noninteractive HTML element. Ordinary Safari/Android never show it. */
.pwa-top-shield{display:none;pointer-events:none;user-select:none}
html.ios-pwa{--shell-top-offset:max(6px,var(--shell-safe-top))}
.ios-pwa .pwa-top-shield{
 display:block;position:fixed;top:0;left:0;right:0;
 min-height:6px;height:var(--shell-top-offset);z-index:1000;
 background:var(--bg,#080e10);
}
.reading-progress{top:var(--shell-top-offset);left:var(--shell-safe-left);max-width:calc(100% - var(--shell-safe-left) - var(--shell-safe-right))}
.skip:focus{top:calc(12px + var(--shell-top-offset));left:max(20px,var(--shell-safe-left))}
/* Keep the invitation scrollable within notched portrait/landscape safe areas. */
.install-invitation{
 right:max(20px,var(--shell-safe-right));
 width:min(460px,calc(100% - max(20px,var(--shell-safe-left)) - max(20px,var(--shell-safe-right))));
 bottom:max(16px,var(--shell-safe-bottom));
 max-height:calc(100dvh - max(20px,var(--shell-top-offset)) - max(16px,var(--shell-safe-bottom)));
}
@media(max-width:650px){
 .install-invitation{
  right:max(12px,var(--shell-safe-right));
  width:calc(100% - max(12px,var(--shell-safe-left)) - max(12px,var(--shell-safe-right)));
  bottom:max(12px,var(--shell-safe-bottom));
  max-height:calc(100dvh - max(12px,var(--shell-top-offset)) - max(12px,var(--shell-safe-bottom)));
 }
}

/* In app mode the menu must stop above the home indicator and safe edges. */
.app-standalone .site-header.nav-compact .site-nav{max-height:calc(100dvh - var(--shell-top-offset) - var(--site-menu-top,80px) - max(12px,var(--shell-safe-bottom)))}
@media(display-mode:standalone),(display-mode:fullscreen){#home-screen{display:none!important}}
/* The native launcher dialog is outside body padding, so inset it explicitly. */
.app-standalone islam-orbit-launcher::part(panel){
 top:max(12px,var(--shell-safe-top))!important;
 left:auto!important;right:max(12px,var(--shell-safe-right))!important;
 width:min(388px,calc(100vw - max(12px,var(--shell-safe-left)) - max(12px,var(--shell-safe-right))))!important;
 max-height:calc(100dvh - max(12px,var(--shell-safe-top)) - max(12px,var(--shell-safe-bottom)))!important;
}
