/* The accent colour (ROADMAP P6): buttons, links, the keyboard focus outline and the row highlight, chosen on
   Profile > Display over any theme style (libs/theme_styles.py ACCENTS; theme.js puts data-accent on <html>).
   'style' (no rules here) keeps the style's own. Loaded after the style sheets, so the same weight of selector wins.
   Up green / down red and the kind colours (gold, violet, Pro) never change. test_contrast checks every style with
   every accent: white on the button, the link on every ground. */

[data-bs-theme="dark"][data-accent="blue"] {
    --accent:       #2563eb;
    --link:         #60a5fa;
    --accent-ink:   #ffffff;
    --accent-soft:  rgb(59 130 246 / 0.16);
    --focus:        #60a5fa;
    --focus-ring:   rgb(59 130 246 / 0.45);
    --row-hover:    rgb(59 130 246 / 0.12);
}
[data-bs-theme="light"][data-accent="blue"] {
    --accent:       #1d4ed8;
    --link:         #1d4ed8;
    --accent-ink:   #ffffff;
    --accent-soft:  rgb(29 78 216 / 0.10);
    --focus:        #1d4ed8;
    --focus-ring:   rgb(29 78 216 / 0.30);
    --row-hover:    rgb(29 78 216 / 0.08);
}

[data-bs-theme="dark"][data-accent="teal"] {
    --accent:       #0f766e;
    --link:         #2dd4bf;
    --accent-ink:   #ffffff;
    --accent-soft:  rgb(20 184 166 / 0.16);
    --focus:        #2dd4bf;
    --focus-ring:   rgb(20 184 166 / 0.45);
    --row-hover:    rgb(20 184 166 / 0.12);
}
[data-bs-theme="light"][data-accent="teal"] {
    --accent:       #0f766e;
    --link:         #0f766e;
    --accent-ink:   #ffffff;
    --accent-soft:  rgb(15 118 110 / 0.10);
    --focus:        #0f766e;
    --focus-ring:   rgb(15 118 110 / 0.30);
    --row-hover:    rgb(15 118 110 / 0.08);
}

[data-bs-theme="dark"][data-accent="violet"] {
    --accent:       #7c3aed;
    --link:         #c4b5fd;
    --accent-ink:   #ffffff;
    --accent-soft:  rgb(139 92 246 / 0.16);
    --focus:        #c4b5fd;
    --focus-ring:   rgb(139 92 246 / 0.45);
    --row-hover:    rgb(139 92 246 / 0.12);
}
[data-bs-theme="light"][data-accent="violet"] {
    --accent:       #6d28d9;
    --link:         #6d28d9;
    --accent-ink:   #ffffff;
    --accent-soft:  rgb(109 40 217 / 0.10);
    --focus:        #6d28d9;
    --focus-ring:   rgb(109 40 217 / 0.30);
    --row-hover:    rgb(109 40 217 / 0.08);
}

[data-bs-theme="dark"][data-accent="orange"] {
    --accent:       #c2410c;
    --link:         #fdba74;
    --accent-ink:   #ffffff;
    --accent-soft:  rgb(249 115 22 / 0.16);
    --focus:        #fdba74;
    --focus-ring:   rgb(249 115 22 / 0.45);
    --row-hover:    rgb(249 115 22 / 0.12);
}
[data-bs-theme="light"][data-accent="orange"] {
    --accent:       #b93c0b;
    --link:         #b93c0b;
    --accent-ink:   #ffffff;
    --accent-soft:  rgb(194 65 12 / 0.10);
    --focus:        #b93c0b;
    --focus-ring:   rgb(194 65 12 / 0.30);
    --row-hover:    rgb(194 65 12 / 0.08);
}

[data-bs-theme="dark"][data-accent="rose"] {
    --accent:       #be123c;
    --link:         #fda4af;
    --accent-ink:   #ffffff;
    --accent-soft:  rgb(244 63 94 / 0.16);
    --focus:        #fda4af;
    --focus-ring:   rgb(244 63 94 / 0.45);
    --row-hover:    rgb(244 63 94 / 0.12);
}
[data-bs-theme="light"][data-accent="rose"] {
    --accent:       #be123c;
    --link:         #be123c;
    --accent-ink:   #ffffff;
    --accent-soft:  rgb(190 18 60 / 0.10);
    --focus:        #be123c;
    --focus-ring:   rgb(190 18 60 / 0.30);
    --row-hover:    rgb(190 18 60 / 0.08);
}
