/* Puts the flasher pages in the xerokuhl.com look. Loaded after each page's own styles and after chrome.css, which defines
   the palette (--bg, --surface, --ink, --muted, --line, --brand, --accent, --link). This maps the flasher's own variable
   names onto that palette, so every control picks it up without being touched. */
:root {
  --card: var(--surface);
  --accent-ink: #ffffff;
  --sel: #fbeee0;
  --warnbg: #fff4e0; --warnline: #e0a030;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent-ink: #1a1208;
    --sel: #2b2016;
    --warnbg: #2b2210; --warnline: #8a6a1f;
  }
}
/* base page styles, so a page does not depend on having its own (the changelog has none) */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); }
a.go, .go { color: var(--accent-ink); }
main { max-width: 62rem; margin: 0 auto; padding: 1.4rem 1rem 3rem; }

/* the Flash / Console / Changelog tabs */
nav.tabs { display: flex; gap: .3rem; margin: 0 0 1.2rem; border-bottom: 1px solid var(--line); }
nav.tabs a, nav.tabs b { display: block; padding: .5rem .9rem; border-radius: 8px 8px 0 0; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--ink); font-weight: 500; }
nav.tabs a:hover { background: var(--surface); }
nav.tabs b { border-bottom-color: var(--accent); font-weight: 700; }

/* title band links stay readable on the brand colour */
.page-title a { color: inherit; }
.page-title p { max-width: 46rem; }

/* the header's brand link must not pick up the flasher's small "brand" label style */
.site-header .brand { text-transform: none; letter-spacing: .01em; font-size: 1.15rem; color: var(--ink); }

/* cards a little softer, to match the homepage */
.step, .card { border-radius: 12px; }
.opt label { border-radius: 10px; }
.opt input:checked + label { box-shadow: inset 0 0 0 1px var(--accent); }
