/* LessonRally 1.0.3 — application base.
   Load theme-vars.css, fonts.css, base.css, then components.css in that order.
   This file sets document defaults; component selectors live in components.css. */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg-canvas);
  scroll-padding-block-start: var(--sticky-offset, 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: 1.55;
}
/* A nested [data-theme] specimen restarts text color from its own tokens instead of
   inheriting the page's computed color. Preferences still belong on <html>. */
[data-theme] { color: var(--text-primary); }
button, input, select, textarea { font: inherit; }
img, video { max-width: 100%; height: auto; }
::selection { background: var(--selection-bg); color: var(--selection-text); }
a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--text-link-hover); text-decoration-thickness: 2px; }
/* Retain the browser's :focus fallback; never globally remove outlines. */
:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin: 0 0 var(--space-3); color: var(--text-primary); }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { margin: 0 0 var(--space-3); }
code, pre, .mono { font-family: var(--font-mono); }
code { font-size: .875em; }
pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.display {
  font-family: var(--font-display);
  font-feature-settings: "ss02", "ss03", "ss05", "zero";
  font-size: var(--text-2xl);
  letter-spacing: -.01em;
}
/* Atkinson's digits are proportional by default. Opt into tabular figures only
   for aligned numeric content, leaving paragraphs in their natural spacing. */
.tabular-nums, .numeric, .score, .timer,
.gradebook td[data-numeric], .gradebook th[data-numeric] {
  font-variant-numeric: tabular-nums lining-nums;
}
.numeric, .gradebook td[data-numeric], .gradebook th[data-numeric] { text-align: end; }
/* These are installed-system fallbacks, not additional bundled fonts or an
   equation renderer. Supply accessible MathML or a separately tested renderer
   for structured mathematics; language-specific content needs its own QA. */
.math, .math-inline, math {
  font-family: var(--font-math, "Cambria Math", "DejaVu Sans", "Segoe UI Symbol", Arial, sans-serif);
  font-variant-numeric: normal;
}
.text-script-fallback { font-family: system-ui, "Segoe UI", Arial, sans-serif; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--space-4); }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
.small { font-size: var(--text-sm); }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: var(--space-4);
  top: var(--space-2);
  transform: translateY(-200%);
  z-index: 1000;
  background: var(--interactive-primary);
  color: var(--text-inverse);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}
.skip:focus { transform: none; color: var(--text-inverse); }
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  a { color: LinkText; }
  ::selection { color: HighlightText; background: Highlight; }
}
/* Animation completion handlers must not be essential to application behavior.
   Stop CSS motion here; JavaScript animations must also honor this preference. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  html, body { background: white !important; color: black !important; }
  a, h1, h2, h3, h4, h5, h6 { color: black !important; }
  .no-print, .skip { display: none !important; }
  pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
