/* A lesson as its own page (math.wiki/<star-id>/, built by tools/lesson_pages.mjs). It is the
 * reader's own markup and pages.css styles; this only turns the pop-out into the whole page. */
html, body { margin: 0; height: 100%; background: #fff; }
.lesson-page #reader { position: fixed; inset: 0; }
.lesson-page .rd-scrim { display: none; }
.lesson-page .rd-sheet { inset: 0; max-width: none; border: 0; box-shadow: none; }
/* The chart's "Show all" and "Full chart" redraw from the whole map, which this page does not
 * load; "Open on the map" takes their place. */
.lesson-page [data-chart] { display: none !important; }
.lesson-page a[href] { cursor: pointer; }
/* Real links now, but they keep the reader's look: only links inside the prose are underlined. */
.lesson-page a[href]:not(.wl) { text-decoration: none; }
.lesson-page .rd-map {
  width: auto; height: auto; font-size: 12.5px; font-weight: 600; padding: 6px 10px;
  border: 1px solid var(--p-ink); color: var(--p-ink); text-decoration: none; white-space: nowrap;
}
.lesson-page .rd-map:hover { background: var(--p-ink); color: #fff; }
/* Before KaTeX arrives, the TeX shows quietly in place. */
.lesson-page .tx:not(.katex-display):not(:has(.katex)) { font-family: var(--p-mono); font-size: .85em; color: var(--p-dim); }
.lesson-page div.tx { text-align: center; margin: 1em 0; }
/* A course as its own page (math.wiki/course/<id>/): the course page without the dark backdrop. */
.course-page #course { background: #fff; backdrop-filter: none; }
.course-page #course .rd-map { margin-left: auto; }
