/* Learning & exams: the Pathology and AKT Mastery lessons and sample questions (teach.mjs, lx-teach.js). Loaded only by a
   page that carries those samples. Uses the page's own buttons (lx3.css .pv-btn); everything else is scoped to .tl / .tq-set.
   (16 Nov 2026, evening) Presentation pass: the case and the teaching lead, the controls recede. Type roles, largest first:
   case narrative 21/20/19/18px (by width) · question line 19px · teaching text 17–18px · options 16.5px · labels 14–15px. */
.tl, .tl *, .tq-set, .tq-set * { box-sizing: border-box; }
.tl, .tq-set {
  --tl-ink: #15243c; --tl-sub: #3d4f66; --tl-muted: #52647b; --tl-faint: #5f6f86; --tl-line: #dce4ec; --tl-line-2: #c9d6ea; --tl-wash: #f6f8fb;
  --tl-link: #1d4ed8; --tl-hi: #fff2bf; --tl-hi-line: #b7791f; --tl-ok: #13603b; --tl-ok-bg: #e7f4ec; --tl-no: #9b1c24; --tl-no-bg: #fcebec;
  --tl-accent: #205da7; --tl-accent-ink: #fff; --tl-accent-wash: #eef3fa; --tl-paper: #f5f8fc; --tl-paper-line: #d9e3ef;
  color: var(--tl-ink);
}
/* the case surface: warm report paper for Pathology, a cool clinical paper for AKT; both quiet, neither a frame */
.tl--path, .tq-set--path { --tl-accent: #7d2232; --tl-accent-wash: #f8eef0; --tl-paper: #faf6f1; --tl-paper-line: #e8dcd2; }
.tl--akt, .tq-set--akt { --tl-accent: #1f4f8f; --tl-accent-wash: #edf3fb; --tl-paper: #f4f7fb; --tl-paper-line: #d8e2ee; }
.tl :where(p, h4, h5, h6, ol, ul, dl, dd, figure), .tq-set :where(p, h5, ol, ul, dl, dd, fieldset) { margin: 0; }
.tl :where(ol, ul), .tq-set :where(ol, ul) { padding: 0; list-style: none; }
.tl ::selection, .tq-set ::selection { background: #cfe0f7; color: var(--tl-ink); }
.tl-fine { color: var(--tl-faint); font-size: 13px; line-height: 1.45; }
.tl-link { padding: 0; border: 0; background: none; color: var(--tl-link); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tl button:focus-visible, .tq-set button:focus-visible, .tl summary:focus-visible, .tq-set summary:focus-visible, .tl a:focus-visible, .tq-set a:focus-visible { outline: 2px solid var(--tl-accent); outline-offset: 2px; }
.tl-btn { background: var(--tl-accent); border-color: var(--tl-accent); color: var(--tl-accent-ink); }
.tl-btn:disabled { opacity: .45; cursor: default; }
.tl-chev { flex: none; width: 16px; height: 16px; transition: transform .2s; }

/* ---------------- shared: the case ---------------- */
.tl-scn, .tq-scn { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 26px 24px; border: 1px solid var(--tl-paper-line); border-radius: 16px; background: var(--tl-paper); }
.tl-case, .tq-scn-k { color: var(--tl-accent); font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.tl-narr, .tq-stem { display: grid; gap: .65em; max-width: 64ch; color: var(--tl-ink); font-size: 20px; line-height: 1.6; text-wrap: pretty; }
.tq-mark { background: none; color: inherit; border-radius: 2px; transition: background-color .3s, box-shadow .3s; }
.tq-card.is-answered .tq-mark { background: var(--tl-hi); box-shadow: 0 2px 0 var(--tl-hi-line); }

/* ---------------- shared: step and question navigation, quiet and numbered ---------------- */
.tl-nav ol, .tq-nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.tl-nav button, .tq-nav button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 2px; border: 0; background: none; color: var(--tl-muted); font: inherit; font-size: 15px; font-weight: 550; cursor: pointer; }
.tl-nav-n, .tq-nav b { display: inline-grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tl-line-2); color: var(--tl-sub); font-size: 13.5px; font-weight: 700; }
.tl-nav button:hover, .tq-nav button:hover { color: var(--tl-ink); }
.tl-nav button:hover .tl-nav-l, .tq-nav button:hover .tq-nav-l { text-decoration: underline; text-underline-offset: 4px; }
.tl-nav li:has(~ li > [aria-current="step"]) .tl-nav-n { background: var(--tl-accent-wash); box-shadow: none; color: var(--tl-accent); }
.tq-nav .is-done b { background: var(--tl-ok-bg); box-shadow: inset 0 0 0 1.5px #9fcfb3; color: var(--tl-ok); }
.tl-nav button[aria-current="step"], .tq-nav button[aria-current="true"] { color: var(--tl-ink); font-weight: 650; }
.tl-nav button[aria-current="step"] .tl-nav-n, .tq-nav button[aria-current="true"] b { background: var(--tl-accent); box-shadow: none; color: #fff; }

/* ---------------- the lesson ---------------- */
.tl { container-type: inline-size; }
.tl-top { max-width: 780px; }
.tl-title { margin-top: 0 !important; font-size: 25px; font-weight: 650; line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
.tl-meta { margin-top: 6px !important; color: var(--tl-accent); font-size: 14.5px; font-weight: 600; }
.tl-intro { margin-top: 8px !important; color: var(--tl-sub); font-size: 16.5px; line-height: 1.55; text-wrap: pretty; }
.tl-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "nav" "head" "plate" "body" "foot"; gap: 18px 40px; margin-top: 20px; }
.tl-nav { grid-area: nav; padding-bottom: 10px; border-bottom: 1px solid var(--tl-line); }
.tl-head { grid-area: head; }
.tl-plate { grid-area: plate; margin: 0; }
.tl-body { grid-area: body; }
.tl-foot { grid-area: foot; }
@container (min-width: 760px) { .tl-title { font-size: 30px; } }
@container (min-width: 860px) {
  .tl-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); grid-template-areas: "nav nav" "plate head" "plate body" "plate foot"; grid-template-rows: auto auto auto 1fr; align-items: start; }
  /* the ECG step: the trace takes the full width, its teaching follows beneath in two readable columns */
  .tl.is-wide .tl-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nav" "head" "plate" "body" "foot"; grid-template-rows: none; }
  .tl.is-wide .tl-body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .tl.is-wide .tl-body > p { grid-column: 1; }
  .tl.is-wide .tl-body > .tl-note { grid-column: 2; grid-row: 1 / span 3; }
  .tl-head h5 { font-size: 25px; }
  .tl-narr { font-size: 20px; }
}
@container (min-width: 1000px) { .tl-narr { font-size: 21px; } }
.tl-head h5 { margin-top: 2px; font-size: 22px; font-weight: 650; line-height: 1.22; letter-spacing: -.005em; text-wrap: balance; }
.tl-head h5:focus { outline: none; }
.tl-lead { margin-top: 6px !important; max-width: 62ch; color: var(--tl-sub); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.tl-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; font-size: 17px; line-height: 1.65; }
.tl-body > p { max-width: 66ch; color: var(--tl-ink); text-wrap: pretty; }
.tl-foot { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.tl-foot .pv-btn { min-height: 48px; }
.tl-foot .pv-btn:disabled { opacity: .45; cursor: default; }
.tl-next { background: var(--tl-accent); border-color: var(--tl-accent); color: #fff; }
.tl-next:hover { filter: brightness(1.08); }
.tl-part { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tl-part + .tl-part { margin-top: 20px; }
.tl-part[hidden] { display: none; }
.tl-part > * { min-width: 0; }

/* results, as a laboratory prints them; in the lesson the rows that matter are marked as the lesson goes */
.tl-table, .tq-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--tl-line-2); border-radius: 12px; background: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.tl-table caption, .tq-table caption { padding: 0 0 8px; color: var(--tl-muted); font-size: 14px; text-align: left; }
.tl-table caption span { color: var(--tl-ink); font-size: 16.5px; font-weight: 700; }
.tl-table th, .tl-table td, .tq-table th, .tq-table td { padding: 12px 14px; border-top: 1px solid var(--tl-line); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.tl-table thead th, .tq-table thead th { border-top: 0; background: var(--tl-wash); color: var(--tl-muted); font-size: 13.5px; font-weight: 650; }
.tl-table thead th:first-child, .tq-table thead th:first-child { border-top-left-radius: 11px; }
.tl-table thead th:last-child, .tq-table thead th:last-child { border-top-right-radius: 11px; }
.tl-table tbody tr:last-child > :first-child, .tq-table tbody tr:last-child > :first-child { border-bottom-left-radius: 11px; }
.tl-table tbody tr:last-child > :last-child, .tq-table tbody tr:last-child > :last-child { border-bottom-right-radius: 11px; }
.tl-table tbody th, .tq-table tbody th { font-weight: 500; line-height: 1.4; }
.tl-table td b, .tq-table td b { font-size: 17.5px; font-weight: 700; }
.tl-unit { color: var(--tl-muted); font-size: 14px; }
.tl-flag { display: inline-block; margin-left: 2px; padding: 0 6px; border-radius: 4px; background: #f1e6e8; color: #6e1d2b; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; }
.tl-ref { color: var(--tl-muted); font-size: 15px; }
.tl-table thead th:nth-child(1), .tq-table thead th:nth-child(1) { width: 42%; }
.tl-table thead th:nth-child(2), .tq-table thead th:nth-child(2) { width: 33%; }
.tl-table thead th:nth-child(3), .tq-table thead th:nth-child(3) { width: 25%; }
.tl-table tr > *, .tq-table tr > * { transition: background-color .2s; }
.tl-table tr, .tq-table tr { transition: opacity .2s; }
.tl-results.has-on tbody tr:not(.is-on) { opacity: .6; }
.tl-table tr.is-on > *, .tq-card.is-answered .tq-table tr.is-key > * { background: var(--tl-hi); }
.tq-card.is-answered .tq-table tr.is-support > * { background: #f3f5f8; }
.tl-pick { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default; }
.tl-pick:disabled { color: inherit; }
.tl-pick-box { display: none; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 2px solid #8a9bb0; border-radius: 5px; background: #fff; }
.tl-results.is-picking .tl-pick { cursor: pointer; }
.tl-results.is-picking .tl-pick-box { display: inline-block; }
.tl-results.is-picking tbody tr:hover > * { background: var(--tl-wash); }
.tl-pick[aria-pressed="true"] .tl-pick-box { border-color: var(--tl-accent); background: var(--tl-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.tl-results.is-picking tr:has(.tl-pick[aria-pressed="true"]) > * { background: var(--tl-accent-wash); }

/* the calcium–PTH chart: drawn in a 330-unit box, its labels sized for the width it is shown at */
.tl-map { padding: 18px 20px 20px; border: 1px solid var(--tl-line-2); border-radius: 16px; background: #fff; }
.tl-map-t { font-size: 16.5px; font-weight: 650; }
.tl-map-svg { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; font-family: inherit; }
.tl-axis { fill: none; stroke: #7d8da1; stroke-width: 1.2; }
.tl-tick { fill: var(--tl-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.tl-axis-l { fill: var(--tl-sub); font-size: 10.5px; font-weight: 600; }
.tl-zone rect { fill-opacity: .2; stroke-width: 1; stroke-opacity: .55; transition: fill-opacity .25s, stroke-opacity .25s; }
.tl-zone circle { fill: #fff; stroke-width: 1.6; }
.tl-zone text { font-size: 11px; font-weight: 750; }
.tl-zone--0 rect { fill: #d68a0f; stroke: #a8650a; } .tl-zone--0 circle { stroke: #a8650a; } .tl-zone--0 text { fill: #7a4704; }
.tl-zone--1 rect { fill: #1b8a8a; stroke: #156d6d; } .tl-zone--1 circle { stroke: #156d6d; } .tl-zone--1 text { fill: #0f5252; }
.tl-zone--2 rect, .tl-zone--3 rect { fill: #7c8ba1; stroke: #66758b; } .tl-zone--2 circle, .tl-zone--3 circle { stroke: #66758b; } .tl-zone--2 text, .tl-zone--3 text { fill: #3d4a5c; }
.tl-zone.is-off rect { fill-opacity: .05; stroke-opacity: .2; }
.tl-zone.is-off circle, .tl-zone.is-off text { opacity: .3; }
.tl-point[hidden] { display: none; }
.tl-point circle { fill: var(--tl-accent); stroke: #fff; stroke-width: 2.5; }
.tl-point[data-point="check"] circle { fill: #156d6d; }
.tl-point text { fill: var(--tl-ink); font-size: 10.5px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.tl-normal { fill: none; stroke: #5b6b80; stroke-width: 1.3; stroke-dasharray: 4 3; }
.tl-normal-l { fill: #4f5f74; font-size: 9px; font-weight: 600; }
.tl-zones { display: grid; gap: 10px; }
.tl-zones li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15.5px; line-height: 1.5; }
.tl-zones li.is-off { display: none; }
.tl-zones b { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.6px solid; border-radius: 50%; font-size: 13px; }
.tl-zones .tl-zone--0 b { border-color: #a8650a; color: #7a4704; background: #fbf0dc; }
.tl-zones .tl-zone--1 b { border-color: #156d6d; color: #0f5252; background: #e0f1f1; }
.tl-zones .tl-zone--2 b, .tl-zones .tl-zone--3 b { border-color: #66758b; color: #3d4a5c; background: #eef1f5; }

/* teaching blocks, in the Pathology module's own lesson pattern */
.tl-task { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px; border: 1px solid var(--tl-line-2); border-radius: 14px; background: #fff; }
.tl-task-q { font-size: 17.5px; font-weight: 650; line-height: 1.45; }
.tl-task-a { display: flex; gap: 8px; }
.tl-task-r { display: grid; gap: 4px; }
.tl-verdict { font-size: 18px; font-weight: 750; }
.tl-verdict:focus { outline: none; }
.tl-task[data-says="right"] .tl-verdict, .tl-check.is-right .tl-verdict { color: var(--tl-ok); }
.tl-task[data-says="partial"] .tl-verdict { color: #8a5a00; }
.tl-task[data-says="wrong"] .tl-verdict, .tl-check.is-wrong .tl-verdict { color: var(--tl-no); }
.tl-loop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.tl-loop li { position: relative; padding: 7px 12px; border-radius: 8px; background: var(--tl-accent-wash); color: var(--tl-accent); font-size: 15.5px; font-weight: 650; line-height: 1.35; }
.tl-loop li + li::before { content: "→"; position: absolute; left: -18px; top: 50%; transform: translateY(-50%); color: var(--tl-muted); font-weight: 400; }
.tl-assoc { display: grid; gap: 10px; }
.tl-assoc li { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--tl-line); }
.tl-assoc-l { font-size: 16.5px; line-height: 1.45; }
.tl-assoc-l span[aria-hidden] { margin: 0 4px; color: var(--tl-muted); }
.tl-assoc li > p + p { margin-top: 4px; color: var(--tl-sub); font-size: 15.5px; line-height: 1.55; }
.tl-note { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; }
.tl-note-k { font-size: 14.5px; font-weight: 700; }
.tl-note p + p { font-size: 16px; line-height: 1.6; }
.tl-note--trap { background: #fdf0e6; } .tl-note--trap .tl-note-k { color: #9a3412; }
.tl-note--clue { background: var(--tl-accent-wash); } .tl-note--clue .tl-note-k { color: var(--tl-accent); }
.tl-note--tip { background: var(--tl-wash); } .tl-note--tip .tl-note-k { color: var(--tl-sub); } .tl-note--tip p + p { font-size: 15px; }
.tl-check { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; border: 1px solid var(--tl-line-2); border-radius: 14px; background: #fff; }
.tl-check--choice { padding: 0; border: 0; }
.tl-check-k { color: var(--tl-accent); font-size: 14.5px; font-weight: 700; }
.tl-check-q { font-size: 17.5px; font-weight: 600; line-height: 1.5; }
.tl-check-o { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-check-o--list { display: grid; gap: 10px; }
.tl-choice { min-height: 50px; padding: 11px 16px; border: 1px solid var(--tl-line-2); border-radius: 12px; background: #fff; color: var(--tl-ink); font: inherit; font-size: 16.5px; font-weight: 550; line-height: 1.4; text-align: left; cursor: pointer; }
.tl-choice:hover:not(:disabled) { border-color: var(--tl-accent); background: var(--tl-accent-wash); }
.tl-choice:disabled { cursor: default; color: var(--tl-muted); }
.tl-choice.is-right { border-color: var(--tl-ok); background: var(--tl-ok-bg); color: var(--tl-ok); }
.tl-choice.is-wrong { border-color: var(--tl-no); background: var(--tl-no-bg); color: var(--tl-no); }
.tl-check-a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 6px; border-top: 1px solid var(--tl-line); font-size: 16.5px; line-height: 1.6; }
.tl-check--choice .tl-check-a { padding-top: 12px; }
.tl-check-a .tl-link { justify-self: start; }

/* AKT: the case, with observations as a results panel inside it */
.tl-obs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; border-top: 1px solid var(--tl-paper-line); }
.tl-obs div { padding: 12px 0 11px; border-bottom: 1px solid var(--tl-paper-line); }
.tl-obs div:nth-child(odd) { padding-right: 14px; }
.tl-obs div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--tl-paper-line); }
.tl-obs dt { color: var(--tl-muted); font-size: 14px; font-weight: 600; }
.tl-obs dd { margin-top: 3px !important; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tl-obs dd b { font-size: 25px; font-weight: 650; letter-spacing: -.01em; }
.tl-obs dd span { margin-left: 2px; color: var(--tl-sub); font-size: 15px; font-weight: 500; letter-spacing: 0; }
@container (min-width: 560px) and (max-width: 859px) {
  .tl-obs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tl-obs div, .tl-obs div:nth-child(odd), .tl-obs div:nth-child(even) { padding: 12px 12px 11px 14px; border-left: 1px solid var(--tl-paper-line); }
  .tl-obs div:first-child { padding-left: 0; border-left: 0; }
}

/* the first step's findings: one list, the first already open, the rest a press away */
.tl-finds { display: grid; border-top: 1px solid var(--tl-line); }
.tl-finds li { border-bottom: 1px solid var(--tl-line); }
.tl-find { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 12px 2px; border: 0; background: none; color: var(--tl-ink); font: inherit; font-size: 17px; font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer; }
.tl-find:hover, .tl-find[aria-expanded="true"] { color: var(--tl-accent); }
.tl-find[aria-expanded="true"] .tl-chev { transform: rotate(180deg); }
.tl-finds p { max-width: 60ch; padding: 0 30px 16px 2px; color: var(--tl-ink); font-size: 17px; line-height: 1.6; }
.tl-finds + .tl-link { justify-self: start; margin-top: -4px; }

/* the ECG: large enough to read on the page, with its findings, its enlarged chest leads and the full-size view */
.tl-ecg { gap: 12px; }
.tl-ecg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tl-ecg-t { margin-right: auto !important; font-size: 16.5px; font-weight: 650; }
.tl-tool { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--tl-line-2); border-radius: 10px; background: #fff; color: var(--tl-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.tl-tool svg { width: 15px; height: 15px; }
.tl-tool:hover { border-color: #93a9c4; background: var(--tl-wash); }
.tl-tool[aria-pressed="true"] { border-color: var(--tl-accent); background: var(--tl-accent); color: #fff; }
.tl-ecg-f { position: relative; border: 1px solid var(--tl-line-2); border-radius: 10px; overflow: hidden; background: #fff; }
/* on a short window the trace is sized so all of it fits below the header: 1911 × 1122 is 1.7032 wide to 1 high */
.tl-ecg-tools, .tl-ecg-f { width: min(100%, max(480px, calc((100svh - 240px) * 1.7032))); }
/* …and where that leaves room beside it (a short, wide window), the findings legend sits next to the trace it explains */
@media (max-height: 840px) { @container (min-width: 860px) {
  .tl.is-wide .tl-ecg { grid-template-columns: min(100%, max(480px, calc((100svh - 240px) * 1.7032))) minmax(0, 1fr); column-gap: 28px; }
  .tl.is-wide .tl-ecg > * { grid-column: 1 / -1; }
  .tl.is-wide .tl-ecg > .tl-ecg-tools, .tl.is-wide .tl-ecg > .tl-ecg-f { grid-column: 1; width: 100%; }
  .tl.is-wide .tl-ecg > .tl-legend { grid-column: 2; grid-row: 2; align-self: start; flex-direction: column; gap: 10px; }
} }
.tl-ecg-f img, .tl-zoom-in img { display: block; width: 100%; height: auto; }
.tl-boxes { position: absolute; inset: 0; pointer-events: none; }
.tl-boxes[hidden] { display: none; }
.tl-box { position: absolute; border: 2.5px solid; border-radius: 4px; }
.tl-box span { position: absolute; top: -1px; left: -1px; padding: 0 5px; border-radius: 3px 0 4px 0; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; }
.tl-box--key { border-color: #d6332f; background: rgba(214, 51, 47, .07); } .tl-box--key span { background: #d6332f; }
.tl-box--support { border-color: #2563eb; border-style: dashed; background: rgba(37, 99, 235, .05); } .tl-box--support span { background: #2563eb; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.tl-legend[hidden] { display: none; }
.tl-legend li { display: flex; gap: 8px; align-items: center; }
.tl-legend li::before { content: ""; flex: none; width: 18px; height: 12px; border: 2.5px solid; border-radius: 3px; }
.tl-legend--key::before { border-color: #d6332f !important; }
.tl-legend--support::before { border-color: #2563eb !important; border-style: dashed !important; }
.tl-strips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.tl-strips-t { font-size: 15px; font-weight: 650; }
.tl-strips-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.tl-strip { position: relative; margin: 0; }
.tl-strip-f { position: relative; overflow: hidden; border: 1px solid var(--tl-line-2); border-radius: 8px; background: #fff; }
.tl-strip-f img { position: absolute; max-width: none; height: auto; }
.tl-strip figcaption { position: absolute; top: 6px; left: 6px; padding: 1px 7px; border-radius: 5px; background: var(--tl-accent); color: #fff; font-size: 12.5px; font-weight: 700; }
.tl-credit, .tl-credit-d { color: var(--tl-faint); font-size: 13px; }
.tl-credit a, .tl-credit-d a { color: var(--tl-link); }
.tl-credit-d summary { cursor: pointer; }
.tl-credit-d p { margin-top: 4px !important; line-height: 1.45; }
.tl-zoom { width: min(96vw, 1400px); max-width: none; height: min(92vh, 900px); max-height: none; padding: 0; border: 0; border-radius: 12px; background: #0d2240; color: #fff; }
.tl-zoom[open] { display: grid; grid-template-rows: auto 1fr; }
.tl-zoom::backdrop { background: rgba(5, 12, 24, .72); }
.tl-zoom-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
.tl-zoom-t p { margin-right: auto !important; color: #c9d7ea; font-size: 14px; }
.tl-zoom .tl-tool { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; }
.tl-zoom .tl-tool:hover { background: rgba(255, 255, 255, .16); }
.tl-zoom .tl-tool[aria-pressed="true"] { border-color: #ffd166; background: #ffd166; color: #1b2433; }
.tl-zoom-v { overflow: auto; overscroll-behavior: contain; background: #fff; }
.tl-zoom-in { position: relative; width: max(1911px, 100%); }

/* the reperfusion decision, as the module's own flow */
.tl-flow { padding: 4px 24px 24px; border: 1px solid var(--tl-paper-line); border-radius: 16px; background: var(--tl-paper); }
.tl-flow ol { display: grid; }
.tl-flow li { position: relative; display: grid; gap: 6px; padding: 18px 0 16px 46px; border-bottom: 1px solid var(--tl-paper-line); }
.tl-flow-n { position: absolute; top: 17px; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tl-accent); color: #fff; font-size: 14px; font-weight: 700; }
.tl-flow-q { font-size: 18px; font-weight: 650; line-height: 1.35; }
.tl-flow-a { justify-self: start; padding: 2px 10px; border-radius: 6px; background: var(--tl-ok-bg); color: var(--tl-ok); font-size: 15.5px; font-weight: 650; }
.tl-flow-o { color: var(--tl-sub); font-size: 15.5px; line-height: 1.5; }
.tl-flow-r { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px !important; padding: 14px 18px; border-radius: 12px; background: var(--tl-accent); color: #fff; font-size: 21px; font-weight: 750; }
.tl-flow-r span { font-size: 14.5px; font-weight: 600; opacity: .9; }

/* a timeline: when each treatment could start, against the 120-minute limit */
.tl-timeline { padding: 20px 22px; border: 1px solid var(--tl-paper-line); border-radius: 16px; background: var(--tl-paper); }
.tl-time { display: grid; gap: 6px; padding: 4px 2px 0; }
.tl-time-row { position: relative; min-height: 40px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tl-time-tag { position: absolute; top: 0; display: grid; width: max-content; max-width: 46%; color: var(--tl-muted); line-height: 1.3; }
.tl-time-tag b { color: var(--tl-ink); font-weight: 650; }
.tl-time-tag--c { transform: translateX(-50%); text-align: center; }
.tl-time-tag--s { text-align: left; }
.tl-time-tag--e { text-align: right; }
.tl-time-row--top .tl-time-tag { top: auto; bottom: 0; }
.tl-time-bar { position: relative; height: 14px; border-radius: 999px; background: #e1e8f1; }
.tl-time-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: #2f6fd1; }
.tl-time.is-over .tl-time-fill { background: #c2410c; }
.tl-time-pin { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: var(--tl-ink); transform: translateX(-1.5px); }
.tl-time-lim { position: absolute; top: -7px; bottom: -7px; width: 0; border-left: 2.5px dashed #1b2433; }
.tl-time.is-quiz [data-tl-limit] { opacity: 0; transition: opacity .3s; }
.tl-time.is-quiz [data-tl-limit].is-shown { opacity: 1; }

/* the lesson's opening priorities and sources, after it */
.tl-tail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--tl-line); }
.tl-focus { padding: 16px 18px; border-radius: 14px; background: var(--tl-wash); }
.tl-focus-k { color: var(--tl-accent); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.tl-focus-h { margin-top: 2px !important; font-size: 17px; font-weight: 650; }
.tl-focus ol { display: grid; gap: 8px; margin-top: 10px !important; }
.tl-focus li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.5; }
.tl-focus li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--tl-accent); font-size: 12.5px; font-weight: 700; box-shadow: 0 0 0 1px var(--tl-line-2) inset; }
.tl-disc { border-top: 1px solid var(--tl-line); }
.tl-disc summary, .tq-about summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 8px 0; color: var(--tl-sub); font-size: 15.5px; font-weight: 650; list-style: none; cursor: pointer; }
.tl-disc summary::-webkit-details-marker, .tq-about summary::-webkit-details-marker { display: none; }
.tl-disc summary:hover, .tq-about summary:hover { color: var(--tl-ink); }
.tl-disc[open] summary .tl-chev, .tq-about[open] summary .tl-chev { transform: rotate(180deg); }
.tl-disc-b { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 0 14px; font-size: 15.5px; line-height: 1.6; }
.tl-disc-b dl { display: grid; gap: 4px; }
.tl-disc-b dt { font-weight: 650; }
.tl-disc-b dd + dt { margin-top: 8px; }
.tl-disc-b dd { color: var(--tl-sub); }
.tl-disc-b ul { display: grid; gap: 4px; }
.tl-srcs { display: grid; gap: 4px; }
.tl-srcs a { color: var(--tl-link); }
.tl-review { color: var(--tl-faint); font-size: 13px; }
.tl-module { max-width: 780px; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #f6f8fb; color: #3d4f66; font-size: 15px; line-height: 1.55; }
.tl-module b { color: #15243c; }

/* ---------------- sample questions (the card is .tq-card: home.css already owns a bare .tq) ---------------- */
.tq-set { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tq-intro { display: grid; gap: 2px; max-width: 760px; }
.tq-intro > p { color: var(--tl-sub); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.tq-intro > p b { color: var(--tl-ink); font-weight: 650; }
.tq-about summary { justify-content: flex-start; min-height: 40px; padding: 6px 0; font-size: 15px; }
.tq-about > p { max-width: 70ch; padding-bottom: 8px; color: var(--tl-sub); font-size: 15px; line-height: 1.6; }
.tq-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-bottom: 10px; border-bottom: 1px solid var(--tl-line); }
.tq-bar { color: var(--tl-muted); font-size: 14.5px; }
.tq-bar b { color: var(--tl-ink); }
.tq-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 40px; align-items: start; scroll-margin-top: 90px; }
.tq-card[hidden] { display: none; }
.tq-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.tq-head h5 { font-size: 17px; font-weight: 700; }
.tq-head h5 span { color: var(--tl-faint); font-weight: 500; }
.tq-head h5:focus { outline: none; }
.tq-origin { display: contents; color: var(--tl-muted); font-size: 15px; }
.tq-origin span { color: var(--tl-muted); font-size: 15px; }
.tq-origin span + span { color: var(--tl-accent); font-weight: 600; }
.tq-l, .tq-r { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
@container (min-width: 900px) {
  /* columns sized to their content: the case gets a reading measure, the answers a comfortable option width */
  .tq-card { grid-template-columns: minmax(0, 1.32fr) minmax(340px, 1fr); grid-template-areas: "l head" "l r"; grid-template-rows: auto 1fr; row-gap: 12px; }
  /* the question's number, subject and origin head the answers, beside the case, rather than taking a row of their own */
  .tq-head { grid-area: head; }
  .tq-l { grid-area: l; }
  .tq-r { grid-area: r; }
}
@container (min-width: 1000px) { .tq-stem { font-size: 21px; } }
/* keep the case beside a long explanation, but only where the window is tall enough to hold all of it */
@media (min-height: 760px) { @container (min-width: 900px) { .tq-l { position: sticky; top: 84px; } } }
.tq-scn .tq-stem { max-width: 62ch; }
.tq-findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 4px -12px 0; border-top: 1px solid var(--tl-paper-line); }
.tq-findings div { padding: 10px 12px; border-bottom: 1px solid var(--tl-paper-line); transition: background-color .3s; }
.tq-findings dt { color: var(--tl-muted); font-size: 14px; font-weight: 600; }
.tq-findings dd { margin-top: 2px !important; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.tq-card.is-answered .tq-findings .is-key { background: var(--tl-hi); }
/* Pathology's evidence: the results or the report, as printed */
.tq-evidence { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tq-evidence > * { min-width: 0; }
.tq-evidence header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.tq-evidence header p { font-size: 16.5px; font-weight: 700; }
.tq-evidence header span { color: var(--tl-muted); font-size: 14.5px; }
.tq-tag { display: none; margin: 3px 0 0 6px; padding: 0 6px; border-radius: 4px; background: var(--tl-hi-line); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; white-space: nowrap; }
.tq-tag--s { background: #66758b; }
.tq-card.is-answered .tq-tag { display: inline-block; }
.tq-report { display: grid; border: 1px solid var(--tl-line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.tq-report > div { display: grid; grid-template-columns: minmax(0, 168px) minmax(0, 1fr); gap: 4px 18px; padding: 14px 16px; border-top: 1px solid var(--tl-line); font-size: 16.5px; line-height: 1.6; transition: background-color .3s; }
.tq-report > div:first-child { border-top: 0; }
.tq-report dt { font-size: 15.5px; font-weight: 650; line-height: 1.5; }
.tq-card.is-answered .tq-report > .is-key { background: var(--tl-hi); }
.tq-card.is-answered .tq-report > .is-support { background: #f3f5f8; }
/* the answers: the question sentence opens them */
.tq-opts { display: grid; gap: 10px; min-width: 0; padding: 0; border: 0; }
.tq-ask { margin-bottom: 12px; padding: 0; color: var(--tl-ink); font-size: 19px; font-weight: 650; line-height: 1.4; text-wrap: pretty; }
.tq-opt { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px; align-items: start; min-height: 54px; padding: 11px 14px; border: 1px solid var(--tl-line-2); border-radius: 12px; background: #fff; font-size: 16.5px; line-height: 1.45; cursor: pointer; transition: border-color .15s, background-color .15s; }
.tq-opt:hover { border-color: #93a9c4; background: #fbfcfe; }
.tq-opt:has(input:checked) { border-color: var(--tl-accent); background: var(--tl-accent-wash); box-shadow: inset 0 0 0 1px var(--tl-accent); }
.tq-opt:has(input:focus-visible) { outline: 2px solid var(--tl-accent); outline-offset: 2px; }
.tq-opt:has(input:disabled) { cursor: default; }
.tq-opt:has(input:disabled):hover { border-color: var(--tl-line-2); background: #fff; }
.tq-let { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tl-wash); box-shadow: inset 0 0 0 1px var(--tl-line); color: var(--tl-sub); font-size: 14px; font-weight: 700; }
.tq-opt:has(input:checked) .tq-let { background: var(--tl-accent); box-shadow: none; color: #fff; }
.tq-opt-t { padding-top: 4px; }
.tq-res { grid-column: 2; font-size: 13.5px; font-weight: 700; }
.tq-card .tq-opt.is-correct { border-color: var(--tl-ok); background: var(--tl-ok-bg); box-shadow: inset 0 0 0 1px var(--tl-ok); }
.tq-card .tq-opt.is-correct .tq-let { background: var(--tl-ok); box-shadow: none; color: #fff; }
.tq-opt.is-correct .tq-res { color: var(--tl-ok); }
.tq-card .tq-opt.is-wrong { border-color: var(--tl-no); background: var(--tl-no-bg); box-shadow: inset 0 0 0 1px var(--tl-no); }
.tq-card .tq-opt.is-wrong .tq-let { background: var(--tl-no); box-shadow: none; color: #fff; }
.tq-opt.is-wrong .tq-res { color: var(--tl-no); }
.tq-hint { color: var(--tl-no); font-size: 15px; font-weight: 600; }
.tq-checkbtn { justify-self: start; min-width: 180px; min-height: 48px; background: var(--tl-accent); border-color: var(--tl-accent); color: #fff; }
/* feedback: the result, then the teaching, then whatever the reader wants more of */
.tq-fb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 6px; }
.tq-result { display: grid; gap: 4px; padding: 14px 18px; border-radius: 14px; }
.tq-card.is-right .tq-result { background: var(--tl-ok-bg); }
.tq-card.is-wrong .tq-result { background: var(--tl-no-bg); }
.tq-verdict { font-size: 21px; font-weight: 750; line-height: 1.25; }
.tq-verdict:focus { outline: none; }
.tq-card.is-right .tq-verdict { color: var(--tl-ok); }
.tq-card.is-wrong .tq-verdict { color: var(--tl-no); }
.tq-correct { display: grid; gap: 1px; font-size: 16.5px; line-height: 1.45; }
.tq-correct span { color: var(--tl-sub); font-size: 14px; font-weight: 600; }
.tq-correct b { font-weight: 650; }
.tq-k { color: var(--tl-ink); font-size: 14.5px; font-weight: 700; }
.tq-decide, .tq-clue { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--tl-hi); font-size: 16.5px; line-height: 1.55; }
.tq-clue ul { display: grid; gap: 2px; }
.tq-see { color: #5b5232; font-size: 14px; }
.tq-decide .tq-see { display: block; margin-top: 2px; }
.tq-why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tq-why > p:not(.tq-k):not(.tq-work) { font-size: 18px; line-height: 1.62; text-wrap: pretty; }
.tq-work { padding: 10px 14px; border-radius: 10px; background: var(--tl-wash); font-size: 15.5px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.tq-yours { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--tl-no-bg); }
.tq-yours[hidden], .tq-yours p[hidden] { display: none; }
.tq-yours p[data-k] { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 16.5px; line-height: 1.55; }
.tq-yl { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tl-no); color: #fff; font-size: 13.5px; font-weight: 700; }
/* the point to remember is set as the line to carry away, not as another panel */
.tq-point { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--tl-line); }
.tq-point .tq-k { color: var(--tl-accent); }
.tq-point p:not(.tq-k) { max-width: 40ch; color: var(--tl-ink); font-size: 19px; font-weight: 600; line-height: 1.45; text-wrap: pretty; }
.tq-fb .tl-disc + .tl-disc { margin-top: -20px; }
.tq-after { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 2px; }
.tq-go { background: var(--tl-accent); border-color: var(--tl-accent); color: #fff; }
.tq-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--tl-line); }
.tq-foot .pv-btn:disabled { opacity: .45; cursor: default; }
.tq-scale { display: grid; gap: 8px; margin-top: 6px; }
.tq-scale-bar { position: relative; display: flex; height: 16px; margin-top: 32px; border-radius: 4px; overflow: visible; }
.tq-band { height: 100%; }
.tq-band--0 { background: #cfe6d8; } .tq-band--1 { background: #f6d58a; } .tq-band--2 { background: #ef9a7a; }
.tq-scale-bar .tq-band:first-child { border-radius: 4px 0 0 4px; } .tq-scale-bar .tq-band:nth-last-child(2) { border-radius: 0 4px 4px 0; }
.tq-scale-at { position: absolute; top: -32px; bottom: -4px; border-left: 2.5px solid var(--tl-ink); }
.tq-scale-at b { position: absolute; top: 0; right: 6px; font-size: 14px; white-space: nowrap; }
.tq-scale-l { display: grid; gap: 4px; font-size: 14.5px; }
.tq-scale-l li { display: flex; gap: 8px; align-items: center; background: none !important; }
.tq-scale-l li::before { content: ""; flex: none; width: 14px; height: 10px; border-radius: 2px; }
.tq-scale-l .tq-band--0::before { background: #cfe6d8; } .tq-scale-l .tq-band--1::before { background: #f6d58a; } .tq-scale-l .tq-band--2::before { background: #ef9a7a; }
.tq-fb .tl-time { margin-top: 6px; }

/* ---------------- intermediate widths: one column, the case still large ---------------- */
@container (max-width: 899px) { .tq-stem { font-size: 19px; } }
@container (max-width: 859px) { .tl-narr { font-size: 19px; } }
/* narrow screens: compact results, a vertical feedback loop, and the step labels reduced to the current one */
@container (max-width: 560px) {
  .tl-scn, .tq-scn { padding: 16px 18px 18px; border-radius: 14px; }
  .tl-narr, .tq-stem { font-size: 18px; line-height: 1.55; }
  .tl-head h5 { font-size: 21px; }
  .tl-body, .tl-finds p { font-size: 16.5px; }
  .tl-obs dd b { font-size: 22px; }
  .tl-obs dd span { font-size: 14px; }
  .tl-table th, .tl-table td, .tq-table th, .tq-table td { padding: 10px 8px; font-size: 14.5px; }
  .tl-table td b, .tq-table td b { font-size: 16px; }
  .tl-unit { font-size: 13px; }
  .tl-ref { font-size: 14px; }
  .tl-table thead th, .tq-table thead th { font-size: 13px; }
  .tl-table thead th:nth-child(1), .tq-table thead th:nth-child(1) { width: 38%; }
  .tl-table thead th:nth-child(2), .tq-table thead th:nth-child(2) { width: 34%; }
  .tl-table thead th:nth-child(3), .tq-table thead th:nth-child(3) { width: 28%; }
  .tq-report > div { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; font-size: 16px; }
  .tl-loop { flex-direction: column; align-items: flex-start; gap: 22px; }
  .tl-loop li + li::before { content: "↓"; left: 14px; top: -20px; transform: none; }
  .tl-map { padding: 14px 12px 16px; }
  .tl-tick, .tl-axis-l, .tl-zone text, .tl-point text { font-size: 13px; }
  .tl-normal-l { font-size: 12.5px; }
  .tl-flow { padding: 2px 16px 18px; }
  .tl-flow-r { font-size: 19px; }
  .tq-ask { font-size: 18px; }
  .tq-opt { font-size: 16px; padding: 10px 12px; }
  .tq-why > p:not(.tq-k):not(.tq-work) { font-size: 17px; }
  .tq-point p:not(.tq-k) { font-size: 18px; }
  .tq-findings { grid-template-columns: minmax(0, 1fr); }
  /* only the current step or question keeps its name on screen; the others keep theirs for screen readers */
  .tl-nav ol, .tq-nav { gap: 2px 10px; }
  .tl-nav button:not([aria-current]) .tl-nav-l, .tq-nav button:not([aria-current="true"]) .tq-nav-l { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .tl-nav button:not([aria-current]), .tq-nav button:not([aria-current="true"]) { min-width: 44px; justify-content: center; }
}
@container (max-width: 759px) {
  .tl:not([data-tl-at="0"]) .tl-results > .tl-scn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tl *, .tq-set * { transition: none !important; } }

/* (17 Nov 2026) a public page's review-status disclosure: once per book, readable, quiet */
.tl-disclosure, .tq-disclosure { max-width: 760px; margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; background: #f3f6f9; color: #3d4f66; font-size: 14px; line-height: 1.5; }
.tq-disclosure { margin: 6px 0 2px; }
