/* ==========================================================================
   Starter Course — 2026-09-29
   starter.html and the twelve starter lessons in the site's current look,
   in the Learning Path's orange (body.pr-orange; frame, tokens and footer
   from practice-theme.css — the Starter Course is the free way into the
   Root & Seed Characters course, so it shares that colour). The pages' own
   stylesheets and <style> blocks were re-toned from the green family to the
   orange family in place (tools/recolour-learning-path.py, TARGET=orange);
   this file adds the frame: the hub's colour band and its two cards, and
   the lessons' page edges. The lessons' scripts are unchanged.
   Loaded last on those pages.
   ========================================================================== */

/* ── The hub (starter.html) ─────────────────────────────────────────────── */
body.dna-page.site-ui.pr-page.starter-page { background:var(--pr-bg); }
body.dna-page.site-ui.pr-page.starter-page main.blueprint-page {
  display:block; min-height:0; padding:0; overflow:visible; background:var(--pr-bg); color:var(--hc-ink); font-family:var(--hz-ui);
}
body.dna-page.site-ui.pr-page.starter-page main.blueprint-page::before,
body.dna-page.site-ui.pr-page.starter-page main.blueprint-page::after { display:none; }
body.dna-page.site-ui.pr-page.starter-page .st-kicker {
  display:inline-flex; align-items:center; gap:10px; margin:0 0 14px;
  font:600 12px/1 var(--hz-ui); letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.88);
}
body.dna-page.site-ui.pr-page.starter-page .st-kicker::before { content:""; width:20px; height:2px; border-radius:2px; background:rgba(255,255,255,.75); }
body.dna-page.site-ui.pr-page.starter-page .pr-band h1 { max-width:20ch; }
body.dna-page.site-ui.pr-page.starter-page .pr-lede { max-width:620px; }
body.dna-page.site-ui.pr-page.starter-page .pr-lede strong { font-weight:600; color:#fff; }
body.dna-page.site-ui.pr-page.starter-page .st-band-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px 18px; margin-top:26px; }
body.dna-page.site-ui.pr-page.starter-page .st-status {
  display:inline-flex; align-items:center; gap:10px; min-height:40px; padding:0 16px 0 13px;
  border:1px solid rgba(255,255,255,.4); border-radius:999px; background:rgba(255,255,255,.14);
  font:500 14px/1.3 var(--hz-ui); color:#fff;
}
body.dna-page.site-ui.pr-page.starter-page .st-status i {
  flex:none; width:8px; height:8px; border-radius:50%; background:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.3);
}

/* the two cards over the band's lower edge */
body.dna-page.site-ui.pr-page.starter-page .pr-wrap.st-grid {
  display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr); gap:22px; align-items:start; padding-bottom:0;
}
body.dna-page.site-ui.pr-page.starter-page .course-outline,
body.dna-page.site-ui.pr-page.starter-page .visual-panel {
  position:relative; z-index:1; width:auto; margin:0; padding:26px 28px 24px;
  border:1px solid var(--pr-line); border-radius:22px; background:var(--pr-paper); box-shadow:var(--pr-lift);
  overflow:visible; justify-content:flex-start;
}
body.dna-page.site-ui.pr-page.starter-page .course-outline h2 {
  margin:0 0 16px; font:700 24px/1.2 var(--hz-display); letter-spacing:-.02em; text-transform:none; color:var(--hc-ink);
}
body.dna-page.site-ui.pr-page.starter-page .st-card-kicker,
body.dna-page.site-ui.pr-page.starter-page .visual-heading > span {
  display:inline-flex; align-items:center; gap:10px; margin:0 0 12px;
  font:600 12px/1 var(--hz-ui); letter-spacing:.14em; text-transform:uppercase; color:var(--hc-coral-deep);
}
body.dna-page.site-ui.pr-page.starter-page .st-card-kicker::before,
body.dna-page.site-ui.pr-page.starter-page .visual-heading > span::before { content:""; width:20px; height:2px; border-radius:2px; background:var(--hc-coral); }
body.dna-page.site-ui.pr-page.starter-page .visual-heading { margin-bottom:14px; }
body.dna-page.site-ui.pr-page.starter-page .outline-list { display:flex; flex-direction:column; gap:0; margin:0; padding:0; }
body.dna-page.site-ui.pr-page.starter-page .outline-list li {
  gap:14px; padding:13px 4px; border:0; border-top:1px solid var(--pr-line-soft); border-radius:0; background:none;
}
body.dna-page.site-ui.pr-page.starter-page .outline-list li:last-child { border-bottom:1px solid var(--pr-line-soft); }
body.dna-page.site-ui.pr-page.starter-page .outline-no {
  display:inline-flex; align-items:center; width:auto; height:auto; min-width:26px; border-radius:0; background:none;
  font:600 13px/1 var(--hz-ui); letter-spacing:.08em; color:var(--hc-coral); font-variant-numeric:tabular-nums;
}
body.dna-page.site-ui.pr-page.starter-page .outline-no::before { content:"0"; }
body.dna-page.site-ui.pr-page.starter-page .outline-body strong { font:600 16px/1.35 var(--hz-ui); color:var(--hc-ink); }
body.dna-page.site-ui.pr-page.starter-page .outline-body small { font:400 13px/1.45 var(--hz-ui); color:var(--hc-muted); }
body.dna-page.site-ui.pr-page.starter-page .outline-go {
  display:inline-flex; align-items:center; min-height:34px; padding:0 14px;
  border:1px solid rgba(var(--hc-coral-rgb),.4); border-radius:999px; background:#fff;
  font:600 13px/1 var(--hz-ui); color:var(--hc-coral-deep); text-decoration:none;
  transition:background-color .15s ease,border-color .15s ease;
}
body.dna-page.site-ui.pr-page.starter-page .outline-go:hover { background:var(--hc-tint); border-color:var(--hc-coral-deep); transform:none; }
body.dna-page.site-ui.pr-page.starter-page .outline-list li:first-child .outline-go {
  border-color:transparent; background:linear-gradient(170deg,var(--hc-coral),var(--hc-coral-deep)); color:#fff;
  box-shadow:0 8px 16px -10px rgba(var(--hc-coral-deep-rgb),.55);
}
body.dna-page.site-ui.pr-page.starter-page .outline-list li:first-child .outline-go:hover { background:linear-gradient(170deg,var(--hc-coral-deep),var(--pr-deeper)); }
body.dna-page.site-ui.pr-page.starter-page .visual-panel::before,
body.dna-page.site-ui.pr-page.starter-page .visual-panel::after { display:none; }
body.dna-page.site-ui.pr-page.starter-page .lesson-preview-card,
body.dna-page.site-ui.pr-page.starter-page .lesson-preview-card:hover {
  border-color:var(--pr-line-soft); border-radius:18px; background:#fff; box-shadow:none; transform:none;
}
body.dna-page.site-ui.pr-page.starter-page .visual-note { margin:16px 0 0; font-size:13px; color:var(--hc-muted); }
body.dna-page.site-ui.pr-page.starter-page .page-note {
  width:calc(100% - var(--pr-gutter) * 2); max-width:1200px; margin:22px auto 72px; font-size:13px; color:var(--hc-muted); text-align:left;
}
body.dna-page.site-ui.pr-page.starter-page :is(a,button):focus-visible { outline:2px solid var(--hc-coral-deep); outline-offset:3px; }

@media (max-width:1023px) {
  body.dna-page.site-ui.pr-page.starter-page .pr-wrap.st-grid { grid-template-columns:minmax(0,1fr); }
  body.dna-page.site-ui.pr-page.starter-page .visual-panel { max-width:640px; }
}
@media (max-width:639px) {
  body.dna-page.site-ui.pr-page.starter-page .pr-band h1 { max-width:none; }
  body.dna-page.site-ui.pr-page.starter-page .st-band-actions { margin-top:20px; gap:10px 14px; }
  body.dna-page.site-ui.pr-page.starter-page .course-outline,
  body.dna-page.site-ui.pr-page.starter-page .visual-panel { padding:20px 18px; border-radius:18px; }
  body.dna-page.site-ui.pr-page.starter-page .outline-list li { flex-wrap:wrap; gap:8px 12px; }
  body.dna-page.site-ui.pr-page.starter-page .outline-body { flex-basis:calc(100% - 40px); }
  body.dna-page.site-ui.pr-page.starter-page .outline-go { margin-left:38px; }
  body.dna-page.site-ui.pr-page.starter-page .page-note { margin-bottom:56px; }
}

/* ── The lessons (starter-lesson-N.html) ────────────────────────────────── */
body.dna-page.site-ui.pr-page.lesson-page { background:var(--pr-bg); }
body.dna-page.site-ui.pr-page.lesson-page > main { flex:1 0 auto; }
body.dna-page.site-ui.pr-page.lesson-page .lesson-main { padding-bottom:64px; }
body.dna-page.site-ui.pr-page.lesson-page .lesson-intro,
body.dna-page.site-ui.pr-page.lesson-page .lcard,
body.dna-page.site-ui.pr-page.lesson-page .lesson-card,
body.dna-page.site-ui.pr-page.lesson-page .reco-card,
body.dna-page.site-ui.pr-page.lesson-page .quiz {
  border-color:var(--pr-line); box-shadow:var(--pr-lift);
}
body.dna-page.site-ui.pr-page.lesson-page .lesson-main h1 { font-family:var(--hz-display); font-weight:700; color:var(--hc-ink); }
body.dna-page.site-ui.pr-page.lesson-page .lesson-nav .button,
body.dna-page.site-ui.pr-page.lesson-page .lesson-nav a.button { border-radius:999px; }

/* ── The quiz feedback, said by a guide (starter-lesson-1, 2026-09-29) ─────
   Once the question is answered the answers make room and a figure steps in
   on their right, saying the feedback in an oval bubble whose tail points at
   it. The sentence is still read out from #quizFeedback (now visually
   hidden); the bubble repeats it for the eye. Below 720px the guide stands
   under the answers instead. The figure (assets/guide/mr-wang-talk.webp,
   from Mr Wang's blink-and-talk GIF) moves his mouth while he says the
   sentence aloud (assets/mr-wang-guide.js), then goes back to a smile.
   Tuning: --qt-col (the guide's column), --qt-say-w (bubble width), --qt-h
   (figure height), --qt-say-top (bubble drop, to aim the tail). */
body.dna-page.site-ui.pr-page.lesson-page .quiz {
  --qt-pad:clamp(22px, 4vw, 34px);                          /* the card's padding */
  --qt-col:480px; --qt-say-w:284px; --qt-h:190px; --qt-say-top:30px;
}
body.dna-page.site-ui.pr-page.lesson-page .quiz-body {
  display:grid; grid-template-columns:minmax(0,1fr) 0px; column-gap:0;
  transition:grid-template-columns .45s cubic-bezier(.3,.7,.2,1), column-gap .45s cubic-bezier(.3,.7,.2,1);
}
body.dna-page.site-ui.pr-page.lesson-page .quiz-body.is-on { grid-template-columns:minmax(0,1fr) var(--qt-col); column-gap:18px; }
body.dna-page.site-ui.pr-page.lesson-page .quiz-talk { display:none; }
body.dna-page.site-ui.pr-page.lesson-page .quiz-body.is-on .quiz-talk {
  display:flex; align-items:flex-end; justify-content:flex-end; gap:6px; min-width:0;
  margin-bottom:calc(-1 * var(--qt-pad));                   /* reach the card's bottom edge */
  padding-left:16px;                                        /* room for the bubble's shadow */
  overflow:hidden;
}
body.dna-page.site-ui.pr-page.lesson-page .quiz-talk-who {
  flex:none; display:block; width:auto; height:var(--qt-h); max-width:none;
  animation:qt-who-in .5s .12s cubic-bezier(.2,.8,.3,1.1) both;
}
body.dna-page.site-ui.pr-page.lesson-page .quiz-say {
  --qs-fill:#F4F8FF; --qs-line:rgba(59,130,246,.42); --qs-ink:#1e3a8a;
  position:relative; flex:none; align-self:flex-start; margin-top:var(--qt-say-top); width:var(--qt-say-w); aspect-ratio:320 / 170;
  display:flex; align-items:center; justify-content:center;
  padding:0 calc(var(--qt-say-w) * .215) 0 calc(var(--qt-say-w) * .145);   /* keep the words inside the oval */
  transform-origin:right 60%;
  animation:qt-say-in .34s .42s cubic-bezier(.2,.8,.3,1.2) both;
}
body.dna-page.site-ui.pr-page.lesson-page .quiz-body.is-no .quiz-say { --qs-fill:#FDF3F2; --qs-line:rgba(179,58,50,.38); --qs-ink:#b33a32; }
body.dna-page.site-ui.pr-page.lesson-page .quiz-say-shape { position:absolute; inset:0; width:100%; height:100%; overflow:visible; filter:drop-shadow(0 10px 14px rgba(30,58,138,.12)); }
body.dna-page.site-ui.pr-page.lesson-page .quiz-say-shape path { fill:var(--qs-fill); stroke:var(--qs-line); stroke-width:1.5; vector-effect:non-scaling-stroke; }
body.dna-page.site-ui.pr-page.lesson-page .quiz-say-text {
  position:relative; margin:0; text-align:center; font:600 15px/1.42 var(--hz-ui); color:var(--qs-ink); text-wrap:balance;
}
body.dna-page.site-ui.pr-page.lesson-page .quiz-body ~ .quiz-feedback {   /* read out, not shown */
  position:absolute; width:1px; height:1px; min-height:0; margin:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
@keyframes qt-who-in { from { opacity:0; transform:translateX(36px); } to { opacity:1; transform:none; } }
@keyframes qt-say-in { from { opacity:0; transform:scale(.6); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) {
  body.dna-page.site-ui.pr-page.lesson-page .quiz-body { transition:none; }
  body.dna-page.site-ui.pr-page.lesson-page :is(.quiz-talk-who,.quiz-say) { animation:none; }
}
@media (max-width:719px) {
  body.dna-page.site-ui.pr-page.lesson-page .quiz { --qt-say-w:calc(100% - 127px); --qt-h:124px; --qt-say-top:0px; }
  body.dna-page.site-ui.pr-page.lesson-page .quiz-body.is-on .quiz-talk { padding-left:8px; }
  body.dna-page.site-ui.pr-page.lesson-page .quiz-say { aspect-ratio:auto; min-height:118px; padding-block:24px; }
  body.dna-page.site-ui.pr-page.lesson-page .quiz-body,
  body.dna-page.site-ui.pr-page.lesson-page .quiz-body.is-on { grid-template-columns:minmax(0,1fr); column-gap:0; row-gap:14px; transition:none; }
  body.dna-page.site-ui.pr-page.lesson-page .quiz-say-text { font-size:14px; }
}

@media (min-width:1024px) {
  body.dna-page.site-ui.pr-page.starter-page .st-band-actions { margin-top:clamp(10px,2.96vh,26px); }
}
