/* One quiet sky behind every page. Removing the script's body class restores the original surfaces. */
html{background:#010208}
body.isf-space-enabled{position:relative;isolation:isolate;min-height:100vh;background:transparent}
.isf-space-backdrop{position:fixed;inset:0;display:block;width:100%;height:100%;z-index:-1;pointer-events:none;background:#010208;contain:strict}

body.isf-space-enabled header,
body.isf-space-enabled main,
body.isf-space-enabled footer,
body.isf-space-enabled .utility,
body.isf-space-enabled .notice,
body.isf-space-enabled main>section,
body.isf-space-enabled .mandate,
body.isf-space-enabled .cta,
body.isf-space-enabled .compliance-page,
body.isf-space-enabled .presidency-callout{background:transparent}

/* Dense reading and input surfaces remain gently shaded, with the sky visible around them. */
body.isf-space-enabled .standard,
body.isf-space-enabled .standard-card{background:rgba(2,3,10,.57)}
body.isf-space-enabled .standard:hover,
body.isf-space-enabled .standard-card:hover{background:rgba(10,7,17,.88)}
body.isf-space-enabled .office-note{background:rgba(9,5,15,.76)}
body.isf-space-enabled .council-letter{background:rgba(7,4,12,.86)}
body.isf-space-enabled .report-form-area{background:rgba(4,3,10,.84)}
body.isf-space-enabled .candidate-assessment{background:radial-gradient(ellipse at 0 0,#3d253d33,transparent 70%),rgba(7,4,12,.85)}
body.isf-space-enabled dialog,
body.isf-space-enabled dialog.cart-drawer{background:rgba(8,5,14,.97)}
body.isf-space-enabled .cart-toast{background:rgba(14,7,23,.96)}

/* Black optical pixels reveal the same sky; the encrypted state keeps its opaque field. */
body.isf-space-enabled .visualiser-instrument{background:transparent}
body.isf-space-enabled .visualiser-stage{isolation:auto;background:transparent}
body.isf-space-enabled #light-code-canvas{mix-blend-mode:screen}
body.isf-space-enabled .visualiser-stage:has(.visualiser-restore:not([hidden])) #light-code-canvas{mix-blend-mode:normal}

@media(prefers-reduced-motion:reduce){.isf-space-backdrop{will-change:auto}}

/* Phone controls stay reachable at anchored catalogue links as well as the top of the page. */
.isf-space-motion{position:fixed;z-index:40;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:12px;padding:8px 12px;border:1px solid #796688;border-radius:8px;box-shadow:0 8px 30px #0009;color:#b9abc9;font:11px/1.5 'DM Sans',sans-serif;background:#090610f5}
.isf-space-motion>span:first-child{text-transform:uppercase;letter-spacing:.09em;font-size:9px;max-width:55px}
.isf-space-motion>button{flex:none;border:1px solid #796688;background:#100b1bbf;color:#d6c4ea;font:inherit;padding:7px 12px;min-height:44px;cursor:pointer}
.isf-space-motion>button:focus-visible{outline:2px solid #99edf2;outline-offset:3px}
.isf-space-motion>button:disabled{opacity:.55;cursor:wait}
.isf-space-motion>span:last-child{margin-left:auto;max-width:45%;text-align:right}
.isf-space-motion[hidden]{display:none!important}
body.isf-phone-controls-visible{padding-bottom:100px}
.isf-motion-settings{display:block;margin:16px 5% 24px;padding:8px 0;background:none;border:0;color:#b9abc9;text-decoration:underline;text-underline-offset:4px;font:12px 'DM Sans',sans-serif;cursor:pointer}
.isf-motion-settings:focus-visible{outline:2px solid #99edf2;outline-offset:4px}
.isf-motion-settings[hidden]{display:none!important}
body.isf-mobile-effects-on .brand-mark::after{animation:isf-logo-gleam 10s ease-in-out infinite}
body.isf-mobile-effects-on .footer-main .brand-mark::after{animation-delay:2s}
