/* Reading (2026-11-01): the hub's lists (reading.html) and one text or test (reading-text.html, drawn by
   assets/reading.js). The blue is --t-area-read-* (theme.css): the Practice page of the home page's book. */
:root {
  --rd-zh: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
  --rd-ink: var(--t-area-read-ink);
  --rd-mark: var(--t-area-read-mark);
  --rd-tint: var(--t-area-read-tint);
  --rd-tint2: var(--t-area-read-tint2);
}
[lang="zh-CN"] { font-family: var(--rd-zh); }

/* ── The hub: levels and their lists ─────────────────────────────────────── */
.rd-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.rd-jump a {
  padding: .45rem .95rem; border: 1px solid var(--t-line); border-radius: var(--t-r-pill);
  background: var(--t-white); color: var(--t-ink); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.rd-jump a:hover { border-color: var(--rd-ink); color: var(--rd-ink); }
.rd-hub { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.rd-level { scroll-margin-top: calc(var(--mw-header-h, 80px) + 1rem); padding: 1.4rem 1.25rem; border: 1px solid var(--t-line-soft);
  border-radius: var(--t-r-md); background: var(--t-white); }
@media (min-width: 768px) { .rd-level { padding: 1.6rem 1.75rem; } }
.rd-level header h3 { margin: 0; font-family: var(--t-display); font-size: 1.6rem; }
.rd-level header p { margin: .3rem 0 0; color: var(--t-muted); font-size: .92rem; }
.rd-items { display: grid; gap: .6rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px)  { .rd-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rd-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rd-item a {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'n zh' 'n en' 'n meta' 'n state';
  column-gap: .8rem; row-gap: .1rem; height: 100%; padding: .85rem 1rem;
  border: 1px solid var(--t-line); border-radius: 1rem; background: var(--t-white);
  color: var(--t-ink); text-decoration: none; transition: border-color .15s ease, background .15s ease;
}
.rd-item a:hover { border-color: var(--rd-ink); background: var(--rd-tint); }
.rd-item-n { grid-area: n; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--rd-tint); color: var(--rd-ink); font-weight: 700; font-size: .85rem; }
.rd-item b { grid-area: zh; font-size: 1.08rem; font-weight: 600; line-height: 1.4; }
.rd-item-en { grid-area: en; color: var(--t-ink-2); font-size: .9rem; line-height: 1.4; }
.rd-item-meta { grid-area: meta; color: var(--t-muted); font-size: .8rem; }
.rd-item-passages { grid-area: en; margin: .15rem 0 0; padding: 0; list-style: none; color: var(--t-ink-2); font-size: .9rem; line-height: 1.5; }
.rd-item-passages li::before { content: '· '; color: var(--t-muted); }
.rd-item-state { grid-area: state; margin-top: .3rem; color: var(--t-muted); font-size: .8rem; font-weight: 600; }
.rd-item.is-going .rd-item-state { color: var(--t-selected); }
.rd-item.is-done .rd-item-state { color: var(--t-correct-ink); }
/* A text closed to this visitor (assets/access.js, 2026-11-02: the test list only): the lock sits in the card's
   top-right corner, so the title keeps clear of it. */
.rd-item a.mw-locked b { padding-right: 1.6rem; }
.rd-hub-note { max-width: 46rem; margin: 1.5rem 0 0; color: var(--t-muted); font-size: .82rem; line-height: 1.5; }

/* ── One text or test ────────────────────────────────────────────────────── */
.rd-main { max-width: 780px; margin: 0 auto; padding: 1.5rem 1rem 5rem; color: var(--t-ink); font-family: var(--t-ui); }
.rd-main.is-wide { max-width: 1320px; }
/* how far below the top a held column sits: under the header, and under the tab bar of a test */
.rd-main { --rd-stick: calc(var(--mw-header-h, 80px) + 1rem); }
.rd-main.is-test { --rd-stick: calc(var(--mw-header-h, 80px) + 5.5rem); }
@media (min-width: 768px) { .rd-main { padding: 2rem 2rem 6rem; } }
.rd-main *, .rd-main *::before, .rd-main *::after { box-sizing: border-box; }
.rd-say { color: var(--t-muted); }
.rd-card { padding: 2rem; border-radius: var(--t-r-md); background: var(--t-white); border: 1px solid var(--t-line-soft); }
.rd-crumb { display: flex; flex-wrap: wrap; gap: .45rem; color: var(--t-muted); font-size: .88rem; }
.rd-crumb a { color: var(--t-muted); }
.rd-crumb a:hover { color: var(--rd-ink); }

.rd-head { margin: 1.25rem 0 1.5rem; }
.rd-kicker { margin: 0 0 .6rem; color: var(--rd-ink); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.rd-head h1 { margin: 0; font-family: var(--t-display); font-size: 2.2rem; line-height: 1.2; }
.rd-head h1[lang="zh-CN"] { font-family: var(--rd-zh); font-weight: 700; letter-spacing: .02em; }
@media (min-width: 768px) { .rd-head h1 { font-size: 2.7rem; } }
.rd-en-title { margin: .4rem 0 0; color: var(--t-ink-2); font-size: 1.1rem; }
.rd-facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.rd-facts li { padding: .25rem .7rem; border-radius: var(--t-r-pill); background: var(--t-sand); color: var(--t-ink-2); font-size: .85rem; }
.rd-lede { max-width: 48rem; margin: 1rem 0 0; color: var(--t-ink-2); line-height: 1.6; }

.rd-toggles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.rd-toggle {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.4rem; padding: 0 1rem;
  border: 1px solid var(--t-line); border-radius: var(--t-r-pill); background: var(--t-white);
  color: var(--t-ink-2); font: 600 .9rem var(--t-ui); cursor: pointer;
}
.rd-toggle::before { content: ''; width: .9rem; height: .9rem; border: 2px solid currentColor; border-radius: .25rem; }
.rd-toggle[aria-pressed="true"] { border-color: var(--rd-ink); background: var(--rd-tint); color: var(--rd-ink); }
.rd-toggle[aria-pressed="true"]::before { background: currentColor; box-shadow: inset 0 0 0 2px var(--rd-tint); }

/* the text */
.rd-text, .rd-passage { padding: 1.4rem 1.25rem; border: 1px solid var(--t-line-soft); border-radius: var(--t-r-md); background: var(--t-white); }
@media (min-width: 768px) { .rd-text { padding: 2rem 2.25rem; } }
.rd-zh { margin: 0; font-size: 1.22rem; line-height: 2; color: var(--t-ink); }
/* Pinyin over each character (2026-11-02; assets/pinyin-ruby.js pairs them, reading.js builds the columns), shown by
   the Pinyin switch: each character a little column with its pinyin on top, wide enough that two syllables never run
   together; a punctuation mark sits beside its character. With the switch off, plain text again. */
.rd-c-py { display: none; }
:is(.rd-text.show-py, .rd-look) .rd-zh.has-py { line-height: 1; }
:is(.rd-text.show-py, .rd-look) .rd-u { display: inline-flex; align-items: flex-end; margin: .25rem 0 .6rem; vertical-align: bottom; }
:is(.rd-text.show-py, .rd-look) .rd-c { display: inline-flex; flex-direction: column; align-items: center; min-width: 1.3em; padding: 0 .08em; }
:is(.rd-text.show-py, .rd-look) .rd-c-py { display: block; color: var(--t-muted); font: 500 .6em/1.35 var(--t-ui); white-space: nowrap; }
:is(.rd-text.show-py, .rd-look) :is(.rd-c-zh, .rd-c-p) { line-height: 1.3; }
/* Pinyin on request, HSK 4–9 (Yi, 2026-11-02: "HSK4级以上只提供选字或者词或者单个句子的拼音"): select a word or one
   sentence, and this card shows it with its pinyin (reading.js, showLook) */
.rd-look { position: fixed; z-index: 60; max-width: min(34rem, calc(100vw - 16px)); padding: .55rem .9rem .2rem;
  border: 1px solid var(--t-line); border-radius: .9rem; background: var(--t-white); color: var(--t-ink);
  box-shadow: 0 14px 34px -14px rgba(20, 30, 60, .4); pointer-events: none; }
.rd-look .rd-zh { font-size: 1.2rem; }
.rd-look .rd-c-py { color: var(--rd-ink); }
.rd-look-say { margin: 0 0 .35rem; color: var(--t-ink-2); font-size: .9rem; }
.rd-look-hint { margin: 0; color: var(--t-muted); font-size: .85rem; }
.rd-bar .rd-look-hint { margin-left: auto; }
.rd-bar .rd-look-hint + .rd-toggles { margin-left: 0; }
.rd-toggles .rd-look-hint { align-self: center; margin-left: .25rem; }
/* two punctuation marks side by side: the first gives up the empty half of its square (reading.js, squeeze) */
.rd-sq { margin-right: -.5em; }
.rd-p + .rd-p, .rd-p + .rd-points, .rd-points + .rd-p, .rd-table-wrap + .rd-p, .rd-p + .rd-table-wrap { margin-top: .9rem; }
.rd-py { display: none; margin: .1rem 0 0; color: var(--t-muted); font-size: .98rem; line-height: 1.7; }
.rd-tr { display: none; }
.rd-tr:is(p) { margin: .25rem 0 0; color: var(--rd-ink); font-size: .98rem; line-height: 1.65; }
.show-py .rd-py { display: block; }
.show-en .rd-tr { display: block; }
.rd-tr-block { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--t-line); color: var(--rd-ink); line-height: 1.65; }
.rd-tr-label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.rd-points { margin: .9rem 0 0; padding-left: 1.4rem; }
.rd-points li + li { margin-top: .4rem; }
.rd-table-wrap { overflow-x: auto; }
.rd-table-wrap table { border-collapse: collapse; min-width: 100%; font-size: 1.05rem; }
.rd-table-wrap th, .rd-table-wrap td { padding: .5rem .75rem; border: 1px solid var(--t-line); text-align: left; vertical-align: top; }
.rd-table-wrap th { background: var(--t-sand); font-weight: 600; }

/* lettered paragraphs of a test passage */
.rd-passage header h2 { margin: 0; font-family: var(--rd-zh); font-size: 1.6rem; line-height: 1.35; }
.rd-passage header { margin-bottom: 1rem; }
.rd-lettered { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: .6rem; scroll-margin-top: 8rem; }
.rd-para-k { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-top: .35rem; border-radius: .45rem;
  background: var(--rd-tint); color: var(--rd-ink); font-weight: 700; font-size: .85rem; }
.rd-passage .rd-zh { font-size: 1.12rem; line-height: 1.95; }
.rd-notes { margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: 1rem; background: var(--t-sand); font-size: .95rem; line-height: 1.7; }
.rd-notes h3 { margin: 0 0 .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); }
.rd-notes ul { margin: 0; padding: 0; list-style: none; }
.rd-notes ul.rd-tr { margin-top: .6rem; color: var(--rd-ink); }

/* a test: tabs, then the passage beside its questions */
.rd-tabbar { position: sticky; top: var(--mw-header-h, 80px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  margin: 0 -1rem 1.25rem; padding: .6rem 1rem; background: rgba(251, 250, 245, .95); border-bottom: 1px solid var(--t-line-soft);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rd-tabs { display: flex; gap: .4rem; overflow-x: auto; }
.rd-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; min-width: 0; max-width: 15rem; padding: .45rem .9rem;
  border: 1px solid var(--t-line); border-radius: .9rem; background: var(--t-white); color: var(--t-ink-2);
  font: inherit; text-align: left; cursor: pointer;
}
.rd-tab b { font-size: .85rem; }
.rd-tab span { max-width: 100%; overflow: hidden; color: var(--t-muted); font-size: .8rem; white-space: nowrap; text-overflow: ellipsis; }
.rd-tab[aria-selected="true"] { border-color: var(--rd-ink); background: var(--rd-tint); color: var(--rd-ink); }
.rd-tab-score { color: var(--t-correct-ink); font-size: .78rem; font-weight: 600; }
.rd-total { margin: 0 0 0 auto; font-weight: 600; color: var(--rd-ink); }
@media (max-width: 640px) { .rd-tab span { display: none; } .rd-tabbar { top: var(--mw-header-h, 72px); } }

/* Every reading in two columns (Yi, 2026-11-01): the text or passage on the left, held in
   view and scrolling on its own, the exercises or questions on the right. From 900px, where the header becomes the
   desktop bar; narrower, the text comes first and the questions under it, with a link between them. */
.rd-split { display: grid; gap: 1.5rem; }
/* below the sticky header (and tab bar) when a link jumps to them */
.rd-panel, .rd-questions, .rd-side, .rd-ex { scroll-margin-top: var(--rd-stick); }
.rd-jump-q { display: inline-block; margin: 0 0 1rem; color: var(--rd-ink); font-size: .9rem; font-weight: 600; }
/* A text's two columns each open with a bar of the same height, "Text" with the Pinyin and English switches and
   "Exercises", so the text and the first exercise start level (2026-11-02). */
.rd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-height: 2.6rem; margin: 0 0 .9rem; }
.rd-bar h2 { margin: 0; font-family: var(--t-display); font-size: 1.55rem; line-height: 1.2; }
.rd-bar .rd-toggles { margin: 0 0 0 auto; }
/* across from the switches: how many exercises are answered, and once checked, how many are right */
.rd-progress { display: inline-flex; align-items: center; min-height: 2.4rem; margin: 0 0 0 auto; padding: 0 1rem;
  border: 1px solid var(--t-line); border-radius: var(--t-r-pill); background: var(--t-white); color: var(--t-ink-2);
  font-size: .9rem; font-weight: 600; white-space: nowrap; }
.rd-ex.is-locked .rd-progress { border-color: var(--rd-ink); background: var(--rd-tint); color: var(--rd-ink); }
@media (min-width: 900px) {
  /* Two halves alike (Yi, 2026-11-02: "左右两边不对称"): the same width, and the text (a test's passage) one card from
     its top down to the foot of the screen, held there whatever its length (a long one scrolls inside), so the left
     fills the screen as the exercises do. */
  .rd-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 2rem; }
  .rd-passage, .rd-split > .rd-side { position: sticky; top: var(--rd-stick); height: calc(100vh - var(--rd-stick) - 1.5rem); }
  .rd-passage, .rd-side > .rd-text { overflow-y: auto; overscroll-behavior: contain; }
  .rd-side { display: flex; flex-direction: column; }
  .rd-side > .rd-text { flex: 1 1 auto; min-height: 0; }
  /* the Exercises bar stays at the top as well, level with the Text bar, and the exercises pass under it, so both
     halves show from the same line down. Held there (reading.js marks it .is-stuck), it is a band the width of the
     screen in the page's colour with a hairline under it, like the passage tabs of a test; the Text bar sits on it. */
  .rd-ex > .rd-bar { position: sticky; top: var(--mw-header-h, 80px); z-index: 5; min-height: 4.5rem; margin: -1rem 0 0; padding: 1rem 0 .9rem; }
  .rd-ex > .rd-bar.is-stuck { background: var(--t-cream); box-shadow: 0 0 0 100vmax var(--t-cream), 0 1px 0 100vmax var(--t-line-soft);
    clip-path: inset(0 -100vmax -1px); }
  .rd-split > .rd-side { z-index: 6; }
  .rd-jump-q { display: none; }
}
@media (min-width: 900px) and (max-width: 1099px) { .rd-split { gap: 1.25rem; } }

/* ── Exercises and question groups ───────────────────────────────────────── */
.rd-ex { margin-top: 0; }
.rd-sec, .rd-group { margin: 0 0 1.25rem; padding: 1.25rem 1.2rem; border: 1px solid var(--t-line-soft); border-radius: var(--t-r-md); background: var(--t-white); }
@media (min-width: 768px) { .rd-sec, .rd-group { padding: 1.4rem 1.6rem; } }
.rd-sec h3, .rd-group h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0; font-size: 1.12rem; }
.rd-group h3 span { color: var(--rd-ink); }
.rd-sec-n { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--rd-ink); color: var(--t-white); font-size: .8rem; }
.rd-sec-say { margin: .45rem 0 .5rem; color: var(--t-muted); font-size: .92rem; line-height: 1.55; }
.rd-sec-note { margin: 0 0 .5rem; padding: .6rem .8rem; border-radius: .75rem; background: var(--t-info-tint); color: var(--t-ink-2); font-size: .88rem; }

.rd-q { padding: .9rem 0 .2rem; border-top: 1px solid var(--t-line-soft); }
.rd-sec > .rd-q:first-of-type, .rd-group > .rd-q:first-of-type { border-top: 0; }
/* a text's exercise (2026-11-02): the number in the margin, the question and its answers beside it, lined up; a
   true-or-false sentence with its two buttons on the same line when there is room */
.rd-ex .rd-q { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .75rem; align-items: start; }
.rd-ex .rd-q > .rd-q-n { margin-top: .2rem; }
.rd-ex .rd-q.is-tf > .rd-q-n { margin-top: .55rem; }
.rd-ex .rd-q-text { margin-bottom: .55rem; }
.rd-q-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin: 0 0 .5rem; }
.rd-q-line .rd-q-text { flex: 1 1 12em; margin: 0; }
.rd-q-line .rd-choices { flex: none; margin: 0; }
.rd-ex .rd-choices.is-row .rd-choice { min-height: 2.45rem; }
.rd-q-text { display: flex; gap: .6rem; margin: 0 0 .6rem; font-size: 1.08rem; line-height: 1.75; }
.rd-q-n { flex: none; display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; margin-top: .15rem; padding: 0 .3rem;
  border-radius: .5rem; background: var(--t-sand); color: var(--t-ink-2); font-size: .8rem; font-weight: 700; font-family: var(--t-ui); }
.rd-choices { display: grid; gap: .45rem; margin: 0 0 .5rem; }
.rd-choices.is-row { display: flex; flex-wrap: wrap; }
.rd-choice {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 2.6rem; padding: .45rem .9rem;
  border: 1px solid var(--t-line); border-radius: .85rem; background: var(--t-white); color: var(--t-ink);
  font: inherit; font-size: 1rem; text-align: left; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.rd-choices.is-letters .rd-choice { justify-content: center; min-width: 2.8rem; padding: .45rem .7rem; }
.rd-choice:hover { border-color: var(--rd-mark); }
.rd-choice[aria-pressed="true"] { border-color: var(--t-selected); background: var(--t-selected-tint); box-shadow: inset 0 0 0 1px var(--t-selected); }
.rd-choice:disabled { opacity: .45; cursor: default; }
.rd-choice-text { line-height: 1.55; }
.rd-letter { flex: none; display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .25rem; border-radius: .4rem;
  background: var(--t-sand); color: var(--t-ink-2); font: 700 .8rem var(--t-ui); }
.rd-choice[aria-pressed="true"] .rd-letter { background: var(--t-selected); color: var(--t-white); }
.rd-choices.is-letters .rd-choice .rd-letter { background: none; min-width: 0; font-size: .95rem; color: inherit; }
.is-locked .rd-choice { cursor: default; }
.is-locked .rd-choice:hover { border-color: var(--t-line); }
.rd-choice.is-answer { border-color: var(--t-correct-mark); box-shadow: inset 0 0 0 1px var(--t-correct-mark); }
.rd-q.is-wrong .rd-choice[aria-pressed="true"]:not(.is-answer) { border-color: var(--t-wrong-mark); background: var(--t-wrong-tint); box-shadow: inset 0 0 0 1px var(--t-wrong-mark); }
.rd-q.is-wrong .rd-choice[aria-pressed="true"]:not(.is-answer) .rd-letter { background: var(--t-wrong-ink); }

.rd-pic { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 0 .75rem; border-radius: .9rem; border: 1px solid var(--t-line-soft); }
.rd-gap { display: inline-block; min-width: 3.2em; margin: 0 .2em; padding: 0 .3em; border-bottom: 2px solid var(--t-ink-2); text-align: center; color: var(--t-selected); font-weight: 600; }
.rd-gap:empty::after { content: '\00a0'; }
.rd-lines { margin: 0 0 .6rem; padding: 0; list-style: none; }
.rd-lines li { display: flex; gap: .6rem; padding: .3rem 0; font-size: 1.05rem; line-height: 1.7; }
.rd-lines .rd-letter { margin-top: .25rem; }
.rd-seq { margin: 0 0 .5rem; color: var(--t-ink-2); font-size: .92rem; }
.rd-link { padding: 0 .4rem; border: 0; background: none; color: var(--rd-ink); font: 600 .9rem var(--t-ui); text-decoration: underline; cursor: pointer; }

.rd-input { min-height: 2.5rem; padding: .35rem .7rem; border: 1px solid var(--t-line); border-radius: .7rem; background: var(--t-white);
  color: var(--t-ink); font-size: 1.05rem; }
.rd-input.is-wide { width: 100%; margin-bottom: .5rem; }
.rd-input:focus { border-color: var(--t-focus); outline: 2px solid var(--t-focus-halo); }
.rd-select { min-height: 2.3rem; max-width: 100%; padding: .2rem .4rem; border: 1px solid var(--t-line); border-radius: .6rem; background: var(--t-white); font-size: 1rem; }

/* fill-in groups */
.rd-fill { font-size: 1.06rem; line-height: 2.2; }
.rd-fill h4 { margin: .6rem 0 .2rem; font-size: 1rem; }
.rd-fill .rd-para, .rd-fill .rd-line { margin: 0 0 .5rem; }
.rd-fill-list { margin: 0 0 .5rem; padding-left: 1.3rem; }
.rd-gapwrap { display: inline-flex; align-items: center; gap: .25rem; margin: 0 .2rem; vertical-align: middle; line-height: 1.2; }
.rd-gap-n { color: var(--t-muted); font: 700 .72rem var(--t-ui); }
.rd-gapwrap .rd-input { min-height: 2.1rem; padding: .15rem .5rem; }
.rd-gapwrap.is-right .rd-input, .rd-gapwrap.is-right .rd-select { border-color: var(--t-correct-mark); background: var(--t-correct-tint); }
.rd-gapwrap.is-wrong .rd-input, .rd-gapwrap.is-wrong .rd-select { border-color: var(--t-wrong-mark); background: var(--t-wrong-tint); }
.rd-step { padding: .55rem .9rem; border: 1px solid var(--t-line); border-radius: .8rem; background: var(--t-sand); }
.rd-step-arrow { margin: .1rem 0; color: var(--t-muted); text-align: center; line-height: 1.2; }
.rd-ask { padding: .6rem 0 .4rem; }
.rd-ask .rd-q-text { margin-bottom: .3rem; }
.rd-box { margin: .4rem 0 .6rem; padding: .8rem 1rem; border-radius: .9rem; background: var(--rd-tint); }
.rd-box h4 { margin: 0 0 .4rem; color: var(--rd-ink); font-size: .85rem; }
.rd-box ul { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; font-size: 1.02rem; line-height: 1.6; }
.rd-box li { display: flex; gap: .55rem; }
.rd-box .rd-letter { margin-top: .1rem; background: var(--t-white); }
.rd-box.is-words ul { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }

/* after checking */
.rd-q.is-right .rd-q-n { background: var(--t-correct-tint); color: var(--t-correct-ink); }
.rd-q.is-wrong .rd-q-n { background: var(--t-wrong-tint); color: var(--t-wrong-ink); }
.rd-why { margin: .3rem 0 .6rem; padding: .7rem .9rem; border-radius: .8rem; background: var(--t-sand); font-size: .95rem; line-height: 1.6; }
.rd-q.is-right .rd-why { background: var(--t-correct-tint); }
.rd-q.is-wrong .rd-why { background: var(--t-wrong-tint); }
.rd-why p { margin: 0; }
.rd-why p + p { margin-top: .35rem; }
.rd-why-answer b:first-child { color: var(--t-ink); }
.rd-q.is-right .rd-why-answer b:first-child { color: var(--t-correct-ink); }
.rd-q.is-wrong .rd-why-answer b:first-child { color: var(--t-wrong-ink); }
.rd-why-text { color: var(--t-ink-2); }
.rd-also { color: var(--t-muted); }
.rd-answers { margin: .8rem 0 0; padding-left: 1.6rem; font-size: .95rem; line-height: 1.6; }
.rd-answers li { margin: 0 0 .6rem; padding: .55rem .8rem; border-radius: .8rem; background: var(--t-sand); }
.rd-answers li.is-right { background: var(--t-correct-tint); }
.rd-answers li.is-wrong { background: var(--t-wrong-tint); }
.rd-answers li.is-right .rd-why-answer > b:first-child { color: var(--t-correct-ink); }
.rd-answers li.is-wrong .rd-why-answer > b:first-child { color: var(--t-wrong-ink); }
.rd-answers p { margin: 0; }
.rd-answers p + p { margin-top: .3rem; color: var(--t-ink-2); }
.rd-group-notes { margin-top: .6rem; padding: .7rem .9rem; border-radius: .8rem; background: var(--t-info-tint); color: var(--t-ink-2); font-size: .92rem; line-height: 1.55; }
.rd-group-notes p { margin: 0; }

.rd-check { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.5rem 0 1rem; }
.rd-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 1.4rem;
  border: 1px solid var(--rd-ink); border-radius: var(--t-r-pill); background: var(--rd-ink); color: var(--t-white);
  font: 600 1rem var(--t-ui); cursor: pointer;
}
.rd-btn:hover { background: #224f93; }
.rd-btn.is-ghost { background: var(--t-white); color: var(--rd-ink); }
.rd-btn.is-ghost:hover { background: var(--rd-tint); }
.rd-btn[hidden] { display: none; }
.rd-score { flex-basis: 100%; margin: 0; font-weight: 600; color: var(--t-ink); }

.rd-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--t-line-soft); font-weight: 600; }
.rd-pager a { color: var(--rd-ink); }

.rd-main button:focus-visible, .rd-main a:focus-visible, .rd-main select:focus-visible { outline: 2px solid var(--t-focus); outline-offset: 2px; }

@media print {
  .rd-toggles, .rd-check, .rd-pager, .rd-tabbar, .rd-jump-q { display: none !important; }
  .rd-panel[hidden] { display: block !important; }
  .rd-passage, .rd-side, .rd-text { position: static !important; height: auto !important; max-height: none !important; overflow: visible !important; }
}
