/* ── Faith & AI — Design System (IMB-inspired) ──────────────────────────── */
/* Fonts: Plus Jakarta Sans (like Soleil), Source Sans 3 for body           */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Source+Sans+3:wght@300;400;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ── Brand palette ── */
  --navy:      #1C2B4A;   /* primary dark — slightly warmer than IMB navy */
  --navy-deep: #111E35;   /* darkest, for hero/headers */
  --orange:    #EE7C22;   /* IMB orange — primary CTA & everyday track */
  --teal:      #237D81;   /* IMB teal — leaders track */
  --green:     #16a34a;

  /* ── Semantic aliases (for existing templates) ── */
  --ink:       var(--navy);
  --ink-deep:  var(--navy-deep);
  --accent:    var(--teal);
  --warm:      var(--orange);
  --black:     #0D1117;

  /* ── Surfaces ── */
  --white:     #FFFFFF;
  --bg:        #F4F5F7;   /* clean neutral — editorial, like Lausanne */
  --bg-warm:   #F8F9FB;
  --muted:     #4B5563;
  --border:    rgba(134,134,134,0.16);

  /* ── Tinted surfaces ── */
  --accent-light: rgba(35,125,129,0.09);
  --accent-mid:   rgba(35,125,129,0.22);
  --warm-light:   rgba(238,124,34,0.08);

  /* ── Shadows ── */
  --shadow-sm:  0 1px 3px rgba(28,43,74,0.07);
  --shadow-md:  0 4px 12px rgba(28,43,74,0.10);
  --shadow-lg:  0 8px 28px rgba(28,43,74,0.13);
  --shadow-orange: 0 8px 24px rgba(238,124,34,0.22);
  --shadow-teal:   0 8px 24px rgba(35,125,129,0.22);

  /* ── Radii ── */
  --radius:    12px;
  --radius-lg: 20px;
  --radius-pill: 999px;   /* IMB-style pill buttons */
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--navy);
  font-size: 1.0625rem;
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-deep);
}
p  { line-height: 1.85; margin-bottom: 0; }
a  { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Keyboard focus visibility (a11y) ──────────────────────────────────── */
/* Only shows for keyboard/AT users; mouse focus is unaffected via :focus-visible */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.filter-tab:focus-visible,
.scale-btn:focus-visible,
.tool-btn:focus-visible,
.sidebar-item:focus-visible,
.sidebar-subitem:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
/* On dark surfaces (nav sidebar, hero), use a light ring for contrast */
.course-sidebar a:focus-visible,
.course-sidebar button:focus-visible,
.sidebar-item:focus-visible,
.sidebar-subitem:focus-visible {
  outline-color: #7fd4d7;
}

/* ── Layout ── */
.container      { max-width: 960px;  margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section        { padding: 5rem 0; }

/* ── Sticky Nav ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid rgba(134,134,134,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(28,43,74,0.06);
}
.nav-inner {
  max-width: none;
  margin: 0;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--orange); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-user-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  display: none;
}
.nav-user-name.visible { display: block; }

@media (max-width: 680px) { .nav-links { display: none; } }

/* ── Buttons (pill-shaped — IMB-style) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s, color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

/* Primary = orange (IMB-style CTA) */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #d46d1a;
  border-color: #d46d1a;
  box-shadow: var(--shadow-orange);
  color: var(--white);
}

/* Warm = orange alias */
.btn-warm {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-warm:hover {
  background: #d46d1a;
  border-color: #d46d1a;
  box-shadow: var(--shadow-orange);
  color: var(--white);
}

/* Secondary = teal (leaders accent) */
.btn-secondary {
  background: var(--white);
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}

/* Ghost = outline navy */
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(28,43,74,0.25);
}
.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--orange);
  color: var(--orange);
}

.btn-google {
  background: var(--white);
  color: #111;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  gap: 0.6rem;
}
.btn-google:hover { background: #e8f0fe; }

.btn-sm  { font-size: 0.8rem;  padding: 0.45rem 1.1rem; }
.btn-lg  { font-size: 1rem;    padding: 0.9rem 2.25rem; }
.btn-full { width: 100%; white-space: normal; line-height: 1.3; }

/* Sign-in gets orange treatment */
#nav-sign-in {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
#nav-sign-in:hover {
  background: #d46d1a;
  border-color: #d46d1a;
  box-shadow: var(--shadow-orange);
  transform: none;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}
.badge-beginner     { background: #dcfce7; color: #15803d; }
.badge-intermediate { background: var(--accent-light); color: var(--teal); }
.badge-expert       { background: rgba(28,43,74,0.08); color: var(--navy); }
.badge-leaders      { background: var(--accent-light); color: var(--teal); }
.badge-everyday     { background: var(--warm-light); color: var(--orange); }
.badge-complete     { background: #dcfce7; color: #15803d; }
.badge-lab          { background: rgba(238,124,34,0.12); color: #c05a10; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-orange);
  transform: translateY(-3px);
}
.card-teal  { border-top: 3px solid var(--teal); }
.card-warm  { border-top: 3px solid var(--orange); }
.card-green { border-top: 3px solid var(--green); }

/* ── Progress bar ── */
.progress-bar-wrap {
  background: var(--border);
  border-radius: var(--radius-pill);
  height: 7px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--teal);
  transition: width 0.6s ease;
}
.progress-bar-fill.warm { background: var(--orange); }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Timeline dots ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item    { position: relative; margin-bottom: 1rem; }
.timeline-dot {
  position: absolute;
  left: -2rem; top: 0.25rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  z-index: 1;
}
.timeline-dot.done    { background: var(--green); border-color: var(--green); }
.timeline-dot.current { background: var(--teal);  border-color: var(--teal);  box-shadow: 0 0 0 4px var(--accent-light); }
.timeline-dot.locked  { background: var(--border); border-color: var(--border); }

/* ── Module card ── */
.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.module-card:hover       { box-shadow: var(--shadow-orange); transform: translateY(-2px); }
.module-card.locked      { opacity: 0.6; pointer-events: none; }
.module-card.current     { border-left: 3px solid var(--teal); }
.module-card-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--teal);
  flex-shrink: 0;
}
.module-card-body  { flex: 1; }
.module-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1rem; color: var(--navy-deep); margin-bottom: 0.25rem;
}
.module-card-desc  { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.module-card-meta  { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.5rem; flex-wrap: wrap; }
.module-card-time  { font-size: 0.78rem; color: var(--muted); }
.module-card-action { flex-shrink: 0; }

/* ── Lab component ── */
.lab-component {
  background: linear-gradient(135deg, #fdf8f4 0%, #eef6f6 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}
.lab-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.lab-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.lab-title    { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--navy-deep); }
.lab-subtitle { font-size: 0.85rem; color: var(--muted); }

.tool-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tool-btn {
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tool-btn:hover  { border-color: var(--teal);  color: var(--teal); }
.tool-btn.active { border-color: var(--teal); background: var(--teal); color: var(--white); }

.lab-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 0.5rem;
}

.prompt-box {
  background: var(--navy-deep);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-family: 'Source Sans 3', monospace;
  font-size: 0.9rem; line-height: 1.7;
  position: relative; margin-bottom: 1.25rem;
}
.copy-btn {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.copy-btn:hover  { background: rgba(255,255,255,0.2); color: #fff; }
.copy-btn.copied { background: var(--green); border-color: var(--green); color: #fff; }

.notice-list { list-style: none; margin-bottom: 1.5rem; }
.notice-list li {
  display: flex; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted); margin-bottom: 0.4rem; line-height: 1.6;
}
.notice-list li::before { content: '→'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

.reflection-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem; color: var(--navy);
  background: var(--white);
  resize: vertical; transition: border-color 0.2s;
  margin-bottom: 1rem;
}
.reflection-textarea:focus { outline: none; border-color: var(--teal); }

.btn-complete {
  width: 100%; padding: 1rem; font-size: 1rem;
  border-radius: var(--radius-pill);
  background: var(--green); color: var(--white); border: none;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-complete:hover { background: #15803d; transform: translateY(-1px); }
.btn-complete.done  { background: #bbf7d0; color: #15803d; pointer-events: none; }

/* ── Video placeholder ── */
.video-placeholder {
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem; color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  position: relative; overflow: hidden;
}
.video-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(35,125,129,0.18) 0%, transparent 70%);
}
.video-play-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}
.video-label    { font-size: 0.85rem; font-weight: 600; text-align: center; padding: 0 1rem; }
.video-duration { font-size: 0.78rem; opacity: 0.5; }

/* ── Stat bars (scenario) ── */
.stat-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.stat-bar-row { display: flex; align-items: center; gap: 1rem; }
.stat-bar-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem; font-weight: 700; color: var(--navy); width: 100px; flex-shrink: 0;
}
.stat-bar-track {
  flex: 1; background: var(--border); border-radius: var(--radius-pill); height: 8px; overflow: hidden;
}
.stat-bar-fill {
  height: 100%; border-radius: var(--radius-pill); background: var(--teal); transition: width 0.6s ease;
}
.stat-bar-fill.discernment { background: #7c3aed; }
.stat-bar-fill.boldness    { background: var(--orange); }
.stat-bar-fill.humility    { background: var(--green); }
.stat-bar-fill.integrity   { background: var(--teal); }
.stat-bar-fill.datasafety   { background: #1477a8; }
.stat-bar-fill.productivity { background: var(--orange); }
.stat-bar-fill.judgment     { background: #7c3aed; }
.stat-bar-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem; font-weight: 700; color: var(--muted); width: 32px; text-align: right;
}

/* ── Assessment screens ── */
.assessment-header { text-align: center; padding: 2.5rem 1.5rem 1.5rem; }
.question-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.question-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 1rem;
}
.scale-row { display: flex; gap: 0.5rem; }
.scale-btn {
  flex: 1; aspect-ratio: 1; max-width: 52px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.9rem; color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.scale-btn:hover  { border-color: var(--teal); color: var(--teal); }
.scale-btn.active { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ── Profile card ── */
.profile-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem; color: var(--white); text-align: center;
}
.profile-tier {
  display: inline-block;
  background: rgba(35,125,129,0.2);
  border: 1px solid rgba(35,125,129,0.4);
  color: #a7d4d5;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem;
}
.profile-name { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.profile-desc { font-size: 0.95rem; opacity: 0.75; line-height: 1.7; max-width: 480px; margin: 0 auto; }

/* ── Circular progress ring ── */
.ring-wrap  { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.ring-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.ring-pct   { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; font-weight: 800; fill: var(--navy-deep); }

/* ── Coaching SSE box ── */
.coaching-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-height: 120px;
  font-size: 0.9rem; line-height: 1.8; color: var(--navy);
}
.coaching-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--teal);
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom; margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Prompt library ── */
.prompt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.prompt-card:hover { box-shadow: var(--shadow-orange); transform: translateY(-2px); }
.prompt-card-locked { opacity: 0.62; }
.prompt-card-locked:hover { box-shadow: var(--shadow-sm); transform: none; }
.prompt-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem; font-weight: 700; color: var(--navy-deep);
}
.prompt-card-desc  { font-size: 0.9rem; color: var(--muted); line-height: 1.65; flex: 1; }
.prompt-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-top: 0.25rem;
}
.prompt-tool-tag {
  font-size: 0.75rem; color: var(--muted);
  background: var(--bg); padding: 0.2rem 0.55rem; border-radius: var(--radius-pill);
}

.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-tab {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.filter-tab:hover  { border-color: var(--teal); color: var(--teal); }
.filter-tab.active { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ── Certificate page ── */
.cert-wrap {
  max-width: 760px; margin: 3rem auto;
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 3rem; text-align: center;
  box-shadow: var(--shadow-teal); position: relative; overflow: hidden;
}
.cert-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(35,125,129,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.cert-seal {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px rgba(35,125,129,0.35);
}
.cert-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.cert-name  { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.25rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 0.5rem; }
.cert-track { font-size: 1.1rem; color: var(--muted); margin-bottom: 0.25rem; }
.cert-date  { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.cert-code  {
  font-family: 'Source Sans 3', monospace;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--teal); background: var(--accent-light);
  padding: 0.4rem 1rem; border-radius: var(--radius); display: inline-block; margin-bottom: 2rem;
}

/* ── Admin table ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  text-align: left; padding: 0.75rem 1rem;
  background: var(--bg); border-bottom: 2px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--muted);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--navy); }
.data-table tr:hover td { background: var(--bg); }

/* ── Form elements ── */
.form-group   { margin-bottom: 1.25rem; }
.form-label   {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem; color: var(--navy); background: var(--white);
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--teal);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ── Skill level picker ── */
.level-picker {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin: 1.5rem 0;
}
.level-btn {
  padding: 1.25rem; border: 2px solid var(--border);
  border-radius: var(--radius-lg); background: var(--white);
  cursor: pointer; text-align: center; transition: all 0.15s;
}
.level-btn:hover  { border-color: var(--teal); }
.level-btn.active { border-color: var(--teal); background: var(--accent-light); }
.level-btn .level-name {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 0.95rem; color: var(--navy-deep); margin-bottom: 0.25rem;
}
.level-btn .level-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--navy-deep); color: var(--white);
  padding: 0.65rem 1.5rem; border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.875rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  z-index: 9999; white-space: nowrap;
}
.toast.show { opacity: 1; }

/* ── Hero ── */
.hero-dark {
  background: var(--navy-deep);
  position: relative; overflow: hidden;
}
/* Subtle texture/pattern overlay */
.hero-dark::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% -10%, rgba(238,124,34,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 110%, rgba(35,125,129,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 10;
  padding: 6rem 1.5rem 5rem;
  text-align: center; max-width: 820px; margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(238,124,34,0.15);
  color: #ffa857;
  border: 1px solid rgba(238,124,34,0.3);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1.1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.75rem;
}
.hero-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800; color: var(--white);
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.hero-h1 em { color: #ffa857; font-style: normal; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82); line-height: 1.85;
  margin-bottom: 2.75rem; max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.hero-ctas {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ── Track cards ── */
.track-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin: 2rem 0;
}
@media (max-width: 640px) { .track-grid { grid-template-columns: 1fr; } }

.track-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.track-card:hover        { transform: translateY(-4px); }
.track-card.leaders      { border-top: 4px solid var(--teal); }
.track-card.leaders:hover { box-shadow: var(--shadow-teal); }
.track-card.everyday      { border-top: 4px solid var(--orange); }
.track-card.everyday:hover { box-shadow: var(--shadow-orange); }
.track-card-icon  { font-size: 2rem; margin-bottom: 0.875rem; }
.track-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 0.5rem;
}
.track-card-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }

/* ── Social proof strip ── */
.social-strip {
  background: var(--white);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.5rem;
  text-align: center; font-size: 0.95rem; color: var(--muted);
}
.social-strip strong { color: var(--navy); }

/* ── Value prop / social proof cards ── */
.value-prop-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.value-prop-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.value-prop-quote {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--navy);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.value-prop-quote::before { content: '\201C'; }
.value-prop-quote::after  { content: '\201D'; }
.value-prop-source {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  font-style: normal;
}
.value-prop-scenario {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--navy);
  margin-bottom: 1rem;
}
.value-prop-stat {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.value-prop-stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Share hook (readiness result) ── */
.share-hook {
  background: linear-gradient(135deg, var(--warm-light) 0%, #fff8f0 100%);
  border: 1px solid rgba(238,124,34,0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin-top: 2rem;
}
.share-hook h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-deep);
  margin-bottom: 0.5rem;
}
.share-hook p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.share-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.share-btn-twitter {
  background: #000;
  color: #fff;
  border-color: #000;
}
.share-btn-twitter:hover {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.share-btn-copy {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(28,43,74,0.2);
}
.share-btn-copy:hover {
  background: var(--bg);
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Footer ── */
.site-footer {
  background: #1A365D; /* matches the IMB Innovation logo badge so it blends seamlessly */
  padding: 3rem 1.5rem; text-align: center;
}
.site-footer p { color: rgba(255,255,255,0.3); font-size: 0.82rem; }
.site-footer a { color: rgba(255,255,255,0.5); }
.site-footer a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-links {
  display: flex; gap: 1.5rem; justify-content: center;
  list-style: none; margin-bottom: 1rem; flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.82rem; font-weight: 600;
}

/* ── Legal pages ── */
.legal-body { font-size: 0.95rem; line-height: 1.8; color: var(--ink); }
.legal-body h2 { font-size: 1.1rem; font-weight: 800; color: var(--ink-deep); margin: 2rem 0 0.6rem; }
.legal-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 1.25rem 0 0.4rem; }
.legal-body p  { margin-bottom: 0.9rem; }
.legal-body ul { padding-left: 1.4rem; margin-bottom: 0.9rem; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-body a  { color: var(--accent); }

/* ── Glossary ── */
.glossary-az {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.glossary-az a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem; font-weight: 700; color: var(--muted);
  text-decoration: none; transition: all 0.15s;
}
.glossary-az a:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.glossary-letter {
  font-size: 1.4rem; font-weight: 800; color: var(--accent);
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--accent-mid);
  scroll-margin-top: 90px;
}
.glossary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  margin-bottom: 0.875rem;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
  transition: background 0.4s, border-color 0.4s;
}
.glossary-card:target {
  background: var(--warm-light);
  border-color: rgba(238,124,34,0.45);
}
.glossary-term {
  font-size: 1.05rem; font-weight: 800; color: var(--ink-deep); margin-bottom: 0.4rem;
}
.glossary-plain { font-size: 0.95rem; color: var(--ink); line-height: 1.75; margin-bottom: 0.6rem; }
.glossary-example {
  font-size: 0.875rem; color: var(--muted); line-height: 1.7;
  background: var(--bg); border-left: 3px solid var(--accent-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.6rem 0.9rem;
}
.glossary-example strong { color: var(--accent); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── FAQ (Honest Questions) ── */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.875rem;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
  overflow: hidden;
}
.faq-item[open] { border-left: 4px solid var(--warm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; font-weight: 800; color: var(--ink-deep);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem; font-weight: 400; color: var(--accent);
  flex-shrink: 0; line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:hover { color: var(--accent); }
.faq-body { padding: 0 1.5rem 1.4rem; font-size: 0.95rem; color: var(--ink); line-height: 1.85; }
.faq-body p { margin-bottom: 0.9rem; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-verse {
  background: var(--accent-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem; font-style: italic; color: var(--ink);
  margin: 0.9rem 0;
}

/* ── Playground chat ── */
.pg-panel {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.pg-messages {
  flex: 1; overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.875rem;
  min-height: 200px;
}
.pg-msg {
  max-width: 85%;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-lg);
  font-size: 0.95rem; line-height: 1.7;
  white-space: pre-wrap; word-wrap: break-word;
}
.pg-msg-user {
  align-self: flex-end;
  background: var(--teal); color: var(--white);
  border-bottom-right-radius: 4px;
}
.pg-msg-ai {
  align-self: flex-start;
  background: var(--bg); color: var(--ink);
  border-bottom-left-radius: 4px;
}
.pg-msg-system {
  align-self: center;
  background: var(--warm-light); color: #92400e;
  font-size: 0.85rem; text-align: center;
  border-radius: var(--radius);
}
.pg-input-row {
  display: flex; gap: 0.6rem; align-items: flex-end;
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
}
.pg-input {
  flex: 1; resize: none;
  min-height: 46px; max-height: 140px;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem; color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s;
}
.pg-input:focus { outline: none; border-color: var(--teal); }
.pg-send {
  flex-shrink: 0;
  height: 46px; padding: 0 1.4rem;
  border: none; border-radius: var(--radius-pill);
  background: var(--orange); color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.pg-send:hover:not(:disabled) { background: #d46d1a; transform: translateY(-1px); }
.pg-send:disabled { opacity: 0.5; cursor: default; }
.pg-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0 1.5rem 1rem; }
.pg-chip {
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--accent-mid); border-radius: var(--radius-pill);
  background: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem; font-weight: 600; color: var(--teal);
  cursor: pointer; transition: all 0.15s;
}
.pg-chip:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pg-guide {
  background: linear-gradient(135deg, var(--accent-light) 0%, #f0fafa 100%);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.5rem;
}
.pg-guide-step {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal); margin-bottom: 0.2rem;
}
.pg-guide-text { font-size: 0.9rem; color: var(--ink); line-height: 1.65; }
.pg-note { font-size: 0.8rem; color: var(--muted); text-align: center; padding: 0.6rem 1rem 0.875rem; }

/* ── Related prompts (module pages) ── */
.related-prompts {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.related-prompt-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.related-prompt-row:last-child { border-bottom: none; padding-bottom: 0; }
.related-prompt-body { flex: 1; min-width: 0; }
.related-prompt-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem; font-weight: 700; color: var(--ink-deep); margin-bottom: 0.2rem;
}
.related-prompt-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.related-prompt-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 640px) {
  .related-prompt-row { flex-direction: column; gap: 0.6rem; }
}

/* ── Skill level indicator ── */
.skill-indicator {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08); padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.15);
}
.skill-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
}
.skill-dot.beginner     { background: var(--green); }
.skill-dot.intermediate { background: var(--teal); }
.skill-dot.expert       { background: var(--orange); }
.skill-dot.exploring    { background: var(--green); }
.skill-dot.building     { background: var(--teal); }
.skill-dot.leading      { background: var(--orange); }

/* ── Choice cards (scenario) ── */
.choice-grid { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.choice-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  cursor: pointer; transition: all 0.2s; text-align: left;
  font-family: 'Source Sans 3', sans-serif;
}
.choice-card:hover    { border-color: var(--teal); box-shadow: var(--shadow-md); }
.choice-card.selected { border-color: var(--teal); background: var(--accent-light); }
.choice-letter {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem; font-weight: 700;
  align-items: center; justify-content: center;
  margin-right: 0.75rem; flex-shrink: 0;
}

/* ── Readiness result ── */
.readiness-level-badge {
  display: inline-block; padding: 0.4rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.level-unaware    { background: #fee2e2; color: #991b1b; }
.level-curious    { background: #fff7ed; color: #9a3412; }
.level-developing { background: var(--warm-light); color: #92400e; }
.level-discerning { background: var(--accent-light); color: #0f5c5f; }
.level-steward    { background: #dcfce7; color: #15803d; }
/* legacy aliases */
.level-exploring  { background: #fee2e2; color: #991b1b; }
.level-learning   { background: #fef9c3; color: #713f12; }
.level-capable    { background: var(--accent-light); color: var(--teal); }
.level-leading    { background: #dcfce7; color: #15803d; }

/* ── Print styles ── */
@media print {
  .site-nav, .site-footer, .btn, .toast { display: none !important; }
  .cert-wrap { border: 2px solid #000; box-shadow: none; }
  body { background: white; }
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
  .level-picker        { grid-template-columns: 1fr; }
  .prompt-card-footer  { flex-direction: column; align-items: flex-start; }
  .hero-ctas           { flex-direction: column; align-items: center; }
  .section             { padding: 3.5rem 0; }
}

/* ── Course sidebar layout ──────────────────────────────────────────────── */
.course-layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 68px);
}

.course-sidebar {
  width: 268px;
  flex-shrink: 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  background: #0B1422;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.course-main {
  flex: 1;
  min-width: 0;
  background: var(--white);
}

/* Sidebar header */
.sidebar-header {
  padding: 1.5rem 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sidebar-track-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.3rem;
}
.sidebar-track-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  line-height: 1.35;
  margin-bottom: 1rem;
}
.sidebar-prog-bar {
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  height: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.sidebar-prog-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 100px;
  transition: width 0.5s ease;
}
.sidebar-prog-text {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.32);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Sidebar module list */
.sidebar-modules {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
  border-left: 2.5px solid transparent;
  line-height: 1.35;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
}
.sidebar-item.is-active {
  background: rgba(35,125,129,0.18);
  border-left-color: var(--teal);
  color: #fff;
  font-weight: 700;
}
.sidebar-item.is-done { color: rgba(255,255,255,0.45); }
.sidebar-item.is-locked { color: rgba(255,255,255,0.25); cursor: default; pointer-events: none; }

.sidebar-item-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
}
.sidebar-item.is-done .sidebar-item-num {
  background: rgba(22,163,74,0.2);
  color: #86efac;
}
.sidebar-item.is-active .sidebar-item-num {
  background: var(--teal);
  color: #fff;
}

.sidebar-item-label { flex: 1; }

/* Section sub-items under active module */
.sidebar-subitem {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.38rem 1.25rem 0.38rem 3rem;
  font-size: 0.76rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  line-height: 1.4;
  position: relative;
}
.sidebar-subitem::before {
  content: '';
  position: absolute;
  left: 1.85rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.sidebar-subitem-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: background 0.15s, width 0.15s, height 0.15s;
}
.sidebar-subitem:hover { color: rgba(255,255,255,0.82); background: rgba(255,255,255,0.04); }
.sidebar-subitem:hover .sidebar-subitem-pip { background: rgba(255,255,255,0.5); }

/* Active section — clear highlight */
.sidebar-subitem.is-active {
  color: #fff;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
}
.sidebar-subitem.is-active::before { background: var(--teal); }
.sidebar-subitem.is-active .sidebar-subitem-pip {
  width: 8px;
  height: 8px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(35,125,129,0.3);
}

.sidebar-subitem.is-done { color: rgba(255,255,255,0.4); }
.sidebar-subitem.is-done .sidebar-subitem-pip {
  background: rgba(35,125,129,0.25);
  border: 1.5px solid rgba(35,125,129,0.6);
  width: 10px;
  height: 10px;
  position: relative;
}
.sidebar-subitem.is-done .sidebar-subitem-pip::after {
  content: '';
  position: absolute;
  left: 1.5px;
  top: -0.5px;
  width: 3.5px;
  height: 6px;
  border: 1.5px solid var(--teal);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Video sub-item */
.sidebar-subitem.is-video { color: rgba(255,255,255,0.65); font-style: italic; }
.sidebar-subitem.is-video.is-active { color: #fff; font-style: italic; }

/* Lab sub-item */
.sidebar-subitem.is-lab { color: var(--teal); font-weight: 500; }
.sidebar-subitem.is-lab .sidebar-subitem-pip { background: rgba(35,125,129,0.55); }
.sidebar-subitem.is-lab:hover { color: var(--teal); background: rgba(35,125,129,0.08); }
.sidebar-subitem.is-lab.is-active {
  color: var(--teal);
  background: rgba(35,125,129,0.14);
  font-weight: 700;
}
.sidebar-subitem.is-lab.is-active .sidebar-subitem-pip {
  width: 8px; height: 8px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(35,125,129,0.3);
}
.sidebar-subitem.is-lab.is-done { color: rgba(35,125,129,0.4); }

/* Sidebar footer */
.sidebar-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sidebar-footer a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  transition: color 0.15s;
}
.sidebar-footer a:hover { color: rgba(255,255,255,0.58); text-decoration: none; }

/* Mobile sidebar: floating toggle + overlay */
.sidebar-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  align-items: center;
  justify-content: center;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 149;
  background: rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
  .course-sidebar {
    position: fixed;
    top: 68px;
    left: 0;
    bottom: 0;
    height: calc(100vh - 68px);
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  .course-sidebar.is-open { transform: translateX(0); }
  .sidebar-fab { display: flex; }
  .sidebar-backdrop.is-open { display: block; }
}
