/* Course pages override the textbook's serif typography and chunky header
   for an app-like, content-dense layout. The textbook chrome
   (.site-header, .site-nav, .page-frame) is shrunk drastically so a single
   lesson fits in a 900px-tall viewport without scrolling. */

:root {
  --course-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --course-mono: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --course-bg: #fafbfc;
  --course-ink: #1a1f2c;
  --course-meta: #6a7280;
  --course-line: #e3e6eb;
  --course-accent: #002147;
  --course-accent-soft: #e8eef5;
  --course-ok: #1d7a3a;
  --course-warn: #a86a00;
  --course-bad: #b03030;
}

/* --- Strip down the site chrome on course pages --- */
body.course-app,
body.course-app * {
  /* The textbook's body has a repeating SVG terminal-prompt pattern that
     leaks through any chrome shorter than the original. Kill it dead. */
}
body.course-app {
  background: var(--course-bg) !important;
  background-image: none !important;
  font-family: var(--course-font);
  color: var(--course-ink);
}
body.course-app .page-frame {
  margin: 0;
  padding: 0;
  max-width: 100%;
  box-shadow: none;
  background: transparent;
  border: none;
}
/* Merge header + nav into a single slim app bar. */
body.course-app .site-header {
  padding: 8px 18px;
  background: var(--course-accent) !important;
  background-image: none !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: unset;
  border: none;
  box-shadow: none;
}
body.course-app .site-header h1,
body.course-app .site-header .site-title {
  font-family: var(--course-font);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0;
  color: #fff;
  border: none;
  padding: 0;
  line-height: 1.4;
}
body.course-app .site-header .flourish,
body.course-app .site-header .credentials,
body.course-app .site-header .flourish-header { display: none !important; }
body.course-app .site-nav {
  padding: 0 18px 6px;
  background: var(--course-accent) !important;
  background-image: none !important;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0;
  box-shadow: none;
}
body.course-app .site-nav ul {
  gap: 2px;
  padding: 0 0 6px;
  margin: 0;
  font-family: var(--course-font);
  justify-content: flex-start;
  list-style: none;
  display: flex;
}
body.course-app .site-nav a {
  font-size: 12px;
  font-family: var(--course-font);
  padding: 4px 10px;
  color: rgba(255,255,255,0.65);
  border-radius: 3px;
  text-decoration: none;
}
body.course-app .site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
body.course-app .site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.15);
  font-weight: 600;
}
body.course-app main.course-main {
  background: var(--course-bg);
  box-shadow: none;
  border: none;
  padding: 14px 24px 84px;
  max-width: 100%;
  margin: 0;
}

/* --- Type system --- */
/* In app mode (lesson view): sans-serif throughout. Outside app mode
   (course home), inherit the textbook's serif Libre Baskerville. */
body.course-app .course-main, body.course-app .course-main * {
  font-family: var(--course-font);
}
body.course-app .course-main code,
body.course-app .course-main pre { font-family: var(--course-mono); }

#course-root {
  margin: 0 auto;
}
body.course-app #course-root { max-width: 1280px; }
body:not(.course-app) #course-root { max-width: 42rem; }

/* --- Header bar (progress + home link) --- */
.course-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--course-line);
  margin-bottom: 12px;
  font-size: 12px;
}
.course-home-link {
  color: var(--course-meta);
  text-decoration: none;
  font-weight: 500;
}
.course-home-link:hover { color: var(--course-accent); }
.course-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--course-meta);
  font-weight: 500;
}
.xp-bar {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: var(--course-line);
  overflow: hidden;
}
.xp-fill { height: 100%; background: var(--course-accent); transition: width 0.4s ease; }

/* --- Home view --- */
.course-home { padding: 0 0 32px; }
.course-intro h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 4px 0 4px;
  text-align: center;
  color: var(--course-ink);
  border: none;
  padding: 0;
}
.course-intro p {
  max-width: 36rem;
  margin: 0 auto 12px;
  color: var(--course-meta);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}
.course-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 42rem;
  margin: 0 auto 20px;
}
.stat {
  background: #fff;
  border: 1px solid var(--course-line);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}
.stat-value { font-size: 1.4rem; color: var(--course-accent); font-weight: 700; line-height: 1.1; }
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--course-meta);
  margin-top: 2px;
}
@media (max-width: 540px) {
  .course-stats { grid-template-columns: repeat(2, 1fr); }
}

.unit-card {
  background: #fff;
  border: 1px solid var(--course-line);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 12px;
}
.unit-card h3 {
  margin: 0 0 4px;
  border: none;
  padding: 0;
  font-size: 1rem;
  color: var(--course-accent);
  font-weight: 700;
}
.unit-blurb { color: var(--course-meta); margin: 0 0 10px; font-size: 13px; line-height: 1.4; }
.lesson-list { list-style: none; counter-reset: lesson; padding: 0; margin: 0; }
.lesson-list li {
  counter-increment: lesson;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--course-line);
  font-size: 13px;
}
.lesson-list li:last-child { border-bottom: none; }
.lesson-list li::before {
  content: counter(lesson);
  color: var(--course-meta);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 1.5em;
  font-size: 11px;
}
.lesson-list li a {
  flex: 1;
  color: var(--course-accent);
  text-decoration: none;
  font-weight: 600;
}
.lesson-list li a:hover { text-decoration: underline; }
.lesson-list li.done a { color: var(--course-ok); }
.lesson-list li.locked { opacity: 0.5; }
.lesson-list li.locked span:first-of-type { color: var(--course-meta); }
.lesson-meta { font-size: 11px; color: var(--course-meta); }
.big-button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background: var(--course-accent);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--course-accent);
}
.big-button:hover { filter: brightness(1.12); }
.big-button.outline {
  background: #fff;
  color: var(--course-accent);
}
.big-button.outline:hover { background: var(--course-accent-soft); filter: none; }
.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* --- Lesson view --- */
.unit-tag {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10.5px;
  color: var(--course-meta);
  font-weight: 700;
  margin: 0 0 2px;
}
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .lesson-layout { grid-template-columns: 1fr; }
}
.lesson-content h2 {
  margin: 0 0 10px;
  border: none;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--course-ink);
  letter-spacing: -0.01em;
}
.lesson-content h3 {
  margin: 14px 0 6px;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--course-meta);
}

/* Step indicator: a row of pills that act as tabs */
.lesson-steps {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.lesson-step {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--course-line);
  font-size: 11.5px;
  color: var(--course-meta);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  user-select: none;
  transition: all 0.15s ease;
}
.lesson-step.reachable { cursor: pointer; }
.lesson-step.reachable:hover { border-color: var(--course-accent); color: var(--course-accent); }
.lesson-step.locked { opacity: 0.6; cursor: not-allowed; }
.lesson-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--course-line);
  color: var(--course-meta);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.lesson-step.active {
  background: var(--course-accent);
  border-color: var(--course-accent);
  color: #fff;
}
.lesson-step.active .step-num { background: rgba(255,255,255,0.2); color: #fff; }
.lesson-step.done {
  background: #eaf6ed;
  border-color: #cbe2cd;
  color: var(--course-ok);
}
.lesson-step.done:hover { border-color: var(--course-ok); }
.lesson-step.done .step-num { background: var(--course-ok); color: #fff; }
.lesson-step .step-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Each step's content panel sits inside #lesson-panel. */
.step-panel { animation: fade-in 0.18s ease; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.panel-hint {
  color: var(--course-meta);
  font-size: 12.5px;
  margin: 0 0 10px;
}
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--course-line);
}
.step-back, .step-next {
  padding: 8px 16px;
  background: #fff;
  color: var(--course-accent);
  border: 1px solid var(--course-accent);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.step-back { background: transparent; border-color: var(--course-line); color: var(--course-meta); }
.step-back:hover { border-color: var(--course-accent); color: var(--course-accent); }
.step-next:hover { background: var(--course-accent); color: #fff; }
.step-next.primary { background: var(--course-accent); color: #fff; }
.step-next.primary:hover { filter: brightness(1.12); }

/* Done step: score + XP cards */
.done-card {
  background: #fff;
  border: 1px solid var(--course-line);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 8px 0 10px;
  text-align: center;
  display: inline-block;
  min-width: 140px;
}
.done-score {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--course-accent);
}
.done-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--course-meta);
  margin-top: 4px;
  font-weight: 600;
}
.done-xp {
  background: var(--course-accent-soft);
  border: 1px solid var(--course-line);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 8px;
  display: inline-block;
  margin-left: 12px;
  text-align: center;
  min-width: 200px;
}
.done-xp-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--course-accent);
  line-height: 1;
}
.done-xp-detail {
  font-size: 11px;
  color: var(--course-meta);
  margin-top: 4px;
}
.lo-box {
  border-left: 3px solid var(--course-accent);
  background: var(--course-accent-soft);
  padding: 8px 12px;
  margin: 0 0 12px;
  border-radius: 0 4px 4px 0;
  font-size: 12.5px;
}
.lo-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--course-accent);
  margin-bottom: 4px;
  font-weight: 700;
}
.lo-box ol { margin: 0; padding-left: 1.2em; }
.lo-box li { margin: 1px 0; line-height: 1.35; }

.lesson-intro p {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--course-ink);
}
.lesson-intro code {
  background: #f0f2f5;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.92em;
  color: #b3540c;
  border: 1px solid var(--course-line);
}
.lesson-intro strong { color: var(--course-accent); }

.worked-example {
  margin: 6px 0 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--course-line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.we-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--course-accent-soft);
  color: var(--course-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.we-text {
  flex: 1;
  min-width: 0;
}
.we-text-title { font-size: 13px; font-weight: 600; margin: 0 0 1px; color: var(--course-ink); }
.we-hint { color: var(--course-meta); margin: 0; font-size: 11.5px; line-height: 1.35; }
.we-btn {
  padding: 7px 14px;
  background: var(--course-accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.we-btn:hover { filter: brightness(1.12); }

.challenges { margin: 12px 0 0; }
.challenge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  margin: 4px 0;
  background: #fff;
  border: 1px solid var(--course-line);
  font-size: 13px;
}
.challenge.done { background: #eaf6ed; border-color: #cbe2cd; color: var(--course-ok); }
.challenge.current { background: #fff8e7; border-color: #f3d99b; }
.challenge.pending { opacity: 0.55; }
.challenge-marker { font-weight: 700; min-width: 1em; font-size: 14px; line-height: 1.3; }
.challenge-hint {
  width: 100%;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--course-meta);
}

/* One-question-at-a-time quiz */
.quiz-dots {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
}
.quiz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--course-line);
  border: 1px solid var(--course-line);
}
.quiz-dot.active { background: var(--course-accent); border-color: var(--course-accent); }
.quiz-dot.ok { background: var(--course-ok); border-color: var(--course-ok); }
.quiz-dot.bad { background: var(--course-bad); border-color: var(--course-bad); }
.qprompt-large {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.4;
  color: var(--course-ink);
}
.qprompt-large code {
  background: #f0f2f5;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--course-mono);
  font-size: 0.92em;
  color: #b3540c;
  border: 1px solid var(--course-line);
}
.qopts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 12px;
}
.qopt-btn {
  text-align: left;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--course-line);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--course-ink);
  transition: all 0.15s ease;
  font-weight: 500;
}
.qopt-btn:hover:not(:disabled) {
  border-color: var(--course-accent);
  background: var(--course-accent-soft);
}
.qopt-btn:disabled { cursor: default; }
.qopt-btn.ok {
  background: #eaf6ed;
  border-color: var(--course-ok);
  color: var(--course-ok);
  font-weight: 700;
}
.qopt-btn.ok::after { content: ' ✓'; }
.qopt-btn.bad {
  background: #fbecec;
  border-color: var(--course-bad);
  color: var(--course-bad);
  font-weight: 700;
}
.qopt-btn.bad::after { content: ' ✗'; }
.qopt-btn.ok-reveal {
  background: #eaf6ed;
  border-color: var(--course-ok);
  color: var(--course-ok);
}
.qopt-btn.ok-reveal::after { content: ' ← correct'; font-size: 0.85em; opacity: 0.7; }
.qopt-btn.dim { opacity: 0.55; }
.qfeedback-large {
  margin: 6px 0 0;
  padding: 10px 12px;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  border-left: 3px solid var(--course-ok);
}
.qfeedback-large.bad { border-left-color: var(--course-bad); }
.qfeedback-large strong { display: block; margin-bottom: 2px; }
.qfeedback-large.ok strong { color: var(--course-ok); }
.qfeedback-large.bad strong { color: var(--course-bad); }

/* --- Embedded simulator --- */
.lesson-right {
  position: sticky;
  top: 10px;
}
.sim-host { position: relative; }
.course-sim {
  background: #0b0e14;
  color: #e6edf3;
  border: 1px solid #1f2630;
  border-radius: 6px;
  height: calc(100vh - 260px);
  min-height: 380px;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  font-family: var(--course-mono);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.course-sim-bar {
  padding: 6px 12px;
  background: #11151c;
  border-bottom: 1px solid #1f2630;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #9aa5b1;
}
.course-sim-bar a { color: #9aa5b1; text-decoration: none; cursor: pointer; }
.course-sim-bar a:hover { color: #7ee787; }
.course-sim #term {
  flex: 1;
  min-width: 0;
  padding: 10px 14px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.course-sim #term::-webkit-scrollbar { display: none; width: 0; }
.course-sim #term .out { color: #e6edf3; }
.course-sim #term .err { color: #ff7b72; }
.course-sim #term .warn { color: #ffa657; }
.course-sim #term .dim { color: #9aa5b1; }
.course-sim #term .dir { color: #79c0ff; font-weight: 600; }
.course-sim #term .exec { color: #7ee787; font-weight: 600; }
.course-sim #term .link { color: #ffa657; }
.course-sim .prompt { color: #7ee787; }
.course-sim .prompt .user { color: #7ee787; }
.course-sim .prompt .host { color: #79c0ff; }
.course-sim .prompt .path { color: #d2a8ff; }
.course-sim .input-row { display: flex; align-items: flex-start; min-width: 0; }
.course-sim .input-row .ps1 { white-space: pre; flex-shrink: 0; }
.course-sim .input-row .cmd { color: #e6edf3; min-width: 0; overflow-wrap: anywhere; }
.course-sim #cmdline {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  color: #e6edf3;
  font: inherit;
  outline: none;
  caret-color: #7ee787;
}

/* --- Lesson pager (bottom of every lesson) --- */
.lesson-pager {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--course-line);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  z-index: 50;
  font-size: 13px;
}
.lesson-pager .pager-meta {
  flex: 1;
  text-align: center;
  color: var(--course-meta);
  font-size: 12px;
}
.lesson-pager .pager-meta strong { color: var(--course-ink); font-weight: 600; }
.pager-btn {
  padding: 7px 16px;
  background: #fff;
  color: var(--course-accent);
  border: 1px solid var(--course-accent);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.pager-btn:hover { background: var(--course-accent); color: #fff; }
.pager-btn[disabled],
.pager-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pager-btn.primary {
  background: var(--course-accent);
  color: #fff;
}
.pager-btn.primary:hover { filter: brightness(1.12); }
.pager-keys {
  display: inline-flex;
  gap: 4px;
  color: var(--course-meta);
  font-size: 10.5px;
  margin-left: 6px;
}
.pager-keys kbd {
  background: #f0f2f5;
  border: 1px solid var(--course-line);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--course-mono);
  font-size: 10px;
}

/* Editor modal (shared with the standalone simulator) */
#editor {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  z-index: 5000;
  padding: 20px;
  flex-direction: column;
  font-family: var(--course-mono);
}
#editor.open { display: flex; }
#editor .ed-bar {
  background: #11151c;
  color: #e6edf3;
  border: 1px solid #1f2630;
  padding: 6px 12px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px 4px 0 0;
}
#editor textarea {
  flex: 1;
  background: #0b0e14;
  color: #e6edf3;
  border: 1px solid #1f2630;
  border-top: 0;
  padding: 12px;
  font: inherit;
  outline: none;
  resize: none;
  border-radius: 0 0 4px 4px;
}
#editor .hint { color: #9aa5b1; font-size: 12px; }

/* Continue learning page */
.continue-wrap {
  max-width: 44rem;
  margin: 24px auto;
  text-align: center;
}
.continue-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--course-ok);
  margin: 0 0 6px;
}
.continue-title {
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: var(--course-ink);
  border: none;
  padding: 0;
}
.continue-blurb {
  color: var(--course-meta);
  font-size: 14px;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 auto 22px;
}
.continue-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 18px;
}
.continue-card {
  display: block;
  text-align: left;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--course-line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--course-ink);
  transition: all 0.15s ease;
}
.continue-card:hover {
  border-color: var(--course-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 33, 71, 0.08);
}
.continue-card.primary {
  background: var(--course-accent);
  color: #fff;
  border-color: var(--course-accent);
}
.continue-card.primary:hover { filter: brightness(1.08); }
.continue-card-icon {
  font-size: 1.7rem;
  margin-bottom: 4px;
  line-height: 1;
}
.continue-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.continue-card-sub {
  font-size: 12.5px;
  line-height: 1.4;
  opacity: 0.85;
}
.continue-card.primary .continue-card-sub { opacity: 0.9; }
.continue-back {
  margin: 18px 0 0;
  font-size: 13px;
}
.continue-back a { color: var(--course-meta); text-decoration: none; }
.continue-back a:hover { color: var(--course-accent); }
@media print {
  .lesson-pager { display: none; }
}
