/* ============================================================================
   Starter lessons — premium UI overlay. It lifts the whole starter set to
   match Lesson 11's look.
   Only *visual* properties are set (background / border / shadow / radius /
   hover) — layout (grid, flex, sizes) is left to each lesson's own CSS.
   Colour tokens (--line, --green, --green-2, --green-soft, --red …) come from
   body.lesson-page in every lesson; the fallbacks now name theme.css tokens
   instead of repeating navy/blue literals, and the raw literals that were
   hard-coded here are theme tokens now.

   ── WHERE THIS FILE SITS, AND WHY YOUR OVERRIDE ISN'T WORKING ─────────────
   Load order on every starter lesson:

     1  assets/theme.css              tokens only, no rules
     2  style.css
     3  the lesson's own <style>      base block — .lcard, .result, .option …
     4  THIS FILE                     .lesson-page .lcard, .lesson-page .result …
     5  <style id="codex-premium-overrides">
                                      the per-lesson palette and trim, again
                                      mostly single-class selectors

   Every rule in this file is .lesson-page X = specificity 0,2,0. The base
   block and the codex override are mostly 0,1,0. 0,2,0 beats 0,1,0 whatever
   the source order, so THIS FILE ALSO WINS OVER THE BLOCK THAT LOADS AFTER
   IT. Lesson 10 is the worked example: its codex override says
   .result { background:#fdf6f0 } and that background has never once been
   painted, because .lesson-page .result down at the bottom of this file
   outranks it.

   So if a colour you set in a codex block does nothing, this file is eating
   it. Change it HERE, or match the weight there (body.lesson-page .result).
   ============================================================================ */

/* ── headings & intro ───────────────────────────────────────────────────── */
.lesson-page .lesson-main h1 { letter-spacing: -.02em; }

.lesson-page .lesson-intro {
  background: linear-gradient(180deg, var(--t-white) 0%, var(--t-white) 100%);
  border: 1px solid var(--t-line);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(var(--t-green-deep-rgb), 0.08), 0 2px 6px rgba(var(--t-green-deep-rgb), 0.04);
}

/* ── cards & eyebrows ───────────────────────────────────────────────────── */
.lesson-page .lcard,
.lesson-page .reco-card {
  background: linear-gradient(180deg, var(--t-white) 0%, var(--t-white) 100%);
  border: 1px solid var(--t-line);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(var(--t-green-deep-rgb), 0.09), 0 2px 6px rgba(var(--t-green-deep-rgb), 0.04);
}
.lesson-page .card-eyebrow {
  background: linear-gradient(180deg, var(--t-green-tint), var(--t-sand));
  border: 1px solid rgba(var(--t-green-rgb), 0.22);
  box-shadow: var(--t-sh-1);
  letter-spacing: .12em;
}
.lesson-page .card-q { letter-spacing: -.01em; }

/* ── lesson step tabs: drop the number / tick circles, keep balanced pills ── */
.lesson-page .char-tab { padding: 8px 16px; }
.lesson-page .char-tab .ct-num,
.lesson-page .char-tab .ct-tick { display: none; }

/* ── tappable option cards (MCQ / compare / rule) ───────────────────────── */
.lesson-page .option,
.lesson-page .rule-opt,
.lesson-page .cmp-opt {
  border: 1px solid var(--line, var(--t-line));
  border-radius: 14px;
  background: linear-gradient(180deg, var(--t-white) 0%, var(--t-cream) 100%);
  box-shadow: 0 4px 12px rgba(var(--t-green-deep-rgb), 0.05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .3s ease;
}
.lesson-page .option:hover:not(:disabled),
.lesson-page .rule-opt:hover:not(:disabled),
.lesson-page .cmp-opt:hover:not(:disabled) {
  transform: translateY(-2px);
  /* an edge, so a *-mark value is the right one here */
  border-color: var(--green-2, var(--t-green-bright));
  box-shadow: 0 12px 26px rgba(var(--t-green-deep-rgb), 0.14);
}
.lesson-page .option:active:not(:disabled),
.lesson-page .rule-opt:active:not(:disabled),
.lesson-page .cmp-opt:active:not(:disabled) { transform: translateY(0); }

/* ── picture / stroke tiles (recognition quizzes) ───────────────────────── */
.lesson-page .picture-box {
  background: linear-gradient(160deg, var(--t-white) 0%, var(--t-sand) 100%);
  box-shadow: 0 10px 24px rgba(var(--t-green-deep-rgb), 0.08), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.lesson-page .stroke-tile {
  box-shadow: 0 6px 16px rgba(var(--t-green-deep-rgb), 0.08), inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* ── variant / meaning tables ───────────────────────────────────────────── */
.lesson-page .variant-row {
  border: 1px solid var(--t-line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--t-white), var(--t-sunk));
  box-shadow: 0 5px 14px rgba(var(--t-green-deep-rgb), 0.06);
}

/* ── result banner ──────────────────────────────────────────────────────── */
/* Neutral panel, not a verdict: no lesson gives .result an .ok / .wrong
   variant, it just shows the explanation once an answer is in. If one ever
   does, it has to be written at 0,2,0 or higher — see the header. */
.lesson-page .result {
  border-radius: 16px;
  background: linear-gradient(180deg, var(--t-green-tint) 0%, var(--t-green-tint-2) 100%);
  border: 1px solid rgba(var(--t-green-rgb), 0.35);
  box-shadow: 0 12px 30px rgba(var(--t-green-deep-rgb), 0.13);
}

/* ── bottom nav: hidden on every lesson (no back / next arrows) ──────────── */
.lesson-page .lesson-nav { display: none; }

/* Everything below styles the inside of that hidden nav, so none of it paints
   today. Kept and re-pointed rather than deleted — the display:none above is
   one line away from being flipped back. */
.lesson-page .lesson-nav a:not(.button),
.lesson-page .lesson-nav .button {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: auto; padding: 4px 10px;
  border: none; border-radius: 0; background: none; box-shadow: none;
  /* semi-transparent arrow, glyph ≈ 5 mm tall */
  color: rgba(var(--t-green-deep-rgb), 0.5);
  font-size: 7mm; line-height: 1; font-weight: 400;
  text-decoration: none;
  transition: transform .16s ease, color .2s ease, opacity .2s ease;
}
.lesson-page .lesson-nav a:not(.button):hover { transform: translateX(-5px); color: rgba(var(--t-green-deep-rgb), 0.8); text-decoration: none; }
.lesson-page .lesson-nav .button:hover,
.lesson-page .lesson-nav .button.ready:hover { transform: translateX(5px); color: rgba(var(--t-green-deep-rgb), 0.8); box-shadow: none; }

/* A character named inside a sentence ("Look at 十 八 下 and 文"), set in a small
   box — the lesson tiles' red frame, no lines inside — so it reads as a character
   to study, at a size where its strokes can be seen. */
.lesson-page .han-box {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 2px 3px;
  vertical-align: middle;
  border: 1.5px solid rgba(179, 58, 50, 0.4);
  border-radius: 7px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  color: var(--red, #b33a32);
  font-family: "KaiTi", "STKaiti", "DFKai-SB", "Kaiti SC", "楷体", "LXGW WenKai Screen", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}
