/* ------------------------------------------------------------------ *
 * Sales Course — page-specific styles on top of the shared ROLLerUP
 * design system (ru-brand.css tokens + ru-components.css). Light theme,
 * matches the HR Reviews portal. Uses tokens only — no new colours.
 * ------------------------------------------------------------------ */

/* Content pages align to top (the shared .ru-main centers auth cards). */
.ru-main.top { align-items: flex-start; }

/* Page header block (title + supporting line) */
.course-head { margin-bottom: var(--ru-space-5); }
.course-head h1 { font-size: var(--ru-font-h1); margin: 0 0 4px; }
.course-head p { color: var(--ru-text-secondary); margin: 0; }

/* Progress bar */
.course-progress {
  display: flex; align-items: center; gap: var(--ru-space-3);
  margin-top: var(--ru-space-3);
}
.course-progress-track {
  flex: 1; height: 8px; background: var(--ru-bg-muted);
  border: 1px solid var(--ru-border); border-radius: var(--ru-radius-full);
  overflow: hidden;
}
.course-progress-fill {
  height: 100%; background: var(--ru-brand);
  border-radius: var(--ru-radius-full);
  transition: width var(--ru-dur-slow, 240ms) var(--ru-ease, ease);
}
.course-progress-pct { font-weight: 600; color: var(--ru-brand); font-size: var(--ru-font-medium); }

/* Module tile tweaks (extends .ru-tile) */
.course-tile-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.course-tile-num {
  font-family: var(--ru-font-mono); font-size: var(--ru-font-small);
  color: var(--ru-text-tertiary); letter-spacing: 0.02em;
}
.course-tile-actions { display: flex; gap: var(--ru-space-2); margin-top: var(--ru-space-3); }
.ru-tile.is-done { border-color: var(--ru-success-border); }

/* ------------------------------------------------------------------ *
 * Rendered markdown (.prose) — server-rendered article/module content.
 * ------------------------------------------------------------------ */
.prose { color: var(--ru-text); font-size: var(--ru-font-medium); line-height: var(--ru-line-relaxed, 1.65); }
.prose > *:first-child { margin-top: 0; }
.prose h1 { font-size: var(--ru-font-h1); margin: 0 0 6px; letter-spacing: -0.018em; }
.prose h2 {
  font-size: var(--ru-font-h3); font-weight: 600; margin: 28px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--ru-border); letter-spacing: -0.012em;
}
.prose h3 { font-size: var(--ru-font-large); font-weight: 600; color: var(--ru-brand); margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ru-text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose em { color: var(--ru-text-secondary); }
.prose strong { color: var(--ru-text); font-weight: 600; }
.prose a { color: var(--ru-brand); text-decoration: underline; text-underline-offset: 2px; }
.prose code {
  font-family: var(--ru-font-mono); font-size: 0.85em;
  background: var(--ru-bg-muted); color: var(--ru-brand);
  padding: 1px 5px; border-radius: var(--ru-radius-sm);
}
.prose hr { border: none; border-top: 1px solid var(--ru-border); margin: 24px 0; }
.prose blockquote {
  margin: 16px 0; padding: 12px 16px;
  border-left: 3px solid var(--ru-warning);
  background: var(--ru-warning-tint); border-radius: 0 var(--ru-radius) var(--ru-radius) 0;
  color: var(--ru-text-secondary);
}
.prose blockquote p { margin: 4px 0; }

/* Markdown tables -> styled like .ru-table inside a rounded shell */
.prose table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: var(--ru-font-medium);
  border: 1px solid var(--ru-border); border-radius: var(--ru-radius-lg);
  overflow: hidden;
}
.prose thead th {
  text-align: left; font-weight: 600; font-size: var(--ru-font-small);
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ru-text-tertiary); background: var(--ru-bg-muted);
  padding: 10px 14px; border-bottom: 1px solid var(--ru-border);
}
.prose tbody td { padding: 10px 14px; border-bottom: 1px solid var(--ru-border); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: var(--ru-bg-muted); }

/* Quiz */
.quiz-q { margin-bottom: var(--ru-space-4); }
.quiz-q .ru-label { font-size: var(--ru-font-large); margin-bottom: var(--ru-space-2); }

/* Result score */
.result-score { text-align: center; }
.result-score .num { font-size: 44px; font-weight: 700; line-height: 1; }
.result-score .num.pass { color: var(--ru-success); }
.result-score .num.fail { color: var(--ru-warning); }
