/* The reader's own look (owner, 2026-11-15: "just like the theme options of algorizm"): the main site's theme styles
   and accent colours (www/static/css/theme_*.css, libs/theme_styles.py) in this site's 8 colours - bg = surface,
   panel, text = ink, muted = ink-faint, line = border, accent, accent-text = accent-ink, link; a part a style leaves
   out takes the main site's Standard dark (app.css). Chosen in the header's Settings (static/site.js), kept in the
   reader's browser only and put on <html> by static/theme.js as data-style-dark / data-style-light / data-accent.
   'standard' and the accent 'style' have no rules here: the live theme's own colours (static/theme.css; algorizm's
   while no other theme is published). Loaded after theme.css; three parts to a selector, so they win over it.
   tests/insights/test_reader_theme.py checks every value against the main site's files. */

:root[data-theme="dark"][data-style-dark="emerald-gold"] {
    --bg: #050505; --panel: #111111; --text: #fafaf9; --muted: #a8a29e; --line: #2a2a2a;
    --accent: #e3b341; --accent-text: #1a1306; --link: #e3b341;
}
:root[data-theme="light"][data-style-light="emerald-gold"] {
    --bg: #f5f5f4; --panel: #ffffff; --text: #0a0a0a; --muted: #5f5a55; --line: #e2e2e0;
    --accent: #111111; --accent-text: #f0c75e; --link: #047857;
}
:root[data-theme="dark"][data-style-dark="dim"] {
    --bg: #1a2029; --panel: #232b36; --text: #f3f6fa; --muted: #9fa9b8; --line: #3a4554;
    --accent: #2563eb; --accent-text: #ffffff; --link: #8ec0fb;
}
:root[data-theme="dark"][data-style-dark="black"] {
    --bg: #000000; --panel: #0c0c0e; --text: #f5f5f6; --muted: #a1a1aa; --line: #24242a;
    --accent: #2563eb; --accent-text: #ffffff; --link: #60a5fa;
}

/* the accent colour, over any style (after the styles: the same weight, so it wins) */
:root[data-theme="dark"][data-accent="blue"] { --accent: #2563eb; --accent-text: #ffffff; --link: #60a5fa; }
:root[data-theme="light"][data-accent="blue"] { --accent: #1d4ed8; --accent-text: #ffffff; --link: #1d4ed8; }
:root[data-theme="dark"][data-accent="teal"] { --accent: #0f766e; --accent-text: #ffffff; --link: #2dd4bf; }
:root[data-theme="light"][data-accent="teal"] { --accent: #0f766e; --accent-text: #ffffff; --link: #0f766e; }
:root[data-theme="dark"][data-accent="violet"] { --accent: #7c3aed; --accent-text: #ffffff; --link: #c4b5fd; }
:root[data-theme="light"][data-accent="violet"] { --accent: #6d28d9; --accent-text: #ffffff; --link: #6d28d9; }
:root[data-theme="dark"][data-accent="orange"] { --accent: #c2410c; --accent-text: #ffffff; --link: #fdba74; }
:root[data-theme="light"][data-accent="orange"] { --accent: #b93c0b; --accent-text: #ffffff; --link: #b93c0b; }
:root[data-theme="dark"][data-accent="rose"] { --accent: #be123c; --accent-text: #ffffff; --link: #fda4af; }
:root[data-theme="light"][data-accent="rose"] { --accent: #be123c; --accent-text: #ffffff; --link: #be123c; }

/* algorizm's mark in the header and footer: the one drawn for the theme in use (as the main site's menu) */
/* ".brand" in front: insights.css shows every ".brand img" (a logo of one's own), which outranks a bare class */
.brand .brand-symbol { display: block; flex: none; width: 32px; height: 22px; }
.brand .brand-symbol-light, :root[data-theme="light"] .brand .brand-symbol-dark { display: none; }
:root[data-theme="light"] .brand .brand-symbol-light { display: block; }
