/* Per-theme character on top of the shared tokens (ds.css). Colours come from theme.js; this is type, shape and interaction. */
/* Environment themes: each has its own type, shape and active-state language on top of the shared tokens. */
/* Liquid Dimension: light weights, large soft radii, chrome hairlines. */
html[data-pal=liquid]{--r1:8px;--r2:12px;--r3:18px}
html[data-pal=liquid] :is(h2,h3,.ph-title,.eqn){font-weight:300;letter-spacing:.02em}
html[data-pal=liquid] :is(.hero,.pos,.setgrp,.sumgrid>div,.pane){border-color:color-mix(in srgb,var(--txt) 12%,transparent);box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
html[data-pal=liquid] .btn.primary{background:linear-gradient(180deg,color-mix(in srgb,var(--acc) 90%,#fff),var(--acc))}
/* Abyssal World: rounded, quiet, with a bioluminescent edge on active controls. */
html[data-pal=abyss]{--r1:10px;--r2:16px;--r3:22px}
html[data-pal=abyss] :is(.lbl,small,h4,.sgrp>h4){letter-spacing:.08em}
html[data-pal=abyss] :is(.btn.primary,.tbs button.on,#nav button.on){box-shadow:0 0 0 1px color-mix(in srgb,var(--acc) 50%,transparent),0 0 14px -4px var(--acc)}
/* Cosmic Drift: capitalised small headings, thin rules, round pill buttons. */
html[data-pal=cosmic]{--r1:6px;--r2:10px;--r3:14px}
html[data-pal=cosmic] :is(h4,.sgrp>h4,.lbl){text-transform:uppercase;letter-spacing:.12em;font-size:.82em}
html[data-pal=cosmic] .btn{border-radius:999px}
html[data-pal=cosmic] #nav button.on{box-shadow:inset 0 -2px 0 var(--acc);background:none}
/* Chromatic Motion: editorial serif headings and figures, soft shadows. */
html[data-pal=chromatic]{--r1:10px;--r2:16px;--r3:24px;--sh2:0 14px 34px -18px rgba(120,20,90,.45)}
html[data-pal=chromatic] :is(h1,h2,h3,.ph-title,.eqn,.lk-head h2){font-family:ui-serif,"Iowan Old Style","Palatino Linotype",Georgia,serif;font-weight:500;font-style:italic;letter-spacing:-.01em}
html[data-pal=chromatic] .btn.primary{border-radius:999px}
/* Floating Architecture: sharp geometry, small caps, stone hairlines, no rounding. */
html[data-pal=arch]{--r1:0px;--r2:2px;--r3:4px}
html[data-pal=arch] :is(h2,h3,h4,.ph-title,.lbl){font-variant-caps:all-small-caps;letter-spacing:.1em;font-weight:600}
html[data-pal=arch] :is(.hero,.pos,.setgrp,.sumgrid>div,.pane){border-width:1px;box-shadow:6px 6px 0 -3px color-mix(in srgb,var(--txt) 8%,transparent)}
html[data-pal=arch] #nav button.on{box-shadow:inset 0 3px 0 var(--acc);background:none}
/* Particle Universe: technical mono labels and figures, crisp 3px corners. */
html[data-pal=particle]{--r1:3px;--r2:4px;--r3:6px}
html[data-pal=particle] :is(h4,.lbl,small,.sgrp>h4){font-family:var(--mono);text-transform:uppercase;letter-spacing:.1em;font-size:.78em}
html[data-pal=particle] :is(.eqn,.sumgrid b,.pos,.tbl td){font-family:var(--mono);font-variant-numeric:tabular-nums}
html[data-pal=particle] :is(.btn.primary,.tbs button.on){box-shadow:0 0 0 1px color-mix(in srgb,var(--acc) 55%,transparent)}
html[data-pal=arch] #nav button{color:var(--txt);opacity:.78}html[data-pal=arch] #nav button.on{opacity:1}
