/* ZB Stack · 1114 · inner pages restyled to the home's system. Loads last, after the page's own stylesheets
   (site.css, rd-system.css, rd-inner.css, page css), tokens-1114.css and chrome-1114.css.
   The live pages are token-driven (--rd-* and --k43-*), so most of the restyle is section 1: the two token
   families re-pointed to the 1114 tokens, for dark and light. The rest is type, cards, forms and figures. */

/* ── 1 · tokens ─────────────────────────────────────────────────────────── */
:root:root{
  --rd-serif:var(--f); --rd-sans:var(--f); --rd-mono:var(--fm);
  --rd-ground:var(--bg); --rd-text:var(--ink); --rd-body:var(--body); --rd-muted:var(--mute);
  --rd-line:var(--line); --rd-line-2:var(--line-2); --rd-line-3:var(--line-3);
  --rd-amber:var(--accent); --rd-amber-grad:linear-gradient(90deg,var(--accent),var(--accent));
  --rd-btn:var(--btn); --rd-btn-text:var(--btn-t);
  --rd-h1:clamp(40px,5.4vw,80px); --rd-h2:clamp(31px,3.7vw,54px); --rd-h3:clamp(23px,2.05vw,30px);
  --rd-lede:clamp(17px,1.4vw,20px); --rd-bodysize:clamp(16px,1.2vw,17.5px);
  --rd-r-img:16px; --rd-r-card:16px;
  --k43-ground:var(--rd-ground); --k43-deep:var(--rd-ground); --k43-surface:var(--rd-surface); --k43-surface-2:var(--rd-surface-2); --k43-plate:var(--rd-surface);
  --k43-text:var(--ink); --k43-body:var(--body); --k43-muted:var(--mute); --k43-faint:var(--mute);
  --k43-line:var(--line); --k43-line-2:var(--line-2); --k43-line-3:var(--line-3);
  --k43-amber:var(--accent); --k43-amber-2:var(--accent); --k43-wash:var(--rd-surface);
  --k43-btn:var(--btn); --k43-btn-hover:var(--btn-h); --k43-btn-text:var(--btn-t);
  --k43-glow:rgba(255,255,255,0); --k43-gold:linear-gradient(90deg,var(--accent),var(--accent)); --k43-shadow:var(--rd-shadow);
}
:root:root,:root:root[data-theme="dark"]{
  --rd-deep:#141413; --rd-surface:#10100F; --rd-surface-2:#161614;
  --rd-deep-line:#2A2A26; --rd-deep-surface:#1C1C1A;
  --rd-shadow:0 1px 2px rgba(0,0,0,.4),0 18px 40px -28px rgba(0,0,0,.8);
}
:root:root[data-theme="light"]{
  --rd-deep:#141414; --rd-surface:#FAF9F6; --rd-surface-2:#F3F2EC;
  --rd-deep-line:#2E2E2B; --rd-deep-surface:#1E1E1C;
  --rd-shadow:0 1px 2px rgba(20,20,20,.04),0 18px 40px -28px rgba(20,20,20,.18);
}
:root:root[data-theme="dark"]{color-scheme:dark}
:root:root[data-theme="light"]{color-scheme:light}

/* ── 2 · page frame ─────────────────────────────────────────────────────── */
html body[data-page]:not([data-page="index"]){padding-top:var(--nav-h);font-family:var(--f);-webkit-font-smoothing:antialiased}
html{scroll-padding-top:var(--nav-h)}

/* ── 3 · type: thin Geist headlines, one tone ───────────────────────────── */
html body[data-page] #main#main :is(h1,h2,.zbm-h1,.zbm-h2){font-family:var(--f);font-weight:300;letter-spacing:-.036em;font-style:normal}
html body[data-page] #main#main :is(h1,h2,h3,p) :is(em,i){font-style:normal}
:root:root,html body[data-page],html body[data-page] #main#main{
  --zbm-serif:var(--f); --s-serif:var(--f); --ed-display:var(--f); --ed-serif:var(--f); --font-source-serif:var(--f);
  --zbm-sans:var(--f); --s-sans:var(--f); --ed-sans:var(--f);
  --zbm-mono:var(--fm); --s-mono:var(--fm); --ed-mono:var(--fm);
}
/* the accent half of a headline: same face, same tone as the rest */
html body[data-page] #main#main#main :is(.zbm-hl,.zbm-am){font-family:inherit;font-style:normal;font-weight:inherit;letter-spacing:inherit;color:inherit;-webkit-text-fill-color:currentColor;background:none}
html body[data-page="foundation"] #main#main .zbm-idea .zbm-pull p{font-style:normal;font-weight:300;letter-spacing:-.03em}
html body[data-page] #main#main :is(h3,.zbm-h3){font-family:var(--f);letter-spacing:-.022em}
/* kickers: mono, amber, as on the home */
html body[data-page] #main#main#main#main .zbm-kicker,
html body[data-page="zb-compute"] #main#main.zb-compute .label{font-family:var(--fm);font-size:12.5px;line-height:1.4;letter-spacing:.1em;text-transform:uppercase;font-weight:500;color:var(--accent)}
html body[data-page] #main#main#main#main .rd-ink .zbm-kicker{color:#E9A648}
/* the dotted corner texture behind heroes and closes is off: plain ground, as on the home */
html body[data-page] #main#main .tkbg{display:none}

/* ── 4 · buttons ────────────────────────────────────────────────────────── */
html body[data-page] #main#main :is(.zbm-btn,.ed-btn),
html body[data-page="zb-compute"] #main#main.zb-compute .button{border-radius:10px;font-family:var(--f);font-weight:500;letter-spacing:-.005em}
html body[data-page] #main#main :is(.zbm-btn--ghost,.ed-btn--ghost):hover,
html body[data-page="zb-compute"] #main#main.zb-compute .button:hover{background:transparent;border-color:var(--ink);color:var(--ink)}

/* ── 5 · forms: fields on the panel tone, hairline border, both themes ──── */
html body[data-page] #main#main#main .zbm-form :is(input,select,textarea){background-color:var(--rd-surface);border-color:var(--line-3);color:var(--ink);color-scheme:inherit;font-family:var(--f)}
html body[data-page] #main#main#main .zbm-form :is(input,textarea)::placeholder{color:var(--faint)}
html body[data-page] #main#main#main .zbm-form select option{background:var(--bg);color:var(--ink)}
html body[data-page] #main#main#main .zbm-form :is(input,select,textarea):focus{background-color:var(--rd-surface);border-color:var(--ink);box-shadow:0 0 0 3px var(--disc-halo)}
html body[data-page] #main#main .ap6__fig :is(.n,.node){fill:var(--rd-surface-2)}
html body[data-page] #main#main .ap6__fig .fr{fill:var(--rd-surface-2)}

/* ── 6 · figures drawn for the white site ───────────────────────────────── */
/* /platform #parts: the seven diagram cards. Their captions read the figure's own tokens; dark values here */
:root:root[data-theme="dark"] :is(#layers,#parts) #zbs{--ink:#F5F3EE;--body:#CFCDC6;--mute:#A3A19A;--soft:#77756D;--line:#242421;--line2:#34342F;--amber:#E9A648;--panel:#0D0D0C}
:root:root[data-theme="dark"] :is(#layers,#parts) #zbs .s-panel{box-shadow:0 0 0 1px #34342F}
/* /zb-compute: the page's local tokens follow the site tokens; its paper cards sit on the raised tone */
html body[data-page="zb-compute"] #main#main.zb-compute{--bg:var(--rd-ground);--panel:var(--rd-surface);--line:var(--rd-line);--ink:var(--rd-text);--muted:var(--rd-muted);--amber:var(--rd-amber);--mono:var(--rd-mono)}
html body[data-page="zb-compute"] #main#main#main.zb-compute :is(.execution-node,.data-tile,.environment,.handoff,.deployment-boundary){background:var(--rd-surface-2);border-color:var(--line-2)}
html body[data-page="zb-compute"] #main#main#main.zb-compute .visual-chip svg{background:var(--rd-surface-2)}
html body[data-page="zb-compute"] #main#main#main.zb-compute > section.hero h1{font-size:clamp(34px,4.1vw,60px);line-height:1.04}
html body[data-page] #main#main#main :is(section.ed-cover,section.zbm-hero)::before,
html body[data-page] #main#main#main :is(section.ed-close,section.zbm-close)::after{background:none}
/* long page-top headlines in the two-column heroes keep to a few lines */
html body:is([data-page="platform"],[data-page="enterprise"]) #main#main#main .zbm-hero .zbm-h1{font-size:clamp(34px,3.9vw,56px);line-height:1.05}
/* button rows wrap on narrow screens instead of pushing the page wide */
html body[data-page] #main#main#main .zbm-hero__cta,
html body[data-page="zb-compute"] #main#main.zb-compute .actions{flex-wrap:wrap}
/* /zb-compute hero figure: the Maestro node reads on both grounds */
html body[data-page="zb-compute"] #main#main#main.zb-compute .execution-node strong{color:var(--rd-text)}
html body[data-page="zb-compute"] #main#main#main.zb-compute .execution-node small{color:var(--rd-muted)}
