/* MMU eLearning — visual design system.
   Palette: brand blue #0094D4, dark grey, grey, light grey, white; Arial.
   Direction: fresh, minimal, breathing — light surfaces, hairline borders,
   generous whitespace, blue reserved for accents and primary actions rather
   than decorative fills. */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* brand */
  --brand: #0094d4;
  --brand-dark: #0078ac;
  --brand-tint: #eaf6fc;
  --brand-line: #cdeaf6;

  /* neutrals */
  --white: #ffffff;
  --light-grey: #f7f8f9;
  --grey-100: #f0f1f3;
  --grey-200: #e3e6e9;
  --grey-300: #ccd1d6;
  --grey-400: #9aa1a9;
  --grey-500: #767d86;
  --ink: #23282e; /* "dark grey" in the brand palette */

  /* semantic */
  --good: #1c8a53;
  --good-bg: #eef8f1;
  --good-line: #cbe9d7;
  --bad: #d64545;
  --bad-bg: #fdf2f2;
  --bad-line: #f5d3d3;

  /* elevation — used sparingly, borders do most of the work */
  --shadow-xs: 0 1px 2px rgba(35, 40, 46, .05);
  --shadow-sm: 0 4px 14px rgba(35, 40, 46, .07);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --sidebar-w: 292px;
  --navy: #12304a;
  --teal: #007f7b;
  --coral: #e66d55;
  --surface-blue: #f2f8fb;
}

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #eef4f7;
  line-height: 1.55;
}

button, input { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.layout { display: flex; height: 100vh; }

/* ================= sidebar ================= */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--light-grey);
  border-right: 1px solid var(--grey-200);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 22px 20px;
}
.sidebar-heading { width: 100%; min-width: 0; }
#course-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
}
.sidebar-eyebrow {
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-top: 2px;
}

.progress-card { padding: 4px 22px 22px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.progress-top .pct { font-size: 17px; font-weight: 700; color: var(--ink); }
.progress-label { font-size: 11.5px; color: var(--grey-500); }
.progress-bar { height: 5px; background: var(--grey-200); border-radius: 20px; overflow: hidden; }
#progress-fill {
  height: 100%;
  width: 0;
  border-radius: 20px;
  background: var(--brand);
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

#menu { display: flex; flex-direction: column; gap: 1px; padding: 6px 14px; flex: 1; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-size: 13px;
  padding: 10px 10px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--grey-500);
  transition: background .15s ease, color .15s ease;
}
.menu-item:hover:not(:disabled) { background: var(--grey-100); color: var(--ink); }
.menu-item.active { background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; }
.menu-item.active .menu-badge { background: var(--white); border-color: var(--brand); color: var(--brand-dark); }

.menu-badge {
  width: 21px;
  height: 21px;
  min-width: 21px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--grey-400);
  background: var(--white);
}
.menu-item.done .menu-badge { background: var(--good-bg); border-color: var(--good-line); color: var(--good); }
.menu-item.done .menu-badge svg { width: 11px; height: 11px; }
.menu-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.menu-item.locked { color: var(--grey-400); cursor: not-allowed; }
.menu-item.locked .menu-badge { border-color: var(--grey-200); color: var(--grey-300); }
.menu-item.locked .menu-badge svg { width: 10px; height: 10px; }

/* ================= main ================= */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: linear-gradient(145deg, #f8fbfc 0%, #eef5f8 100%); }
.stage-scroll { flex: 1; overflow-y: auto; }
.stage {
  padding: 52px 56px 68px;
  max-width: 930px;
  width: 100%;
  margin: 0 auto;
  animation: stage-in .28s cubic-bezier(.2, .7, .3, 1);
}

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); background: var(--navy); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mobile-header, .menu-close { display: none; }
.icon-btn { width: 42px; height: 42px; border: 1px solid var(--grey-200); border-radius: 10px; background: white; color: var(--navy); cursor: pointer; font-size: 19px; }

.slide-title { color: var(--navy); font-size: clamp(27px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.15; }
.slide-eyebrow { color: var(--teal); }

.card, .option, .journey-detail, .reveal-card, .transcript { box-shadow: 0 8px 24px rgba(18,48,74,.045); }
.btn { min-height: 44px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #087fb5); box-shadow: 0 6px 14px rgba(0,148,212,.2); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 9px 18px rgba(0,120,172,.24); }
.option { min-height: 52px; }
.option:hover:not(:disabled) { transform: translateX(3px); }
.feedback.good::before, .feedback.bad::before { display: block; font-weight: 800; margin-bottom: 4px; }
.feedback.good::before { content: 'Risk prevented'; }
.feedback.bad::before { content: 'Pause and recover'; }
.video-player { box-shadow: 0 18px 40px rgba(18,48,74,.16); border: 0; }
.video-player::after { content: ''; pointer-events: none; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }

.bedside-board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; margin: 0 0 18px; border-radius: 16px; background: var(--navy); color: white; box-shadow: 0 14px 30px rgba(18,48,74,.18); }
.bedside-patient, .bedside-order { display: flex; flex-direction: column; gap: 3px; padding: 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.08); }
.bedside-patient { display: grid; grid-template-columns: 42px 1fr; align-items: center; }
.bedside-patient div { display: flex; flex-direction: column; }
.patient-icon { grid-row: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); font-size: 11px; font-weight: 800; }
.bedside-board small { color: #9ed8ee; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.bedside-board strong { font-size: 15px; }
.bedside-board span { color: #d9e8ef; font-size: 12px; }
.right-chip { align-items: flex-start; min-height: 72px; }
.right-copy { display: flex; flex-direction: column; gap: 3px; }
.right-copy strong { font-size: 13px; }
.right-copy small { color: var(--grey-500); font-size: 11px; line-height: 1.35; font-weight: 400; }
.right-chip.checked .right-copy small { color: #327157; }

.cover { padding: 0; background: var(--navy); }
.cover-shell { width: 100%; height: 100%; min-height: 660px; display: grid; grid-template-columns: minmax(410px, .9fr) 1.45fr; background: white; }
.cover-card { max-width: none; padding: clamp(42px, 7vw, 110px); text-align: left; display: flex; flex-direction: column; justify-content: center; }
.cover-visual { min-height: 100%; background-size: cover; background-position: center; }
.cover-title { max-width: 620px; color: var(--navy); font-size: clamp(36px, 4.2vw, 62px); letter-spacing: -.045em; line-height: 1.03; margin-bottom: 18px; }
.cover-lede { max-width: 560px; color: var(--grey-500); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.cover-badge { align-self: flex-start; background: var(--brand-tint); color: var(--brand-dark); }
.cover-objectives-label { margin-top: 2px; }
.cover-objectives { max-width: 570px; margin-bottom: 24px; }
.cover-objectives li { font-size: 13px; padding: 6px 0; }
.cover-begin { align-self: flex-start; }

.journey-stage { position: relative; }
.journey-stage:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(18,48,74,.08); }
.reveal-card:hover { transform: translateY(-2px); }
.nav-bar { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.slide-title { font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 28px; letter-spacing: -.01px; }

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 56px;
  border-top: 1px solid var(--grey-200);
  background: var(--white);
}
.nav-hint { font-size: 12px; color: var(--grey-400); }

/* ================= buttons ================= */
.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover:not(:disabled) { border-color: var(--grey-400); background: var(--light-grey); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--grey-500); }
.btn-ghost:hover:not(:disabled) { background: var(--grey-100); color: var(--ink); }

/* ================= video player ================= */
.video-player {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--grey-200);
  margin-bottom: 18px;
  width: 100%;
}
.video-el { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .38) 100%);
}
.play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease;
}
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; fill: var(--brand); }
.play-overlay:hover .play-btn { transform: scale(1.06); }
.video-duration {
  position: absolute;
  right: 14px; bottom: 14px;
  background: rgba(0, 0, 0, .6);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .02em;
}
.watched-badge {
  position: absolute;
  z-index: 1;
  left: 12px; top: 12px;
  background: var(--good-bg);
  border: 1px solid var(--good-line);
  color: var(--good);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.watched-badge svg { width: 11px; height: 11px; }
.video-file-note {
  font-size: 11px;
  color: var(--grey-400);
  font-family: 'Courier New', monospace;
  margin-bottom: 18px;
}

.transcript { margin-bottom: 20px; border: 1px solid var(--grey-200); border-radius: var(--radius-md); background: var(--white); overflow: hidden; }
.transcript summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  padding: 13px 16px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid var(--grey-400);
  border-bottom: 2px solid var(--grey-400);
  transform: rotate(-45deg);
  transition: transform .18s ease;
}
.transcript[open] summary::before { transform: rotate(45deg); }
.transcript p { padding: 0 16px 16px; line-height: 1.65; color: var(--grey-500); font-size: 13.5px; }

/* Video lesson pages */
.video-intro { display: flex; align-items: center; gap: 11px; margin: -8px 0 12px; color: var(--grey-500); }
.video-intro-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-tint); }
.video-intro-icon svg { width: 14px; height: 14px; fill: currentColor; }
.video-intro > div { display: flex; flex: 1; flex-direction: column; line-height: 1.35; }
.video-intro strong { color: var(--navy); font-size: 12px; }
.video-intro div span { font-size: 11px; }
.video-intro-duration { padding: 5px 9px; border: 1px solid var(--grey-200); border-radius: 7px; background: white; color: var(--grey-500); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.video-player { margin-bottom: 16px; border: 5px solid white; border-radius: 20px; box-shadow: 0 18px 45px rgba(18,48,74,.18); }
.play-overlay { background: radial-gradient(circle at center, rgba(5,28,44,.05), rgba(5,28,44,.45)), linear-gradient(180deg, rgba(5,28,44,.02), rgba(5,28,44,.44)); }
.play-cluster { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.play-btn { width: 76px; height: 76px; border: 0; box-shadow: 0 12px 32px rgba(0,0,0,.22), 0 0 0 8px rgba(255,255,255,.14); }
.play-label { padding: 5px 11px; border-radius: 20px; color: white; background: rgba(8,30,46,.66); font-size: 11px; font-weight: 800; letter-spacing: .035em; backdrop-filter: blur(8px); }
.play-overlay:hover .play-btn { transform: scale(1.08); box-shadow: 0 15px 38px rgba(0,0,0,.26), 0 0 0 11px rgba(255,255,255,.11); }
.video-duration { right: 12px; bottom: 12px; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.video-support { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
.video-support.has-reinforcement { grid-template-columns: minmax(260px,.8fr) minmax(300px,1.2fr); align-items: start; }
.video-support .transcript { margin: 0; border-color: #dbe8ee; box-shadow: 0 8px 24px rgba(18,48,74,.045); }
.video-support .transcript summary { min-height: 70px; padding: 13px 16px; gap: 12px; }
.video-support .transcript summary::before { display: none; }
.transcript-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 10px; color: var(--brand-dark); background: var(--brand-tint); font-size: 19px; line-height: 1; }
.transcript-summary-copy { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.transcript-summary-copy strong { color: var(--navy); font-size: 13px; }
.transcript-summary-copy small { color: var(--grey-400); font-size: 10.5px; font-weight: 400; }
.transcript-chevron { width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--grey-400); border-bottom: 2px solid var(--grey-400); transform: rotate(45deg); transition: transform .2s ease; }
.video-support .transcript[open] .transcript-chevron { transform: rotate(-135deg); }
.video-support .transcript p { padding: 3px 20px 20px; color: var(--grey-500); line-height: 1.75; }
.video-reinforcement { position: relative; margin: 0; padding: 19px 20px; border-color: #d8e9e6; background: linear-gradient(145deg, #f7fcfb, white); box-shadow: 0 8px 24px rgba(18,48,74,.045); }
.video-reinforcement::after { content: ''; position: absolute; right: 16px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(0,127,123,.1); }
.reinforcement-kicker { display: block; margin-bottom: 4px; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.video-reinforcement h3 { color: var(--navy); }
.video-reinforcement li::marker { color: var(--teal); }

@media (max-width: 720px) {
  .video-support.has-reinforcement { grid-template-columns: 1fr; }
  .video-player { border-width: 3px; border-radius: 15px; }
  .play-btn { width: 62px; height: 62px; }
}

/* ================= cards ================= */
.intro { margin-bottom: 20px; color: var(--grey-500); font-size: 14.5px; line-height: 1.65; }
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.static-card { padding: 20px 22px; margin-bottom: 22px; }
.static-card h3 { font-size: 15px; margin-bottom: 12px; color: var(--ink); font-weight: 700; }
.card ul { padding-left: 20px; }
.card li { font-size: 13.5px; line-height: 1.65; margin-bottom: 8px; color: var(--ink); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 20px; }
.reveal-card { transition: border-color .15s ease, box-shadow .15s ease; }
.reveal-card:hover { border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
.card-head {
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 17px 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--navy);
}
.card-head .chev {
  width: 9px; height: 9px;
  border-right: 2px solid var(--grey-400);
  border-bottom: 2px solid var(--grey-400);
  transform: rotate(45deg);
  transition: transform .18s ease, border-color .18s ease;
  flex: none;
}
.reveal-card.open .card-head { color: var(--brand-dark); border-bottom: 1px solid var(--grey-200); }
.reveal-card.open .card-head .chev { transform: rotate(-135deg); border-color: var(--brand); }
.card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 20px;
}
.reveal-card.open .card-body { max-height: 600px; padding: 16px 20px 20px; }

/* Screen 3 — medication-safety reveal cards */
.reveal-progress { display: flex; align-items: center; gap: 14px; margin: -4px 0 18px; padding: 10px 13px; border-radius: 10px; background: rgba(255,255,255,.72); border: 1px solid var(--grey-200); }
.reveal-progress strong { min-width: 130px; color: var(--grey-500); font-size: 11px; letter-spacing: .025em; }
.reveal-progress-track { flex: 1; height: 5px; overflow: hidden; border-radius: 20px; background: var(--grey-200); }
.reveal-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--teal)); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.reveal-progress.complete { border-color: var(--good-line); background: var(--good-bg); }
.reveal-progress.complete strong { color: var(--good); }
.reveal-grid { align-items: start; gap: 14px; }
.reveal-grid .reveal-card { position: relative; min-height: 190px; overflow: hidden; border: 1px solid transparent; background: white; box-shadow: 0 12px 30px rgba(18,48,74,.08); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.reveal-grid .reveal-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--card-accent); z-index: 1; }
.reveal-grid .reveal-card::after { content: ''; position: absolute; right: -42px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: var(--card-wash); pointer-events: none; }
.reveal-card-1 { --card-accent: #dc5c52; --card-wash: rgba(220,92,82,.1); --card-ink: #a83d36; }
.reveal-card-2 { --card-accent: #8a67c7; --card-wash: rgba(138,103,199,.11); --card-ink: #6948a5; }
.reveal-card-3 { --card-accent: #008e8a; --card-wash: rgba(0,142,138,.1); --card-ink: #006d69; }
.reveal-grid .reveal-card:hover { transform: translateY(-5px); border-color: var(--card-accent); box-shadow: 0 18px 38px rgba(18,48,74,.13); }
.reveal-grid .card-head { position: relative; z-index: 2; min-height: 190px; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: 1fr auto; align-items: center; justify-content: initial; padding: 25px 20px 18px; background: transparent; }
.reveal-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--card-ink); background: var(--card-wash); }
.reveal-icon svg { width: 29px; height: 29px; }
.reveal-heading { display: flex; flex-direction: column; gap: 5px; padding-left: 12px; line-height: 1.25; }
.reveal-heading small { color: var(--card-ink); font-size: 9px; letter-spacing: .11em; }
.reveal-heading > span { color: var(--navy); font-size: 15px; }
.reveal-action { grid-column: 1 / -1; align-self: end; display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--grey-100); }
.reveal-action-label { color: var(--card-ink); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.reveal-grid .card-head .chev { margin-right: 3px; border-color: var(--card-accent); }
.reveal-grid .reveal-card.open { min-height: 0; border-color: color-mix(in srgb, var(--card-accent) 45%, white); }
.reveal-grid .reveal-card.open .card-head { min-height: 116px; border-bottom: 0; }
.reveal-grid .reveal-card.open .card-body { position: relative; padding: 0 20px 22px; }
.reveal-body-label { padding-top: 15px; border-top: 1px solid var(--grey-100); color: var(--grey-400); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.reveal-grid .card-body ul { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 0; list-style: none; }
.reveal-grid .card-body li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; margin: 0; color: var(--grey-500); font-size: 12.5px; line-height: 1.5; }
.measure-number { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: var(--card-ink); background: var(--card-wash); font-size: 9px; font-weight: 800; }

@supports not (color: color-mix(in srgb, red, blue)) {
  .reveal-grid .reveal-card.open { border-color: var(--grey-300); }
}

.example-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 10px; }
.example-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  color: var(--card-ink);
  background: var(--card-wash);
  border: 1px solid color-mix(in srgb, var(--card-accent) 30%, white);
  line-height: 1.4;
}

/* ================= resource download card (IPSG 3) ================= */
.resource-card { margin-top: 18px; padding: 20px 22px; }
.resource-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.resource-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--brand-dark); background: var(--brand-tint); }
.resource-icon svg { width: 22px; height: 22px; }
.resource-copy strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14.5px; }
.resource-copy p { margin: 0; color: var(--grey-500); font-size: 12.5px; line-height: 1.55; }
.resource-download { text-decoration: none; }
.resource-meta { color: rgba(255,255,255,.75); font-size: 11px; font-weight: 500; }
.bayanaty-note { margin-top: 14px; }

/* ================= related-course callout (video slides) ================= */
.related-course-card { margin-top: 18px; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.related-course-label { display: block; margin-bottom: 3px; color: var(--teal); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.related-course-copy p { margin: 0; color: var(--grey-500); font-size: 12.5px; line-height: 1.55; max-width: 44ch; }
.related-course-link { flex: none; text-decoration: none; white-space: nowrap; }
.related-course-icon svg { width: 15px; height: 15px; }

/* ================= journey stepper (also used by the sequence puzzle) ================= */
.journey-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
  position: relative;
}
.journey-stage {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid var(--grey-200);
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--grey-500);
  transition: all .15s ease;
}
.journey-stage .num {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-500);
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.journey-stage:hover { border-color: var(--grey-300); color: var(--ink); }
.journey-stage.visited .num { background: var(--good-bg); color: var(--good); }
.journey-stage.visited { color: var(--ink); }
.journey-stage.active { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); }
.journey-stage.active .num { background: var(--white); color: var(--brand-dark); }
.journey-detail {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  min-height: 130px;
  animation: fade-in .2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.journey-detail h3 { margin-bottom: 10px; font-size: 16px; color: var(--ink); }
.journey-detail p { font-size: 14px; line-height: 1.7; color: var(--ink); }
.muted { color: var(--grey-400); font-style: italic; font-size: 13.5px; }

/* ---- sequence puzzle (tap-to-place ordering) ---- */
.sequence-bank { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; min-height: 40px; }
.sequence-slots { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.sequence-slot {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  border: 1px dashed var(--grey-300);
  border-radius: var(--radius-sm);
  background: var(--light-grey);
  color: var(--grey-400);
  cursor: pointer;
}
.sequence-slot:not(.empty) {
  border-style: solid;
  border-color: var(--grey-200);
  background: var(--white);
  color: var(--ink);
}
.sequence-slot.correct { border-color: var(--good-line); background: var(--good-bg); color: #14603a; cursor: default; }
.sequence-slot:disabled { cursor: default; }

/* Screen 5 — guided medication journey */
.guided-journey { margin-bottom: 24px; overflow: hidden; border: 1px solid #d7e5ec; border-radius: 18px; background: white; box-shadow: 0 15px 38px rgba(18,48,74,.08); }
.journey-learning-progress { display: flex; align-items: center; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--grey-100); background: #f8fbfc; }
.journey-learning-progress strong { min-width: 150px; color: var(--grey-500); font-size: 11px; }
.journey-learning-track { flex: 1; height: 5px; overflow: hidden; border-radius: 20px; background: var(--grey-200); }
.journey-learning-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--teal)); transition: width .4s ease; }
.journey-learning-progress.complete { background: var(--good-bg); }
.journey-learning-progress.complete strong { color: var(--good); }
.journey-learning-layout { display: grid; grid-template-columns: minmax(245px,.72fr) minmax(360px,1.28fr); min-height: 440px; }
.journey-pathway { position: relative; display: flex; flex-direction: column; padding: 18px; border-right: 1px solid var(--grey-100); background: linear-gradient(180deg, #f8fbfc, #f3f8fa); }
.journey-pathway::before { content: ''; position: absolute; top: 39px; bottom: 39px; left: 39px; width: 2px; background: #d9e8ee; }
.journey-path-stage { position: relative; z-index: 1; width: 100%; min-height: 48px; display: grid; grid-template-columns: 29px 1fr 20px; gap: 10px; align-items: center; padding: 7px 9px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--grey-500); font-family: inherit; text-align: left; cursor: pointer; transition: background .17s ease, border-color .17s ease, transform .17s ease; }
.journey-path-stage:hover { transform: translateX(3px); border-color: var(--brand-line); background: white; }
.journey-path-stage.active { border-color: var(--brand); background: white; color: var(--navy); box-shadow: 0 6px 15px rgba(18,48,74,.07); }
.journey-stage-number { width: 29px; height: 29px; display: grid; place-items: center; border: 2px solid #d3e2e8; border-radius: 50%; background: white; color: var(--grey-400); font-size: 10px; font-weight: 800; }
.journey-path-stage.visited .journey-stage-number { border-color: var(--teal); color: var(--teal); }
.journey-path-stage.active .journey-stage-number { border-color: var(--brand); background: var(--brand); color: white; }
.journey-stage-copy { display: flex; min-width: 0; flex-direction: column; }
.journey-stage-copy strong { overflow: hidden; color: inherit; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.journey-stage-copy small { color: var(--grey-400); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.journey-stage-status { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: transparent; }
.journey-path-stage.visited .journey-stage-status { background: var(--teal); }
.journey-stage-status svg { width: 11px; height: 11px; }
.journey-learning-detail { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px,5vw,55px); background: radial-gradient(circle at 95% 5%, rgba(0,148,212,.08), transparent 32%), white; animation: fade-in .22s ease; }
.journey-detail-step { margin-bottom: 11px; color: var(--brand-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.journey-learning-detail h3 { max-width: 520px; margin-bottom: 14px; color: var(--navy); font-size: clamp(23px,3vw,32px); line-height: 1.15; letter-spacing: -.025em; }
.journey-learning-detail > p { max-width: 570px; color: var(--grey-500); font-size: 14px; line-height: 1.75; }
.journey-next-stage { align-self: flex-start; margin-top: 22px; }
.journey-end { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding: 12px 14px; border: 1px solid var(--good-line); border-radius: 10px; color: var(--good); background: var(--good-bg); font-size: 12px; font-weight: 700; }
.journey-end svg { width: 17px; height: 17px; flex: none; }

@media (max-width: 720px) {
  .journey-learning-layout { grid-template-columns: 1fr; }
  .journey-pathway { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--grey-100); }
  .journey-pathway::before { display: none; }
  .journey-learning-detail { min-height: 340px; padding: 28px 22px; }
  .journey-stage-copy strong { white-space: normal; }
  .journey-learning-progress { align-items: flex-start; flex-direction: column; gap: 8px; }
  .journey-learning-track { width: 100%; flex: none; }
}

@media (max-width: 430px) {
  .journey-pathway { grid-template-columns: 1fr; }
}

/* ================= quiz ================= */
.practice-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
  background: var(--grey-100);
  padding: 5px 11px;
  border-radius: 20px;
}
.scenario-setup {
  background: var(--light-grey);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
}
.scenario-takeaway { margin-top: 10px; font-size: 13.5px; color: var(--grey-500); line-height: 1.6; }
.question { font-size: 16.5px; font-weight: 700; margin-bottom: 18px; line-height: 1.5; color: var(--ink); }
.q-count { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.q-progress { display: flex; gap: 5px; margin-bottom: 20px; }
.q-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--grey-200); }
.q-progress span.filled { background: var(--brand); }
.q-progress span.current { background: var(--brand); opacity: .55; }

.options { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.option {
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .15s ease, background .15s ease;
  color: var(--ink);
}
.option:hover:not(:disabled) { border-color: var(--brand-line); background: var(--brand-tint); }
.option .marker {
  width: 22px; height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--grey-500);
  background: var(--white);
}
.option.selected { border-color: var(--brand); background: var(--brand-tint); font-weight: 600; }
.option.selected .marker { background: var(--brand); border-color: var(--brand); color: var(--white); }
.option.correct { border-color: var(--good-line); background: var(--good-bg); font-weight: 600; }
.option.correct .marker { background: var(--good); border-color: var(--good); color: var(--white); }
.option.wrong { border-color: var(--bad-line); background: var(--bad-bg); }
.option.wrong .marker { background: var(--bad); border-color: var(--bad); color: var(--white); }
.option:disabled { cursor: default; }
.check-option { padding-left: 16px; }
.check-option input { display: none; }
.check-option .marker { border-radius: 5px; }

.feedback {
  margin-top: 6px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
  display: none;
  animation: fade-in .2s ease;
}
.feedback.good { display: block; background: var(--good-bg); border: 1px solid var(--good-line); color: #14603a; }
.feedback.bad { display: block; background: var(--bad-bg); border: 1px solid var(--bad-line); color: #8f2323; }
.q-nav { display: flex; gap: 10px; justify-content: space-between; }

/* Practice knowledge checks — clinical decision layout */
.scenario-shell { overflow: hidden; margin-bottom: 24px; border: 1px solid #d8e6ed; border-radius: 18px; background: white; box-shadow: 0 16px 42px rgba(18,48,74,.09); }
.scenario-scene { position: relative; display: flex; align-items: flex-start; gap: 15px; padding: 22px 24px; color: white; background: linear-gradient(125deg, #12304a 0%, #174863 62%, #087f92 140%); }
.scenario-scene::after { content: ''; position: absolute; right: -30px; top: -55px; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.025); }
.scenario-icon { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; flex: none; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: #9be4eb; background: rgba(255,255,255,.09); }
.scenario-icon svg { width: 27px; height: 27px; }
.scenario-scene > div { position: relative; z-index: 1; }
.scenario-kicker { display: block; margin-bottom: 4px; color: #90dbe7; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.scenario-scene strong { display: block; margin-bottom: 5px; font-size: 18px; }
.scenario-scene p { max-width: 680px; color: #dbe8ee; font-size: 13.5px; line-height: 1.55; }
.scenario-decision { padding: 24px; }
.decision-label { display: block; margin-bottom: 7px; color: var(--brand-dark); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.scenario-decision .question { max-width: 720px; margin-bottom: 19px; color: var(--navy); font-size: 18px; }
.scenario-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scenario-options .option { position: relative; min-height: 74px; padding: 14px 16px; border: 1px solid #dfe8ed; border-radius: 12px; line-height: 1.45; box-shadow: 0 3px 10px rgba(18,48,74,.035); transition: transform .17s ease, border-color .17s ease, background .17s ease, box-shadow .17s ease; }
.scenario-options .option:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--brand); background: #f5fbfe; box-shadow: 0 8px 18px rgba(0,148,212,.09); }
.scenario-options .option .marker { width: 28px; height: 28px; min-width: 28px; border-radius: 9px; }
.scenario-options .option.selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 2px rgba(0,148,212,.1); }
.scenario-options .option.correct { border-color: var(--good); background: var(--good-bg); }
.scenario-options .option.wrong { border-color: var(--bad); background: var(--bad-bg); }
.scenario-submit { min-width: 190px; justify-content: center; margin-top: 2px; }
.scenario-outcome { display: none; margin: 0 24px 24px; overflow: hidden; border-radius: 14px; animation: result-in .35s cubic-bezier(.2,.7,.3,1); }
.scenario-outcome.good, .scenario-outcome.bad { display: grid; grid-template-columns: 1.35fr .9fr; }
.scenario-outcome.good { border: 1px solid var(--good-line); }
.scenario-outcome.bad { border: 1px solid var(--bad-line); }
.scenario-consequence { display: flex; gap: 13px; padding: 18px; }
.scenario-outcome.good .scenario-consequence { background: var(--good-bg); color: #14603a; }
.scenario-outcome.bad .scenario-consequence { background: var(--bad-bg); color: #8f2323; }
.outcome-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 50%; color: white; font-size: 15px; font-weight: 900; }
.scenario-outcome.good .outcome-icon { background: var(--good); }
.scenario-outcome.bad .outcome-icon { background: var(--bad); }
.outcome-icon svg { width: 16px; height: 16px; }
.scenario-consequence small, .scenario-principle small { display: block; margin-bottom: 3px; font-size: 8.5px; font-weight: 800; letter-spacing: .11em; }
.scenario-consequence strong { display: block; margin-bottom: 5px; font-size: 14px; }
.scenario-consequence p, .scenario-principle p { font-size: 12.5px; line-height: 1.55; }
.scenario-principle { padding: 18px; border-left: 1px solid rgba(18,48,74,.09); background: #f5f8fa; color: var(--grey-500); }
.scenario-principle small { color: var(--brand-dark); }

@media (max-width: 680px) {
  .scenario-scene, .scenario-decision { padding: 18px; }
  .scenario-options { grid-template-columns: 1fr; }
  .scenario-outcome { margin: 0 18px 18px; }
  .scenario-outcome.good, .scenario-outcome.bad { grid-template-columns: 1fr; }
  .scenario-principle { border-top: 1px solid rgba(18,48,74,.09); border-left: 0; }
  .scenario-submit { width: 100%; }
}

/* ================= rights ================= */
.rights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px; margin-bottom: 20px; }
.right-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 13px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  transition: all .15s ease;
}
.right-chip .marker {
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--grey-300);
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
}
.right-chip .marker svg { width: 11px; height: 11px; opacity: 0; transition: opacity .12s ease; }
.right-chip:hover { border-color: var(--brand-line); background: var(--brand-tint); }
.right-chip.checked { background: var(--good-bg); border-color: var(--good-line); color: #14603a; }
.right-chip.checked .marker { background: var(--good); border-color: var(--good); }
.right-chip.checked .marker svg { opacity: 1; stroke: var(--white); }
.btn-administer { width: 100%; justify-content: center; padding: 15px; font-size: 15px; }
.reminder {
  margin-top: 20px;
  font-size: 13px;
  color: var(--grey-500);
  background: var(--light-grey);
  border-left: 3px solid var(--brand);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.6;
}

/* ================= hotspot (spot-the-errors label) ================= */
.doc-mock { margin-bottom: 18px; }
.doc-field {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  text-align: left;
  font-family: inherit;
  padding: 13px 18px;
  border: none;
  border-bottom: 1px solid var(--grey-200);
  background: var(--white);
  cursor: pointer;
}
.doc-field:last-child { border-bottom: none; }
.doc-field:hover:not(:disabled) { background: var(--light-grey); }
.doc-field:disabled { cursor: default; }
.doc-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey-400);
  min-width: 90px;
}
.doc-field-value { font-size: 14px; font-weight: 600; color: var(--ink); font-family: 'Courier New', monospace; }
.doc-field.flagged { background: var(--brand-tint); }
.doc-field.flagged .doc-field-value { text-decoration: underline wavy var(--brand); text-underline-offset: 3px; }
.doc-field.correct-error { background: var(--good-bg); }
.doc-field.correct-error .doc-field-value { text-decoration: underline wavy var(--good); text-underline-offset: 3px; }
.doc-field.missed-error { background: var(--bad-bg); }
.doc-field.missed-error .doc-field-value { text-decoration: underline wavy var(--bad); text-underline-offset: 3px; }
.doc-field.false-positive { background: var(--grey-100); }
.doc-field.false-positive .doc-field-value { text-decoration: line-through; color: var(--grey-400); }
.doc-field-explain { flex-basis: 100%; font-size: 12.5px; font-weight: 400; font-family: inherit; color: var(--grey-500); line-height: 1.55; margin-top: 2px; }

/* ================= takeaways ================= */
.closing {
  margin-top: 20px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

/* Key takeaways — visual medication pathway */
.summary-map { margin-bottom: 26px; overflow: hidden; border: 1px solid #d8e6ed; border-radius: 18px; background: white; box-shadow: 0 16px 40px rgba(18,48,74,.08); }
.summary-map-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--grey-100); background: #f7fafb; }
.summary-map-kicker { color: var(--brand-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.summary-map-head strong { color: var(--grey-500); font-size: 11px; }
.summary-map-head.complete { background: var(--good-bg); }
.summary-map-head.complete strong { color: var(--good); }
.summary-nodes { position: relative; display: grid; grid-template-columns: repeat(8,1fr); padding: 23px 16px 19px; background: linear-gradient(180deg, #f9fcfd, white); }
.summary-nodes::before { content: ''; position: absolute; top: 44px; right: 6%; left: 6%; height: 2px; background: #d9e7ed; }
.summary-node { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 7px; padding: 0 3px; border: 0; background: transparent; color: var(--grey-400); font-family: inherit; cursor: pointer; }
.summary-node-number { width: 43px; height: 43px; display: grid; place-items: center; border: 2px solid #d5e4ea; border-radius: 50%; background: white; font-size: 11px; font-weight: 800; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.summary-node strong { overflow: hidden; width: 100%; font-size: 9px; letter-spacing: .04em; text-align: center; text-overflow: ellipsis; }
.summary-node:hover .summary-node-number { transform: translateY(-3px); border-color: var(--brand); }
.summary-node.reviewed { color: var(--teal); }
.summary-node.reviewed .summary-node-number { border-color: var(--teal); }
.summary-node.active .summary-node-number { border-color: var(--brand); background: var(--brand); color: white; box-shadow: 0 0 0 6px rgba(0,148,212,.1); animation: node-pop .42s cubic-bezier(.34,1.56,.64,1); }
@keyframes node-pop { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
.summary-node-check { position: absolute; top: -2px; left: calc(50% + 10px); width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--teal); opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .2s ease; }
.summary-node.reviewed .summary-node-check { opacity: 1; transform: scale(1); }
.summary-node-check svg { width: 10px; height: 10px; }
.summary-detail { display: grid; grid-template-columns: 76px 1fr; gap: 21px; align-items: center; min-height: 190px; padding: 28px 32px; border-top: 1px solid var(--grey-100); background: radial-gradient(circle at 95% 0, rgba(0,148,212,.08), transparent 32%), white; }
.summary-detail.flip-in { animation: card-flip-in .42s cubic-bezier(.2,.7,.3,1); transform-origin: 50% 0%; }
@keyframes card-flip-in { 0% { opacity: 0; transform: perspective(700px) rotateX(-90deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: perspective(700px) rotateX(0deg); } }
.summary-detail-number { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; color: white; background: linear-gradient(145deg, var(--navy), var(--brand)); font-size: 22px; font-weight: 800; box-shadow: 0 10px 24px rgba(0,120,172,.18); }
.summary-detail small { display: block; margin-bottom: 4px; color: var(--brand-dark); font-size: 8.5px; font-weight: 800; letter-spacing: .12em; }
.summary-detail h3 { margin-bottom: 6px; color: var(--navy); font-size: 24px; letter-spacing: -.02em; }
.summary-detail p { color: var(--grey-500); font-size: 14px; line-height: 1.65; }
.summary-complete { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; margin-top: 5px; padding: 12px 14px; border: 1px solid var(--good-line); border-radius: 10px; color: var(--good); background: var(--good-bg); font-size: 12px; font-weight: 700; }
.summary-complete svg { width: 17px; height: 17px; flex: none; }

/* Final assessment experience */
.assessment-brief { display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; margin-bottom: 18px; padding: 20px 22px; border-radius: 16px; color: white; background: linear-gradient(125deg, var(--navy), #174e68); box-shadow: 0 14px 34px rgba(18,48,74,.15); }
.assessment-brief-icon { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; color: #8edce7; background: rgba(255,255,255,.08); }
.assessment-brief-icon svg { width: 28px; height: 28px; }
.assessment-brief > div:nth-child(2) { min-width: 0; }
.assessment-brief small { display: block; color: #8edce7; font-size: 8.5px; font-weight: 800; letter-spacing: .12em; }
.assessment-brief strong { display: block; margin: 3px 0 4px; font-size: 16px; }
.assessment-brief p { max-width: 560px; color: #d8e7ed; font-size: 11.5px; line-height: 1.5; }
.assessment-criteria { display: flex; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; }
.assessment-criteria span { min-width: 75px; padding: 9px 12px; text-align: center; }
.assessment-criteria span + span { border-left: 1px solid rgba(255,255,255,.14); }
.assessment-criteria strong { margin: 0; font-size: 17px; }
.assessment-criteria small { color: #b8d2dc; letter-spacing: 0; text-transform: none; }
.assessment-stage { padding: 24px; border: 1px solid #d8e6ed; border-radius: 17px; background: white; box-shadow: 0 12px 32px rgba(18,48,74,.07); }
.assessment-question-head { display: flex; justify-content: space-between; align-items: center; }
.assessment-answered { color: var(--grey-400); font-size: 10.5px; font-weight: 700; }
.assessment-stage .q-progress { gap: 7px; margin: 3px 0 24px; }
.assessment-stage .q-progress button { width: 30px; height: 30px; flex: none; border: 1px solid var(--grey-200); border-radius: 8px; background: var(--light-grey); color: var(--grey-400); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.assessment-stage .q-progress button.filled { border-color: #acd9d5; background: #edf8f7; color: var(--teal); }
.assessment-stage .q-progress button.current { border-color: var(--brand); background: var(--brand); color: white; box-shadow: 0 0 0 4px rgba(0,148,212,.1); }
.assessment-stage .question { max-width: 720px; color: var(--navy); font-size: 19px; }
.assessment-options .option { min-height: 57px; border-radius: 11px; }
.assessment-nav { padding-top: 5px; border-top: 1px solid var(--grey-100); }
.assessment-result { position: relative; overflow: hidden; padding: 32px; box-shadow: 0 16px 38px rgba(18,48,74,.08); }
.assessment-result::after { content: ''; position: absolute; right: -50px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.33); }
.assessment-result > * { position: relative; z-index: 1; }
.result-label { display: block; margin-bottom: 4px; font-size: 8.5px; font-weight: 800; letter-spacing: .12em; }
.review-head { display: flex; flex-direction: column; margin: 28px 0 13px; }
.review-head span { color: var(--brand-dark); font-size: 8.5px; font-weight: 800; letter-spacing: .12em; }
.review-head strong { color: var(--navy); font-size: 17px; }
.review { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.review-item { min-height: 120px; padding: 16px 17px; border-left-width: 1px; box-shadow: 0 5px 16px rgba(18,48,74,.04); }
.review-item.good { border-top: 3px solid var(--good); }
.review-item.bad { border-top: 3px solid var(--bad); }
.assessment-retry { min-width: 190px; justify-content: center; }

@media (max-width: 760px) {
  .summary-nodes { grid-template-columns: repeat(4,1fr); row-gap: 20px; }
  .summary-nodes::before { display: none; }
  .summary-detail { grid-template-columns: 54px 1fr; gap: 14px; padding: 23px 18px; }
  .summary-detail-number { width: 52px; height: 52px; border-radius: 15px; font-size: 16px; }
  .assessment-brief { grid-template-columns: 44px 1fr; padding: 17px; }
  .assessment-brief-icon { width: 42px; height: 42px; }
  .assessment-criteria { grid-column: 1 / -1; }
  .assessment-criteria span { flex: 1; }
  .assessment-stage { padding: 18px; }
  .assessment-stage .q-progress { overflow-x: auto; padding: 4px; }
  .review { grid-template-columns: 1fr; }
}

/* ================= assessment results ================= */
.result {
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  animation: result-in .4s cubic-bezier(.2, .7, .3, 1);
}
@keyframes result-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.result.good { background: var(--good-bg); border: 1px solid var(--good-line); }
.result.bad { background: var(--bad-bg); border: 1px solid var(--bad-line); }
.result-gauge {
  width: 80px; height: 80px; min-width: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.result.good .result-gauge { background: conic-gradient(var(--good) var(--pct, 100%), rgba(28,138,83,.16) 0); }
.result.bad .result-gauge { background: conic-gradient(var(--bad) var(--pct, 50%), rgba(214,69,69,.16) 0); }
.result-gauge span {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.result h3 { margin-bottom: 6px; font-size: 18px; }
.result.good h3 { color: #14603a; }
.result.bad h3 { color: #8f2323; }
.result p { font-size: 14px; color: var(--ink); }

.review { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.review-item { background: var(--white); border: 1px solid var(--grey-200); border-left-width: 3px; border-radius: var(--radius-sm); padding: 13px 16px; }
.review-item.good { border-left-color: var(--good); }
.review-item.bad { border-left-color: var(--bad); }
.review-q { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; line-height: 1.45; color: var(--ink); }
.review-fb { font-size: 13px; color: var(--grey-500); line-height: 1.5; }

/* ================= cover screen ================= */
.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 24px;
}
.cover[hidden] { display: none; }
.cover-card { max-width: 480px; width: 100%; text-align: center; animation: stage-in .35s cubic-bezier(.2, .7, .3, 1); }
.cover-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.cover-title { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 16px; }
.cover-badge {
  display: inline-block;
  background: var(--grey-100);
  color: var(--grey-500);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 26px;
}
.cover-objectives-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.cover-objectives { list-style: none; text-align: left; margin-bottom: 30px; }
.cover-objectives li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-100);
}
.cover-objectives li:last-child { border-bottom: none; }
.cover-objectives li svg { width: 15px; height: 15px; min-width: 15px; margin-top: 3px; color: var(--brand); }
.cover-begin { padding: 13px 32px; font-size: 15px; }

/* ================= small screens ================= */
@media (max-width: 760px) {
  .layout { display: block; height: 100vh; min-height: 0; }
  .main { height: 100vh; }
  .sidebar { position: fixed; z-index: 80; inset: 0 auto 0 0; width: min(88vw, 340px); min-width: 0; max-height: none; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 55px rgba(18,48,74,.2); }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-close { display: block; position: absolute; right: 12px; top: 12px; }
  .menu-scrim { position: fixed; z-index: 70; inset: 0; background: rgba(9,28,43,.52); }
  .mobile-header { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 16px; border-bottom: 1px solid var(--grey-200); background: white; }
  .mobile-header div { min-width: 0; display: flex; flex: 1; flex-direction: column; }
  .mobile-header div span { color: var(--grey-400); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
  .mobile-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); font-size: 13px; }
  .mobile-progress { color: var(--brand-dark); font-size: 12px; font-weight: 800; }
  .stage { padding: 26px 18px 42px; }
  .nav-bar { padding: 10px 14px; }
  .nav-hint { display: none; }
  .nav-bar .btn { padding: 9px 13px; font-size: 12px; }
  .cover-title { font-size: 23px; }
  .slide-title { font-size: 22px; }
  .result { flex-direction: column; text-align: center; }
  .cover-shell { min-height: 100%; display: flex; flex-direction: column-reverse; }
  .cover-visual { min-height: 34vh; background-position: 62% center; }
  .cover-card { padding: 28px 22px 34px; }
  .cover-title { font-size: 32px; }
  .cover-objectives { display: none; }
  .cover-objectives-label { display: none; }
  .bedside-board { grid-template-columns: 1fr; }
}

/* Final cover overrides live after the legacy cover block. */
.cover { padding: 0; background: var(--navy); }
.cover-shell { width: 100%; height: 100%; min-height: 660px; display: grid; grid-template-columns: minmax(390px, .9fr) 1.45fr; background: white; }
.cover .cover-card { max-width: none; width: auto; padding: clamp(42px, 6vw, 96px); text-align: left; display: flex; flex-direction: column; justify-content: center; }
.cover-visual { min-height: 100%; background-size: cover; background-position: 58% center; }
.cover .cover-title { max-width: 620px; color: var(--navy); font-size: clamp(34px, 4vw, 58px); letter-spacing: -.045em; line-height: 1.03; margin-bottom: 18px; }
.cover-lede { max-width: 560px; color: var(--grey-500); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.cover .cover-badge, .cover .cover-begin { align-self: flex-start; }
.cover .cover-objectives { max-width: 570px; margin-bottom: 24px; }
.cover .cover-objectives li { font-size: 13px; padding: 6px 0; }

@media (max-width: 760px) {
  .cover-shell { min-height: 100%; display: flex; flex-direction: column; }
  .cover-visual { order: -1; min-height: 34vh; background-position: 62% center; }
  .cover .cover-card { padding: 28px 22px 34px; }
  .cover .cover-title { font-size: 32px; }
  .cover .cover-objectives, .cover .cover-objectives-label { display: none; }
}
