/* Per-vendor palette overrides on top of the neutral palette in style.css. Adding a vendor = one block here + one line in
   engine/vendors.json. Shell pages carry <html data-vendor="...">; the hub also uses the accent-only rule on a section. */

/* Microsoft: blue-tinted dark pastel */
html[data-vendor="microsoft"] {
  --hdr-bg: rgba(14, 22, 34, .45);
  --bg-0: #060b14; --bg-1: #0e1622; --bg-2: #172232; --bg-3: #213044;
  --line: #1f2c3f; --line-strong: #33455e;
  --ink: #eaf1fb; --ink-2: #b3c2d6; --ink-3: #8fa0b8;
  --accent: #6cb4f5; --accent-hi: #93c8f8; --accent-ink: #060b14; --accent-tint: rgba(108, 180, 245, .14);
  --info: #6cb4f5; --info-tint: rgba(108, 180, 245, .14);
}
html[data-vendor="microsoft"][data-theme="light"] {
  --hdr-bg: rgba(248, 250, 253, .5);
  --bg-0: #edf2f8; --bg-1: #f8fafd; --bg-2: #e6edf5; --bg-3: #d9e3ee;
  --line: #d5dfea; --line-strong: #b9c7d8;
  --ink: #0d1726; --ink-2: #43536a; --ink-3: #536279;
  --accent: #0f6cbd; --accent-hi: #0c5aa0; --accent-ink: #ffffff; --accent-tint: rgba(15, 108, 189, .10);
  --info: #0f6cbd; --info-tint: rgba(15, 108, 189, .10);
  --shadow: 0 1px 2px rgba(20, 40, 70, .07);
}
@media (prefers-color-scheme: light) {
  html[data-vendor="microsoft"]:not([data-theme]) {
    --hdr-bg: rgba(248, 250, 253, .5);
    --bg-0: #edf2f8; --bg-1: #f8fafd; --bg-2: #e6edf5; --bg-3: #d9e3ee;
    --line: #d5dfea; --line-strong: #b9c7d8;
    --ink: #0d1726; --ink-2: #43536a; --ink-3: #536279;
    --accent: #0f6cbd; --accent-hi: #0c5aa0; --accent-ink: #ffffff; --accent-tint: rgba(15, 108, 189, .10);
    --info: #0f6cbd; --info-tint: rgba(15, 108, 189, .10);
    --shadow: 0 1px 2px rgba(20, 40, 70, .07);
  }
}
@media print {
  /* restates the whole print palette: the screen rules above are more specific than style.css's print block */
  html[data-vendor="microsoft"], html[data-vendor="microsoft"][data-theme="light"], html[data-vendor="microsoft"][data-theme="dark"], html[data-vendor="microsoft"]:not([data-theme]) {
    --hdr-bg: #fbfbfb; --bg-0: #ffffff; --bg-1: #ffffff; --bg-2: #f1f1f1; --bg-3: #e6e6e6;
    --line: #d4d4d4; --line-strong: #b4b4b4;
    --ink: #111111; --ink-2: #444444; --ink-3: #666666;
    --accent: #0b4f8a; --accent-hi: #094273; --accent-ink: #ffffff; --accent-tint: rgba(11, 79, 138, .08);
    --info: #0b4f8a; --info-tint: rgba(11, 79, 138, .08);
    --shadow: none; color-scheme: light;
  }
}

/* Accent-only rules, for a vendor section on the neutral hub (dark and light/auto) */
:not(html)[data-vendor="comptia"] { --accent: #9cc3e6; --accent-hi: #b7d6f0; --accent-ink: #080808; --accent-tint: rgba(156, 195, 230, .14); }
:not(html)[data-vendor="microsoft"] { --accent: #6cb4f5; --accent-hi: #93c8f8; --accent-ink: #060b14; --accent-tint: rgba(108, 180, 245, .14); }
:root[data-theme="light"] [data-vendor="comptia"] { --accent: #2f6f9f; --accent-hi: #265d86; --accent-ink: #ffffff; --accent-tint: rgba(47, 111, 159, .10); }
:root[data-theme="light"] [data-vendor="microsoft"] { --accent: #0f6cbd; --accent-hi: #0c5aa0; --accent-ink: #ffffff; --accent-tint: rgba(15, 108, 189, .10); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) [data-vendor="comptia"] { --accent: #2f6f9f; --accent-hi: #265d86; --accent-ink: #ffffff; --accent-tint: rgba(47, 111, 159, .10); }
  :root:not([data-theme]) [data-vendor="microsoft"] { --accent: #0f6cbd; --accent-hi: #0c5aa0; --accent-ink: #ffffff; --accent-tint: rgba(15, 108, 189, .10); }
}
@media print {
  /* the print accents (as on the exam pages); the selectors match the screen rules above so they win in every theme */
  :root[data-theme] [data-vendor="comptia"], :root:not([data-theme]) [data-vendor="comptia"] { --accent: #1f4f75; --accent-hi: #1a4262; --accent-ink: #ffffff; --accent-tint: rgba(31, 79, 117, .08); }
  :root[data-theme] [data-vendor="microsoft"], :root:not([data-theme]) [data-vendor="microsoft"] { --accent: #0b4f8a; --accent-hi: #094273; --accent-ink: #ffffff; --accent-tint: rgba(11, 79, 138, .08); }
}
