/* learn-scaffold.css - phase 2 scaffolds (learn-scaffold.js): faded worked steps in a question, "Why does this step
   work?" in the feedback panel, and "Have a go first" on a lesson's Learn page. Neutral surfaces from the tokens (green
   is only ever "correct"), light and dark; no red, no left bars. */
.lf-steps{margin:12px 0 4px;padding:12px 16px;border-radius:16px;background:var(--sunk)}
.lf-h{margin:0 0 6px;font-weight:700;color:var(--ink-2);font-size:.9375rem}
.lf-steps ol{margin:0;padding-left:1.4em}
.lf-steps li{margin:4px 0;line-height:1.45}
.lf-steps li.lf-you{color:var(--ink-2);font-weight:700}
.lw{margin:10px 0 0}
.lw-q{margin:0;font-weight:700}
.lw-s{margin:4px 0 2px;color:var(--ink-2)}
.lw-a{margin:4px 0 0}
.lw-b{margin:2px 0 0}
/* Have a go first (owner, 13 Oct: "not best use of space"): as wide as the lesson's prose and as tall as its content, the
   padding of the lesson's other cards (.ln-think); the eyebrow alone (minimal text); one row: the field grows beside the
   primary Lock in, Skip a quiet link after it. A phone stacks them: field, Lock in, Skip, each full width. */
.lpq{box-sizing:border-box;width:100%;min-width:0;max-width:65ch;margin:0 0 24px;padding:16px 18px;border-radius:18px;background:var(--blue-tint);overflow-wrap:break-word}   /* a word breaks only when it is longer than a whole line, never mid-word otherwise (owner, 9 Oct) */
.lpq-eb{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:2px;margin:0 0 8px;font:700 14px/1.3 var(--f-body);color:var(--blue-ink)}
.lpq-eb svg{flex:none}
.lpq-stem>:first-child,.lpq-p>:first-child{margin-top:0}
.lpq-p{margin:0;font-weight:600}.lpq-p>:last-child{margin-bottom:0}
/* the player's own multiple-choice tiles (.lq-tile), a little tighter; two to a row where they fit, so four take two rows,
   and one to a row (.is-1col, set by learn-scaffold.js) when an option has a word too long for a half-width tile */
.lpq-ch{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:8px;margin:12px 0 0}   /* min(100%, ...): a long option wraps, never widens the card */
.lpq .lq-tile.lpq-c{box-sizing:border-box;min-width:0;min-height:48px;padding:8px 14px;gap:12px;font-size:16.5px;white-space:normal;overflow-wrap:break-word}
.lpq .lq-tile .k{width:26px;height:26px;font-size:13px}
.lpq .lq-tile .c{min-width:0}
.lpq-ch.is-1col{grid-template-columns:minmax(0,1fr)}
.lpq-ch.is-fit .lq-tile .c{overflow-wrap:normal}   /* while learn-scaffold.js measures: a word that does not fit shows as overflow */
/* the chosen option reads at a glance in both themes: a teal edge (3:1 or more against the card), a teal wash, the number
   in a filled teal badge */
.lpq .lq-tile.lpq-c[aria-pressed="true"]{--sel:var(--study-btn);border-color:var(--sel);background:color-mix(in srgb,var(--sel) 12%,var(--surface));box-shadow:inset 0 0 0 1px var(--sel);transform:none}
:root[data-theme="dark"] .lpq .lq-tile.lpq-c[aria-pressed="true"]{--sel:var(--study-ink);border-color:var(--sel);background:color-mix(in srgb,var(--sel) 14%,var(--surface));box-shadow:inset 0 0 0 1px var(--sel)}
.lpq .lq-tile.lpq-c[aria-pressed="true"] .k,:root[data-theme="dark"] .lpq .lq-tile.lpq-c[aria-pressed="true"] .k{border-color:var(--sel);background:var(--sel);color:#fff}
:root[data-theme="dark"] .lpq .lq-tile.lpq-c[aria-pressed="true"] .k{color:#04161c}
.lpq-c *,.lpq-stem *,.lpq-p *{white-space:normal}   /* the no-split spans (bl-nobreak) may break here: a phone column is narrower than some options */
.lpq-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin:12px 0 0}
.lpq-in{display:flex;align-items:center;gap:8px;flex:1 1 200px;min-width:0;max-width:360px;margin:0}
.lpq-in input{box-sizing:border-box;flex:1 1 auto;min-width:0;width:100%;min-height:54px;padding:0 14px;border:2px solid var(--btn-2-edge);border-radius:16px;background:var(--surface);color:inherit;font:600 17px var(--f-body);
  transition:border-color .15s var(--ln-ease,ease),box-shadow .15s var(--ln-ease,ease)}
.lpq-in input:focus{outline:none;border-color:var(--study-ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--study-ink) 28%,transparent)}
.lpq-in input:disabled{opacity:.8}
.lpq-in .u{flex:none;color:var(--ink-2);font-weight:700}
.lpq .lp-btn.lpq-lock{flex:0 0 auto;min-width:140px;min-height:54px}
/* not yet answered: still the primary, only quieter (it was drawn like Skip) */
.lpq .lp-btn.lpq-lock:disabled{background:var(--study-btn);color:var(--on-study-btn);box-shadow:none;opacity:.5}
/* dark: a dim teal with a 2px edge (#24a7b2: 4.5:1 or more on the card and the page, WCAG 1.4.11; half-opacity teal
   was 2.82:1) and its words at 8.2:1; still plainly "not yet" beside the live button */
:root[data-theme="dark"] .lpq .lp-btn.lpq-lock:disabled{background:#0b4a54;color:#d6eef0;box-shadow:inset 0 0 0 2px #24a7b2;opacity:1}
.lpq .lp-link.lpq-skip{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;margin:0;padding:7px 16px}
.lpq-saved{margin:10px 0 0;color:var(--ink-2)}
.lpq-end p{margin:0}
.lpq-end .lpq-why{margin:6px 0 0;padding:0;list-style:none;color:var(--ink-2);font-size:15px;line-height:1.45}
.lpq-end .lpq-why li + li{margin-top:2px}   /* the one-line reason under "You said ... The answer: ..." (6 Nov 2026) */
/* a phone: a full-bleed section, edge to edge, its content on the column's 16 px gutter; the options stay rounded */
@media (max-width:599px){.lpq{width:auto;max-width:none;margin-inline:calc(50% - 50vw);padding:16px calc(50vw - 50%);border-radius:0}   /* the padding is the column's own gutter, so the content lines up with the title */
  .lpq-row{flex-direction:column;align-items:stretch;gap:10px}.lpq-in{flex:none;max-width:none}.lpq .lp-btn.lpq-lock{width:100%}.lpq .lp-link.lpq-skip{align-self:center}}
@media (max-width:420px){.lf-steps{padding:10px 12px}}
/* a phone: the worked steps folded into one line, 44 px, above the options; a tap opens them */
details.lf-steps.lf-fold{padding:0 14px}
details.lf-steps.lf-fold > summary{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;cursor:pointer;list-style:none}
details.lf-steps.lf-fold > summary::-webkit-details-marker{display:none}
details.lf-steps.lf-fold > summary::after{content:'';width:9px;height:9px;margin-inline-start:auto;border:solid currentColor;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
details.lf-steps.lf-fold[open] > summary::after{transform:rotate(225deg) translate(-2px,0)}
details.lf-steps.lf-fold[open]{padding-bottom:10px}
@media (prefers-reduced-motion:reduce){details.lf-steps.lf-fold > summary::after{transition:none}}
@media (forced-colors:active){.lf-steps,.lpq{border:2px solid CanvasText}}
