/* Thinking Coach: the read lock, coach steps, constructed-answer kinds, sit-with-me, parent views */

/* read before you answer: the answer area fades in when the minimum read time is up (no countdown) */
.answer { transition: opacity .45s ease, filter .45s ease; }
.answer.reading { opacity: .35; filter: saturate(.4); }
.go.soft { opacity: .55; }

.coach-tag { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--show-bg); color: var(--show); font: 700 13.5px var(--round); }
.fb.slowdown .fb-head strong { font-size: 20px; }
.t-pre .fb.slowdown .fb-head strong { font-size: 26px; }

/* column working: carries / borrows and answer digits, right to left */
.cw { display: grid; justify-items: center; gap: 10px; }
.cw-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 46px); grid-auto-rows: auto; column-gap: 6px; row-gap: 4px; align-items: center; justify-items: center; font: 800 30px var(--round); font-variant-numeric: tabular-nums; }
.cw-d { height: 42px; line-height: 42px; }

.cw-gap { height: 30px; }
.cw-mark { width: 38px; height: 30px; border-radius: 10px; border: 2px dashed var(--line); background: transparent; color: var(--accent); font: 800 16px var(--round); padding: 0; }
.cw-mark.on { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.cw-line { height: 3px; width: 100%; background: var(--ink); border-radius: 2px; margin: 2px 0; }
.cw-ans { width: 44px; height: 50px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 800 28px var(--round); padding: 0; }
.cw-ans.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cw-ans.bad, .cw-mark.bad { border-color: var(--soft-red); }
.cw-ans.right { border-color: var(--good); color: var(--good); }
.cw-note { margin: 0; color: var(--ink-3); font-size: 14.5px; text-align: center; }
.cw.locked .cw-ans, .cw.locked .cw-mark { cursor: default; }
.cw-svg .cw-s-mark { font-size: 15px; fill: var(--accent); }
.cw-svg .cw-s-ans { fill: var(--good); }

/* multiplication array built by tapping */
.arr { display: grid; justify-items: center; gap: 10px; }
.arr-grid { display: grid; grid-template-columns: repeat(var(--g, 6), 1fr); gap: 4px; width: min(100%, 340px); }
.arr-dot { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); padding: 0; min-width: 0; }
.arr-dot.on { background: var(--accent-2); border-color: var(--accent); }
.arr-label { margin: 0; min-height: 22px; font: 700 17px var(--round); color: var(--ink-2); }
.arr-total { display: flex; align-items: center; gap: 10px; font: 700 17px var(--round); }
.arr-field { min-width: 84px; height: 46px; line-height: 42px; text-align: center; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font: 800 26px var(--round); }
.arr.right .arr-field { border-color: var(--good); color: var(--good); }

/* pre-reader counters: tap to make the number */
.ctr { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: min(100%, 420px); margin: 0 auto; }
.ctr-dot { aspect-ratio: 1; border-radius: 50%; border: 3px dashed var(--line); background: var(--surface); padding: 0; }
.ctr-dot.on { border-style: solid; border-color: var(--coral); background: var(--coral); }

/* sit-with-me */
.sitting .pl-top::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--sun); }
.pl-top { position: relative; }
.sitting .sitbtn { color: var(--warm); background: var(--warm-bg); }
.sit-mark { margin-top: 10px; display: grid; gap: 8px; }
.sit-mark p { margin: 0; font-weight: 700; color: var(--ink); }
.sit-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sit-btns .btn { background: var(--surface); border: 2px solid currentColor; }
.sit-btns .btn.good { color: var(--good); }
.sit-btns .btn.warm { color: var(--warm); }
.sit-done { margin: 8px 0 0; font-weight: 700; }
.sit-dots { display: flex; gap: 10px; justify-content: center; margin: 10px 0; }
.sit-dots .pindot { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); }
.sit-dots .pindot.on { background: var(--accent); }
.sit-pad { margin: 0 auto; justify-content: center; }

/* parent: careful work, guessy sessions, week, replay */
.coach-card .careful { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; }
.coach-card .careful b { font: 800 26px var(--round); grid-row: span 2; }
.coach-card .careful b.warm { color: var(--warm); }
.coach-card .careful small { color: var(--ink-3); font-size: 13px; }
.coach-card .flags-h { margin-top: 12px; }
.flags { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.flags a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warm-bg); color: var(--ink); text-decoration: none; }
.flags small { color: var(--warm); white-space: nowrap; }
.coach-week { margin-bottom: 16px; }
.cw-rows { display: grid; gap: 8px; }
.cw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.cw-row b { min-width: 70px; } .cw-row span { color: var(--ink-2); font-variant-numeric: tabular-nums; } .cw-row .warm { color: var(--warm); font-weight: 700; }
.coach-foot { margin: 18px 0 6px; display: grid; gap: 6px; justify-items: start; }
.rp-head p { margin: 2px 0; color: var(--ink-2); }
.rp-sum b.warm { color: var(--warm); }
.rp-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.rp-q { padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.rp-q.guessy { box-shadow: inset 4px 0 0 var(--warm), var(--shadow); }
.rp-top { display: flex; gap: 10px; align-items: baseline; } .rp-top b { color: var(--ink-3); }
.rp-prompt { white-space: pre-line; }
.rp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.rp-meta, .rp-why, .rp-steps { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.rp-why { color: var(--warm); }
.rp-taps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rp-taps .tap { font: 600 13px var(--font); font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.rp-taps .rp-tl { font: 600 13px var(--font); color: var(--ink-3); padding: 3px 0; }
@media (prefers-reduced-motion: reduce) { .answer { transition: none; } }
