/* The voice's sentence: paint only, with the lesson's existing accent. */
:root {
  --sentence-ink: #111111;
  --sentence-bg: #d8eddf;
  --sentence-block: #f4f8f5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sentence-ink: #ffffff;
    --sentence-bg: #173329;
    --sentence-block: #111c17;
  }
}
[data-theme="dark"] {
  --sentence-ink: #ffffff;
  --sentence-bg: #173329;
  --sentence-block: #111c17;
}
::highlight(narration-sentence) {
  color: var(--sentence-ink);
  background-color: var(--sentence-bg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
html.sentence-following .now-reading {
  --read-bg: var(--sentence-block);
  --read-line: var(--sentence-bg);
}
html.sentence-following article.lesson-page .now-reading::before { border-left-color: var(--line); }
/* Keep the step tint and outline; only the spoken sentence supplies an underline. */
html.sentence-following article.lesson-page .now-step { text-decoration: none; }
html.sentence-following article.lesson-page .th.lesson .now-reading > h2,
html.sentence-following article.lesson-page .th.lesson .now-reading > h3,
html.sentence-following article.lesson-page .th.lesson .now-reading > h2 .n { color: var(--ink); }
.cue-read-row { display: flex; flex-wrap: nowrap; justify-content: flex-end; }
.cue-read-row .cue-read {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font: 600 15px var(--ui);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
}
#transport.tp-bar .cue-status { font-size: 15px; }
.cue-read:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (forced-colors: active) {
  ::highlight(narration-sentence) {
    color: HighlightText;
    background-color: Highlight;
    text-decoration-color: Highlight;
    forced-color-adjust: none;
  }
}
@media print { .cue-read-row { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* qs-strong-highlight: a clear highlighter mark for the sentence being read (16 Nov 2026). */
:root { --sentence-bg: #ffe066; --sentence-ink: #111111; --sentence-block: #f3f6f4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sentence-bg: #6b5400; --sentence-ink: #ffffff; --sentence-block: #141d18; } }
[data-theme="dark"] { --sentence-bg: #6b5400; --sentence-ink: #ffffff; --sentence-block: #141d18; }
::highlight(narration-sentence) { color: var(--sentence-ink); background-color: var(--sentence-bg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
