:root {
  --bg: #f8f5f1;
  --surface: #ffffff;
  --surface-soft: #fcfaf7;
  --text: #272422;
  --text-muted: #66605b;
  --accent: #e8954a;
  --accent-strong: #e8954a;
  --border: #e8e1d9;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 6px 20px rgba(35, 30, 26, 0.06);
  --shadow-md: 0 12px 30px rgba(35, 30, 26, 0.08);
}

body {
  background: var(--bg);
  color: var(--text);
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.nav-link {
  color: var(--text);
}

.btn.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

/* Courses page header: match homepage primary CTA (bright brand gradient from style.css) */
body.page-courses .site-header .btn.btn-primary {
  background: linear-gradient(165deg, var(--orange) 0%, var(--orange-dark) 100%);
  border: none;
  color: var(--white);
  box-shadow: var(--shadow-sm), 0 2px 8px rgba(200, 120, 60, 0.25);
}

body.page-courses .site-header .btn.btn-primary:hover {
  background: var(--orange-dark);
  border: none;
  box-shadow: var(--shadow);
}

.page-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(2.2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 5vw, 4.5rem);
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 3.2vw, 2.6rem);
  margin-bottom: 2rem;
}

.hero-panel h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--text);
}

.hero-panel p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
}

/* Course library: full-bleed photo hero, soft fade into page bg, white type (courses.html) */
.page-courses-main {
  width: 100%;
}

.course-library-hero {
  position: relative;
  width: 100%;
  min-height: clamp(300px, 52vw, 560px);
  overflow: hidden;
}

.course-library-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.course-library-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.course-library-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.course-library-hero__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 252, 248, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.course-library-hero__cta {
  position: relative;
  z-index: 1;
  margin-top: 1.15rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.bt-library-concept-link-wrap {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 0;
}

.bt-library-concept-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 252, 248, 0.88);
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.bt-library-concept-link:hover {
  color: #fde8d8;
  text-decoration: underline;
}

.course-library-hero--video .course-library-hero__fade {
  background: linear-gradient(
    180deg,
    rgba(18, 16, 14, 0.35) 0%,
    rgba(18, 16, 14, 0.12) 30%,
    transparent 48%,
    rgba(12, 10, 9, 0.42) 68%,
    rgba(10, 8, 7, 0.72) 88%,
    rgba(250, 248, 244, 0.62) 100%
  );
}

.course-library-hero__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Darker toward bottom so white hero type stays readable on bright photos */
  background: linear-gradient(
    180deg,
    rgba(18, 16, 14, 0.22) 0%,
    rgba(18, 16, 14, 0.08) 28%,
    transparent 48%,
    rgba(12, 10, 9, 0.38) 68%,
    rgba(10, 8, 7, 0.62) 88%,
    rgba(248, 245, 241, 0.55) 100%
  );
}

.course-library-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  min-height: clamp(300px, 52vw, 560px);
  box-sizing: border-box;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2.25rem, 5vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
}

/* Local read panel behind headline + deck copy */
.course-library-hero__content::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: clamp(0.85rem, 2.5vw, 1.5rem);
  transform: translateX(-50%);
  width: min(calc(100% - 2.5rem), 42rem);
  height: clamp(10rem, 34vw, 14.5rem);
  border-radius: clamp(20px, 3vw, 28px);
  overflow: hidden;
  background: linear-gradient(
    to top,
    rgba(12, 10, 9, 0.9) 0%,
    rgba(18, 15, 13, 0.58) 52%,
    rgba(24, 20, 18, 0) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 40px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 0;
}

.course-library-hero__content h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fffefd;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.65),
    0 4px 32px rgba(0, 0, 0, 0.45);
}

.course-library-hero__content p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 42rem;
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.95vw, 1.14rem);
  font-weight: 500;
  line-height: 1.58;
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.85),
    0 1px 4px rgba(0, 0, 0, 0.55);
}

@media (max-width: 640px) {
  .course-library-hero {
    min-height: clamp(280px, 62vw, 420px);
  }

  .course-library-hero__content {
    min-height: clamp(280px, 62vw, 420px);
    padding-bottom: clamp(1.75rem, 6vw, 2.5rem);
  }
}

/* Course detail: premium hero over photography with protected reading panel */
.course-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(460px, 58vw, 620px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  background:
    linear-gradient(115deg, rgba(17, 15, 13, 0.2) 0%, rgba(17, 15, 13, 0.08) 36%, rgba(17, 15, 13, 0.02) 66%, rgba(17, 15, 13, 0) 100%),
    linear-gradient(0deg, rgba(18, 16, 15, 0.04), rgba(18, 16, 15, 0.04)),
    url('../images/course-detail-chalk-art.png');
  background-size: cover;
  background-position: center;
  border-radius: 30px;
}

.course-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(15, 14, 13, 0.05) 52%, rgba(15, 14, 13, 0.12) 100%);
  pointer-events: none;
}

.course-detail-hero-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 25.5rem);
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border-radius: 28px;
  background: rgba(252, 249, 245, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 24px 54px rgba(15, 14, 13, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.course-detail-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  padding-top: 0.2rem;
}

.course-detail-hero .course-detail-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.8rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.course-detail-hero .course-detail-headline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 11ch;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.course-detail-hero .course-detail-lead {
  margin: 0 0 0.95rem;
  max-width: 32ch;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #645d58;
}

.course-detail-age-row {
  margin: 0 0 1rem;
}

.course-detail-hero .course-detail-age-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a625c;
  border: 1px solid rgba(207, 194, 183, 0.95);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  background: rgba(255, 255, 255, 0.78);
}

.course-detail-takeaways {
  margin: 0;
  padding: 0.95rem 1rem 1rem;
  border-radius: 22px;
  background: rgba(247, 242, 236, 0.9);
  border: 1px solid rgba(224, 214, 205, 0.88);
  text-align: left;
}

.course-detail-takeaways-label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #756c65;
}

.course-detail-bullets {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #645d58;
}

.course-detail-bullets li {
  padding-left: 0.15rem;
}

.course-detail-bullets li::marker {
  color: var(--accent-strong);
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions .btn {
  border-radius: 10px;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-header .eyebrow {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

.section-header h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Course flows: section titles sit on orange page bg */
body.page-courses .section-header .eyebrow {
  color: rgba(255, 248, 240, 0.9);
}

body.page-courses .section-header h2 {
  color: #fffefd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.page-courses .section-header p {
  color: rgba(255, 255, 255, 0.88);
}

.trust-grid,
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.05rem;
}

.info-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.course-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.course-search-row input,
.course-search-row select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  min-width: 180px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.course-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.course-body {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chip {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  color: var(--text-muted);
  background: var(--surface-soft);
}

.course-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.course-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  min-height: 4.2em;
}

.course-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.course-card .btn {
  margin-top: auto;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 0.56rem 0.75rem;
}

.course-card-cta--locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  border: 1px dashed rgba(156, 107, 80, 0.55);
  background: rgba(249, 238, 231, 0.55);
  color: rgba(109, 75, 55, 0.92);
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.course-lock-icon {
  flex-shrink: 0;
  color: rgba(109, 75, 55, 0.92);
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.page-back-home {
  display: inline-block;
  margin-bottom: 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.page-back-home:hover {
  color: #fff;
  text-decoration: underline;
}

.module-list,
.lesson-list {
  display: grid;
  gap: 0.9rem;
}

.module-card,
.lesson-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
}

.module-top,
.lesson-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.module-index,
.lesson-index {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.module-card h3,
.lesson-card h3 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1.08rem;
}

.module-card p,
.lesson-card p {
  margin: 0;
  color: var(--text-muted);
}

.lesson-meta {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface-soft);
}

.tag.locked {
  color: #9c6b50;
  border-color: #e3c1ac;
  background: #f9eee7;
}

.module-card .btn,
.lesson-card .btn {
  margin-top: 0.8rem;
  border-radius: 999px;
}

.module-page-shell {
  display: grid;
  gap: 1.6rem;
}

.module-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(199, 131, 88, 0.18), transparent 38%),
    radial-gradient(circle at bottom right, rgba(183, 109, 63, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(252, 250, 247, 0.88));
}

.module-detail-hero--simple {
  display: block;
  padding: clamp(1.2rem, 3vw, 1.75rem);
}

.module-detail-hero-copy--simple h1 {
  max-width: 16ch;
  margin: 0;
}

.module-detail-hero::after {
  content: '';
  position: absolute;
  inset: auto -6% -24% auto;
  width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 131, 88, 0.18), rgba(199, 131, 88, 0));
  pointer-events: none;
}

.module-detail-hero-copy,
.module-preview-panel {
  position: relative;
  z-index: 1;
}

.module-detail-experience {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.module-detail-sun-logo {
  width: clamp(56px, 12vw, 72px);
  height: clamp(56px, 12vw, 72px);
  object-fit: contain;
  flex-shrink: 0;
}

.module-detail-experience .module-detail-eyebrow {
  margin: 0;
}

.module-detail-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.module-detail-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.module-detail-hero h1 {
  max-width: 12ch;
  margin-bottom: 0.7rem;
}

.module-detail-hero p {
  max-width: 58ch;
}

.module-detail-meta {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.module-stat {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 225, 217, 0.92);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 30px rgba(35, 30, 26, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.module-stat-label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.module-stat strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.module-preview-panel {
  align-self: stretch;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(232, 225, 217, 0.92);
  background:
    linear-gradient(180deg, rgba(39, 36, 34, 0.96), rgba(57, 49, 45, 0.92)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 45%);
  box-shadow: 0 18px 40px rgba(35, 30, 26, 0.18);
  color: rgba(255, 255, 255, 0.95);
}

/* Lesson preview — gated text sample instead of video */
.lesson-player-shell {
  gap: 1.5rem;
}

.lesson-player-header {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(232, 200, 170, 0.65);
  background:
    radial-gradient(circle at top left, rgba(255, 200, 160, 0.22), transparent 46%),
    radial-gradient(circle at bottom right, rgba(255, 188, 140, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 251, 246, 0.95));
  box-shadow: 0 14px 40px rgba(28, 22, 18, 0.08);
}

.lesson-player-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

.lesson-player-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.lesson-player-title {
  margin: 0 0 0.55rem;
}

.lesson-player-summary {
  margin: 0;
  max-width: 52ch;
  color: var(--text-muted);
}

.lesson-preview {
  position: relative;
}

.lesson-preview-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(211, 182, 150, 0.65);
  background: linear-gradient(180deg, #fffefb 0%, #faf7f2 100%);
  box-shadow:
    0 18px 40px rgba(31, 25, 20, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.lesson-preview-card__header {
  padding: 1.4rem 1.6rem 0.85rem;
}

.lesson-preview-card__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 96, 59, 0.9);
}

.lesson-preview-card__intro {
  margin: 0;
  max-width: 60ch;
  color: var(--text-muted);
}

.lesson-narration {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(221, 187, 151, 0.72);
  background: linear-gradient(145deg, rgba(255, 250, 243, 0.95), rgba(255, 245, 233, 0.9));
}

.lesson-narration__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.lesson-narration__title {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.lesson-narration__status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.lesson-narration__controls {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
}

.lesson-narration__play {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 150, 111, 0.8);
  background: linear-gradient(160deg, rgba(255, 200, 144, 0.94), rgba(244, 151, 84, 0.95));
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 10px 22px rgba(198, 120, 63, 0.28);
}

.lesson-narration__timeline {
  min-width: 0;
}

.lesson-narration__timeline input[type='range'] {
  width: 100%;
}

.lesson-narration__time {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lesson-narration__speed-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.lesson-narration__speed-wrap select {
  min-height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 166, 133, 0.7);
  background: rgba(255, 255, 255, 0.95);
  padding: 0 0.6rem;
}

.lesson-narration__transcript-btn {
  min-height: 2.1rem;
}

.lesson-narration__fallback {
  margin: 0.7rem 0 0;
  color: #7c4b2b;
  font-size: 0.92rem;
}

.lesson-narration__transcript {
  margin-top: 0.75rem;
  max-height: 220px;
  overflow: auto;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(221, 187, 151, 0.72);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.lesson-preview-card__body {
  position: relative;
  padding: 0 1.6rem 1.6rem;
  isolation: isolate;
}

.lesson-preview-copy {
  position: relative;
  z-index: 0;
  max-width: 60ch;
}

.lesson-preview-copy p {
  margin: 0 0 0.9rem;
  color: var(--text);
}

.lesson-preview-copy p:last-of-type {
  margin-bottom: 2.8rem;
}

.lesson-preview-fade {
  position: absolute;
  inset: 40% 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 252, 248, 0) 0%,
      rgba(255, 244, 232, 0.72) 22%,
      rgba(255, 234, 218, 0.88) 46%,
      rgba(255, 224, 204, 0.95) 100%
    );
}

.lesson-preview-paywall {
  position: relative;
  z-index: 3;
  margin-bottom: 1.4rem;
  padding: 1.15rem 1.4rem 1.25rem;
  max-width: 36rem;
  border-radius: 20px;
  background: #14100d;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 44px rgba(10, 6, 2, 0.7);
  text-align: center;
  pointer-events: auto;
}

.lesson-preview-paywall__label {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 230, 203, 0.96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.lesson-preview-paywall__text {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 244, 234, 0.98);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.lesson-preview-paywall__cta {
  border-radius: 999px;
  padding-inline: 1.35rem;
}

@media (max-width: 720px) {
  .lesson-player-header {
    padding: 1.1rem 1.1rem 1rem;
  }

  .lesson-preview-card__header,
  .lesson-preview-card__body {
    padding-inline: 1.1rem;
  }

  .lesson-preview-fade {
    inset: 48% 0 0;
  }

  .lesson-narration__controls {
    grid-template-columns: auto 1fr;
  }
}

.module-preview-label {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 232, 210, 0.78);
}

.module-preview-list {
  display: grid;
  gap: 0.8rem;
}

.module-preview-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.module-preview-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.module-preview-copy h3,
.module-preview-copy p {
  margin: 0;
}

.module-preview-copy h3 {
  font-size: 0.98rem;
  line-height: 1.35;
  color: #fff;
}

.module-preview-copy p {
  margin-top: 0.28rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.module-lessons-section {
  display: grid;
  gap: 1rem;
}

.module-lessons-header {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.module-page-shell .lesson-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.module-page-shell .lesson-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(232, 225, 217, 0.96);
  box-shadow: 0 16px 36px rgba(35, 30, 26, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.module-page-shell .lesson-card--unlocked:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(35, 30, 26, 0.11);
}

.lesson-card-media {
  display: block;
  text-decoration: none;
}

.lesson-card-media:not(a) {
  cursor: default;
}

.lesson-card-art {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(17, 15, 14, 0.1), rgba(17, 15, 14, 0.28)),
    var(--surface-soft);
  background-size: cover;
  background-position: center;
}

.lesson-card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%, rgba(12, 10, 9, 0.3) 100%);
}

/* Module experience: locked lessons — dim thumbnail only (overlay, not filter, so controls stay crisp) */
.module-page-shell .lesson-card--locked .lesson-card-art::before {
  background:
    linear-gradient(180deg, rgba(26, 22, 20, 0.48), transparent 34%, rgba(12, 10, 9, 0.62) 100%);
}

.module-page-shell .lesson-card--locked .lesson-card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22, 19, 17, 0.36);
  pointer-events: none;
  z-index: 1;
}

.module-page-shell .lesson-card--locked .lesson-index {
  z-index: 2;
}

.module-page-shell .lesson-card--locked .lesson-play-button {
  z-index: 2;
  opacity: 0.82;
  background: rgba(0, 0, 0, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.module-page-shell .lesson-card--locked:hover .lesson-play-button,
.module-page-shell .lesson-card--locked:focus-within .lesson-play-button {
  opacity: 0.95;
}

.module-page-shell .lesson-index {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: rgba(16, 14, 13, 0.45);
  color: #fff5ee;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lesson-play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.52);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lesson-play-button--locked {
  color: rgba(255, 245, 238, 0.95);
}

.lesson-play-button--locked .lesson-lock-icon {
  display: block;
}

.lesson-play-triangle {
  width: 0;
  height: 0;
  margin-left: 0.22rem;
  border-top: 0.58rem solid transparent;
  border-bottom: 0.58rem solid transparent;
  border-left: 0.95rem solid rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.module-page-shell .lesson-card--unlocked:hover .lesson-play-button,
.module-page-shell .lesson-card--unlocked:focus-within .lesson-play-button {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(0, 0, 0, 0.65);
  border-color: #fff;
}

.module-page-shell .lesson-card--locked:hover {
  transform: none;
  box-shadow: 0 16px 36px rgba(35, 30, 26, 0.08);
}

.module-page-shell .lesson-card--locked:hover .lesson-play-button,
.module-page-shell .lesson-card--locked:focus-within .lesson-play-button {
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.52);
  border-color: rgba(255, 255, 255, 0.92);
}

.lesson-card-cta {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.65rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.86rem;
  padding: 0.62rem 0.85rem;
}

.lesson-card-title-text {
  color: inherit;
}

.lesson-card-body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.module-page-shell .lesson-top {
  justify-content: flex-start;
  gap: 0.45rem;
}

.module-page-shell .lesson-card h3 {
  margin: 0.55rem 0 0.2rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.35;
}

.module-page-shell .lesson-card-title-link {
  color: inherit;
  text-decoration: none;
}

.module-page-shell .lesson-card-title-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.module-page-shell .lesson-byline {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-style: italic;
}

.module-page-shell .lesson-meta {
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.lesson-sequence {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag.tag-live {
  color: #6d4b37;
  border-color: #e6c3ae;
  background: #fff1e8;
}

@media (max-width: 900px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid,
  .paths-grid {
    grid-template-columns: 1fr 1fr;
  }

  .module-detail-hero {
    grid-template-columns: 1fr;
  }

  .module-page-shell .lesson-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-page-shell .lesson-card {
    min-height: 100%;
  }

  .lesson-card-art {
    min-height: 200px;
  }

  .course-detail-hero {
    min-height: 520px;
    background-position: center;
  }
}

@media (max-width: 640px) {
  .course-grid,
  .trust-grid,
  .paths-grid {
    grid-template-columns: 1fr;
  }

  .module-page-shell .lesson-list {
    grid-template-columns: 1fr;
  }

  .course-detail-hero {
    min-height: 450px;
    align-items: flex-start;
    justify-content: space-between;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(23, 20, 18, 0.16) 100%),
      url('../images/course-detail-chalk-art.png');
    background-size: cover;
    background-position: center;
  }

  .course-detail-hero-panel {
    width: 100%;
    padding: 1rem;
    border-radius: 24px;
  }

  .course-detail-hero-copy {
    max-width: 100%;
  }

  .course-detail-hero .course-detail-headline {
    max-width: none;
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .module-detail-meta {
    grid-template-columns: 1fr;
  }

  .lesson-card-body {
    padding: 1rem;
  }

  .lesson-card-art {
    min-height: 210px;
  }
}

/* —— Lesson player —— */
.lesson-player-shell {
  max-width: 900px;
}

.lesson-player-breadcrumbs {
  margin-bottom: 1rem;
}

.lesson-player-error {
  text-align: center;
  padding: 2rem 1.5rem;
}

.lesson-player-error__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.lesson-player-error__text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.lesson-player-header {
  margin-bottom: 1.5rem;
}

.lesson-player-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.lesson-player-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.chip-lesson-num {
  color: #6d4b37;
  border-color: #e6c3ae;
  background: #fff1e8;
}

.lesson-player-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.2;
  color: var(--text);
}

.lesson-player-summary {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.lesson-sim {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 225, 217, 0.96);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(35, 30, 26, 0.08);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.lesson-sim__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1816;
}

.lesson-sim__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.45s ease;
}

.lesson-sim__poster[data-playing='true'] {
  opacity: 0.2;
}

.lesson-sim__ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    125deg,
    #2a2420 0%,
    #3d342e 25%,
    #25211e 50%,
    #3a322c 75%,
    #221e1c 100%
  );
  background-size: 240% 240%;
  animation: lesson-sim-ambient-move 14s ease-in-out infinite;
}

@keyframes lesson-sim-ambient-move {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

.lesson-sim__locked {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(18, 15, 13, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lesson-sim__locked-inner {
  max-width: 28rem;
  text-align: center;
  color: #fff8f3;
}

.lesson-sim__locked-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.lesson-sim__locked-text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 248, 243, 0.88);
}

.lesson-sim--locked .lesson-sim__frame {
  min-height: 220px;
}

.lesson-sim__big-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lesson-sim__big-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(0, 0, 0, 0.68);
  border-color: #fff;
}

.lesson-sim__big-play:focus-visible {
  outline: 3px solid rgba(199, 131, 88, 0.85);
  outline-offset: 3px;
}

.lesson-sim__big-play-svg {
  display: block;
  margin-left: 0.15rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.lesson-sim__ended {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: rgba(14, 12, 11, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lesson-sim__ended-label {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff8f3;
}

.lesson-sim__replay-btn {
  border-radius: 999px;
}

.lesson-sim__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem 0.45rem;
  flex-wrap: nowrap;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.5) 55%,
    transparent 100%
  );
}

.lesson-sim__play-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s ease;
}

.lesson-sim__play-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lesson-sim__play-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.lesson-sim__toggle-svg {
  display: block;
  flex-shrink: 0;
}

.lesson-sim__progress-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding-bottom: 0.1rem;
}

.lesson-sim__progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  cursor: default;
}

.lesson-sim__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #e63946;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.45);
  transition: width 0.08s linear;
}

.lesson-sim__times {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.lesson-player-next-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lesson-player-back {
  text-decoration: none;
}

@media (max-width: 640px) {
  .lesson-sim__controls {
    padding: 0.45rem 0.5rem 0.4rem;
    gap: 0.35rem;
  }

  .lesson-sim__times {
    font-size: 0.68rem;
  }
}
