/* Emerald & Gold (owner, 2026-10-21): one of the theme styles a user chooses on Profile > Display, for dark and / or
   for light (ROADMAP F132, libs/theme_styles.py; theme.js sets data-style-dark / data-style-light on <html>).
   Dark: true black, emerald for good / on, gold for highlights and the main button.
   Light: white, black edges and a black button with gold text, emerald for good / on.
   The same token names as app.css, so every component follows; --edge is its own (a page that uses it gives a
   fallback). Pages made ready for it: ROADMAP F133-F137 (tests/www/test_theme_ready.py). test_contrast checks both
   like app.css's. */

[data-bs-theme="dark"][data-style-dark="emerald-gold"] {
    --surface:      #050505;
    --panel:        #111111;
    --raised:       #1a1a1a;
    --panel-2:      #181818;
    --panel-3:      #222222;
    --border:       #2a2a2a;
    --border-soft:  #1e1e1e;
    --field-bg:     #0a0a0a;
    --field-border: #6b6b6b;
    --field-border-hover: #8f8f8f;
    --ink:          #fafaf9;
    --ink-dim:      #d6d3d1;
    --ink-faint:    #a8a29e;
    --accent:       #e3b341;       /* the main button: gold with dark text */
    --link:         #e3b341;
    --accent-ink:   #1a1306;
    --accent-soft:  rgb(227 179 65 / 0.14);
    --brand:        #34d399;       /* emerald */
    --brand-soft:   rgb(52 211 153 / 0.12);
    --raised-glass: rgb(26 26 26 / 0.90);
    --up-ink:       #34d399;
    --down-ink:     #f87171;
    --danger:       #dc2626;
    --danger-soft:  rgb(248 113 113 / 0.14);
    --focus-ring:   rgb(227 179 65 / 0.45);
    --focus:        #e3b341;
    --row-alt:      rgb(255 255 255 / 0.03);
    --row-hover:    rgb(227 179 65 / 0.08);
    --shadow-sm:    0 1px 2px rgb(0 0 0 / 0.45);
    --shadow-md:    0 4px 12px rgb(0 0 0 / 0.50);
    --gold:         #e3b341;       /* highlights, "kept", a section's marker */
    --gold-soft:    rgb(227 179 65 / 0.14);
    --edge:         #e3b341;       /* new: a section card's top edge */
    --violet:       #c4b5fd;
    --pro-ink:      #e3b341;
    --pro-soft:     rgb(227 179 65 / 0.14);
    --app-bar:      #050505;
}

[data-bs-theme="light"][data-style-light="emerald-gold"] {
    --surface:      #f5f5f4;
    --panel:        #ffffff;
    --raised:       #ffffff;
    --panel-2:      #fafaf9;
    --panel-3:      #efefed;
    --border:       #e2e2e0;
    --border-soft:  #ececea;
    --field-bg:     #ffffff;
    --field-border: #7c7a76;
    --field-border-hover: #4a4642;
    --ink:          #0a0a0a;
    --ink-dim:      #44403c;
    --ink-faint:    #5f5a55;
    --accent:       #111111;       /* the main button: black with gold text */
    --link:         #047857;
    --accent-ink:   #f0c75e;
    --accent-soft:  rgb(17 17 17 / 0.06);
    --brand:        #047857;
    --brand-soft:   rgb(4 120 87 / 0.08);
    --raised-glass: rgb(255 255 255 / 0.92);
    --up-ink:       #065f46;       /* a shade darker than --brand: readable on the green move shades too (F134) */
    --down-ink:     #b3261e;
    --danger:       #b91c1c;
    --danger-soft:  rgb(179 38 30 / 0.08);
    --focus-ring:   rgb(17 17 17 / 0.25);
    --focus:        #111111;
    --row-alt:      rgb(10 10 10 / 0.03);
    --row-hover:    rgb(4 120 87 / 0.06);
    --shadow-sm:    0 1px 2px rgb(10 10 10 / 0.06);
    --shadow-md:    0 4px 12px rgb(10 10 10 / 0.10);
    --gold:         #8f5f07;       /* darker than the dark theme's gold, to be readable on white */
    --gold-soft:    rgb(202 138 4 / 0.12);
    --edge:         #111111;
    --violet:       #6d28d9;
    --pro-ink:      #8f5f07;
    --pro-soft:     rgb(202 138 4 / 0.12);
    --app-bar:      #111111;
}
