/* LearnSkill home page colours for the JEE pages (overrides each page's own palette; text unchanged). */
/* html:root selectors outrank the pages' own :root rules, which load after this file in the chapter files. */
html:root,
html:root[data-theme=light] {
  --bg: #ffffff;
  --sheet: #ffffff;
  --card: #ffffff;
  --paper: #f1f6fd;
  --ink: #000000;
  --ink2: #3d4b60;
  --rule: #d6e2f0;
  --grid: #e3ecf7;
  --tint: #eaf2fc;
  --pri: #15508d;
  --prilight: #15508d;
  --onpri: #ffffff;
  --v: #2f7de1;
  --board: #0f2a4a;
  --board2: #173d69;
  --chalk: #eef4fc;
  --chalk2: #b5c9e3;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html:root:not([data-theme=light]) {
    --bg: #0b1626;
    --sheet: #0b1626;
    --card: #101f35;
    --paper: #08111d;
    --ink: #e8eef7;
    --ink2: #a9b8cc;
    --rule: #22385a;
    --grid: #0f1e33;
    --tint: #10223b;
    --pri: #7fb2f0;
    --prilight: #7fb2f0;
    --onpri: #06172b;
    --v: #86b9f5;
    --board: #0a1a30;
    --board2: #12284a;
    --chalk: #eef4fc;
    --chalk2: #a6bbd6;
    color-scheme: dark;
  }
}

html:root[data-theme=dark] {
  --bg: #0b1626;
  --sheet: #0b1626;
  --card: #101f35;
  --paper: #08111d;
  --ink: #e8eef7;
  --ink2: #a9b8cc;
  --rule: #22385a;
  --grid: #0f1e33;
  --tint: #10223b;
  --pri: #7fb2f0;
  --prilight: #7fb2f0;
  --onpri: #06172b;
  --v: #86b9f5;
  --board: #0a1a30;
  --board2: #12284a;
  --chalk: #eef4fc;
  --chalk2: #a6bbd6;
  color-scheme: dark;
}

::selection { background: #000000; color: #ffffff; }


/* Chapter sidebar table of contents uses its own green tints. */
html:root .rd-toc { --tint: #eaf2fc; --rule: #d6e2f0; --ink2: #3d4b60; border-right-color: #d6e2f0; color: #000000; }
html:root .rd-toch button { border-color: #d6e2f0; color: #000000; }
html:root .rd-toch button:hover { background: #eaf2fc; }
