/* ============================================
   Baccarat Casino School — Lesson page styles
   Mayfair palette: midnight ink + warm gold
   ============================================ */

.lesson-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 96px 24px 96px;
  color: var(--color-text);
}

.lesson-breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.lesson-breadcrumb a { color: var(--color-gold); text-decoration: none; transition: color 0.2s ease; }
.lesson-breadcrumb a:hover { color: var(--color-gold-bright); }

/* Hero image — full editorial photo at the top of every lesson */
.lesson-hero-image {
  margin: 0 0 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.lesson-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lesson-hero {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}
.lesson-level-tag {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 14px;
  font-weight: 500;
}
.lesson-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 8px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.lesson-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
  display: block;
  margin-top: 10px;
}

/* Mayfair byline with circular Annabel avatar */
.lesson-byline-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.lesson-byline-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border-strong);
  flex-shrink: 0;
}
.lesson-byline-text { display: flex; flex-direction: column; gap: 2px; }
.lesson-byline-name { font-size: 14px; color: var(--color-text); font-weight: 500; }
.lesson-byline-name a { color: var(--color-gold); text-decoration: none; }
.lesson-byline-name a:hover { color: var(--color-gold-bright); }
.lesson-byline { font-size: 14px; color: var(--color-text-muted); margin-top: 16px; }
.lesson-byline a { color: var(--color-gold); text-decoration: none; }
.lesson-meta { font-size: 13px; color: var(--color-text-muted); }

/* Mode toggle — pill tabs */
.lesson-mode-toggle {
  display: inline-flex;
  background: var(--color-surface);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 36px;
  border: 1px solid var(--color-border);
}
.mode-btn {
  padding: 8px 24px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mode-btn.active {
  background: var(--color-gold);
  color: var(--color-bg);
  font-weight: 700;
}
.mode-btn:hover:not(.active) { color: var(--color-text); }
.mode-icon { font-size: 13px; }

/* Lesson deck — sits below title in operator reviews */
.lesson-deck {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--color-gold);
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 680px;
}

/* Operator CTA box — used inside review pages */
.operator-cta {
  background: linear-gradient(180deg, rgba(212,160,18,0.1), rgba(212,160,18,0.02));
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 2em 0;
  text-align: center;
}
.operator-cta .operator-cta-label {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 12px;
}
.operator-cta .operator-cta-code {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 18px;
}
.operator-cta .operator-cta-code strong {
  font-family: 'Roboto', monospace, sans-serif;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  font-weight: 700;
  background: rgba(212,160,18,0.1);
  padding: 4px 12px;
  border: 1px dashed var(--color-gold);
  border-radius: 4px;
  display: inline-block;
}
.operator-cta .btn { padding: 14px 32px; font-size: 14px; }
.operator-cta .operator-cta-fine {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 16px 0 0;
  font-style: italic;
}

/* Article body — typography */
.lesson-mode,
.lesson-body {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
}
.lesson-mode p,
.lesson-body p { margin: 0 0 1.4em; }

.lesson-mode h2,
.lesson-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.7vw, 1.85rem);
  color: #fff;
  margin: 2.2em 0 0.8em;
  font-weight: 700;
  line-height: 1.25;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--color-border);
}
.lesson-mode h2 a,
.lesson-body h2 a,
.lesson-mode h3 a,
.lesson-body h3 a { color: inherit; text-decoration: none; }

.lesson-mode h3,
.lesson-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--color-gold);
  margin: 1.8em 0 0.6em;
  font-weight: 600;
}

.lesson-mode a,
.lesson-body a {
  color: var(--color-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212,160,18,0.4);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: all 0.2s ease;
}
.lesson-mode a:hover,
.lesson-body a:hover {
  color: var(--color-gold-bright);
  text-decoration-color: var(--color-gold-bright);
}

.lesson-mode ul, .lesson-mode ol,
.lesson-body ul, .lesson-body ol {
  padding-left: 1.4em;
  margin: 0 0 1.6em;
}
.lesson-mode li,
.lesson-body li { margin-bottom: 0.5em; }

.lesson-mode strong,
.lesson-body strong { color: var(--color-gold); font-weight: 600; }

.lesson-mode blockquote,
.lesson-body blockquote {
  border-left: 3px solid var(--color-gold);
  background: rgba(212,160,18,0.05);
  padding: 16px 22px;
  margin: 1.6em 0;
  font-style: italic;
  color: #ccc;
  border-radius: 0 8px 8px 0;
}

/* TL;DR aside — single label only (the h3 inside the aside) */
.lesson-tldr {
  background: rgba(212,160,18,0.06);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 8px 8px 0;
  padding: 22px 26px;
  margin: 0 0 2.4em;
}
.lesson-tldr h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.lesson-tldr ul { margin: 0; padding-left: 1.3em; }
.lesson-tldr li {
  color: var(--color-text);
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
}

/* Sources footnote — small caps label, muted register, rule-separated */
p.sources {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 2.6em 0 1em;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  background: none;
}
p.sources::first-letter,
p.sources strong { color: var(--color-gold); font-weight: 600; }
p.sources a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(212,160,18,0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
  background: none;
}
p.sources a:hover {
  color: var(--color-gold);
  text-decoration-color: var(--color-gold);
}

/* Math box — for worked arithmetic. Pulls calculations out of prose. */
.math-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-left: 3px solid var(--color-gold);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 1.6em 0;
  font-variant-numeric: tabular-nums;
}
.math-box-label {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 8px;
}
.math-box-expr {
  font-family: 'Roboto', monospace, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 500;
}
.math-box-expr strong { color: var(--color-gold); }

/* Pit boss takeaway — legible body, gold label, no italic */
.lesson-takeaway {
  background: linear-gradient(180deg, rgba(212,160,18,0.07), rgba(212,160,18,0.015));
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  padding: 26px 32px 24px;
  margin: 2.8em 0 1.4em;
  font-family: 'Roboto', system-ui, sans-serif;
  font-style: normal;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--color-text);
  position: relative;
}
.lesson-takeaway h3 {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.lesson-takeaway p { margin: 0 0 0.9em; }
.lesson-takeaway p:last-child { margin-bottom: 0; }
.lesson-takeaway strong { color: var(--color-gold); font-weight: 600; }

/* Tables */
.lesson-table-wrap { overflow-x: auto; margin: 0 0 1.8em; }
.lesson-article-table,
.lesson-mode table,
.lesson-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
}
.lesson-mode th,
.lesson-body th,
.lesson-article-table th {
  background: rgba(212,160,18,0.08);
  color: var(--color-gold);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-strong);
}
.lesson-mode td,
.lesson-body td,
.lesson-article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(212,160,18,0.12);
  color: var(--color-text);
}
.lesson-mode tr:last-child td,
.lesson-body tr:last-child td,
.lesson-article-table tr:last-child td { border-bottom: 0; }

/* Audio player */
.audio-player {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.audio-play {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-gold); color: var(--color-bg);
  border: 0; font-size: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.audio-play:hover { background: var(--color-gold-bright); }
.audio-progress { flex: 1; min-width: 120px; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.audio-progress-fill { height: 100%; background: var(--color-gold); width: 0; transition: width 0.2s linear; }
.audio-time { font-size: 13px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.audio-status {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Lesson script (listen mode text) */
.lesson-script {
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
}
.lesson-script p { margin: 0 0 16px; }
.lesson-script .karaoke-active {
  background: rgba(212,160,18,0.2);
  border-radius: 3px;
  padding: 0 4px;
}

/* Footer nav */
.lesson-footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.btn-mark-complete {
  background: var(--color-gold);
  color: var(--color-bg);
  border: 0;
  padding: 12px 28px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background 0.2s ease;
}
.btn-mark-complete:hover { background: var(--color-gold-bright); }
.btn-mark-complete.done {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}
.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.lesson-nav a {
  flex: 1;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  transition: all 0.2s ease;
}
.lesson-nav a:hover {
  border-color: var(--color-gold);
  background: rgba(212,160,18,0.05);
  color: var(--color-gold);
}

/* School hub */
.school-main { max-width: 980px; margin: 0 auto; padding: 96px 24px 96px; }
.school-hero { text-align: center; margin-bottom: 64px; }
.school-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.1;
}
.school-hero-sub {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}
.school-level { margin-bottom: 56px; }
.school-level-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.school-level-badge {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 6px;
  font-weight: 500;
}
.school-level-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}
.school-level-summary { font-size: 14px; color: var(--color-text-muted); margin: 0; }
.school-lessons { list-style: none; padding: 0; margin: 0; }
.school-lesson {
  border-bottom: 1px solid var(--color-border);
  transition: all 0.2s ease;
}
.school-lesson:last-child { border-bottom: 0; }
.school-lesson-link {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.school-lesson-link:hover {
  background: rgba(212,160,18,0.04);
  padding-left: 12px;
}
.school-lesson-link:hover .school-lesson-title { color: var(--color-gold); }
.school-lesson-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  color: var(--color-gold);
  width: 44px;
  text-align: center;
  font-weight: 600;
}
.school-lesson-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.school-lesson-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
  transition: color 0.2s ease;
}
.school-lesson-meta { font-size: 13px; color: var(--color-text-muted); }
.school-lesson-arrow { color: var(--color-text-muted); font-size: 18px; }
.school-lesson.completed .school-lesson-num { color: #4ade80; }

@media (max-width: 640px) {
  .lesson-main { padding: 80px 18px 64px; }
  .lesson-title { font-size: 1.8rem; }
  .lesson-subtitle { font-size: 1.1rem; }
  .school-hero h1 { font-size: 2rem; }
  .lesson-mode, .lesson-body { font-size: 16px; }
  .lesson-mode h2, .lesson-body h2 { font-size: 1.4rem; }
  .school-lesson-link { gap: 14px; }
  .school-lesson-num { font-size: 1.4rem; width: 32px; }
  .school-lesson-title { font-size: 1.05rem; }
}
