/* AmbientOS Internal: Slate HQ tokens. Copyright © 2026 Slate HQ Ltd. All rights reserved and asserted.
   The scroll stories in slate-hq.uk page bodies carry their own engine styles: dark tokens by default and the light
   set only when the device prefers light. Here the stories take the one ΔMBI theme sheet's tokens instead
   (neuron.decision.one-ambi-theme-stylesheet), so every story opens in the mode ΔMBI's data-theme sets and the sheet's
   light and dark values follow it; the sx-lt class that pinned them light is overridden too. Flat: no shadow, glow
   or gloss. */
:root[data-theme] .sx,:root[data-theme] .sx.sx-lt{--sx-bg:var(--aos-ground);--sx-ink:var(--aos-ink);--sx-ink2:var(--aos-ink-2);--sx-ink3:var(--aos-ink-3);--sx-sep:var(--aos-sep);--sx-glass:var(--aos-card);--sx-glass-line:var(--aos-sep);--sx-accent:var(--aos-ink);--sx-frame:color-mix(in oklab,var(--aos-ink) 30%,transparent);--sx-iri:var(--aos-story)}
:root[data-theme=light] .sx{--sx-k:.4}
:root[data-theme=light] .sx .wordmark.dark{display:none}
:root[data-theme=light] .sx .wordmark.light{display:block}
:root[data-theme=light] .sx .wm-ent .erp{color:var(--aos-hub-technology)}
/* The page title is hidden where the live site hides it (custom CSS 182). */
.aos-slate-hq-notitle .aos-page-head{display:none}
/* Consent choices remain above the AmbientOS bar and edge tabs on narrow screens. */
#cmplz-cookiebanner-container .cmplz-cookiebanner:not(.cmplz-hidden){z-index:2147483600!important}
/* Keep the compact footer's contact addresses together on narrow screens. */
.aos-footer .aos-company a{white-space:nowrap}
/* Scroll frame around pages that are not scroll stories yet: one reveal step per top-level block, live content width. */
.sx.aos-frame{overflow:visible;padding:8px 0 96px}
.sx.aos-frame>.aos-frame-step{max-width:1120px;margin:0 auto;padding:0 20px 28px}
.sx.aos-frame>.aos-frame-step:first-child{padding-top:8px}
@media (prefers-reduced-motion:reduce){.sx.aos-frame.sx-js .reveal{opacity:1;transform:none;transition:none}}
/* Dark, when data-theme="dark": the stories' glow strength; the colours above already follow the sheet. */
:root[data-theme=dark] .sx,:root[data-theme=dark] .sx.sx-lt{--sx-k:1}
:root[data-theme=dark] .sx .wordmark.dark{display:block}
:root[data-theme=dark] .sx .wordmark.light{display:none}

/* Contact form (snippet 5): its block styles are light only. Presentation only, the markup, fields and handler are
   unchanged: the "(required)" note meets 4.5:1 in light, and in dark the labels, fields and button take the dark set. */
.aos-content .slate-contact .req{color:var(--aos-ink-2)}
:root[data-theme=dark] .aos-content .slate-contact label{color:var(--aos-ink)}
:root[data-theme=dark] .aos-content .slate-contact .req{color:var(--aos-ink-2)}
:root[data-theme=dark] .aos-content .slate-contact :is(input,select,textarea){color:var(--aos-ink);background:var(--aos-card);border-color:var(--aos-sep);color-scheme:dark}
:root[data-theme=dark] .aos-content .slate-contact :is(input,select,textarea):focus{border-color:var(--aos-ink);box-shadow:0 0 0 3px var(--aos-fill-2)}
:root[data-theme=dark] .aos-content .slate-contact button{background:var(--aos-ink);color:var(--aos-ground)}
:root[data-theme=dark] .aos-content .slate-note.ok{background:var(--aos-card);border-color:var(--aos-sep);color:var(--aos-ink)}
:root[data-theme=dark] .aos-content .slate-note.err{background:color-mix(in oklab,var(--aos-bad) 14%,var(--aos-card));border-color:var(--aos-sep);color:var(--aos-ink)}
/* Below 860 the shell's rails fold into edge tabs on both screen edges. Page text keeps the sheet's rail inset from each
   edge (--aos-rail-inset, ambi-bar/src/tokens.css), the one rule every AmbientOS surface uses, so nothing runs under a
   tab. slate-hq-content.css is generated from the live custom CSS, so the inset lands here, after it. */
@media (max-width:760px){
  .aos-content .hq2-wrap,.aos-content .hq2-home>section,.aos-content .hq2-page-wrap,.aos-content .hq2-partners-page .hq2-page-wrap{padding-inline:var(--aos-rail-inset,42px)}
  body.page-id-54 .aos-content .wp-block-post-content{padding-inline:var(--aos-rail-inset,42px)!important}
  .aos-content .hq-research-v2{padding-left:var(--aos-rail-inset,42px)!important;padding-right:var(--aos-rail-inset,42px)!important}
  .aos-content .hq2-demo[class] .hq2-demo-top,.aos-content .hq2-demo[class] .hq2-demo-flow,.aos-content .hq2-legal{padding-left:var(--aos-rail-inset,42px);padding-right:var(--aos-rail-inset,42px)}
  .aos-content .hq2-demo[class] .hq2-demo-top{height:auto;min-height:414px}.aos-content .hq2-demo[class] .hq2-demo-field{left:var(--aos-rail-inset,42px)}
  .aos-content .hq2-demo[class] .hq2-demo-work{left:var(--aos-rail-inset,42px)}.aos-content .hq2-demo[class] .hq2-demo-personal{right:var(--aos-rail-inset,42px)}
  .aos-content .hq2-demo[class] .hq2-demo-apps{left:var(--aos-rail-inset,42px);right:var(--aos-rail-inset,42px)}
}
