/* ─────────────────────────────────────────────────────────────
   Never Miss The Memo — site stylesheet
   Editorial, slightly analog. Magazine over SaaS.

   Palette:
     paper  #F4EFE4   warm off-white background
     ink    #1A1814   near-black text
     rust   #B8442C   strong accent (CTAs, progress, links)
     sand   #E6DCC4   secondary surface (callouts, dividers)
     moss   #3F5337   success (right move, completion, correct answer)

   Fonts (loaded via Google Fonts CDN in each HTML <head>):
     Newsreader     — display / headings (contemporary editorial serif)
     Hanken Grotesk — body (humanist sans, modern but warm)
   ───────────────────────────────────────────────────────────── */

:root {
  /* ── palette ──
     Contemporary editorial: lighter / cooler background, brighter accent.
     The variable names are retained (--rust, --sand) so callers don't
     change, but the values are pushed toward more energetic territory. */
  --paper: #FAF8F2;            /* near-white with a hint of warmth */
  --paper-dark: #F0EDE2;
  --ink: #161413;
  --ink-soft: #3A3633;
  --ink-muted: #807A73;
  --rust: #E94B27;             /* saturated punchy orange-red (was muted #B8442C) */
  --rust-deep: #C8381A;
  --rust-tint: #FBE0D6;
  --sand: #F1EBDA;
  --sand-deep: #DDD3BA;
  --moss: #2F5238;
  --moss-tint: #DCE8DA;

  /* ── radius ── */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  /* ── type ──
     Display = Newsreader (contemporary editorial serif designed for screens).
     Body = Hanken Grotesk (humanist sans, modern but warm). */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body:    'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* ── layout ── */
  --reader-max: 42rem;
  --wide-max: 64rem;
}

/* ── reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ── base ──────────────────────────────────────────────────── */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* subtle dot grid — texture without "old paper" feel */
  background-image: radial-gradient(circle, rgba(22,20,19,0.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 0 0;
  font-feature-settings: 'kern', 'liga', 'calt', 'ss01';
  min-height: 100vh;
}
@media (min-width: 640px) {
  body { font-size: 18px; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  font-feature-settings: 'kern', 'liga', 'dlig';
}

p { line-height: 1.65; }

a { text-decoration: none; }

::selection { background: var(--rust); color: var(--paper); }

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

/* ── layout primitives ─────────────────────────────────────── */
.wide { max-width: var(--wide-max); margin: 0 auto; padding: 0 1.5rem; }
.reader { max-width: var(--reader-max); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 640px) {
  .wide, .reader { padding: 0 2.5rem; }
}

/* ── small label, used widely ──────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-block;
}
.section-label--rust { color: var(--rust); }
.section-label--moss { color: var(--moss); }
.section-label--muted { color: var(--ink-muted); }
.section-label--paper { color: var(--paper); }

/* ── ornament rule (only used on the certificate now) ──────── */
.ornament-rule {
  font-family: var(--font-display);
  color: var(--ink-muted);
  text-align: center;
  letter-spacing: 1.5em;
  text-indent: 1.5em;
  user-select: none;
  margin: 3rem 0;
}
.ornament-rule::before { content: '·  ·  ·'; }

/* ── buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  cursor: pointer;
  will-change: transform;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn--primary { background: var(--rust); color: #fff; border-color: var(--rust); }
.btn--primary:hover:not(:disabled) { background: var(--rust-deep); border-color: var(--rust-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(22,20,19,0.18); }
.btn--ghost:hover:not(:disabled) { background: var(--paper-dark); border-color: rgba(22,20,19,0.4); }
.btn--lg { padding: 0.95rem 1.85rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1.05rem; font-size: 0.825rem; }
.btn--link {
  background: transparent;
  color: var(--rust);
  border: 0;
  border-radius: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.btn--link:hover { color: var(--rust-deep); }

/* ── site header ───────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid rgba(26,24,20,0.1);
  background: rgba(244,239,228,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  /* Vertical only — horizontal padding comes from the .wide class on the same
     element. Using the `padding` shorthand here would wipe .wide's side padding
     and let the header run edge-to-edge on narrow screens. */
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-header__progress {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.site-header__progress strong { font-weight: 700; color: var(--ink); }
.site-header__progress span { color: var(--ink-muted); }

/* Site brand wordmark — used in the sticky header on every page.
   "Never Miss The" in ink + "Memo" in solid rust — a two-tone mark
   where the accent colour lands on the word that carries the brand. */
.site-brand {
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.005em;
  transition: color 0.15s;
}
.site-brand:hover { color: var(--ink); }
.site-brand__accent {
  color: var(--rust);
  transition: color 0.15s;
}
.site-brand:hover .site-brand__accent { color: var(--rust-deep); }
.site-brand__back {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-left: 0.75rem;
  align-self: center;
  display: none;
}
@media (min-width: 640px) {
  .site-brand__back { display: inline; }
}
@media (max-width: 640px) {
  .site-brand { font-size: 1.2rem; gap: 0.3rem; }
  .site-header__nav-secondary { display: none !important; }
  .ctc-auth-slot { display: none !important; }
}

/* progress strip below the header on lesson pages */
.progress-strip {
  border-bottom: 1px solid rgba(26,24,20,0.1);
  background: rgba(244,239,228,0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 57px;
  z-index: 20;
}
.progress-strip__inner { padding: 0.5rem 0; }
.progress-bar {
  height: 3px;
  background: var(--sand-deep);
  position: relative;
  overflow: hidden;
}
.progress-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--rust);
  width: 0%;
  transition: width 0.5s ease-out;
}

/* ── hero (dashboard) ──────────────────────────────────────── */
.hero {
  margin-top: 3rem;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}
.hero__text { max-width: 38rem; flex: 1 1 auto; min-width: 0; }
.hero__label { margin-bottom: 1.5rem; }

/* Cast column — Barnum + Bailey portraits stacked vertically. Stacks
   horizontally below the text on narrow viewports. */
.hero__cast {
  flex: 0 0 auto;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.hero__cast-figure { margin: 0; }
/* Polaroid card framing — the cream PNG backdrop becomes the photo
   itself, framed by a subtle border + soft drop shadow. Reads as
   intentional portrait card rather than an artifact of the PNG. */
.hero__cast-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid rgba(22, 20, 19, 0.08);
  box-shadow: 0 2px 6px rgba(22, 20, 19, 0.06);
}
.hero__cast-figure figcaption {
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.hero__cast-figure figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.1rem;
}
@media (max-width: 720px) {
  .hero { flex-direction: column; gap: 2rem; }
  .hero__cast {
    width: 100%;
    flex-direction: row;
    gap: 1.5rem;
  }
  .hero__cast-figure { flex: 1 1 0; max-width: 180px; }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero__subtitle {
  margin-top: 1.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--ink-soft);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.hero__lede { margin-top: 1.75rem; color: var(--ink-soft); max-width: 38rem; line-height: 1.65; }

/* ── section block + lesson row (dashboard) ────────────────── */
.section-block { margin-top: 4rem; }
.section-block__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-block__roman {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rust);
  font-size: 1.75rem;
  line-height: 1;
}
.section-block__theme {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: var(--ink);
  margin-top: 0.25rem;
}

.lesson-row {
  display: block;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(26,24,20,0.1);
  margin: 0 -1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.lesson-row:hover { background: rgba(235,227,210,0.4); }
.lesson-row__main { display: flex; align-items: baseline; gap: 1.25rem; }
.lesson-row__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  width: 2.5rem;
  flex-shrink: 0;
}
.lesson-row__body { flex: 1; min-width: 0; }
.lesson-row__title-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.lesson-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink);
}
.lesson-row__meta {
  flex-shrink: 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.lesson-row__meta--moss { color: var(--moss); }
.lesson-row__meta--soon .section-label { color: var(--rust); }
.lesson-row__subtitle {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Coming-soon rows: non-clickable, slightly faded, no hover.
   Rendered as a <div> by dashboard.js so the row can't be opened. */
.lesson-row--soon { cursor: default; opacity: 0.62; }
.lesson-row--soon:hover { background: transparent; }
.lesson-row--soon .lesson-row__title { color: var(--ink-soft); }

/* Coming-soon panel on lesson.html — gates direct URL access while
   the lesson content stays preserved in lessons.json. */
.coming-soon {
  margin-top: 2.5rem;
  padding: 2.5rem 2rem;
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--r-lg);
  max-width: 36rem;
}
.coming-soon__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.75rem;
}
.coming-soon__copy {
  margin: 0.85rem 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

/* ── certificate banner (only when 25/25 done) ─────────────── */
.cert-banner {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 2rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.cert-banner__inner { flex: 1 1 auto; max-width: 36rem; min-width: 0; }
.cert-banner__label {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: rgba(244,239,228,0.6);
}
.cert-banner h2 {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
}
.cert-banner p { color: rgba(244,239,228,0.85); margin-top: 0.75rem; line-height: 1.6; }
.cert-banner a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700;
  color: var(--rust);
  font-size: 1.125rem;
  margin-top: 1.5rem;
  transition: color 0.15s;
}
.cert-banner a:hover { color: var(--paper); }
/* Barnum (excited — tie peeks out) celebrating completion. Framed
   as a portrait card so the cream PNG backdrop reads as deliberate
   matting against the dark ink banner. */
.cert-banner__mascot { flex: 0 0 auto; width: 200px; margin: 0; }
.cert-banner__mascot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid rgba(244, 239, 228, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
@media (max-width: 720px) {
  .cert-banner { flex-direction: column-reverse; align-items: stretch; gap: 1.25rem; }
  .cert-banner__mascot { width: 160px; align-self: center; }
}

/* ── lesson page chrome ────────────────────────────────────── */
.lesson-header { margin-bottom: 3.5rem; }
.lesson-header__crumbs {
  display: flex; align-items: baseline; gap: 1rem;
  color: var(--ink-muted); margin-bottom: 1.5rem; flex-wrap: wrap;
}
.lesson-header__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  /* Distribute line breaks evenly so the last line never orphans a single
     word like "Robot)". Chrome 114+, Firefox 121+, Safari 17.4+. Older
     browsers fall back to default wrapping — same behavior as today. */
  text-wrap: balance;
}
.lesson-header__sub {
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 36rem;
}
.lesson-header__time { margin-top: 1.5rem; color: var(--ink-muted); font-size: 0.875rem; }

/* ── skill of the day ──────────────────────────────────────── */
.section { margin: 3rem 0; }
.skill__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 36rem;
  margin-top: 1rem;
}

/* ── why it matters ────────────────────────────────────────── */
.why-list { list-style: none; padding: 0; margin-top: 1.5rem; max-width: 36rem; }
.why-list li {
  display: flex; gap: 1.25rem;
  padding: 1rem 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.why-list__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rust);
  font-size: 1.5rem;
  line-height: 1;
  width: 2rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ── the wrong/right move ──────────────────────────────────── */
.moves {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 3.5rem 0;
}
@media (min-width: 900px) {
  .moves { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.move {
  padding: 1.75rem;
  border-radius: var(--r-md);
}
@media (min-width: 640px) { .move { padding: 2.25rem; } }
.move--wrong { background: var(--rust-tint); }
.move--right { background: var(--moss-tint); }
.move__head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.5rem; }
.move__icon {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.875rem; line-height: 1;
}
.move--wrong .move__icon { color: var(--rust); }
.move--right .move__icon { color: var(--moss); }
.move__scenario { color: var(--ink); font-size: 1.0625rem; line-height: 1.6; }
.move__outcome { margin-top: 1.25rem; font-style: italic; font-size: 0.95rem; line-height: 1.6; }
.move--wrong .move__outcome { color: var(--rust-deep); }
.move--right .move__outcome { color: var(--moss); }

/* ── do's and don'ts ───────────────────────────────────────── */
.dos-donts {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  margin: 4rem 0;
}
@media (min-width: 700px) {
  .dos-donts { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .dos-donts__col--donts { border-left: 1px solid rgba(26,24,20,0.15); padding-left: 3rem; }
}
.dos-donts ul { list-style: none; padding: 0; margin-top: 1rem; }
.dos-donts li {
  display: flex; gap: 0.75rem;
  padding: 0.875rem 0;
  line-height: 1.4;
}
.dos-donts li + li { border-top: 1px solid rgba(26,24,20,0.06); }
.dos-donts__mark {
  font-family: var(--font-display); font-weight: 700;
  margin-top: 0.15em;
}
.dos-donts__mark--do { color: var(--moss); }
.dos-donts__mark--dont { color: var(--rust); }
.dos-donts__body { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.dos-donts__headline { font-weight: 700; color: var(--ink); line-height: 1.35; }
.dos-donts__tail {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ── pick the pro move (quiz) ──────────────────────────────── */
.quiz__question {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.25;
  max-width: 36rem;
  margin: 1rem 0 1.5rem;
}
.quiz__options { list-style: none; padding: 0; margin: 0; max-width: 36rem; display: grid; gap: 0.75rem; }
.quiz__option {
  width: 100%;
  text-align: left;
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: 1rem 1.5rem;
  background: var(--paper);
  border: 1px solid rgba(22,20,19,0.15);
  border-radius: var(--r-sm);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.quiz__option:hover:not(:disabled):not(.is-revealed) {
  border-color: rgba(22,20,19,0.4);
  background: var(--paper-dark);
}
.quiz__option:active:not(:disabled):not(.is-revealed) { transform: translateY(1px); }
.quiz__option:disabled { cursor: default; }
.quiz__option-id {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.quiz__option-text { line-height: 1.6; }

.quiz__option.is-correct {
  background: var(--moss-tint);
  border-color: var(--moss);
}
.quiz__option.is-correct .quiz__option-id { color: var(--moss); }

.quiz__option.is-wrong {
  background: var(--rust-tint);
  border-color: var(--rust);
}
.quiz__option.is-wrong .quiz__option-id { color: var(--rust); }

.quiz__reveal {
  margin-top: 1.5rem;
  max-width: 36rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid;
  border-radius: var(--r-sm);
}
.quiz__reveal--correct { background: var(--moss-tint); border-color: var(--moss); }
.quiz__reveal--wrong { background: var(--rust-tint); border-color: var(--rust); }
.quiz__reveal-head { margin-bottom: 0.5rem; }
.quiz__reveal-head--correct { color: var(--moss); }
.quiz__reveal-head--wrong { color: var(--rust); }
.quiz__reveal p { color: var(--ink); line-height: 1.65; }

/* ── 2-minute assignment ───────────────────────────────────── */
.assignment__prompt {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.25;
  max-width: 36rem;
  margin: 1rem 0 1.25rem;
}
.assignment__guidelines { list-style: none; padding: 0; max-width: 36rem; margin-bottom: 1.5rem; }
.assignment__guidelines li {
  display: flex; gap: 0.75rem;
  padding: 0.45rem 0;
  line-height: 1.6;
}
.assignment__guidelines li::before {
  content: '—';
  color: var(--ink-muted);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.callout {
  border-left: 3px solid;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  max-width: 36rem;
  border-radius: var(--r-sm);
}
.callout--sand { background: var(--sand); border-color: var(--sand-deep); }
.callout--rust { background: var(--rust-tint); border-color: var(--rust); }
.callout--moss { background: var(--moss-tint); border-color: var(--moss); }

.assignment__textarea-label { display: block; max-width: 36rem; }
.assignment__textarea-label > .section-label { display: block; margin-bottom: 0.75rem; }
.assignment__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.15);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  resize: vertical;
  min-height: 10rem;
  color: var(--ink);
  transition: border-color 0.15s;
}
.assignment__textarea:focus { outline: none; border-color: var(--rust); }
.assignment__textarea::placeholder { color: var(--ink-muted); opacity: 0.7; }

.assignment__actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ── extra section (lesson 25's habits-that-compound) ──────── */
.extra-section {
  background: var(--sand);
  padding: 2.5rem 1.75rem;
  margin: 4rem 0;
  border-radius: var(--r-lg);
}
@media (min-width: 640px) { .extra-section { padding: 3.5rem 3rem; } }
.extra-section__intro {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 1rem 0 2.5rem;
  line-height: 1.65;
}
.extra-section ol { list-style: none; padding: 0; max-width: 36rem; }
.extra-section li {
  display: flex; gap: 1.25rem;
  padding: 0.9rem 0;
}
.extra-section__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rust);
  font-size: 1.5rem;
  line-height: 1.05;
  width: 2.5rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
}
.extra-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.extra-section__body { color: var(--ink); margin-top: 0.25rem; line-height: 1.6; }

/* ── key takeaway ──────────────────────────────────────────── */
.takeaway {
  margin: 5rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 3rem 0;
  position: relative;
}
.takeaway__label {
  position: absolute; top: -0.65rem; left: 0;
  background: var(--paper); padding: 0 0.75rem;
}
.takeaway__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  color: var(--ink);
  max-width: 40rem;
}

/* ── lesson nav (prev / next) ──────────────────────────────── */
.lesson-nav {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(26,24,20,0.15);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.lesson-nav__link { display: inline-flex; flex-direction: column; gap: 0.25rem; text-decoration: none; }
.lesson-nav__link--next { align-items: flex-end; text-align: right; }
.lesson-nav__sub { color: var(--ink-muted); }
.lesson-nav__big {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink);
  transition: color 0.15s;
  margin-top: 0.25rem;
}
.lesson-nav__link:hover .lesson-nav__big { color: var(--rust); }
.lesson-nav__big--rust { color: var(--rust); }

/* ── paywall ───────────────────────────────────────────────── */
.paywall {
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.12);
  padding: 2.5rem 1.75rem;
  margin: 3.5rem 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .paywall { padding: 3.5rem; } }
.paywall::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 8rem; height: 8rem;
  background: var(--rust-tint);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  display: none;
  z-index: 0;
}
@media (min-width: 640px) { .paywall::before { display: block; } }
.paywall__inner { position: relative; z-index: 1; max-width: 36rem; }
.paywall__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-top: 1rem;
}
.paywall__copy { margin-top: 1.5rem; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.6; }
.paywall__bullets { list-style: none; padding: 0; margin-top: 2rem; }
.paywall__bullets li {
  display: flex; gap: 0.75rem; padding: 0.4rem 0; align-items: baseline;
}
.paywall__bullets li::before {
  content: '·'; color: var(--rust); font-family: var(--font-display); flex-shrink: 0;
}
.paywall__cta {
  margin-top: 2.5rem;
  display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
}
.paywall__price { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--ink); }
.paywall__error { color: var(--rust); margin-top: 1rem; font-size: 0.875rem; }
.paywall__note { color: var(--ink-muted); font-size: 0.875rem; margin-top: 2rem; }

/* ── email capture modal ───────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26,24,20,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-card {
  background: var(--paper);
  border: 1px solid rgba(22,20,19,0.15);
  max-width: 32rem; width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(22,20,19,0.35);
  position: relative;
  z-index: 1;
  border-radius: var(--r-lg);
}
@media (min-width: 640px) { .modal-card { padding: 2.5rem; } }
.modal-card h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.875rem; line-height: 1.15; margin-top: 0.5rem;
}
.modal-card p { margin-top: 1rem; color: var(--ink-soft); line-height: 1.6; }
.modal-form { margin-top: 2rem; display: grid; gap: 1rem; }
.modal-form label { display: block; }
.modal-form .section-label { display: block; margin-bottom: 0.5rem; }
.modal-form input {
  width: 100%;
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.15);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s;
}
.modal-form input:focus { outline: none; border-color: var(--rust); }
.modal-actions { display: flex; align-items: center; gap: 1rem; padding-top: 0.5rem; }
.modal-skip {
  font-family: var(--font-display);
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.modal-skip:hover { color: var(--ink); }
.modal-error { color: var(--rust); font-size: 0.875rem; }
.modal-success {
  background: var(--moss-tint);
  border-left: 3px solid var(--moss);
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
  color: var(--moss);
  margin-top: 2rem;
}

/* ── certificate page (screen) ─────────────────────────────── */
.cert-controls { margin-bottom: 3rem; }
.cert-controls__row {
  margin-top: 2.5rem;
  display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
}
.cert-controls__name {
  flex: 1; min-width: 20rem;
}
.cert-controls__name input {
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.15);
  border-radius: var(--r-sm);
  padding: 0.75rem 1.25rem;
  color: var(--ink);
  transition: border-color 0.15s;
}
.cert-controls__name input:focus { outline: none; border-color: var(--rust); }

/* The certificate itself */
.print-area {
  max-width: 8.5in;
  margin: 0 auto;
  background: var(--paper);
}
.print-area__outer { border: 1px solid rgba(26,24,20,0.3); padding: 0.5rem; }
.print-area__inner {
  border: 2px solid var(--ink);
  padding: 2.5rem;
  aspect-ratio: 8.5 / 11;
  display: flex; flex-direction: column;
}
@media (min-width: 640px) { .print-area__inner { padding: 4rem; } }
.cert__top { text-align: center; }
.cert__top .ornament-rule { margin: 1.5rem 0 0; }
.cert__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-top: -1.5rem; }
.cert__intro { font-style: italic; color: var(--ink-soft); font-size: 1.125rem; }
.cert__name {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  min-height: 1.1em;
}
.cert__rule { width: 60%; max-width: 28rem; border-bottom: 1px solid rgba(26,24,20,0.3); margin-top: 0.5rem; }
.cert__verb { margin-top: 2rem; font-style: italic; color: var(--ink-soft); font-size: 1.125rem; }
.cert__course {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
}
.cert__description { margin-top: 1.5rem; font-style: italic; color: var(--ink-soft); font-size: 1.0625rem; max-width: 28rem; }
.cert__bottom { margin-top: auto; padding-top: 2rem; }
.cert__bottom .ornament-rule { margin: 0 0 2rem; }
.cert__footnotes {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; text-align: center;
}
/* Mobile: 3-up is cramped on narrow screens — stack to a single column.
   Screen-only; the print layout (@media print, @page) is unaffected. */
@media (max-width: 480px) {
  .cert__footnotes { grid-template-columns: 1fr; gap: 1.25rem; }
}
.cert__footnote-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cert__footnote-value {
  font-family: var(--font-display);
  color: var(--ink);
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* ── LinkedIn CTA (below the print area) ───────────────────── */
.linkedin-cta { margin-top: 5rem; }
.linkedin-cta h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.875rem; line-height: 1.15; margin-top: 0.75rem;
}
.linkedin-cta p { color: var(--ink-soft); margin-top: 1rem; max-width: 38rem; line-height: 1.65; }
.linkedin-rows {
  margin-top: 2.5rem;
  border: 1px solid rgba(22,20,19,0.12);
  border-radius: var(--r-md);
  overflow: hidden;
}
.linkedin-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(22,20,19,0.12);
  transition: background 0.15s;
}
.linkedin-row:hover { background: var(--paper-dark); }
.linkedin-row:last-child { border-bottom: 0; }
.linkedin-row__body { flex: 1; min-width: 0; }
.linkedin-row__value {
  font-family: var(--font-body);
  color: var(--ink);
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.linkedin-row__copy {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.825rem;
  color: var(--rust);
  background: transparent;
  border: 1px solid rgba(233,75,39,0.35);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.85rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
  cursor: pointer;
}
.linkedin-row__copy:hover { color: #fff; background: var(--rust); border-color: var(--rust); }

/* ── success page ──────────────────────────────────────────── */
.success__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -0.02em;
  margin-top: 1.5rem;
}
.success__lede {
  font-family: var(--font-body); font-style: italic;
  font-size: 1.25rem; color: var(--ink-soft);
  margin-top: 2rem; line-height: 1.35; max-width: 36rem;
}
.success__copy { margin-top: 2rem; color: var(--ink-soft); max-width: 38rem; line-height: 1.65; }
.success__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── footers ───────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.875rem;
  margin-top: 6rem;
}

/* ── section tag ────────────────────────────────────────────
   Used in place of plain .section-label for the major lesson
   section headers. Renders as a small tilted card with an
   offset shadow — handmade / sticker feel.

   Usage:  <h2 class="section-tag">Skill of the Day</h2>
   ─────────────────────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: baseline;
  background: #FFFCF3;
  border: 1px solid rgba(22,20,19,0.10);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.9rem 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  box-shadow: 3px 3px 0 rgba(22,20,19,0.06);
  transform: rotate(-1.5deg);
  transform-origin: left center;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}
/* Alternation: caller sets .section-tag--alt to tilt the other direction. */
.section-tag--alt { transform: rotate(1.25deg); }

/* ── course progress (dashboard) ────────────────────────────
   Thin, centered, full-width progress strip. Replaces the
   earlier post-it card with something restrained.
   ─────────────────────────────────────────────────────────── */
.course-progress {
  margin: 2.5rem auto 1rem;
  text-align: center;
  max-width: 48rem;
}
.course-progress__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
}
.course-progress__count {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.course-progress__sep { color: var(--ink-muted); }
.course-progress__bar {
  height: 2px;
  background: rgba(22,20,19,0.10);
  border-radius: 1px;
  overflow: hidden;
}
.course-progress__fill {
  height: 100%;
  background: var(--rust);
  width: 0%;
  transition: width 0.6s ease-out;
}
.course-progress__reset {
  margin-top: 0.85rem;
}
.course-progress__reset button {
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.course-progress__reset button:hover { color: var(--rust); }

/* ── print styles (certificate) ────────────────────────────── */
@media print {
  @page { size: letter portrait; margin: 0.4in; }
  html, body { background: #fff !important; background-image: none !important; }
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    box-shadow: none !important;
    background: var(--paper) !important;
  }
  .no-print { display: none !important; }
}

/* ─────────────────────────────────────────────────────────────
   SLIDE STEPPER (new lesson UI)
   One component per screen. Replaces the long-scroll for lessons
   that use the new schema (lesson.proMove present).
   ───────────────────────────────────────────────────────────── */

.stepper {
  margin-top: 2rem;
}

/* Top progress bar for the stepper (separate from the site-wide
   header progress, which still tracks course-wide completion). */
.stepper__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stepper__bar-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--paper-dark);
  overflow: hidden;
}
.stepper__bar-fill {
  height: 100%;
  background: var(--rust);
  transition: width 280ms ease-out;
}
.stepper__bar-label {
  flex-shrink: 0;
  color: var(--ink-muted);
  font-size: 0.7rem;
}

/* Slide card. Barnum, when present, renders inline below the body —
   no head poking above, so no top margin reserved. */
.slide {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(22,20,19,0.08);
  border-radius: var(--r-lg);
  padding: 2.25rem 1.75rem 2.25rem;
  box-shadow: 0 1px 0 rgba(22,20,19,0.04);
  animation: slideFade 320ms ease-out;
}
@media (min-width: 720px) {
  .slide { padding: 2.5rem 2.5rem 2.75rem; }
}
@keyframes slideFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide__body { min-width: 0; }

.slide__head {
  margin-bottom: 1.5rem;
}
.slide__head .section-label { margin-bottom: 0.5rem; }
.slide__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}
.slide__kicker {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.55;
  max-width: 32rem;
}

.slide__section { margin-top: 1.5rem; }
.slide__section .section-label { margin-bottom: 0.85rem; }

/* ── scoring card (Step 1 of new-schema lessons) ──────────────
   Sits between Skill of the Day and Why It Matters. Sets the
   scoring expectation up front so learners know how the points
   stack toward the 10-point pass threshold. */
.scoring-card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--r-md);
}
.scoring-card__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.scoring-card__line {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
.scoring-card__line strong { font-weight: 700; }
.scoring-card__sub {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Footer: Back on the left, Advance on the right. */
.stepper__footer {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(22,20,19,0.08);
  min-height: 4rem;
  gap: 1rem;
}
.stepper__back {
  transition: opacity 220ms ease-out;
}
.stepper__back--hidden {
  visibility: hidden;
  pointer-events: none;
}
.stepper__advance {
  min-width: 9rem;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.stepper__advance--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
}
.stepper__advance--final {
  background: var(--moss);
  border-color: var(--moss);
}
.stepper__advance--final:hover:not(:disabled) {
  background: #284028;
  border-color: #284028;
}

/* ── Slide-scoped overrides for existing components ────────── */
.slide .moves--stacked {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .slide .moves--stacked { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.slide .dos-donts--slide { margin: 0; }
.slide .quiz__question { margin-bottom: 1.5rem; }

/* Ranked-choice options (Pro Move / Extra Credit).
   No A/B/C letter badge — each option is the full statement. */
.stepper__quiz-options { max-width: none; }
.quiz__option--ranked {
  grid-template-columns: 1fr;
  text-align: left;
  padding: 1.1rem 1.25rem;
}
.quiz__option--ranked .quiz__option-text { font-size: 0.975rem; }
.quiz__option--ranked.is-picked {
  border-color: var(--rust);
  background: var(--rust-tint);
  box-shadow: 0 0 0 3px rgba(233,75,39,0.16);
}
.quiz__option--ranked.is-locked:not(.is-picked) {
  opacity: 0.55;
}

/* Key Takeaway quiz options — explanation can reveal in-place. */
.quiz__option--takeaway {
  grid-template-columns: 1fr;
  text-align: left;
  padding: 1.1rem 1.25rem;
  align-items: flex-start;
}
.quiz__option--takeaway.is-correct {
  background: var(--moss-tint);
  border-color: var(--moss);
}
.quiz__option--takeaway.is-wrong {
  background: var(--rust-tint);
  border-color: var(--rust);
}
.quiz__option-exp {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(22,20,19,0.12);
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
}
.quiz__option--takeaway.is-correct .quiz__option-exp { border-top-color: rgba(47,82,56,0.25); }
.quiz__option--takeaway.is-wrong   .quiz__option-exp { border-top-color: rgba(200,56,26,0.22); }

/* ── Pro Move result slide — two stacked boxes ──────────────
   Box 1: the answer text. Box 2: the explanation ("why").
   Header already states the point value, so no "Earned X points"
   line. The user's pick gets a rust-tint background on box 1. */
.result-blocks {
  display: grid;
  gap: 1rem;
}
.result-block {
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.12);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem 1.4rem;
}
.result-block__label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
}
.result-block__text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
}
.result-block--answer.is-pick {
  background: var(--rust-tint);
  border-color: var(--rust);
}
.result-block--answer.is-pick .result-block__label {
  color: var(--rust-deep);
}
/* Top-two pick (Pro Move: 10 or 6 pts) — flip rust to moss. Signals
   "you did well" without making this a binary right/wrong. */
.result-block--answer.is-pick.is-strong {
  background: var(--moss-tint);
  border-color: var(--moss);
}
.result-block--answer.is-pick.is-strong .result-block__label {
  color: var(--moss);
}
.result-block--exp .result-block__text {
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ── Extra Credit results — single slide, all 5 ranked ─────── */
.result-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.result-list__item {
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.10);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem 1.25rem;
}
.result-list__item--pick {
  background: var(--rust-tint);
  border-color: var(--rust);
}
/* Top-two pick (Extra Credit: 5 or 3 pts) — flip rust to moss. */
.result-list__item--pick.is-strong {
  background: var(--moss-tint);
  border-color: var(--moss);
}
.result-list__item--pick.is-strong .result-list__score { color: var(--moss); }
.result-list__item--pick.is-strong .result-list__pick-badge { background: var(--moss); }
.result-list__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}
.result-list__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--rust);
  letter-spacing: -0.02em;
  line-height: 1;
}
.result-list__pick-badge {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--rust);
  color: var(--paper);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.result-list__text {
  font-size: 0.975rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.result-list__exp {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
}

/* ── Corporate Jargon dictionary entry ─────────────────────── */
.jargon {
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--r-md);
  padding: 1.75rem 1.75rem 1.85rem;
  max-width: 36rem;
}
.jargon__entry {
  font-family: var(--font-display);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.jargon__term {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.jargon__pos {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-muted);
}
.jargon__def {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.jargon__example {
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
  border-left: 3px solid var(--rust);
  padding-left: 1rem;
}

/* ── Recap (bulleted by default; prose accepted) ───────────── */
.recap-list {
  list-style: none;
  padding: 0;
  max-width: 36rem;
  display: grid;
  gap: 0.85rem;
}
.recap-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.recap-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--rust);
  font-weight: 700;
}
.recap-prose {
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ── Final score card ──────────────────────────────────────── */
.score-card {
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.12);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem 2rem;
  max-width: 32rem;
}
.score-card--celebration {
  background: linear-gradient(135deg, var(--moss-tint) 0%, var(--sand) 100%);
  border-color: var(--moss);
  box-shadow: 0 8px 24px rgba(47,82,56,0.15);
}
/* Failing state — soft rust tint, no celebration sheen. */
.score-card--fail {
  background: var(--rust-tint);
  border-color: var(--rust);
}
.score-card--fail .score-card__total { border-bottom-color: rgba(233,75,39,0.30); }
.score-card--fail .score-card__num { color: var(--rust-deep); }
.score-card__total {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(22,20,19,0.10);
}
.score-card--celebration .score-card__total { border-bottom-color: rgba(47,82,56,0.25); }
.score-card__num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--rust);
}
.score-card--celebration .score-card__num { color: var(--moss); }
.score-card__of {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.score-card__breakdown { display: grid; gap: 0.6rem; }
.score-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.975rem;
  color: var(--ink-soft);
}
.score-card__row span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
/* Divider that separates the 15 core points from the +5 Extra Credit. */
.score-card__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.score-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.score-card--celebration .score-card__divider { color: var(--moss); }
.score-card--fail .score-card__divider { color: var(--rust-deep); }
.score-card__row--bonus span:last-child {
  color: var(--rust);
}
.score-card--celebration .score-card__row--bonus span:last-child { color: var(--moss); }

/* ── Mascot (Barnum) — figure + speech bubble ─────────────────
   Drops in at the 5 commentary moments per lesson. The figure is
   the painted PNG (warm-gray elephant holding a blank placard);
   the bubble carries the line as a speech callout with a small
   tail pointing back at the figure. Class names use `mascot` (not
   `barnum`) so Bailey can drop in by just swapping the asset path. */
.mascot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.mascot__figure {
  flex: 0 0 auto;
  width: 160px;
  max-width: 38%;
}
.mascot__figure img {
  display: block;
  width: 100%;
  height: auto;
}
.mascot__bubble {
  position: relative;
  flex: 1 1 auto;
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  font-style: italic;
}
.mascot__bubble p {
  margin: 0;
}
/* Tail: small triangle on the bubble's left edge, pointing at Barnum. */
.mascot__bubble::before,
.mascot__bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--sand-deep);
  transform: translateY(-50%);
}
.mascot__bubble::after {
  left: -8px;
  border-right-color: var(--sand);
}
@media (max-width: 559px) {
  .mascot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .mascot__figure {
    width: 60%;
    max-width: 220px;
    align-self: center;
  }
  /* On narrow viewports the figure stacks above the bubble; tail
     flips to point up at Barnum instead of left. */
  .mascot__bubble::before,
  .mascot__bubble::after {
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    border-top: 0;
    border-bottom: 10px solid var(--sand-deep);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
  }
  .mascot__bubble::after {
    top: -8px;
    border-bottom-color: var(--sand);
  }
}

/* Small units appended to point numbers (e.g. "10 pts"). */
.result-card__score-unit { font-size: 1rem; color: var(--ink-soft); font-weight: 400; }
.result-list__score-unit { font-size: 0.7rem; color: var(--ink-soft); font-weight: 400; margin-left: 0.25rem; letter-spacing: 0.04em; }

/* ─────────────────────────────────────────────────────────────
   Scenario picker (slide 2 — Wrong vs. Right Move)
   Cards start neutral. On pick: colors transition in (CSS), then
   the outcome reveal staggers in slightly afterwards.
   ───────────────────────────────────────────────────────────── */

.move-picks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
/* Stacked vertically so the longer email bodies have room to breathe and
   the two cards stay parallel at any width — no horizontal cramping. */
@media (min-width: 720px) {
  .move-picks { gap: 1.5rem; }
}

.move-pick {
  display: block;
  text-align: left;
  width: 100%;
  padding: 1.5rem 1.5rem 1.75rem;
  border: 2px solid rgba(22,20,19,0.12);
  border-radius: var(--r-md);
  background: var(--paper-dark);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 250ms ease-out,
              border-color 250ms ease-out,
              box-shadow 250ms ease-out,
              transform 100ms ease-out;
}
.move-pick:hover:not(:disabled) {
  border-color: var(--rust);
  background: var(--paper);
}
.move-pick:active:not(:disabled) { transform: translateY(1px); }
.move-pick:disabled { cursor: default; }

.move-pick__label {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}
.move-pick__text {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  /* Preserve \n in scenario text so a Subject line can sit on its own row. */
  white-space: pre-wrap;
}

/* Pre-pick: reveal area is collapsed. Transitions on max-height + opacity
   only fire on class change (click), so the post-pick INITIAL render
   (returning to this slide later) shows the revealed state without
   re-playing the animation. */
.move-pick__reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  border-top: 0 solid transparent;
  transition: max-height 400ms ease-out 220ms,
              opacity 320ms ease-out 260ms,
              margin-top 220ms ease-out 220ms,
              padding-top 220ms ease-out 220ms,
              border-top-width 0ms linear 220ms;
}
.moves-block.is-revealed .move-pick__reveal {
  max-height: 28rem;
  opacity: 1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(22,20,19,0.18);
}
.move-pick__reveal-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.move-pick__icon {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.move-pick--right .move-pick__icon { color: var(--moss); }
.move-pick--wrong .move-pick__icon { color: var(--rust); }
.move-pick__outcome {
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.6;
  font-size: 0.975rem;
}
.move-pick__outcome strong {
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.7rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

/* Post-pick: cards transition to their true colors. */
.moves-block.is-revealed .move-pick--right {
  background: var(--moss-tint);
  border-color: var(--moss);
}
.moves-block.is-revealed .move-pick--wrong {
  background: var(--rust-tint);
  border-color: var(--rust);
}

/* Picked card gets an extra ring + a "Your pick" badge. */
.move-pick__pick-badge {
  display: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  margin-left: auto;
}
.moves-block.is-revealed .move-pick.is-picked .move-pick__pick-badge {
  display: inline-block;
}
.moves-block.is-revealed .move-pick.is-picked {
  box-shadow: 0 0 0 3px rgba(22,20,19,0.16);
}

/* Verdict slot under the cards — Barnum drops in here on pick. */
.move-pick__verdict {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  text-align: center;
  transition: max-height 320ms ease-out 460ms,
              opacity 320ms ease-out 480ms,
              margin-top 320ms ease-out 460ms;
}
.moves-block.is-revealed .move-pick__verdict {
  max-height: 30rem;
  opacity: 1;
  margin-top: 1.5rem;
}
/* Inside the verdict slot Barnum already brings his own top margin;
   inside this revealed-only context we don't want it doubled. */
.move-pick__verdict .mascot { margin-top: 0; }

/* ── Quiz options: keep button text top-aligned when long ──── */
.quiz__option { align-items: flex-start; }

/* ── Assignment review (non-AI eval) ─────────────────────────
   Lives on its own slide after the textarea. Three sections:
   the user's draft, mechanical checks, honest self-grade, and
   3-tier example comparison.                                   */
.assignment-review__section {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.assignment-review__section .section-label {
  display: block;
  margin-bottom: 0.5rem;
}
.assignment-review__draft {
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.10);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}
.assignment-review__draft--empty {
  font-style: italic;
  color: var(--ink-muted);
}
.assignment-review__hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 0.6rem;
}

/* Mechanical checks list — green tick for pass, muted dot for fail. */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.check-list__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--paper-dark);
}
.check-list__item.is-pass { background: var(--moss-tint); }
.check-list__item.is-fail { background: var(--paper-dark); color: var(--ink-muted); }
.check-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--paper);
  color: var(--ink-muted);
  flex: 0 0 auto;
}
.check-list__item.is-pass .check-list__icon {
  background: var(--moss);
  color: var(--paper);
}
.check-list__label {
  font-size: 0.92rem;
  line-height: 1.4;
}
.check-list__summary {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Self-grade — plain checkboxes, no fancy decoration. */
.self-grade {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.self-grade__label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.45;
}
.self-grade__box {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--rust);
  flex: 0 0 auto;
}

/* Example match — 3 cards, picked-state reveals annotation + highlights. */
.example-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.example-card {
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.10);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem 1.15rem;
}
.example-card__body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0 0 0.85rem;
}
.example-card__pick-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.example-card__pick-btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.example-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.example-card__tier {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.example-card--great .example-card__tier { color: var(--moss); }
.example-card--weak  .example-card__tier { color: var(--rust); }
.example-card__pick-badge {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.example-card__annotation {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}
.example-card.is-pick {
  background: var(--rust-tint);
  border-color: var(--rust);
}
.example-card.is-pick .example-card__pick-badge { background: var(--rust); }


/* ── Extra section slide ────────────────────────────────────
   Opt-in curriculum slide between Right Move and Pro Move.
   Lesson 25 ("Seven Habits That Compound") is the canonical use.
   Numbered list of named items with bodies. */
.extra-section {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
}
.extra-section__item {
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.10);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.extra-section__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--rust);
  line-height: 1;
  min-width: 1.5rem;
  flex-shrink: 0;
  padding-top: 0.05rem;
}
.extra-section__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.extra-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.25;
}
.extra-section__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Failure modes slide ────────────────────────────────────
   Named-pattern callouts after the Pro Move ranking. Each card
   has a bold pattern name, the verbal tell, and why it fails.
   No interaction — vocabulary callout. */
.failure-modes {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .failure-modes { grid-template-columns: 1fr 1fr; }
}
.failure-mode {
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.10);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.failure-mode__head { display: flex; align-items: baseline; gap: 0.5rem; }
.failure-mode__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rust);
  line-height: 1.2;
}
.failure-mode__tell,
.failure-mode__why {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.failure-mode__tell .section-label,
.failure-mode__why .section-label {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.65rem;
}
.failure-mode__tell .section-label { color: var(--rust); }
.failure-mode__why .section-label { color: var(--ink-muted); }

/* ── AI editing slide ──────────────────────────────────────
   Two-column side-by-side: raw AI draft (rust accent) vs.
   the edited version (moss accent). Below, the three named
   edit moves and the AI-tells checklist. Reflective, no points. */
.ai-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}
@media (min-width: 760px) {
  .ai-compare { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.ai-compare__col {
  background: var(--paper-dark);
  border: 1px solid rgba(22,20,19,0.10);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem 1.15rem;
}
.ai-compare__col--ai { border-left: 3px solid var(--rust); }
.ai-compare__col--edited { border-left: 3px solid var(--moss); }
.ai-compare__col .section-label { margin-bottom: 0.6rem; }
.ai-compare__body {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}
.ai-editing__section {
  margin-top: 2rem;
}
.ai-edits {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.65rem;
}
.ai-edit {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  background: var(--paper-dark);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--moss);
}
.ai-edit__label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.ai-edit__what {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.ai-tells__hint {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0.4rem 0 0.7rem;
}
.ai-tells__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.ai-tells__list li {
  padding: 0.55rem 0.85rem;
  background: var(--rust-tint);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--rust-deep);
  font-style: italic;
}

