
:root {
  --accent: #fd52f4;
  --rail-w: 280px;
  --font-heading: Roboto, ui-sans-serif, system-ui, sans-serif;
  --font-body: Roboto, ui-sans-serif, system-ui, sans-serif;
  --size-title: 2rem;
  --size-heading: 1.5rem;
  --size-subheading: 1.185rem;
  --size-body: 1rem;
  --size-small: 0.875rem;
}
:root {
  --accent-ink: #fd52f4;
  --text: #ececf0;
  --bg: #1e1e1e;
  --page: #1e1e1e;
  --surface: #292929;
  --muted: #a0a0aa;
  --border: rgba(255,255,255,0.11);
  --hover: #323232;
  --wash: rgba(255,255,255,0.03);
  --wash-strong: rgba(255,255,255,0.05);
  --soft: rgba(255,255,255,0.05);
  --success: #6ee7a0;
  --success-soft: rgba(34,197,94,0.12);
  --success-line: rgba(34,197,94,0.35);
  --done-bg: rgba(34,197,94,0.12);
  --done-text: #6ee7a0;
  --danger: #fca5a5;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); font-size: var(--size-body); color: var(--text); background: var(--page); }
img, video { max-width: 100%; }

/* Headings follow the author's heading face and scale; the editor's paragraph
   styles (Title / Heading / Subheading) map onto exactly these tags, so what
   they picked in the editor is what the learner gets. */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
.block h2, .lesson-body h2 { font-size: var(--size-heading); }
.block h3, .lesson-body h3 { font-size: var(--size-subheading); }
.block p, .block li, .lesson-body p, .lesson-body li { font-size: var(--size-body); }
.block small, .block .text-small { font-size: var(--size-small); }

/* ---------------------------------------------------------------- layouts */
.layout { display: flex; min-height: 100vh; align-items: flex-start; }
.layout-stepper { justify-content: center; }
.main { flex: 1; min-width: 0; padding: 2.5rem 3rem; background: var(--bg); min-height: 100vh; }
/* The content column. The banner sits outside it, across the full width. */
.main-inner { max-width: 720px; margin: 0 auto; }

/* ------------------------------------------------------------------- rail */
.rail { width: var(--rail-w); flex: 0 0 var(--rail-w); position: sticky; top: 0; min-height: 100vh; max-height: 100vh; overflow-y: auto; padding: 1.5rem 1rem; background: var(--surface); border-right: 1px solid var(--border); }
.rail-head { padding: 0 0.6rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }
.rail-eyebrow { display: block; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rail-head h2 { font-size: 1rem; margin: 0.35rem 0 0; line-height: 1.35; }
.rail-module { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0.4rem; padding: 0 0.6rem; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rail-module-index { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 0.65rem; }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.875rem; margin-bottom: 2px; line-height: 1.35; }
.rail-num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); font-size: 0.7rem; color: var(--muted); }
.rail-link:hover { background: var(--hover); }
.rail-link.active { background: var(--accent); color: #fff; font-weight: 600; }
.rail-link.active .rail-num { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ---------------------------------------------------------------- stepper */
.stepper-head { margin-bottom: 2rem; }
.stepper-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-bottom: 0.5rem; }
.stepper-track { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.stepper-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.3s ease; }

/* --------------------------------------------------------------- headings */
.course-head { padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.course-head h1 { margin: 0.35rem 0 0; font-size: var(--size-title); line-height: 1.15; }
.course-desc { color: var(--muted); margin: 0.6rem 0 0; line-height: 1.6; }
.lesson-head { border-bottom: 3px solid var(--accent-ink); padding-bottom: 0.75rem; margin-bottom: 1.75rem; }
.lesson-eyebrow { display: block; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lesson-head h1, .lesson-head h2 { margin: 0.35rem 0 0; font-size: calc(var(--size-title) * 0.8); line-height: 1.2; }
.lesson-section { margin-bottom: 3.5rem; scroll-margin-top: 1.5rem; }
.lesson-section:last-of-type { margin-bottom: 2rem; }

/* ----------------------------------------------------------------- blocks */
.block { margin-bottom: 1.5rem; line-height: 1.6; }
.block img, .block video { max-width: 100%; border-radius: 8px; }
.block-mc, .block-matching, .block-checklist { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; }
.mc-choice, .checklist-item { display: block; margin: 0.4rem 0; }
button { cursor: pointer; font: inherit; }
.block button[type="button"]:not(.flashcard):not(.hotspot-marker):not(.reveal-trigger) { background: var(--accent); color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 8px; margin-top: 0.5rem; }
.feedback { margin-top: 0.5rem; font-weight: 600; }
.feedback-correct { color: var(--success); }
.feedback-incorrect { color: var(--danger); }
.block-process ol { list-style: none; padding-left: 0; }
.process-step { margin-bottom: 1rem; }
.process-step h4 { margin: 0 0 0.35rem; }
.flashcard { position: relative; display: inline-block; width: 220px; height: 140px; margin: 0 0.75rem 0.75rem 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); perspective: 800px; }
.flashcard-front, .flashcard-back { display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.flashcard-back { display: none; }
.flashcard.flipped .flashcard-front { display: none; }
.flashcard.flipped .flashcard-back { display: flex; }
.hotspot-marker { position: absolute; transform: translate(-50%, -50%); border: none; background: none; }
.hotspot-dot { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.hotspot-popover { display: none; position: absolute; top: 32px; left: 0; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; width: 220px; text-align: left; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.hotspot-marker.open .hotspot-popover { display: block; }
.hotspot-popover.has-media { width: 280px; }
.hotspot-media { display: block; width: 100%; margin-top: 0.5rem; border-radius: 6px; }
audio.hotspot-media { border-radius: 0; }
.reveal-image { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 0.75rem 0; }
.reveal-content { display: none; margin-top: 0.5rem; }
.reveal-content.revealed { display: block; }

/* ----------------------------------------------------------------- workbook */
.block-workbook { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.wb-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--wash); }
.wb-eyebrow { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.wb-head h3 { margin: 0.35rem 0 0; font-size: 1.1rem; }
.wb-objective { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--muted); }
.wb-body { padding: 1.25rem; }
.wb-intro { font-size: 0.9rem; margin-bottom: 1rem; }
.wb-field { margin-bottom: 1.25rem; }
.wb-label { display: block; font-weight: 700; font-size: 0.9rem; }
.wb-req { color: var(--accent-ink); }
.wb-help { margin: 0.15rem 0 0.4rem; font-size: 0.8rem; color: var(--muted); }
.wb-input { width: 100%; margin-top: 0.35rem; padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 0.9rem; background: var(--surface); color: var(--text); }
.wb-list { margin-top: 0.35rem; display: flex; flex-direction: column; gap: 0.35rem; }
.wb-check-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; cursor: pointer; }
.wb-scale { margin-top: 0.35rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wb-scale-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; cursor: pointer; }
.wb-scale-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }
.wb-table { width: 100%; border-collapse: collapse; margin-top: 0.4rem; font-size: 0.875rem; }
.wb-table th, .wb-table td { border: 1px solid var(--border); padding: 0; text-align: left; }
.wb-table th { padding: 0.45rem 0.6rem; background: var(--wash-strong); font-size: 0.75rem; }
.wb-cell { width: 100%; border: 0; padding: 0.5rem 0.6rem; font: inherit; font-size: 0.875rem; background: transparent; color: inherit; }
.wb-saved { margin: 1rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); }
.wb-download { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 0.7rem 1.25rem; font-weight: 700; font-size: 0.875rem; box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

/* --------------------------------------------------------------- cta button */
.block-button { margin: 1.75rem 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-button { display: inline-block; border: none; border-radius: 8px; padding: 0.7rem 1.5rem; font-size: 0.95rem; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
/* Filled rows share the width equally: one fills it, two halve it, three third it. */
.cta-row .cta-fill { flex: 1 1 0; min-width: 0; }
.cta-button:hover { filter: brightness(1.06); }
.cta-button.is-spent { opacity: 0.45; cursor: default; }
.gate-group[hidden] { display: none; }

/* -------------------------------------------------------- interactive video */
.block-interactive-video .iv-stage { position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.block-interactive-video video { display: block; width: 100%; }
.iv-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(18,16,14,0.72); }
.iv-card { width: 100%; max-width: 30rem; max-height: 100%; overflow-y: auto; background: var(--surface); color: var(--text); border-radius: 12px; padding: 1.25rem; text-align: left; }
.iv-kind { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.iv-title { margin: 0.4rem 0 0; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.iv-body { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.6; }
.iv-choices { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.iv-choice { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; cursor: pointer; }
.iv-choice.iv-correct { background: var(--success-soft); border-color: var(--success-line); }
.iv-actions { margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.iv-actions button { background: var(--accent); color: #fff; border: none; padding: 0.55rem 1.1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; }
.iv-feedback { font-weight: 600; font-size: 0.875rem; }
.iv-survey { width: 100%; margin-top: 0.75rem; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 0.9rem; resize: vertical; background: var(--surface); color: var(--text); }

/* ------------------------------------------------------------- page nav */
.page-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.page-nav a, .page-nav button { background: var(--accent); color: #fff; border: none; padding: 0.65rem 1.25rem; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.page-nav .nav-prev { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.page-nav .disabled { visibility: hidden; }
.page-nav button[disabled] { opacity: 0.6; cursor: default; }

/* --------------------------------------------------------------- screens */
/* Page breaks: one screen of a lesson at a time (runtime.ts initScreens). The
   break adds no controls: the author's Button blocks move between screens. */
.screen[hidden], .page-nav [hidden] { display: none !important; }
/* A middle screen shows neither lesson link, so the bar goes too. */
.page-nav.is-empty { display: none; }
/* "The next lesson is locked" means nothing until the last screen. */
.page-nav.has-screens:not(.on-last-screen) + .gate-hint { display: none; }

/* ------------------------------------------------ knowledge check extras */
.mc-hint { margin: -0.25rem 0 0.75rem; font-size: 0.8rem; color: var(--muted); }
.mc-explanation { margin-top: 0.9rem; padding: 0.75rem 0.9rem; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 8px 8px 0; font-size: 0.9rem; }
.mc-explanation[hidden], .essay-sample[hidden] { display: none; }
.essay-input { display: block; width: 100%; margin: 0.25rem 0 0.5rem; padding: 0.65rem 0.8rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 0.95rem; line-height: 1.55; resize: vertical; background: var(--surface); color: var(--text); }
.essay-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.essay-hint { margin: 0 0 0.75rem; font-size: 0.8rem; color: var(--muted); }
.essay-sample { margin-top: 0.9rem; padding: 0.75rem 0.9rem; border: 1px dashed var(--border); border-radius: 8px; font-size: 0.9rem; }
.essay-sample-label { margin: 0 0 0.35rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- gates */
.lesson-end { height: 1px; }
.lock-note { display: none; }
.main[data-locked] .lock-note, .lesson-section[data-locked] > .lock-note,
.gate-hint { display: flex; align-items: center; gap: 0.6rem; }
.lock-note { padding: 1rem 1.15rem; border: 1px dashed var(--border); border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 0.9rem; }
.lock-note a, .gate-hint a { color: var(--accent-ink); font-weight: 600; }
.lock-note svg, .gate-hint svg { flex: 0 0 auto; }
.main[data-locked] .lesson-body, .main[data-locked] .course-banner,
.lesson-section[data-locked] .lesson-body { display: none; }
.lesson-section[data-locked] .lesson-head { opacity: 0.55; }
.gate-hint { justify-content: flex-end; margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--muted); }
.gate-hint[hidden] { display: none; }
.gate-hint.is-flashing { animation: gate-flash 0.6s ease 2; }
@keyframes gate-flash { 50% { color: var(--accent-ink); } }
.page-nav .nav-next.is-locked { opacity: 0.45; cursor: not-allowed; }
.rail-link.is-locked { opacity: 0.5; cursor: not-allowed; }
.rail-link.is-locked:hover { background: none; }
.rail-link.is-done .rail-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.rail-link.is-done.active .rail-num { background: #fff; color: var(--accent); }

/* ------------------------------------------------------------------ paths */
.layout-chooser { display: block; }
.path-heading { font-size: var(--size-heading, 1.5rem); margin: 0 0 0.35rem; }
.path-intro { margin: 0 0 1.5rem; color: var(--muted); }
.path-done { margin: 0 0 1.5rem; padding: 0.85rem 1rem; border-radius: 10px; background: var(--done-bg); color: var(--done-text); font-weight: 600; }
.path-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.path-card { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.path-card:hover, .path-card:focus-visible { border-color: var(--accent-ink); box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-1px); outline: none; }
.path-card h2 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.path-card p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.path-meta { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.path-start { margin-top: auto; align-self: flex-start; background: var(--accent); color: #fff; padding: 0.45rem 0.95rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem; }
.path-current { display: none; align-self: flex-start; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.path-card.is-current { border-color: var(--accent-ink); }
.path-card.is-current .path-current { display: block; }
.rail-path, .stepper-path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; font-size: 0.8rem; }
.rail-path { padding: 0 0.6rem 0.9rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.stepper-path { margin-bottom: 1rem; }
.path-tag-label { flex-basis: 100%; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rail-path a, .stepper-path a { color: var(--accent-ink); font-weight: 600; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 520px) {
  .cta-row { flex-direction: column; }
  .cta-row .cta-button { width: 100%; }
}
@media (max-width: 860px) {
  .layout { display: block; }
  .rail { position: static; width: auto; flex: none; min-height: 0; max-height: none; border-right: 0; border-bottom: 1px solid var(--border); }
  .main { padding: 1.5rem 1.25rem; max-width: none; min-height: 0; }
  .page-nav { flex-direction: column-reverse; align-items: stretch; }
  .page-nav a, .page-nav button { text-align: center; }
}

/* ------------------------------------------------------------------ survey */
.survey { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: 0 0 2rem; overflow: hidden; }
.sv-head { padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--border); background: var(--wash); }
.sv-eyebrow { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.sv-head h2 { margin: 0.35rem 0 0; font-size: 1.25rem; line-height: 1.25; }
.sv-intro { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.sv-body { padding: 1.35rem; }
.sv-field { margin-bottom: 1.4rem; }
.sv-label { display: block; font-weight: 700; font-size: 0.95rem; }
.sv-req { color: var(--accent-ink); }
.sv-help { margin: 0.15rem 0 0.45rem; font-size: 0.8rem; color: var(--muted); }
.sv-input { width: 100%; margin-top: 0.4rem; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 0.9rem; background: var(--surface); color: var(--text); }
.sv-list { margin-top: 0.45rem; display: flex; flex-direction: column; gap: 0.4rem; }
.sv-choice { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; cursor: pointer; }
.sv-choice:hover { border-color: var(--accent-ink); }
.sv-scale { margin-top: 0.45rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.sv-scale-wide { gap: 0.4rem; }
.sv-scale-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; cursor: pointer; }
.sv-scale-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 0.4rem; }
.sv-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.5rem; }
.sv-submit { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 0.6rem 1.3rem; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.sv-submit:disabled { opacity: 0.5; cursor: default; }
.sv-feedback { font-size: 0.85rem; font-weight: 600; }
.sv-feedback-error { color: var(--danger); }
.sv-feedback-done { color: var(--success); }
/* A missed required question is marked where the question is, not only in a
   summary at the bottom: otherwise the learner has to hunt for it. */
.sv-missing .sv-label { color: var(--danger); }
.sv-missing { border-left: 3px solid var(--danger); padding-left: 0.75rem; margin-left: -0.75rem; }
.sv-note { margin: 1.1rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.sv-done { opacity: 0.75; }

.course-banner { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 2rem; min-height: 180px; display: flex; align-items: flex-end; }
.course-banner-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-banner-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.62) 100%); }
.course-banner-inner { position: relative; padding: 2rem 1.75rem 1.5rem; width: 100%; }
.course-banner-inner .banner-eyebrow { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.course-banner-inner h1 { margin: 0.4rem 0 0; font-size: 1.9rem; line-height: 1.15; }
.course-banner-inner p { margin: 0.5rem 0 0; font-size: 0.95rem; max-width: 40rem; opacity: 0.88; }
/* Edge to edge across the content area, cancelling .main's padding; the words
   line up with the content column (.main-inner) below. */
.main > .course-banner { margin: -2.5rem -3rem 2.5rem; border-radius: 0; min-height: 260px; }
.layout-stepper .main > .course-banner { margin-top: 0; }
.main > .course-banner .course-banner-inner { max-width: calc(720px + 6rem); margin: 0 auto; padding: 2.5rem 3rem 2rem; }
.course-banner.on-dark, .course-banner.on-dark h1, .course-banner.on-dark p { color: #fff; }
.course-banner.on-light, .course-banner.on-light h1, .course-banner.on-light p { color: #1f2933; }
@media (max-width: 860px) {
  /* .main's padding shrinks here (styles.ts), so the bleed does too. */
  .main > .course-banner { margin: -1.5rem -1.25rem 1.5rem; min-height: 200px; }
  .layout-stepper .main > .course-banner { margin-top: 0; }
  .main > .course-banner .course-banner-inner { padding: 1.75rem 1.25rem 1.5rem; }
}
@media (max-width: 620px) {
  .course-banner { min-height: 140px; }
  .course-banner-inner { padding: 1.5rem 1.25rem 1.25rem; }
  .course-banner-inner h1 { font-size: 1.4rem; }
}
