/* Page colours: the Dark / Light switch and the light page.
   Only the page around the player changes. Every player keeps its own
   colours, so the dark values are set again on .stage. */

/* ---------- the switch ---------- */
.pm { display: inline-flex; flex: none; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 0.04); }
.pm-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; font: 600 13px/1 var(--sans); color: var(--dim); background: none; cursor: pointer; transition: background-color 160ms, color 160ms; }
.pm-btn:hover { color: var(--paper); }
.pm-btn[aria-pressed="true"] { color: var(--navy); background: var(--paper); }
.pm-ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lab-head-r { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
@media (pointer: coarse) { .pm-btn { min-height: 44px; } }

/* ---------- light page ---------- */
html[data-mode="light"] {
  color-scheme: light;
  --navy: #f5f3ee;
  --paper: #0d1a2e;
  --dim: #44516a;
  --faint: #56637a;
  --line: rgb(13 26 46 / 0.13);
  --focus: #1b4fd8;
}
html[data-mode="light"] body {
  background:
    radial-gradient(900px 420px at 15% -8%, rgb(27 106 224 / 0.10), transparent 60%),
    radial-gradient(700px 360px at 95% 0%, rgb(45 212 191 / 0.10), transparent 60%),
    var(--navy);
}
html[data-mode="light"] .lab-mark { box-shadow: 0 0 0 1px rgb(13 26 46 / 0.12) inset; }
html[data-mode="light"] .lab-cards article { background: #ffffff; }
html[data-mode="light"] .lab-cards article[data-current] { border-color: rgb(15 118 110 / 0.5); background: rgb(45 212 191 / 0.08); }
html[data-mode="light"] :is(.lab-cards, .lab-list) code { color: #0f6b63; }
html[data-mode="light"] .lab-notes kbd { background: #ffffff; border-color: rgb(13 26 46 / 0.22); }
html[data-mode="light"] .lab-more { background: #ffffff; }
html[data-mode="light"] .lab-select select { background: #ffffff; border-color: rgb(13 26 46 / 0.22); }
html[data-mode="light"] .lab-select select:hover { background: #eef1f6; }
html[data-mode="light"] .lab-top-link:hover { color: var(--paper); }
html[data-mode="light"] .skip-link { color: #fff; }
html[data-mode="light"] .pm { background: #ffffff; }

/* the players, and the shortcut sheet they open, stay as designed */
html[data-mode="light"] :is(.stage, .lab-sheet) {
  color-scheme: dark;
  color: var(--paper);
  --navy: #0a1525;
  --paper: #f4f2ec;
  --dim: #9aa6ba;
  --faint: #66748c;
  --line: rgb(255 255 255 / 0.08);
  --focus: #ffd60a;
}
/* the note under the player sits on the page, not in the player */
html[data-mode="light"] .stage-note { color: #56637a; }
