/* v7 look (was v6) for the pages that keep the v2/v3 layout (kit.html, privacy.html, terms.html): Geist type, and the same
   colour theme + light/dark mode as the landing page. Loaded after v2.css / v3.css / legal.css and css/themes.css.
   css/themes.css already sets --bg --soft --surface --ink --muted --line on <html>; this file maps the remaining v2 names
   onto the theme and fixes the few v2 spots that assumed a white page with white text on dark blocks. */
:root{
  --head:"Geist",ui-sans-serif,system-ui,sans-serif;
  --body:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
/* v2 uses --accent as a TEXT colour (links, eyebrows, numbers): point it at the AA-safe accent text colour. */
body{--accent:var(--accent-text);--accent-ink:var(--on-accent);--accent-soft:var(--accent-wash);--line-2:var(--chip)}
html[data-mode="dark"]{--ok:#5FD38D;--ok-bg:#16301F;--warn:#F2B45A;--warn-bg:#33260F}
body{font-size:16px}
h1,h2,h3{font-weight:500;letter-spacing:-.015em}
.logo{font-weight:500}
.btn{font-weight:500}

/* buttons and filled accents use the theme's button colour + its own text colour */
.btn-accent,.badge-accent{background:var(--btn);color:var(--on-accent)}
.btn-accent:hover{background:var(--btn-hover)}
.res.best{border-color:var(--btn)}
.res.best .meter i,.sv-bar i{background:var(--btn)}
.sv-rank button[data-rank] i{background:var(--btn);border-color:var(--btn);color:var(--on-accent)}

/* "ink block + white text" spots: use the page colour as the text so they flip correctly in dark mode */
.skip,.btn-dark,.def,.custom-card,.custom-card h3,.opt input:checked + span,.demo-tag .play{color:var(--bg)}
.btn-dark:hover{background:var(--ink);opacity:.88}
.custom-card p,.opt input:checked + span small{color:var(--bg);opacity:.8}

.top{background:var(--bg);background:color-mix(in srgb,var(--bg) 94%,transparent)}
.legal{color:var(--ink)}
.legal-top .mode-btn{margin-left:4px}
.form-err,.sv-err{color:var(--err)}
.oos .btn{border-color:var(--chip)}
dialog{background:var(--surface);color:var(--ink);box-shadow:0 30px 80px -30px var(--shadow)}
dialog::backdrop,.legal-dlg::backdrop{background:var(--backdrop)}
.loc-panel{box-shadow:0 24px 60px -28px var(--shadow)}
.legal h1,.legal h2{font-weight:500}
