/* Matematică inside the site's frame: the menu (#mainNav) and footer come from js/include.js,
   the page's own look from learning-tools.css (shared by the Învață exercise pages).
   This file only puts back what Bootstrap's reboot and styles.css change in that look.
   Dark = body.dark-theme (the site's moon); learning-tools.css keys its colours off it. */

/* styles.css paints body#page-top with the site's colours; the page keeps its own paper */
body#page-top.learn-page { background: var(--paper); color: var(--ink); }
html:has(body.learn-page.dark-theme) { background: #0f1420; }

/* the page's own type, inside its container only (the menu and footer keep the site's) */
.learn-page .learn-shell { flex: 1 0 auto; margin-top: 12px; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
.learn-page .learn-shell h1,
.learn-page .learn-shell h2,
.learn-page .learn-shell h3 { font-family: inherit; font-weight: 700; color: inherit; }
.learn-page .learn-shell h2,
.learn-page .learn-shell h3 { line-height: 1.3; }
.learn-page .learn-shell label { color: inherit; }
.learn-page .learn-shell a { color: inherit; text-decoration: underline; }
.learn-page .learn-shell a.source-link { color: var(--accent); }

/* the skip link appears above the fixed menu, not under it */
.learn-page .skip-link { z-index: 1100; color: var(--ink); }
.learn-page .skip-link:focus { top: 84px; }

/* Bootstrap's reboot: progress and the placeholder colours */
.learn-page .learn-progress span { flex: none; white-space: nowrap; }
.learn-page .learn-progress progress { flex: 1 1 auto; min-width: 0; vertical-align: middle; }
.learn-page .learn-shell input::placeholder,
.learn-page .learn-shell textarea::placeholder { color: var(--muted); opacity: .8; }

/* dark: the accent is a light lavender there, so the primary buttons take dark text (white was unreadable) */
body.dark-theme.learn-page .learn-action.primary { color: #10162a; }
