/* assets/reading-train.css — STEP-BY-STEP training for one Reading question type (/reading_skills?train=<type>), 6 Nov 2026
   The question card itself uses assets/reading-skills.css (.rs-…). This file: the title row, the four steps, the lesson,
   the worked example, the hints and the mini-test review. Colours come from the site's tokens, so day and night work.
   Plain CSS (the site's Tailwind is compiled: new utility classes would do nothing). Only opacity/transform animate. */
.rt { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.rt-panel { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 76px; }
.rt-panel[hidden] { display: none; }

/* title row */
.rt-top { display: flex; align-items: center; gap: 12px; }
.rt-title { flex: 1; min-width: 0; }
.rt-title h1 { margin: 2px 0 0; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.rt-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--r-soft); color: var(--r-ink); font-family: var(--lab-font); font-weight: 800; font-size: 16px; }

/* the four steps */
.rt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: rt; }
.rt-steps li { position: relative; min-width: 0; }
.rt-steps li + li::before { content: ""; position: absolute; left: -8px; top: 30px; width: 8px; height: 2px; background: var(--line); }
.rt-steps li.done + li::before { background: var(--ok); }
.rt-steps button { width: 100%; height: 100%; display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; position: relative; }
.rt-steps button:hover:not(:disabled) { border-color: var(--r); transform: translateY(-1px); }
.rt-steps button:disabled { cursor: not-allowed; opacity: .6; }
.rt-steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sub); border: 1.5px solid var(--line); font-weight: 800; font-size: 14px; color: var(--mute); }
.rt-steps .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rt-steps .tx b { font-size: 14.5px; line-height: 1.2; }
.rt-steps .tx small { font-size: 12px; color: var(--mute); line-height: 1.3; }
.rt-steps .best { position: absolute; top: -8px; right: 10px; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-txt); }
.rt-steps li.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.rt-steps li.on button { border-color: var(--r); box-shadow: inset 0 0 0 1px var(--r); background: linear-gradient(160deg, var(--r-soft), var(--card) 75%); }
.rt-steps li.on .n { border-color: var(--r); color: var(--r-ink); }
.rt-steps li.on.done .n { color: #fff; }

/* Learn */
.rt-lesson h2 { margin: 6px 0 4px; font-size: 20px; }
.rt-lesson h3 { margin: 14px 0 8px; font-size: 15px; }
.rt .rt-what { color: var(--body); font-size: 15.5px; }
.rt-lesson .rs-strat { margin-bottom: 0; }
.rt-example { display: flex; flex-direction: column; gap: 12px; }
.rt-exh { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.rt-example .rs-opt { cursor: default; }
.rt-example .rs-opt:hover { border-color: var(--line); }
.rt-example .rt-key { border-radius: 4px; transition: background-color .3s; }
.rt-example.lit .rt-key { background: var(--rs-mark); color: var(--rs-mark-ink); padding: 1px 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.rt-example.solved .rt-ans { border-color: var(--ok); background: var(--ok-soft); }
.rt-example.solved .rt-ans .l { background: var(--ok); color: #fff; border-color: var(--ok); }
.rt-walk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: w; }
.rt-walk li { display: block; counter-increment: w; position: relative; padding: 10px 12px 10px 46px; border-radius: 12px; background: var(--sub); border: 1px solid var(--line2); font-size: 15px; line-height: 1.5; color: var(--body); animation: rtIn .25s ease-out both; }
.rt-walk li::before { content: counter(w); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-txt); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.rt-walk li b { color: var(--ink); }
.rt-walk li em { font-style: normal; font-weight: 700; color: var(--r-ink); }
.rt-walk .rt-akey { display: block; margin-top: 6px; color: var(--ok); font-weight: 700; }
.rt-acts { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.rt-acts[hidden] { display: none; }
.rt-learn-go { justify-content: center; }

/* questions */
.rt-runhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rt-runhead b { font-size: 16px; }
.rt-runhead span { color: var(--mute); font-size: 13px; font-weight: 700; }
.rs-dots li.rt-sv { background: var(--ink); opacity: .55; }
.rt-hints { border-radius: 12px; padding: 10px 14px; background: var(--gold-soft); border: 1px solid rgba(176,122,0,.25); }
.rt-hints .cp-lab { color: var(--gold-txt); margin: 0 0 4px; }
.rt-hints ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rt-hints li { font-size: 14.5px; line-height: 1.45; color: var(--ink); padding-left: 18px; position: relative; }
.rt-hints li::before { content: "›"; position: absolute; left: 4px; top: 0; font-weight: 800; color: var(--gold-txt); }
.rt-hints li.look { font-weight: 600; }
.rs-fb.rt-try { background: var(--gold-soft); }
.rt .rs-fb.rt-try .v { color: var(--gold-txt); }
.rt .rs-opt.rt-x { text-decoration: line-through; opacity: .75; }

/* the end of a step */
.rt .rt-endcard h2 { margin: 2px 0; font-size: 22px; }
.rt .rt-meta { color: var(--mute) !important; font-size: 13px !important; }
.rt .rt-pass b { color: var(--ok); }
.rt-review { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.rt-review li { border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--ok); background: var(--card); }
.rt-review li.no { border-left-color: var(--bad); }
.rt .rt-review .q { font-weight: 700; color: var(--ink); font-size: 14.5px; margin: 2px 0; }
.rt .rt-review .a { font-size: 14px; }
.rt .rt-review .w { font-size: 13.5px; color: var(--mute); margin-top: 2px; }

@media (max-width: 760px) {
  .rt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-steps li + li::before { display: none; }
  .rt-title h1 { font-size: 21px; }
  .rt-ico { width: 44px; height: 44px; border-radius: 13px; font-size: 14px; }
}
@media (max-width: 380px) { .rt-steps .tx small { display: none; } }
@keyframes rtIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rt-walk li { animation: none; } .rt-steps button { transition: none; } .rt-steps button:hover:not(:disabled) { transform: none; } }
html.lk-lite .rt-walk li { animation: none; }
html.lk-lite .rt-steps button { transition: none; }
