/* ChemLearn — lesson view restyled to match the website layer (#site).
   The lesson deck was built in a dark "spectrometer room" palette while the
   website around it is light. These rules re-point the deck's design tokens at
   the site's palette and give its chrome the same nav/card treatment.
   Scoped to the deck (header, #main, footer, .progress, #plbar) so nothing
   inside #site is touched. */

body > header,
body > .progress,
body > #plbar,
body > main#main,
body > footer {
  --bg: #f6f7fc;
  --panel: #ffffff;
  --panel-2: #eef2f9;
  --ink: #1f1f1f;
  --muted: #5b6b82;
  --teal: #0b57d0;
  --amber: #0b2545;
  --good: #137333;
  --warn: #9a6400;
  --violet: #6b3fd4;
}

body { background: #f6f7fc; color: #1f1f1f; }

/* top bar: the site's translucent nav */
body > header {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid #e8eaf3;
  box-shadow: 0 2px 14px rgba(20, 26, 46, .04);
  color: #1f1f1f;
}
body > header .brand { color: #0b2545; }
body > header .count { color: #5b6b82; }

/* the site's button shapes: 8px, 700 weight, blue outline; primary solid */
body > header button {
  background: #fff;
  color: #0b57d0;
  border: 1px solid #0b57d0;
  border-radius: 8px;
  font-weight: 700;
  padding: 7px 12px;
}
body > header button:hover { background: #f0f5ff; }
body > header button.primary,
body > header button#next {
  background: #0b57d0;
  border-color: #0b57d0;
  color: #fff;
}
body > header button.primary:hover,
body > header button#next:hover { background: #0a4cb8; }

body > .progress { background: #e8eaf3; }
body > .progress > #bar { background: #0b57d0; }

/* the slide stage: the site's page background and reading width */
body > main#main {
  background: #f6f7fc;
  color: #1f1f1f;
}
body > main#main > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

body > footer {
  background: #fff;
  border-top: 1px solid #e8eaf3;
  color: #5b6b82;
}
body > footer .kbd {
  background: #eef2f9;
  border: 1px solid #d9e0ee;
  color: #0b2545;
}

/* ---- slide content -------------------------------------------------------
   The rules below are the deck's hand-coded dark fills (they do not go
   through the tokens above), re-pointed at the site's light surfaces. */

/* answer options */
#main .opt { background: #fff; border-color: #d9e0ee; }
#main .opt:hover { border-color: #0b57d0; }
#main .opt .ol { background: #dbe6fb; color: #0b2545; }
#main .opt.right .ol,
#main .opts.revealed .opt[data-correct] .ol { background: #137333; color: #fff; }
#main .opts .opt.chosen { outline-color: #c77700; }

/* labels */
#main .chip { background: #eef2f9; border-color: #d9e0ee; color: #0b2545; }
#main .chip.ok { border-color: #bfe3cc; }

/* worked answer and explanation cards */
#main .answer { background: #eaf6ee; border-color: #bfe3cc; color: #0b2545; }
#main .why { background: #fdf6e8; border-color: #e8d6ad; color: #0b2545; }

/* inline readouts */
#main .readout span { background: #eef2f9; border-color: #d9e0ee; color: #0b2545; }

/* numbered step badges and the active tab sit on the accent colour */
#main .n,
#main button.on { color: #fff; }

/* sliders */
#main input[type="range"] { accent-color: #0b57d0; }

/* score bars: light track, coloured fill */
#main .track { background: #e8eaf3; }
