/* White sections (#2030, owner 2026-11-28): colours only.
   Sections marked data-bg="white" and the sticky header while it sits over one get a white palette.
   Layout, type, spacing and behaviour are the rules in the page's own style block; only colour tokens and colour-only rules change here.
   The brand teal is kept for fills (the primary button); a deeper teal of the same hue is used where text (4.5:1) or UI (3:1) needs it on white. */
/* One exception to "colours only" (#2030, owner 2026-11-29): the header logo size, one source for all 18 pages (this sheet is linked on every page, after the page's style block).
   The real logo is one SVG (mark and NuraMesh wordmark share one viewBox), so both scale together: height 34px (30px at and below the header's own menu breakpoint, max-width:1179px, where .nav collapses into .menu), width follows the 511.55:120 ratio. */
.logo svg{width:145px;height:34px}
@media(max-width:1179px){.logo svg{width:128px;height:30px}}
[data-bg="white"]{
 --bg:#F7F8F8;--raise:#FFFFFF;--raise2:#FFFFFF;
 --line:rgba(16,20,43,.175);--line2:rgba(16,20,43,.36);--ctl:rgba(16,20,43,.48);
 --text:#3F4650;--muted:#4A5068;--faint:#565C72;
 --heading:#0F1216;--card-border:#E8EBEF;--accent:#2A6F7E;--accent-text:#2A6F7E;--accent-tile:#E8F3F5;--accent-on:#FFFFFF;
 --brand:#5BB8C8;--brand-on:#06232A;
 --ok:#0B6A45;--ok-text:#26694F;
 --warn:#855300;--indigo:#4450C8;--bad:#B42318;
 --logo-tile:#141833;--logo-mark:#FFFFFF;
 --mesh-dot:42,111,126;--mesh-line:16,20,43;--mesh-a:.45;
 --card-line:#7D8596;
 --head:rgba(253,254,255,.94);--shot-shadow:0 40px 90px -40px rgba(16,20,43,.35);--field:#5E647B;
 color-scheme:light;
}
/* Card and box borders (#2030, owner 2026-11-29): one token set. --card-line is an opaque colour that passes 3:1 (WCAG 1.4.11) against the section
   behind the card and the card fill, in the dark sections (below) and the white ones (next block). --card-shadow is the one soft shadow every card shares. */
:root{--card-line:#5C6376;--card-shadow:0 1px 2px rgba(16,20,43,.06),0 2px 8px -2px rgba(16,20,43,.08)}
section[data-bg="white"]{background:var(--bg);color:var(--text)}
[data-bg="white"] :is(h1,h2,h3,h4){color:var(--heading)}

/* code blocks and terminal panes stay dark inside white sections */
[data-bg="white"] :is(.pane,.steps pre.cmd){
 --bg:#050608;--raise:#0A0C11;--raise2:#0E1117;
 --line:rgba(255,255,255,.10);--line2:rgba(255,255,255,.18);
 --text:#F2F4F8;--muted:#9CA3B4;--faint:#7E8698;
 --heading:#F2F4F8;--accent:#5BB8C8;--accent-text:#8CCFDA;--accent-tile:#102A31;--accent-on:#06232A;
 --ok:#3DDC9B;--ok-text:#8FD9BC;--warn:#F6BB45;--indigo:#93A0FF;--field:#737B8E;
 color-scheme:dark;
}
[data-bg="white"] :is(.pane,.steps pre.cmd) :is(h1,h2,h3,h4){color:var(--heading)}

/* colour-only rules that the light theme carried */
[data-bg="white"] .tag.pv{border-color:color-mix(in srgb,var(--warn) 72%,transparent)}
[data-bg="white"] .tag.av{border-color:color-mix(in srgb,var(--accent-text) 72%,transparent)}
[data-bg="white"] :is(.tiles,.lat,.grail a,.pn a,.stoplist,.chk li,.i-led li,.ftags li,.story-cta,.cards,.lpill){border-color:var(--line2)}
[data-bg="white"] :is(.stop .verdict,.chk .no,.i-led li.ed){border-color:color-mix(in srgb,var(--bad) 85%,transparent)}
[data-bg="white"] .shot-box.fill .co-label{background:color-mix(in srgb,var(--accent) 10%,var(--raise2))}
[data-bg="white"] .news .btn:disabled,[data-bg="white"] .news .btn:disabled:hover{border-color:var(--ctl)}
:where([data-bg="white"]) :is(.btn,.see summary,.skip){border-color:var(--ctl)}
[data-bg="white"] :is(.logo,.olog){color:#10142B}
html.js [data-bg="white"] :is(.pl-ico,.lico,.ltr){background-image:url(/assets/nuramesh-icon-on-light.svg)}
/* primary button: the brand teal fill, dark label, deeper teal edge */
[data-bg="white"] .btn.pri{background:var(--brand);border-color:var(--accent);color:var(--brand-on)}
[data-bg="white"] .btn.pri:hover{background:var(--text);border-color:var(--text);color:var(--bg)}

/* card and box borders: cards that draw their border (and inner dividers) from --line/--line2 take the card token; boxes with their own fixed edge set the colour directly.
   `html` in front lifts the rules over the page's own single-class rules; the pages' :hover and :focus-visible rules (more specific) still win. */
html :is(.tiles,.lat,.cards,.stoplist,.chk li,.i-led li,.ftags li,.story-cta,.grail a,.pn a,.it,.patent,.plug,.lpill,.loopcard,.oscard,.i-done .doc,.i-done .sayb,.lcyc li,.ospills li,.ostag){--line:var(--card-line);--line2:var(--card-line)}
html :is(.pane,.steps pre.cmd,.shot-box,.screen .frame,.dd-in){border-color:var(--card-line)}
html :is(.tiles,.lat,.cards,.stoplist,.chk li,.i-led li,.story-cta,.grail a,.pn a,.it,.plug,.loopcard,.oscard,.i-done .doc,.i-done .sayb){box-shadow:var(--card-shadow)}

/* the sticky header follows the section behind it */
header.top[data-bg="white"] .menu>summary{border-color:var(--ctl)}
header.top[data-bg="white"] .menu[open]>summary{border-color:var(--line2)}
header.top.mf-now,header.top.mf-now *{transition:none!important}
/* a page whose first section is white (request access, terms, privacy): nothing dark behind the header at the top */
body:has(main > section:first-child[data-bg="white"]){background:#F7F8F8}

/* Title band (#2030, owner 2026-11-29): the dark band at the top of every inner page (every page but the home page) is the same box.
   One fixed minimum height at desktop (--band-min) and one at phone width (the 1179px breakpoint of the page styles), one title size and top offset,
   a subtitle of at most two lines, and the button row at the same offset from the band bottom. The mesh sits in the same place on every page.
   Only `main.in>.phero` (specificity above the pages' own .phero, .ghero and .has-mesh rules) is styled here. */
:root{--band-min:520px;--band-pt:112px;--band-pb:80px;--band-lead-w:560px}
main.in>.phero{box-sizing:border-box;position:relative;overflow:clip;display:flex;flex-direction:column;min-height:var(--band-min);padding-block:var(--band-pt) var(--band-pb)}
main.in>.phero>.wrap{position:relative;z-index:2;flex:1;display:flex;flex-direction:column}
main.in>.phero .phero-copy{position:relative;flex:1;display:flex;flex-direction:column;max-width:760px}
main.in>.phero h1{font-size:clamp(40px,4.4vw,62px);line-height:1.08;margin:0}
main.in>.phero .eyebrow{position:absolute;bottom:100%;left:0;margin:0 0 14px}
main.in>.phero .lead,main.in>.phero .eff{margin-top:24px;font-size:clamp(17px,1.4vw,20px);line-height:1.55;max-width:var(--band-lead-w);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
main.in>.phero .eff{font-size:15px;color:var(--faint)}
main.in>.phero .cta{margin-top:auto;padding-top:28px}
main.in>.phero :is(.oslike,.relnote){position:absolute;left:0;top:calc(100% + 10px);margin:0}
main.in>.phero>.mesh{z-index:0;pointer-events:none;inset:0 0 0 55%}
/* Product pages: the app screenshot and the step row sit in the white section right after the band (they used to be inside the hero). */
.gshow{padding-block:56px 40px}
.gshow .screen{width:100%;margin:0}
.gshow .screen .frame{width:min(100%,max(420px,(100svh - 230px)*1.6));margin-inline:auto}
.gshow .screen figcaption{text-align:center;margin-top:12px}
.gshow .grail{margin-top:36px}
@media (max-width:1179px){
 :root{--band-min:600px;--band-pt:72px;--band-pb:260px}
 .gshow{padding-block:40px 32px}
 .gshow .screen .frame{width:100%}
 main.in>.phero>.mesh{inset:auto 0 0 0;height:190px;display:block}
}
/* Inline code (owner 2026-11-29, the docs site style): soft grey fill, no border, never splits mid-word; a long one scrolls inside its own box. Code blocks (pre) are untouched. */
:root :not(pre)>code{display:inline-block;max-width:100%;box-sizing:border-box;overflow-x:auto;vertical-align:bottom;border:0;border-radius:5px;background:#F1F3F5;color:#1F2A30;padding:2px 6px;white-space:nowrap;overflow-wrap:normal}
/* build.mjs wraps each inline code with the bracket, quote or punctuation next to it in .kc, so a line never breaks between them. */
.kc{white-space:nowrap}
