/* Page ground below the hero. Studio > "Page ground" sets html[data-ground]:
   0 Paper (warm cream, as before) · 1 Ocean (cool near-white the whole way) ·
   2 Ocean + paper specs (cool ground = where the product lives; warm paper only on things that are specs/documents) */
:root{--ground:#FBFAF6}
html[data-ground="1"],html[data-ground="2"]{--ground:#F4F8FA}
html[data-ground="1"] .ov,html[data-ground="2"] .ov{background:var(--ground);--ov-line:#DCE5EA}
html[data-handoff="1"][data-ground="1"] .ov,html[data-handoff="1"][data-ground="2"] .ov{background:transparent}

/* 1 · Ocean: every surface cool */
html[data-ground="1"] .ov-card{background:#FBFDFE}
html[data-ground="1"] .ov-test,html[data-ground="1"] .ov-client{background:#EDF3F6}
html[data-ground="1"] .ov-bars i,html[data-ground="1"] .ov-row s{background:#E5ECF0}
html[data-ground="1"] .ov-sheet,html[data-ground="1"] .ov-run>div,html[data-ground="1"] .ov-shot{border-color:#DCE5EA}
html[data-ground="1"] .ov-surfaces{border-top-color:#CFDAE0}
html[data-ground="1"] .ov-surfaces li::before{background:#EDF3F6}

/* 2 · Ocean + paper specs: the spec card and the client story stay paper; the test runner is cool like the ground */
html[data-ground="2"] .ov-git{background:#FDFBF6;border-color:#E8E3D7}
html[data-ground="2"] .ov-test{background:#EDF3F6}
html[data-ground="2"] .ov-test .ov-row{border-color:#DCE5EA}
html[data-ground="2"] .ov-test .ov-row s,html[data-ground="2"] .ov-test .ov-row i{filter:none}
html[data-ground="2"] .ov-client{background:#FBF9F4;border-color:#E8E3D7}
html[data-ground="2"] .ov-surfaces li::before{background:#FBF9F4}

/* ── Full palettes (one temperature each, more contrast, one accent) ── */
/* 3 · Clear ocean: all cool, no cream. Richer water, crisp cool-white page, deep navy ink, ocean-blue accent */
html[data-ground="3"]{--ground:#F5F9FC;--acc:#1A6FB0}
html[data-ground="3"] #bg{filter:saturate(2.1) contrast(1.12) brightness(.97)}
html[data-ground="3"] h1,html[data-ground="3"] .zhead h2,html[data-ground="3"] .ov-why{color:#0A1C30}
html[data-ground="3"] h1 em,html[data-ground="3"] .zhead h2 em,html[data-ground="3"] .ov-why em{color:var(--acc)}
html[data-ground="3"] .ov{background:var(--ground);--ov-line:#D3E0EA;--ov-ink:#0A1C30;--ov-soft:#4D6072}
html[data-ground="3"] .ov-card{background:#FFFFFF}
html[data-ground="3"] .ov-test,html[data-ground="3"] .ov-client{background:#E9F1F7}
html[data-ground="3"] .ov-bars i,html[data-ground="3"] .ov-row s{background:#E2EAF1}
html[data-ground="3"] .ov-sheet,html[data-ground="3"] .ov-shot{border-color:#D3E0EA}
html[data-ground="3"] .ov-surfaces{border-top-color:#C6D5E1}
html[data-ground="3"] .ov-surfaces li::before{background:#E9F1F7}

/* 4 · Water over sand: all warm. Shallow teal water that sits on sand, sand page, deep teal accent */
html[data-ground="4"]{--ground:#F6F1E7;--acc:#0E6F6A}
html[data-ground="4"] #bg{filter:hue-rotate(-24deg) saturate(1.9) contrast(1.08) sepia(.06)}
html[data-ground="4"] h1,html[data-ground="4"] .zhead h2,html[data-ground="4"] .ov-why{color:#14211F}
html[data-ground="4"] h1 em,html[data-ground="4"] .zhead h2 em,html[data-ground="4"] .ov-why em{color:var(--acc)}
html[data-ground="4"] .ov{background:var(--ground);--ov-line:#E3D9C6;--ov-ink:#14211F;--ov-soft:#5F6660}
html[data-ground="4"] .ov-card{background:#FFFCF6}
html[data-ground="4"] .ov-test,html[data-ground="4"] .ov-client{background:#EFE7D7}
html[data-ground="4"] .ov-bars i,html[data-ground="4"] .ov-row s{background:#EDE5D5}
html[data-ground="4"] .ov-surfaces li::before{background:#EFE7D7}
html[data-handoff="1"][data-ground="3"] .ov,html[data-handoff="1"][data-ground="4"] .ov{background:transparent}

/* nothing behind the scene: the page itself (overscroll bounce, edges while the hero moves) is the ground colour, not the old deep blue */
html,html body{background:var(--ground)}
