/* Slate HQ scroll shells: the look of the pages the theme wraps with aos_story_shell() (data/shells.json).
   Legal pages (privacy, terms, cookies, ΔMBI terms, ΔMBI Beta Terms): an opening chapter with the document's own
   title and date line, a sticky contents bar from its h2s, and one reveal chapter per section, the heading held at
   the side while its text scrolls. Functional pages (sign-in, consent, reset, search, password forms, listings): one
   chapter with the working form in the first screen at 375.
   Presentation only: no text, link, heading, form field or action is hidden, reordered in the document or changed.
   Slate HQ Native: theme tokens only (ink, greys, navy, hairlines), flat, light by default and dark with the toggle.
   Search results and not found keep the theme's own frames (index.php, 404.php) and take their sizing from here.
   Load after the theme's css/scrolly.css (handle ambientos-scrolly) on shelled pages, search results and not found.
   Copyright © 2026 Slate HQ Ltd. All rights reserved and asserted. */

/* ------------------------------------------------------------------ every shell */

/* A page that carries its own h1 (the legal documents, search) keeps it; the shell's copy of the page title steps
   back so the page has one visible title, as it does on the live site. */
.sx[data-aos-shell] .aos-shell-body>h1:has(~ * h1){display:none}
.sx[data-aos-shell] :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--sx-ink);outline-offset:3px}

/* ------------------------------------------------------------------ legal */

/* The documents wrap their sections in one article, so the shell keeps them in its opening chapter (wrappers only)
   and the contents bar, which the theme prints after that chapter, is shown first so it can stay in reach. */
.sx[data-aos-shell="legal"]{display:flex;flex-direction:column}
.sx[data-aos-shell="legal"]:not(:has(>section.ch-shell))>.chapter-nav{order:-1}
.sx[data-aos-shell="legal"] .chapter-nav ul{max-width:1120px}
.sx[data-aos-shell="legal"] .chapter-nav a{font-size:14px}
.sx[data-aos-shell="legal"] .wrap.aos-shell-body{max-width:1120px}
.sx[data-aos-shell="legal"] section.ch-shell-open{padding:clamp(48px,7vw,88px) 0 clamp(64px,8vw,120px)}
.sx[data-aos-shell="legal"] h2{scroll-margin-top:72px}

/* The document: Slate HQ Native type on theme tokens in place of the older page-body styles. */
.sx[data-aos-shell] .hq2-legal{max-width:none;margin:0;padding:0;color:var(--sx-ink);font-family:var(--sx-font)}
.sx[data-aos-shell] .hq2-legal header{max-width:860px;padding:0 0 clamp(40px,6vw,72px)}
.sx[data-aos-shell] .hq2-legal header h1{font-size:clamp(44px,8vw,88px)!important;line-height:1;letter-spacing:-.05em;margin:14px 0 26px;max-width:14ch;color:var(--sx-ink)!important}
.sx[data-aos-shell] .hq2-legal header>p:not(.hq2-legal-kicker):not(.hq2-legal-date){max-width:760px;margin:0 0 22px;font-size:clamp(19px,2.3vw,26px);line-height:1.38;letter-spacing:-.018em;color:var(--sx-ink2)}
.sx[data-aos-shell] .hq2-legal header>p:not(.hq2-legal-kicker):not(.hq2-legal-date) a{color:var(--sx-ink)!important}
.sx[data-aos-shell] .hq2-legal .hq2-legal-kicker,.sx[data-aos-shell] .hq2-legal .hq2-legal-date{margin:0;font-size:14px;letter-spacing:0;text-transform:none;font-weight:500;color:var(--sx-ink3)}
.sx[data-aos-shell] .hq2-legal a{color:var(--sx-ink)!important;text-decoration:underline;text-underline-offset:3px}
.sx[data-aos-shell] .hq2-legal>nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 clamp(32px,5vw,56px)}
.sx[data-aos-shell] .hq2-legal>nav a{padding:9px 14px;border-radius:999px;background:var(--sx-fill);color:var(--sx-ink2)!important;font-size:14px;text-decoration:none!important}
.sx[data-aos-shell] .hq2-legal>nav a:hover{color:var(--sx-ink)!important}

/* Each section is a chapter: a hairline, its heading held at the side while the text scrolls past. */
.sx[data-aos-shell] .hq2-legal>section{display:grid;grid-template-columns:minmax(200px,.7fr) minmax(0,1.45fr);column-gap:56px;row-gap:0;padding:clamp(44px,6vw,76px) 0;border-top:1px solid var(--sx-sep);scroll-margin-top:72px}
.sx[data-aos-shell] .hq2-legal>section:last-child{padding-bottom:0}
.sx[data-aos-shell] .hq2-legal>section>h2{grid-column:1;grid-row:1 / span 60;align-self:start;position:sticky;top:76px;margin:0;font-size:clamp(26px,3vw,38px)!important;line-height:1.1;letter-spacing:-.035em;color:var(--sx-ink)!important}
.sx[data-aos-shell] .hq2-legal>section>:not(h2){grid-column:2;max-width:68ch}
.sx[data-aos-shell] .hq2-legal section :is(p,li){color:var(--sx-ink2);font-size:17px;line-height:1.63}
.sx[data-aos-shell] .hq2-legal section p{margin:0 0 14px}
.sx[data-aos-shell] .hq2-legal section :is(ul,ol){margin:0 0 14px;padding-left:22px}
.sx[data-aos-shell] .hq2-legal section :is(h3,h4){margin:22px 0 8px;font-size:19px;color:var(--sx-ink)!important}
.sx[data-aos-shell] .hq2-legal section :is(strong,b){color:var(--sx-ink)}
.sx[data-aos-shell] .hq2-legal code{font:15px var(--sx-mono);padding:1px 5px;border-radius:6px;background:var(--sx-fill);color:var(--sx-ink)}
.sx[data-aos-shell] .hq2-legal table{width:100%;border-collapse:collapse;font-size:15px}
.sx[data-aos-shell] .hq2-legal :is(th,td){padding:10px 12px 10px 0;border-bottom:1px solid var(--sx-sep);text-align:left;vertical-align:top;color:var(--sx-ink2)}

@media (max-width:760px){
  .sx[data-aos-shell="legal"] section.ch-shell-open{padding:36px 0 72px}
  .sx[data-aos-shell] .hq2-legal header h1{font-size:clamp(40px,11vw,56px)!important}
  .sx[data-aos-shell] .hq2-legal>section{display:block;padding:36px 0}
  .sx[data-aos-shell] .hq2-legal>section>h2{position:static;margin:0 0 16px;font-size:26px!important}
  .sx[data-aos-shell] .hq2-legal section :is(p,li){font-size:16px}
}

/* Reveal as each chapter enters the screen. CSS only, so the text is always in the page; off where motion is reduced,
   where the browser has no scroll timelines, and in print. */
@keyframes aos-shell-in{from{opacity:.18;transform:translateY(26px)}to{opacity:1;transform:none}}
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .sx[data-aos-shell="legal"] .hq2-legal>section,.sx[data-aos-shell="legal"] section.ch-shell>.wrap{animation:aos-shell-in linear both;animation-timeline:view();animation-range:entry 0% entry 38%}
  }
}

/* ------------------------------------------------------------------ functional */

.sx[data-aos-shell="functional"] section.ch-shell-one{min-height:calc(100svh - 150px);padding:28px 0 96px}
.sx[data-aos-shell="functional"] .aos-shell-body>h1{font-size:clamp(34px,6vw,56px);line-height:1.04;letter-spacing:-.04em;margin:0 0 20px}

/* Sign-in, consent and reset (the hpc-consent card): the same flow and fields on native ink and hairlines. */
.sx[data-aos-shell] .hpc-consent{max-width:420px;margin:4px 0 0;padding:26px 24px;border:1px solid var(--sx-sep);border-radius:22px;background:var(--sx-glass);box-shadow:none;color:var(--sx-ink);font:16px/1.5 var(--sx-font)}
.sx[data-aos-shell] .hpc-consent .brand{color:var(--sx-ink);letter-spacing:-.01em}
.sx[data-aos-shell] .hpc-consent .brand span{color:inherit}
.sx[data-aos-shell] .hpc-consent .lead{color:var(--sx-ink)}
.sx[data-aos-shell] .hpc-consent :is(.muted,ul,li){color:var(--sx-ink3)}
.sx[data-aos-shell] .hpc-consent input{border:1px solid var(--sx-glass-line);border-radius:12px;background:var(--sx-bg);color:var(--sx-ink)}
.sx[data-aos-shell] .hpc-consent input::placeholder{color:var(--sx-ink3)}
.sx[data-aos-shell] .hpc-consent button{border-radius:999px;background:var(--sx-ink);color:var(--sx-bg)}
.sx[data-aos-shell] .hpc-consent button.secondary{background:var(--sx-fill);color:var(--sx-ink)}
.sx[data-aos-shell] .hpc-consent .ok{color:var(--sx-ink2)}
:root[data-theme="dark"] .sx[data-aos-shell] .hpc-consent .err{color:var(--sx-ink)}

/* WordPress password forms (/hq-pitch/, the investor deck post). */
.sx[data-aos-shell] .post-password-form{max-width:460px;margin:4px 0 0;padding:24px;border:1px solid var(--sx-sep);border-radius:22px;background:var(--sx-glass)}
.sx[data-aos-shell] .post-password-form p{margin:0 0 14px;color:var(--sx-ink2)}
.sx[data-aos-shell] .post-password-form p:empty{display:none}
.sx[data-aos-shell] .post-password-form p:last-child{margin:0;display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.sx[data-aos-shell] .post-password-form label{flex:1 1 220px;display:grid;gap:6px;color:var(--sx-ink);font-size:15px;font-weight:600}
.sx[data-aos-shell] .post-password-form input[type="password"]{width:100%;min-height:46px;box-sizing:border-box;padding:0 14px;border:1px solid var(--sx-glass-line);border-radius:12px;background:var(--sx-bg);color:var(--sx-ink);font:16px var(--sx-font)}
.sx[data-aos-shell] .post-password-form input[type="submit"]{min-height:46px;padding:0 22px;border:0;border-radius:999px;background:var(--sx-ink);color:var(--sx-bg);font:600 15px var(--sx-font);cursor:pointer}

/* Search: the conversation and its form keep working; the intro is sized so the form is in the first screen. */
.sx[data-aos-shell] .hq-search-app{max-width:none;margin:0;padding:0 0 32px;color:var(--sx-ink);font-family:var(--sx-font)}
.sx[data-aos-shell] .hq-search-kicker{display:none}
.sx[data-aos-shell] .hq-search-intro{margin:0 0 28px}
.sx[data-aos-shell] .hq-search-intro h1{margin:0 0 16px!important;font:700 clamp(40px,7vw,76px)/1 var(--sx-font)!important;letter-spacing:-.05em!important;color:var(--sx-ink)!important}
.sx[data-aos-shell] .hq-search-intro>p:last-child{font-size:clamp(18px,2.1vw,24px);line-height:1.35;letter-spacing:-.018em;color:var(--sx-ink2)}
.sx[data-aos-shell] .hq-search-shell{border-top-color:var(--sx-sep)}
.sx[data-aos-shell] .hq-search-form{padding:24px 0 22px;border-bottom-color:var(--sx-sep)}
.sx[data-aos-shell] .hq-search-form label{font-size:clamp(18px,1.8vw,24px);color:var(--sx-ink)}
.sx[data-aos-shell] .hq-search-input-row input{border-color:var(--sx-glass-line);background:var(--sx-glass);color:var(--sx-ink)}
.sx[data-aos-shell] .hq-search-input-row button{background:var(--sx-ink);color:var(--sx-bg)}
.sx[data-aos-shell] :is(.hq-search-suggestions button,.hq-search-message-user){border-color:var(--sx-sep);background:var(--sx-fill);color:var(--sx-ink)}
.sx[data-aos-shell] :is(.hq-search-message,.hq-search-result){border-color:var(--sx-sep);color:var(--sx-ink)}
.sx[data-aos-shell] .hq-search-message{background:var(--sx-glass)}
@media (max-width:760px){
  .sx[data-aos-shell] .hq-search-intro{margin-bottom:18px}
  .sx[data-aos-shell] .hq-search-intro h1{font-size:40px!important;margin-bottom:12px!important}
  .sx[data-aos-shell] .hq-search-intro>p:last-child{font-size:18px}
  .sx[data-aos-shell] .hq-search-form{padding:18px 0}
  .sx[data-aos-shell] .hq-search-form label{margin-bottom:12px}
  .sx[data-aos-shell] .hq-search-input-row input{min-height:52px}
  .sx[data-aos-shell] .hq-search-input-row button{min-height:48px}
}

/* Blog listing: the cover, hubs and posts as they are, on native type. */
.sx[data-aos-shell] .slate-blog-publisher{max-width:none;margin:0;padding:0}
.sx[data-aos-shell] .slate-blog-cover img{max-width:min(320px,100%);height:auto!important;border-radius:20px}
.sx[data-aos-shell] .slate-blog-cover{margin:0;padding:0;background:none;border:0}
.sx[data-aos-shell] .slate-blog-cover figure{margin:0 0 24px;text-align:left}
.sx[data-aos-shell] .slate-blog-hubs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px}
.sx[data-aos-shell] .slate-blog-hubs a{padding:9px 14px;border-radius:999px;background:var(--sx-fill);color:var(--sx-ink2);font-size:14px;text-decoration:none}
.sx[data-aos-shell] .slate-blog-hubs a:hover{color:var(--sx-ink)}

/* Newsfeed reader: full width for its three columns, its own colours brought to the native tokens. */
.sx[data-aos-shell="functional"] .wrap.aos-shell-body:has(>#app){max-width:none}
html:has(.sx[data-aos-shell] #app){--aos-plane:var(--aos-plane-ground)}
.sx[data-aos-shell] #app{color:var(--sx-ink)}
.sx[data-aos-shell] #app .shell{min-height:0;padding:0}
.sx[data-aos-shell] #app :is(h1,h2,.title){color:var(--sx-ink)}
.sx[data-aos-shell] #app .eyebrow{display:none}
.sx[data-aos-shell] #app :is(.publisher,.meta,.count,.empty,label){color:var(--sx-ink3);letter-spacing:0}
.sx[data-aos-shell] #app .excerpt{color:var(--sx-ink2)}
.sx[data-aos-shell] #app :is(input,select){border-color:var(--sx-glass-line);background:var(--sx-glass);color:var(--sx-ink)}
.sx[data-aos-shell] #app :is(.actions button,.signin button){border-color:var(--sx-glass-line);background:var(--sx-ink);color:var(--sx-bg)}
.sx[data-aos-shell] #app .actions button+button{background:transparent;color:var(--sx-ink)}
.sx[data-aos-shell] #app .notice{border-color:var(--sx-sep);background:var(--sx-fill);color:var(--sx-ink2)}
.sx[data-aos-shell] #app .card{border-color:var(--sx-sep);background:var(--sx-glass)}
.sx[data-aos-shell] #app .card.selected{border-color:var(--sx-ink);box-shadow:none}
.sx[data-aos-shell] #app :is(.card img,.placeholder){background:var(--sx-fill)}
.sx[data-aos-shell] #app .reader iframe{border-color:var(--sx-sep)}

/* ------------------------------------------------------------------ search results and not found */

/* The theme's own frames (index.php, 404.php): one short chapter each, sized as a listing rather than a cover. */
.sx.aos-list-frame section.ch{min-height:0;display:block;padding:clamp(40px,7vw,88px) 0 96px}
.sx.aos-list-frame .aos-page-head h1{margin:0 0 clamp(24px,4vw,44px);font-size:clamp(36px,6vw,64px);line-height:1.04;letter-spacing:-.04em}
.sx.aos-list-frame .aos-list{gap:0;padding-bottom:40px;max-width:820px}
.sx.aos-list-frame .aos-item{padding:22px 0;border-top:1px solid var(--sx-sep)}
.sx.aos-list-frame .aos-item:last-child{border-bottom:1px solid var(--sx-sep)}
.sx.aos-list-frame .aos-item h2{margin:0 0 8px;font-size:clamp(21px,2.4vw,26px);line-height:1.2;letter-spacing:-.02em}
.sx.aos-list-frame .aos-item h2 a{color:var(--sx-ink);text-decoration:none}
.sx.aos-list-frame .aos-item h2 a:hover{text-decoration:underline;text-underline-offset:3px}
.sx.aos-list-frame .aos-item p{margin:0;color:var(--sx-ink2);font-size:16px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sx.aos-not-found section.ch{min-height:calc(100svh - 150px)}
.sx.aos-not-found h1{font-size:clamp(40px,7vw,72px);line-height:1.02;letter-spacing:-.045em;margin:0 0 16px}
.sx.aos-not-found p{margin:0 0 12px;font-size:clamp(18px,2vw,22px);color:var(--sx-ink2)}
.sx.aos-not-found a{color:var(--sx-ink);text-underline-offset:3px}

/* ------------------------------------------------------------------ print */

@media print{
  .sx[data-aos-shell] .chapter-nav{display:none}
  .sx[data-aos-shell] *{animation:none!important}
  .sx[data-aos-shell] .hq2-legal>section>h2{position:static}
}

/* Newsfeed (an app in the page body with its own light-only page styles on main and :root): the shell's tokens
   decide the surface so its title, sign-in and fields stay readable in dark. */
body:has(.sx[data-aos-shell] #app) main,body:has(.sx[data-aos-shell] #app) .aos-main{background:transparent!important}
:root[data-theme=dark]:has(.sx[data-aos-shell] #app){color-scheme:dark;background:var(--sx-bg,#0f1113)}
