/* Training themes: token overrides only. Classic (no data-theme) is the original BMG look.
   [data-theme-preview] scopes the same tokens to one element (theme picker cards).
   Every pair below is checked for WCAG AA contrast by tests/themes.test.js. */
[data-theme-preview="classic"] {
  --color-bg: #14394c;
  --color-bg-elevated: #303030;
  --color-surface: #14394c;
  --color-surface-alt: #303030;
  --color-border: #a6a6a6;
  --color-text: #eeeeee;
  --color-text-muted: #a6a6a6;
  --color-primary: #def154;
  --color-primary-dark: #d9d9d9;
  --color-primary-contrast: #303030;
  --color-accent: #d9d9d9;
  --color-accent-hover: #eeeeee;
  --color-focus: #def154;
  --color-success: #3ecf8e;
  --color-warning: #f5b544;
  --color-danger: #ff8296;
}
:root[data-theme="corporate"],
[data-theme-preview="corporate"] {
  --color-bg: #f3f5f8;
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #e3e8ef;
  --color-border: #5f6b7d;
  --color-text: #14213d;
  --color-text-muted: #4a5568;
  --color-primary: #1d4ed8;
  --color-primary-dark: #1e3a8a;
  --color-primary-contrast: #ffffff;
  --color-accent: #0f766e;
  --color-accent-hover: #115e59;
  --color-focus: #1d4ed8;
  --color-success: #15803d;
  --color-warning: #9a5b00;
  --color-danger: #b91c1c;
}
:root[data-theme="high-contrast"],
[data-theme-preview="high-contrast"] {
  --color-bg: #000000;
  --color-bg-elevated: #141414;
  --color-surface: #000000;
  --color-surface-alt: #262626;
  --color-border: #bdbdbd;
  --color-text: #ffffff;
  --color-text-muted: #d9d9d9;
  --color-primary: #ffd400;
  --color-primary-dark: #ffe566;
  --color-primary-contrast: #000000;
  --color-accent: #7fdbff;
  --color-accent-hover: #b8ecff;
  --color-focus: #ffd400;
  --color-success: #5ee38f;
  --color-warning: #ffc94d;
  --color-danger: #ff9b9b;
}
:root[data-theme="warm"],
[data-theme-preview="warm"] {
  --color-bg: #faf5ee;
  --color-bg-elevated: #fffdf9;
  --color-surface: #fffdf9;
  --color-surface-alt: #f0e4d3;
  --color-border: #76604a;
  --color-text: #2f2418;
  --color-text-muted: #5a4836;
  --color-primary: #a8401c;
  --color-primary-dark: #7f2f13;
  --color-primary-contrast: #ffffff;
  --color-accent: #6b4320;
  --color-accent-hover: #4f3116;
  --color-focus: #a8401c;
  --color-success: #2b6e2f;
  --color-warning: #80520a;
  --color-danger: #a8231a;
}
:root[data-theme="bright"],
[data-theme-preview="bright"] {
  --color-bg: #f5f3ff;
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #ede9fe;
  --color-border: #665a99;
  --color-text: #1e1b4b;
  --color-text-muted: #4b4870;
  --color-primary: #6d28d9;
  --color-primary-dark: #4c1d95;
  --color-primary-contrast: #ffffff;
  --color-accent: #be185d;
  --color-accent-hover: #9d174d;
  --color-focus: #6d28d9;
  --color-success: #15803d;
  --color-warning: #9a5b00;
  --color-danger: #b91c1c;
}
/* The BMG logo belongs to the classic identity. */
:root[data-theme] .welcome-logo {
  display: none;
}
