/* Florence's lessons — shared museum-style stylesheet
   Used by all the v3 first-lesson mock-ups. */

@font-face{ font-family:'FlorDisplay'; src:url('fonts/FlorenceFraunces.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face{ font-family:'FlorSerif'; src:url('fonts/FlorenceSerif.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face{ font-family:'FlorSerif'; src:url('fonts/FlorenceSerifSemi.ttf') format('truetype'); font-weight:600; font-display:swap; }

:root{
  --paper:#FAF5EA; --ivory:#F2E9D5; --ink:#2E2925; --ink2:#6F665A; --ink3:#A99F8C;
  --terra:#A85E3E; --terra-dark:#8A4628; --slate:#5C7A88; --leaf:#5E7B59;
  --line:#E2D6BD; --panel:#EFE6CF;
  --shadow:0 1px 2px rgba(46,41,37,.04),0 8px 24px rgba(46,41,37,.08);
  --fd:'FlorDisplay',Georgia,'Iowan Old Style',serif;
  --fs:'FlorSerif','Iowan Old Style',Georgia,serif;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:
    radial-gradient(1200px 800px at 10% -10%, #ECE0C3 0%, transparent 60%),
    radial-gradient(900px 600px at 110% 30%, #E5D6B3 0%, transparent 55%),
    linear-gradient(180deg, #E7DBBD 0%, #DCCFB0 100%);
  color:var(--ink); font-family:var(--fs); font-size:17px;
  -webkit-font-smoothing:antialiased; padding:42px 18px 90px; line-height:1.6;
}
.pagewrap{ max-width:840px; margin:0 auto; }

.editors-note{
  background:#FBF7F0; border:1px solid var(--line); border-radius:14px;
  padding:22px 28px; margin-bottom:36px; color:var(--ink2);
  font-size:14.5px; line-height:1.65;
}
.editors-note b{ color:var(--terra); font-family:var(--fd); font-weight:400; }
.editors-note .label{ font-family:var(--fd); color:var(--terra);
  text-transform:uppercase; letter-spacing:.12em; font-size:11.5px;
  margin-bottom:8px; display:block; }

/* page */
.page{ background:var(--paper); border-radius:6px; padding:60px 64px 64px;
  margin-bottom:24px; box-shadow:var(--shadow); position:relative; }
.page.tight{ padding:48px 64px 52px; }
@media (max-width:600px){
  .page{ padding:44px 28px 48px; }
  .page.tight{ padding:36px 28px 40px; }
}

.runner{ display:flex; justify-content:space-between; align-items:center;
  font-family:var(--fd); font-size:11.5px; color:var(--ink3);
  text-transform:uppercase; letter-spacing:.18em;
  border-bottom:1px solid var(--line); padding-bottom:14px; margin-bottom:36px; }
.runner .progress{ display:flex; gap:6px; align-items:center; }
.runner .progress span{ width:24px; height:2px; background:var(--line); display:inline-block; }
.runner .progress span.on{ background:var(--terra); }

/* COVER (hero) */
.cover{ padding:0; overflow:hidden; }
.cover .hero{
  position:relative; background-size:cover; background-position:center;
  color:#FBF7F0; padding:90px 70px 70px;
  min-height:540px; display:flex; flex-direction:column; justify-content:space-between;
}
.cover .hero::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(46,41,37,.50) 0%, rgba(46,41,37,.10) 35%, rgba(46,41,37,.78) 100%);
  z-index:0;
}
.cover .hero > *{ position:relative; z-index:1; }
.cover .hero-top{ display:flex; justify-content:space-between; align-items:flex-start;
  font-family:var(--fd); font-size:12px; text-transform:uppercase; letter-spacing:.22em; opacity:.92; }
.cover .stamp{ border:1px solid rgba(251,247,240,.55); padding:6px 12px; border-radius:2px; }
.cover h1{ font-family:var(--fd); font-weight:400; font-size:64px; line-height:1.02;
  letter-spacing:-.015em; max-width:540px; margin-top:30px; }
.cover .sub{ font-family:var(--fs); font-size:19px; line-height:1.5; opacity:.92;
  max-width:520px; margin-top:18px; }
.cover .for{ font-family:var(--fd); font-style:italic; font-size:17px; opacity:.85;
  border-top:1px solid rgba(251,247,240,.4);
  padding-top:18px; margin-top:36px; max-width:300px; letter-spacing:.04em; }

/* text-shadow on anything sitting over a photographic background */
.cover .hero h1,
.cover .hero .sub,
.cover .hero .hero-top,
.cover .hero .stamp,
.cover .hero .for{
  text-shadow: 0 2px 14px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.45);
}
.text-over{ text-shadow: 0 2px 10px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4); color:#FBF7F0; }
@media (max-width:600px){
  .cover .hero{ padding:54px 30px 44px; min-height:460px; }
  .cover h1{ font-size:44px; }
}

/* teach pages */
.eyebrow{ font-family:var(--fd); font-weight:400; font-size:13px; color:var(--terra);
  text-transform:uppercase; letter-spacing:.2em; margin-bottom:14px; }
h1.kicker{ font-family:var(--fd); font-weight:400; font-size:38px;
  color:var(--ink); line-height:1.1; letter-spacing:-.01em;
  margin-bottom:24px; max-width:560px; }
.dropcap p:first-of-type::first-letter{
  font-family:var(--fd); font-size:62px; line-height:.88;
  float:left; padding:6px 12px 0 0; color:var(--terra); }
p{ font-size:18px; line-height:1.7; margin-top:18px; max-width:580px; }
p:first-of-type{ margin-top:0; }
p b{ font-weight:600; } p i{ color:var(--ink2); }
.lede{ font-size:21px; line-height:1.55; color:var(--ink); max-width:560px; }
.small{ font-size:14.5px; color:var(--ink2); }

/* image plate */
.plate{ margin:32px 0 10px; }
.plate .frame{ background:#FBF7F0; padding:12px; border:1px solid var(--line);
  border-radius:2px; box-shadow:0 6px 18px rgba(46,41,37,.10); }
.plate img{ display:block; width:100%; height:auto;
  filter:sepia(.04) contrast(1.02); border-radius:1px; }
.plate .frame.full{ padding:0; }
.plate .caption{ display:flex; justify-content:space-between; align-items:baseline;
  gap:20px; margin-top:14px; padding:0 4px;
  font-family:var(--fs); font-style:italic; font-size:14px;
  color:var(--ink2); line-height:1.5; }
.plate .caption .ref{ font-style:normal; font-family:var(--fd); font-size:11px;
  color:var(--ink3); text-transform:uppercase; letter-spacing:.16em;
  white-space:nowrap; flex:none; }

/* gallery (two/three images side-by-side) */
.gallery{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:24px; }
.gallery.three{ grid-template-columns:1fr 1fr 1fr; }
@media (max-width:600px){ .gallery, .gallery.three{ grid-template-columns:1fr; } }
.gallery .frame{ background:#FBF7F0; padding:10px; border:1px solid var(--line); border-radius:2px; }
.gallery img{ display:block; width:100%; height:200px; object-fit:cover;
  filter:sepia(.04) contrast(1.03); }
.gallery .cap{ font-family:var(--fs); font-style:italic; font-size:13px;
  color:var(--ink2); padding:8px 4px 2px; }

/* listen / audio bar */
.listen{ display:flex; align-items:center; gap:14px;
  background:var(--ivory); border-radius:60px; padding:12px 18px 12px 14px;
  margin-top:26px; max-width:520px; cursor:pointer; transition:background .18s; }
.listen:hover{ background:#EAE0C5; }
.listen .play{ width:38px; height:38px; border-radius:50%; background:var(--terra);
  color:#FBF7F0; display:flex; align-items:center; justify-content:center;
  font-size:13px; flex:none; }
.listen .what{ font-family:var(--fd); font-size:15.5px; color:var(--ink); }
.listen .how{ font-size:12.5px; color:var(--ink2); margin-top:1px; }
.listen .bar{ flex:1; max-width:120px; height:2px; background:var(--line); position:relative; }
.listen .bar::after{ content:""; position:absolute; left:0; top:0; height:100%; width:18%; background:var(--terra); }

/* question */
.question{ margin-top:30px; padding-top:34px; border-top:1px solid var(--line); }
.question.first{ border-top:none; padding-top:0; }
.qhead{ display:flex; align-items:baseline; gap:14px; margin-bottom:14px; flex-wrap:wrap; }
.qhead .badge{ font-family:var(--fd); font-size:11px; color:var(--terra);
  background:var(--ivory); padding:5px 12px; border-radius:3px;
  text-transform:uppercase; letter-spacing:.16em; border:1px solid var(--line); }
.qhead h2{ font-family:var(--fd); font-weight:400; font-size:22px;
  color:var(--ink); line-height:1.25; margin:0; }
.qprompt{ font-size:19px; line-height:1.55; color:var(--ink); max-width:620px; margin-top:6px; }

/* type-in */
.typein{ display:flex; align-items:center; gap:14px; margin-top:22px; flex-wrap:wrap; }
.typein input{ font-family:var(--fd); font-size:26px; color:var(--ink);
  background:#FBF7F0; border:none; border-bottom:2px solid var(--ink3);
  padding:6px 14px; width:200px; text-align:center; transition:border-color .18s; }
.typein input:focus{ outline:none; border-bottom-color:var(--terra); }
.typein .unit{ font-family:var(--fs); font-size:15px; color:var(--ink2); }
.typein .check{ font-family:var(--fs); font-size:15.5px; color:#FBF7F0;
  background:var(--ink); border:none; border-radius:30px;
  padding:11px 22px; cursor:pointer; }
.typein .check:hover{ background:var(--terra-dark); }

/* multi-stage A→B→C */
.stages{ counter-reset:stage; margin-top:22px; }
.stage{ display:flex; gap:18px; padding:18px 0; border-bottom:1px dashed var(--line); }
.stage:last-child{ border-bottom:none; }
.stage::before{
  counter-increment:stage;
  content:counter(stage, upper-alpha);
  font-family:var(--fd); font-size:22px; color:var(--terra);
  flex:none; width:34px; height:34px; border-radius:50%;
  border:1px solid var(--terra); display:flex; align-items:center; justify-content:center;
}
.stage .body{ flex:1; padding-top:2px; }
.stage .body .p{ font-size:17px; line-height:1.55; }
.stage .typein{ margin-top:10px; }
.stage .typein input{ font-size:21px; width:160px; }

/* multiple choice */
.opts{ margin-top:20px; }
.opt{ display:block; width:100%; text-align:left;
  font-family:var(--fs); font-size:18px; color:var(--ink);
  background:#FBF7F0; border:1px solid var(--line); border-radius:4px;
  padding:16px 22px; margin-top:10px; cursor:pointer;
  transition:border-color .18s, background .18s; position:relative; }
.opt:hover{ border-color:var(--ink3); }
.opt.right{ background:#EAEFE2; border-color:var(--leaf); color:var(--leaf); }
.opt.right::after{ content:"✓"; position:absolute; right:22px; top:50%;
  transform:translateY(-50%); color:var(--leaf); font-weight:600; }

/* photo + pin labelling */
.picid{ margin-top:24px; }
.picid .pic{ position:relative; max-width:680px; margin:0 auto; }
.picid .pic img{ display:block; width:100%; height:auto;
  filter:sepia(.05) contrast(1.04);
  border:1px solid var(--line); border-radius:2px; background:#FBF7F0; }
.picid .pin{ position:absolute; width:36px; height:36px; border-radius:50%;
  background:#FBF7F0; color:var(--terra); border:2px solid var(--terra);
  font-family:var(--fd); font-size:16px; font-weight:600;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(46,41,37,.35); cursor:pointer;
  transform:translate(-50%,-50%); }
.picid .pin.lit{ background:var(--terra); color:#FBF7F0;
  box-shadow:0 0 0 6px rgba(168,94,62,.18),0 2px 8px rgba(46,41,37,.35); }

.matchbox{ background:var(--ivory); border-radius:6px; padding:24px 26px;
  margin-top:22px; border:1px solid var(--line); }
.matchbox h3{ font-family:var(--fd); font-weight:400; font-size:15px;
  color:var(--ink); text-transform:uppercase; letter-spacing:.16em; margin-bottom:14px; }
.slots{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media (max-width:600px){ .slots{ grid-template-columns:repeat(2,1fr); } }
.slot{ background:#FBF7F0; border:1px dashed var(--ink3); border-radius:4px;
  padding:14px 12px; min-height:64px; text-align:center;
  transition:border-color .15s, background .15s; cursor:pointer; }
.slot .n{ font-family:var(--fd); font-size:14px; color:var(--terra);
  text-transform:uppercase; letter-spacing:.18em; display:block; margin-bottom:6px; }
.slot .placed{ font-family:var(--fs); font-size:15.5px; color:var(--ink); display:none; }
.slot.filled{ background:#EAEFE2; border-color:var(--leaf); border-style:solid; }
.slot.filled .n{ color:var(--leaf); }
.slot.filled .placed{ display:block; color:var(--leaf); font-weight:600; }
.slot.shake{ animation:shake .4s; }
@keyframes shake{
  0%,100%{ transform:translateX(0); } 25%{ transform:translateX(-3px); }
  50%{ transform:translateX(3px); } 75%{ transform:translateX(-2px); }
}
.chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; justify-content:center; }
.chip{ font-family:var(--fs); font-size:15.5px; color:var(--ink);
  background:#FBF7F0; border:1px solid var(--line); border-radius:24px;
  padding:9px 18px; cursor:pointer; user-select:none;
  transition:border-color .15s, background .15s, transform .12s; }
.chip:hover{ border-color:var(--ink3); }
.chip.picked{ background:var(--terra); color:#FBF7F0; border-color:var(--terra);
  transform:translateY(-1px); }
.chip.used{ opacity:.32; pointer-events:none; }

.tip{ font-family:var(--fs); font-size:14px; color:var(--ink2);
  margin-top:14px; font-style:italic; }

/* writing room */
.writeroom textarea{ width:100%; min-height:180px; resize:vertical;
  font-family:var(--fs); font-size:18px; line-height:1.7; color:var(--ink);
  background:#FBF7F0; border:1px solid var(--line); border-radius:6px;
  padding:18px 22px; transition:border-color .18s; }
.writeroom textarea:focus{ outline:none; border-color:var(--ink3); }
.writeroom .meter{ font-size:13px; color:var(--ink2); text-align:right;
  margin-top:8px; font-family:var(--fd); letter-spacing:.05em; }
.askrow{ margin-top:18px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.ask{ display:inline-flex; align-items:center; gap:10px;
  font-family:var(--fd); font-size:15px; color:#FBF7F0;
  background:var(--ink); border:none; border-radius:34px;
  padding:13px 24px; cursor:pointer; transition:background .18s, transform .12s; }
.ask:hover{ background:var(--terra-dark); transform:translateY(-1px); }
.ask .spark{ width:6px; height:6px; border-radius:50%; background:var(--terra);
  box-shadow:0 0 0 0 rgba(168,94,62,.55); }
.ask.thinking .spark{ animation:pulse 1.1s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(168,94,62,.55); }
  50%{ box-shadow:0 0 0 6px rgba(168,94,62,0); } }
.reading{ display:none; font-family:var(--fs); font-style:italic;
  font-size:15px; color:var(--ink2); }
.reading.show{ display:inline; }
.response{ display:none; margin-top:22px;
  border-left:3px solid var(--terra); padding:6px 0 6px 22px; }
.response.show{ display:block; animation:fadein .35s ease; }
@keyframes fadein{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:none; } }
.response h3{ font-family:var(--fd); font-weight:400; font-size:18px;
  color:var(--terra); margin-bottom:10px; }
.response p{ font-size:16.5px; line-height:1.65; max-width:none; margin-top:14px; }
.response p:first-of-type{ margin-top:0; }
.response .tag{ font-family:var(--fd); font-size:10.5px; color:var(--leaf);
  background:#EAEFE2; padding:3px 10px; border-radius:2px; margin-right:10px;
  text-transform:uppercase; letter-spacing:.16em; vertical-align:1px; }
.response .tag.gentle{ color:var(--slate); background:#E0E8EC; }
.response .tag.soft{ color:var(--terra); background:var(--ivory); }

/* practical / hands-on panel */
.practical{ background:var(--ivory); border-radius:6px; padding:24px 28px;
  margin-top:24px; border-left:3px solid var(--terra); }
.practical h3{ font-family:var(--fd); font-weight:400; font-size:18px;
  color:var(--terra); margin-bottom:8px; }
.practical p{ font-size:16.5px; max-width:none; }
.practical ol{ font-family:var(--fs); font-size:16px; margin:14px 0 0 22px; color:var(--ink); }
.practical ol li{ margin-bottom:6px; }

/* watch together — film recs */
.watch{ background:#1F1B17; color:#F2E9D5; border-radius:6px;
  padding:54px 60px 58px; margin-bottom:24px; box-shadow:var(--shadow); position:relative; }
@media (max-width:600px){ .watch{ padding:40px 28px; } }
.watch .eyebrow{ color:var(--ivory); opacity:.7; font-family:var(--fd); font-size:11.5px;
  text-transform:uppercase; letter-spacing:.22em; margin-bottom:12px; }
.watch h2{ font-family:var(--fd); font-weight:400; font-size:32px; color:#FBF7F0;
  line-height:1.1; margin-bottom:18px; max-width:560px; }
.watch .blurb{ font-family:var(--fs); font-size:16px; color:#D5C9A8; max-width:520px; margin-bottom:30px; }
.films{ display:grid; grid-template-columns:1fr 1fr; gap:24px 32px; }
@media (max-width:600px){ .films{ grid-template-columns:1fr; } }
.film{ border-top:1px solid #4A3F32; padding-top:18px; }
.film .meta{ font-family:var(--fd); font-size:11px; color:#A99F8C;
  text-transform:uppercase; letter-spacing:.18em; margin-bottom:6px; }
.film .title{ font-family:var(--fd); font-size:21px; color:#FBF7F0; line-height:1.18;
  margin-bottom:8px; }
.film .why{ font-family:var(--fs); font-size:15px; line-height:1.55; color:#D5C9A8; }

/* close */
.close{ text-align:center; padding:60px 60px; }
.close .mark{ font-family:var(--fd); font-style:italic; font-size:14px;
  color:var(--terra); text-transform:uppercase; letter-spacing:.22em; margin-bottom:18px; }
.close h1{ font-family:var(--fd); font-weight:400; font-size:34px;
  color:var(--ink); line-height:1.12; max-width:520px; margin:0 auto; }
.close p{ margin:18px auto 0; max-width:520px; }
.close .signature{ font-family:var(--fd); font-style:italic; color:var(--ink2);
  font-size:15px; margin-top:30px; letter-spacing:.06em; }

/* attribution */
.attr{ background:transparent; padding:30px 8px 4px; font-size:12.5px;
  color:var(--ink2); line-height:1.7; max-width:780px; margin:14px auto 0; }
.attr a{ color:var(--slate); text-decoration:underline; text-underline-offset:2px; }
.attr b{ font-family:var(--fd); font-weight:400; color:var(--terra); }

/* "Cool fact" panel at the bottom of every page */
.coolfact{
  margin-top:42px; padding-top:24px;
  border-top:1px dashed var(--ink3);
  display:grid; grid-template-columns:auto 1fr; gap:8px 24px;
  align-items:start;
}
.coolfact .label{
  font-family:var(--fd); font-size:11.5px; color:var(--terra);
  text-transform:uppercase; letter-spacing:.22em; white-space:nowrap;
  padding-top:3px;
}
.coolfact .body{ font-family:var(--fs); font-size:15.5px; line-height:1.65;
  color:var(--ink2); margin:0; max-width:580px; font-style:italic; }
.coolfact .body b{ color:var(--ink); font-weight:600; font-style:normal; }
.coolfact .body a{ color:var(--slate); }

/* Listen bar — playing state */
.listen.playing{ background:#E6E0CB; }
.listen.playing .play{ background:var(--leaf); }
.listen.playing .what::after{ content:" — playing…"; color:var(--leaf);
  font-style:italic; font-size:13px; }

/* Rich-HTML helpers — hover-to-reveal glossary */
.glossary{ border-bottom:1px dotted var(--terra); cursor:help; position:relative; }
.glossary[data-def]:hover::after, .glossary[data-def]:focus::after{
  content: attr(data-def);
  position:absolute; left:0; top:100%; margin-top:8px;
  background:var(--ink); color:#FBF7F0; padding:10px 14px;
  border-radius:6px; font-family:var(--fs); font-style:normal;
  font-size:13.5px; line-height:1.45; width:280px; max-width:80vw;
  box-shadow:0 8px 24px rgba(0,0,0,.25); z-index:5;
}

/* Tap-to-reveal "flip-card" used for definitions/examples */
.flipcard{ display:inline-block; background:var(--ivory);
  border:1px solid var(--line); border-radius:8px;
  padding:14px 18px; cursor:pointer; user-select:none;
  font-family:var(--fs); font-size:16px; transition:background .2s; }
.flipcard:hover{ background:#E6DABC; }
.flipcard .front, .flipcard .back{ display:block; }
.flipcard .back{ display:none; color:var(--ink2); font-style:italic;
  margin-top:6px; font-size:14.5px; }
.flipcard.flipped .back{ display:block; }

/* ===== v2 engine additions: toast, MC progressive, typein, helper video, two Listen flavours ===== */

/* Toast — gentle inline message for "Not quite", "Yes — that's it" */
.flor-toast{
  position:fixed; left:50%; top:40px; transform:translate(-50%, -8px);
  background:var(--paper); border:1px solid var(--line);
  color:var(--ink); padding:13px 22px; border-radius:30px;
  font-family:var(--fs); font-size:15px; letter-spacing:.005em;
  box-shadow:0 8px 24px rgba(46,41,37,.16);
  opacity:0; transition:opacity .3s ease, transform .3s ease;
  z-index:120; pointer-events:none;
}
.flor-toast.show{ opacity:1; transform:translate(-50%, 0); }
.flor-toast.right{ border-color:var(--leaf); color:var(--leaf); }
.flor-toast.soft{ border-color:var(--terra); color:var(--terra); }

/* Multiple choice — unmistakable right/wrong */
.opts .opt{ transition:background .2s, border-color .2s, color .2s; }
.opts .opt.right{
  background:#EAF1E5; border-color:var(--leaf); color:var(--leaf);
}
.opts .opt.right::after{
  content:" ✓"; font-family:var(--fd); margin-left:6px;
}
.opts .opt.wrong{
  animation:opt-shake .55s ease;
  background:#F6E9E2; border-color:var(--terra);
}
@keyframes opt-shake{
  10%, 90%   { transform:translateX(-2px); }
  20%, 80%   { transform:translateX(3px); }
  30%, 50%, 70% { transform:translateX(-5px); }
  40%, 60%   { transform:translateX(5px); }
}

/* qreveal — third-strike fallback when no variant is available */
.qreveal{
  margin-top:18px; padding:14px 18px; background:var(--ivory);
  border:1px solid var(--line); border-radius:8px;
  font-family:var(--fs); font-size:15.5px; color:var(--ink2); line-height:1.6;
}
.qreveal b{ color:var(--ink); }

/* Type-in answer block */
.typein{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  background:var(--ivory); border:1px solid var(--line);
  border-radius:10px; padding:14px 18px; margin:14px 0;
  transition:border-color .2s, background .2s;
}
.typein input{
  flex:0 0 auto; min-width:120px;
  font-family:var(--fs); font-size:18px; color:var(--ink);
  border:1px solid var(--line); border-radius:6px;
  padding:8px 12px; background:var(--paper);
}
.typein input:focus{ outline:none; border-color:var(--terra); }
.typein .unit{ font-family:var(--fd); color:var(--ink2); font-size:14px; }
.typein .check{
  font-family:var(--fd); font-size:14px; letter-spacing:.04em;
  background:var(--terra); color:var(--paper);
  border:none; border-radius:30px; padding:9px 22px;
  cursor:pointer; transition:background .2s;
}
.typein .check:hover{ background:var(--terra-dark); }
.typein .check.right{ background:var(--leaf); }
.typein .check.wrong{ background:#B95A3F; }
.typein.wrong input{ border-color:var(--terra); background:#F6E9E2; }
.typein.right input{ border-color:var(--leaf); background:#EAF1E5; }
.typein .feedback{
  flex:1 1 100%; margin-top:6px;
  font-family:var(--fs); font-size:14.5px; color:var(--ink2); line-height:1.55;
  display:none;
}
.typein .feedback.show{ display:block; }
.typein .feedback.teach{ color:var(--ink); }

/* Helper video panel — appears on 2nd wrong */
.helper-video{
  margin-top:18px; padding:18px;
  background:var(--ivory); border:1px solid var(--line); border-radius:10px;
}
.helper-video .hv-label{
  font-family:var(--fd); color:var(--terra); font-size:11.5px;
  text-transform:uppercase; letter-spacing:.18em; margin-bottom:10px;
}
.helper-video .hv-frame{
  position:relative; padding-top:56.25%;
  background:#000; border-radius:6px; overflow:hidden;
}
.helper-video iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}

/* ----- Two Listen flavours: detail (short) and story (long) ----- */
.listen.detail .what::before{ content:"A detail — "; color:var(--terra); }
.listen.story  .what::before{ content:"The longer view — "; color:var(--slate); }
.listen.detail{ border-left:3px solid var(--terra); }
.listen.story { border-left:3px solid var(--slate); }
.listen.detail .play{ background:var(--terra); }
.listen.story  .play{ background:var(--slate); }

/* In-page question prompt (variant fallback) */
.qprompt{ font-family:var(--fs); font-size:17px; color:var(--ink);
  margin:14px 0 8px; }

/* ---- end-of-lesson feedback (injected by lesson.js) ---- */
.flo-feedback .ffeedback{ display:flex; flex-direction:column; gap:6px; margin-top:18px; }
.flo-feedback .ffeedback label{ font-family:var(--fd); font-size:14px; color:var(--ink2); margin-top:12px; }
.flo-feedback .ffeedback textarea{ font-family:var(--fs); font-size:16px; color:var(--ink);
  background:#FBF7F0; border:1px solid var(--line); border-radius:6px; padding:12px; resize:vertical; min-height:54px; }
.flo-feedback .ffeedback textarea:focus{ outline:none; border-color:var(--terra); }
.flo-feedback .ffeedback .check{ align-self:flex-start; margin-top:10px; }
.flo-feedback .ffeedback .fthanks{ opacity:0; transition:opacity .3s; color:var(--leaf);
  font-family:var(--fs); font-style:italic; margin-top:10px; }
.flo-feedback .ffeedback .fthanks.show{ opacity:1; }

.flo-feedback .ffeedback .check{ align-self:flex-start; margin-top:12px; background:var(--terra);
  color:#FBF7F0; border:none; border-radius:4px; padding:10px 24px; font-family:var(--fs); font-size:15.5px; cursor:pointer; }
.flo-feedback .ffeedback .check:hover{ background:var(--terra-dark); }
.flo-feedback .ffeedback .check:disabled{ opacity:.5; cursor:default; }
