/* V30: the v3 lesson page and course map. Loaded after ch2.css, sim-bench.css, theme.css and rim2-site.css (their cards, buttons, see boxes, words box).
   V33t: sizes and colours are tokens from v3-read.css (rule 28), no px text and no hard-coded greys here. */
main.v3 { max-width: none; }
body.sb-cv main.v3 { max-width: 860px; }
.v3-block { margin: 1.1rem 0; }
.v3-block > h2 { margin: 0 0 .35rem; }
.v3-block > h3 { margin: .8rem 0 .2rem; }
.v3-crumb { color: var(--rd-ink2); margin: 0 0 .2rem; }
.v3-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .4rem 0; }
.v3-need { font-weight: 700; }
main.v3 h1 { margin: .1rem 0; }
.v3-openlab { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .6rem 0; }
body.v3-lab .v3-openlab { display: none; }
main.v3 .row { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
main.v3 input[type=text], main.v3 textarea { width: 100%; max-width: 34rem; font: inherit; padding: .35rem .5rem; border: 1px solid var(--rd-line); border-radius: 6px; box-sizing: border-box; }
/* mission card: pinned. A strip across the lesson column that the text scrolls under; on a wide screen with no lab, in the free space
   top right; on a phone it stays at the top of the page (no room to pin). It never lies over text. */
.v3-card { position: sticky; top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px) + 6px); z-index: 30; margin: 0 0 .6rem; padding: .45rem .7rem; background: var(--rd-note); border: 1px solid var(--rd-note-ink); border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.v3-card summary { cursor: pointer; font-weight: 700; }
.v3-cardlines { font-weight: 700; margin: .3rem 0; overflow-wrap: anywhere; }
.v3-card .btn { padding: .15rem .5rem; }
.v3-card .muted { display: none; }
body.sb-lab2:not(.sb-narrow) main.v3 { overflow-y: auto; padding-top: .3rem; }   /* text must not show in the padding above the pinned card */
body.sb-lab2:not(.sb-narrow) .v3-card { top: 0; }
main.v3 .btn.quiet:hover { color: var(--rd-link); }
@media (min-width: 1240px) { body.sb-cv .v3-card { position: fixed; right: 1.2rem; width: 20rem; max-width: 30vw; max-height: calc(100vh - 9rem); overflow: auto; margin: 0; } body.sb-cv .v3-card .muted { display: block; } }
@media (max-width: 700px) { .v3-card { position: static; } .v3-card .muted { display: block; } }
/* steps */
.v3-step { position: relative; }
.v3-chip { display: inline-block; max-width: 100%; box-sizing: border-box; margin-right: .35rem; padding: .05rem .5rem; text-align: left; overflow-wrap: anywhere; border: 1px solid var(--rd-link); border-radius: 1em; background: var(--rd-info); color: var(--rd-info-ink); font-weight: 700; cursor: pointer; }
.v3-chip:disabled { cursor: default; border-color: var(--rd-line); background: var(--rd-surface); color: var(--rd-ink2); }
.v3-cmdrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; max-width: 100%; }
.v3-copy { padding: .05rem .45rem; }
.v3-dot { display: inline-block; width: .8em; height: .8em; margin-left: .35rem; border-radius: 50%; border: 2px solid var(--rd-line); vertical-align: -.05em; }
.v3-dot.ok { background: var(--rd-ok); border-color: var(--rd-ok); }
.v3-checks { list-style: none; padding: 0; margin: .3rem 0 .5rem; }
.v3-checks .v3-dot { margin: 0 .2rem 0 0; }
.v3-donenote { display: inline-block; }
.v3-donenote[hidden] { display: none; }
main.v3 .seelabel { margin: .35rem 0 .05rem; font-weight: 700; overflow-wrap: anywhere; }
/* V33r: before-you-start box, Explain less, what a button just did */
.v3-before { margin: .6rem 0; }
.v3-before summary { cursor: pointer; font-weight: 700; }
.v3-before ul { margin: .4rem 0 .2rem 1.1rem; padding: 0; }
.v3-explain { padding: .05rem .55rem; }
.v3-said { margin: .25rem 0; color: var(--rd-ok); font-weight: 600; }
.v3-why:not(:empty) { margin-left: .35rem; color: var(--rd-note-ink); }
body.v3-less [data-block="concept"] > p, body.v3-less [data-block="concept"] > figure, body.v3-less .v3-step > .small:not(.v3-said):not(.v3-why), body.v3-less .v3-step > .ifnot { display: none; }
/* words */
.v3-word { all: unset; cursor: pointer; border-bottom: 2px dotted var(--rd-link); color: inherit; }
.v3-word:focus-visible { outline: 3px solid var(--rd-focus); outline-offset: 1px; }
.v3-wordpop { display: block; margin: .15rem 0 .3rem; padding: .2rem .5rem; background: var(--rd-info); color: var(--rd-info-ink); border-radius: 6px; }
.v3-wordpop[hidden] { display: none; }
/* ordering task */
.v3-orow { display: flex; align-items: center; gap: .4rem; padding: .3rem .4rem; margin: .25rem 0; border: 1px solid var(--rd-line); border-radius: 6px; background: var(--rd-surface); }
.v3-orow > span:nth-child(2) { flex: 1; min-width: 0; }
.v3-onum { font-weight: 700; color: var(--rd-link); }
.v3-answer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .4rem 0; }
.v3-answer .v3-ans { font: inherit; padding: .35rem .5rem; min-height: 36px; border: 1px solid var(--rd-line); border-radius: 6px; min-width: 12rem; max-width: 100%; }
.v3-answer > p { flex-basis: 100%; margin: 0; }
.v3-orow .btn { padding: .05rem .5rem; min-height: 32px; }
/* if it broke, nav, snapshot row */
/* V39e: course pages as tabs (home, syllabus, set-up) and the syllabus */
.v3-hometabs { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: calc(var(--sp) * 2) 0; border-bottom: 1px solid var(--rd-rule); }
.v3-hometabs a { padding: .55rem .15rem; min-height: 36px; text-decoration: none; border-bottom: 3px solid transparent; }
.v3-hometabs a[aria-current="page"] { font-weight: 700; border-bottom-color: currentColor; }
.v3-syllabus h2 { margin-top: calc(var(--sp) * 4); }
.v3-sylmod { margin: calc(var(--sp) * 2) 0 0; padding: calc(var(--sp) * 2) calc(var(--sp) * 3); border: 1px solid var(--rd-rule); border-radius: 12px; }
.v3-sylmod h3 { margin: 0; }
.v3-syllabus ul, .v3-syllabus ol { max-width: 62rem; }
/* V39e: a level's outcomes and its "I can" list on the course map */
.v3-lvout, .v3-ican { margin: calc(var(--sp) * 1.5) 0 0; }
.v3-lvout > summary, .v3-ican > summary { cursor: pointer; font-weight: 600; min-height: 36px; }
.v3-lvout ul { margin: var(--sp) 0 0 1.2rem; padding: 0; max-width: 62rem; }
.v3-icanlist { list-style: none; margin: var(--sp) 0 0; padding: 0; max-width: 62rem; }
.v3-icanlist li { padding: .3rem 0; }
.v3-icanlist label { cursor: pointer; }
.v3-icanev { display: block; margin-left: 1.6rem; }
/* V39e: Concept check */
.v3-cc { border: 1px solid var(--rd-line); border-radius: 8px; padding: .5rem .8rem; margin: .4rem 0; }
.v3-cc legend { font-weight: 600; padding: 0 .3rem; }
.v3-ccopt { display: flex; gap: .5rem; align-items: baseline; padding: .35rem 0; min-height: 36px; cursor: pointer; }
.v3-ccwhy.ok { font-weight: 600; }
.v3-broke { border-left: 3px solid var(--rd-err); padding: .2rem .55rem; margin: .3rem 0; background: var(--rd-err-bg); border-radius: 0 6px 6px 0; }
.v3-broke summary { cursor: pointer; }
.v3-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 .6rem; }
.v3-snap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .6rem 0 1.2rem; padding-top: .6rem; border-top: 1px solid var(--rd-rule); }
.v3-snap .btn { padding: .2rem .55rem; }
.v3-cmdlist { list-style: none; padding: 0; margin: .2rem 0 .6rem; }
.v3-cmdlist code { overflow-wrap: anywhere; }
/* V44c: the recap's "Commands used" list in the COMMAND colours (a reference list: no Copy, no prompt) */
main.v3 .v3-cmdlist code, main.v3 .v3-cmdlist .v3-cmdpre { background: var(--cb-cmd-bg); color: var(--cb-cmd-ink); font-weight: 650; }
.v3-cu-check > li { margin-bottom: .6rem; }
/* V37: long file and package names in running text (arduinobot.ros2_control.xacro) break on a phone at 130 % instead of scrolling the page */
main.v3 :not(pre) > code, main.v3 h1, main.v3 h2 { overflow-wrap: anywhere; }
.v3-needsdesk h2 { margin: 0 0 .3rem; }
/* My ROS 2 PC: the page's terminal has a Ctrl+C button */
.v3-stop { margin-left: auto; padding: .05rem .5rem; color: #fff; background: #9A3412; border: 0; border-radius: 4px; }
.v3-stop[hidden] { display: none; }
.rt-tabs { display: inline-flex; gap: .2rem; margin-left: .6rem; flex-wrap: wrap; }
.rt-tab { padding: .05rem .45rem; font: inherit; font-size: .78rem; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 4px; opacity: .7; cursor: pointer; }
.rt-tab.on { opacity: 1; font-weight: 700; }
.rt-tab.busy::after { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-left: .3rem; border-radius: 50%; background: #16a34a; vertical-align: middle; }
.rt-pane[hidden] { display: none; }
body.v3-lab .sb-tabs { display: none; }
/* course map */
.v3-banner { margin: 0 0 1rem; }
.v3-maptop { margin: .6rem 0 1rem; }
.v3-level > h2 { margin: 1.2rem 0 .4rem; }
.v3-module h3 { margin: 0; }

/* V31: code listings and diffs inside a step */
.v3-code { margin: .4rem 0; }
.v3-more { margin-top: .5rem; }

/* V38b: code blocks (v3-code.js). Toolbar always visible, line numbers are CSS counters (not selectable, not copied).
   V39h (owner, 15 Nov 15:40): full content width; 14-15 px monospace, tabular figures, no ligatures; one instruction = one line (a
   command over 80 characters is shown with real " \" continuations, v3-parse.js shellLines); a line that still does not fit wraps
   with a hanging indent, like VS Code word wrap, with NO continuation mark. Light code theme by default (tokens --cb-* below and
   --rd-code-* in v3-read.css), dark under the dark / high-contrast page themes. A command block has a dimmed "$ " (CSS only, never
   copied); an output block is white with a dashed frame. No syntax colours. Contrast (cmd/v39h_contrast.mjs) in the V39h report. */
:root { --cb-bar: #E2E8F0; --cb-bar-ink: #0F172A; --cb-btn: #FFFFFF; --cb-btn-ink: #0F172A; --cb-btn-line: #64748B; --cb-btn-hover: #F1F5F9;
  --cb-dim: #475569; --cb-file-ink: #1E3A8A; --cb-add: #C6ECD2; --cb-del: #FAD7D7; --cb-out: #FFFFFF; --cb-focus: #1D4ED8; --cb-on: #DBEAFE; --cb-on-ink: #1E3A8A; --cb-on-line: #1D4ED8; }
html[data-rd-theme="dark"], html[data-rd-theme="contrast"] { --cb-bar: #1F2937; --cb-bar-ink: #E5E7EB; --cb-btn: #374151; --cb-btn-ink: #F9FAFB; --cb-btn-line: #9CA3AF; --cb-btn-hover: #4B5563;
  --cb-dim: #9CA3AF; --cb-file-ink: #C7D2FE; --cb-add: #17402E; --cb-del: #4A1D24; --cb-out: #0B1020; --cb-focus: #FDE047; --cb-on: #1E3A8A; --cb-on-ink: #FFFFFF; --cb-on-line: #93C5FD; }
html[data-rd-theme="contrast"] { --cb-dim: #D1D5DB; --cb-out: #000000; }
.cb { --cb-fs: calc(clamp(14px, 12px + .25vw, 15px) * var(--rd-scale, 1)); margin: .35rem 0 .5rem; max-width: 100%; font-size: var(--cb-fs); border: 1px solid var(--rd-line); border-radius: 8px; overflow: hidden; background: var(--rd-code-bg); }
main.v3 .cb { font-size: var(--cb-fs); }
.cb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding: .2rem .4rem; background: var(--cb-bar); color: var(--cb-bar-ink); border-bottom: 1px solid var(--rd-rule); font-family: var(--rd-font); font-size: .9rem; letter-spacing: 0; word-spacing: 0; }
main.v3 .cb-bar, main.v3 .cb-btn, main.v3 .cb-lang, main.v3 .cb-file { font-size: max(15px, .9rem); }   /* never under 15 px (v33t readability) */
.cb-lang { font-weight: 700; color: var(--cb-bar-ink); }
.cb-file { padding: .05rem .5rem; border-radius: 4px 4px 0 0; background: var(--rd-code-bg); color: var(--cb-file-ink); font-family: var(--rd-mono); }
.cb-sp { flex: 1; }
.cb-btn { min-height: 30px; padding: .1rem .55rem; font: 600 .9rem/1.2 var(--rd-font); color: var(--cb-btn-ink); background: var(--cb-btn); border: 1px solid var(--cb-btn-line); border-radius: 5px; cursor: pointer; }
.cb-btn:hover { background: var(--cb-btn-hover); }
.cb-btn:focus-visible, .cb-pre:focus-visible { outline: 3px solid var(--cb-focus); outline-offset: -3px; }
.cb-btn[aria-pressed="true"] { background: var(--cb-on); color: var(--cb-on-ink); border-color: var(--cb-on-line); }
.cb-btn[hidden] { display: none; }
.cb-pre, main.v3 .cb-pre { margin: 0; padding: .5rem .7rem; overflow-x: auto; background: var(--rd-code-bg); color: var(--rd-code-ink); font-family: var(--rd-mono); font-size: var(--cb-fs); line-height: 1.5; border: 0; border-radius: 0; white-space: pre; tab-size: 4; font-variant-ligatures: none; font-variant-numeric: tabular-nums; }
main.v3 pre.see.cb-pre { background: var(--rd-code-bg); color: var(--rd-code-ink); border: 0; }
.cb-pre code { display: block; min-width: max-content; font: inherit; background: none; color: inherit; padding: 0; counter-reset: cb; }
.cb-ln { --row: transparent; display: block; min-height: 1.5em; background-color: var(--row); }
.cb-ln.add { --row: var(--cb-add); }
.cb-ln.del { --row: var(--cb-del); text-decoration: line-through; }
.cb-num .cb-ln { counter-increment: cb; position: relative; padding-left: 3.4em; }
.cb-num .cb-ln::before { content: counter(cb); position: absolute; left: 0; top: 0; width: 2.6em; text-indent: 0; text-align: right; color: var(--cb-dim); user-select: none; -webkit-user-select: none; }
.cb[data-wrap="on"] .cb-pre code { min-width: 0; }
.cb[data-wrap="on"] .cb-ln { --cb-hang: calc((min(var(--ind, 0), 16) + 2) * 1ch); white-space: pre-wrap; overflow-wrap: anywhere; padding-left: var(--cb-hang); text-indent: calc(-1 * var(--cb-hang)); }
@media (max-width: 700px) { .cb[data-wrap="on"] .cb-ln { --cb-hang: calc((min(var(--ind, 0), 6) + 2) * 1ch); } }
main.v3 .cb pre.cb-pre.cb-pre { font-size: var(--cb-fs); }   /* v3-read.css (loaded later) sets pre.code and code to the prose code size */
main.v3 .cb .cb-pre code { font: inherit; }
/* V44c (owner, 16 Nov 21:45): three blocks that cannot be confused. The ONLY place for their colours (tokens below; contrast test
   tests/v44c-blocks.mjs). COMMAND (cb-shell): light blue-grey, dark bold text, solid 4 px blue bar, filled chip "TERMINAL - type or
   copy", big Copy, a "$ " prompt drawn by CSS (never copied). CODE (cb-file): light green-grey, dark bold text, solid 4 px green bar,
   filled chip "CODE - <file>", Copy, line numbers by CSS (never copied). OUTPUT (cb-output): warm cream, regular brown-grey text one
   px smaller, DASHED amber bar and frame, outlined dashed chip "OUTPUT - what you should see" with an eye, no Copy. Shape, words and
   icon differ as well as colour (grayscale / colour-blind safe). Each block sets --rd-code-bg / --rd-code-ink for itself, so the older
   pre rules above take its colours. */
:root { --cb-cmd-bg: #EEF3F9; --cb-cmd-ink: #0B1220; --cb-cmd-bar: #1D4ED8; --cb-cmd-chip: #1D4ED8; --cb-cmd-chip-ink: #FFFFFF; --cb-cmd-dim: #475569;
  --cb-code-bg: #EDF6EF; --cb-code-ink: #0A1A0F; --cb-code-bar: #15803D; --cb-code-chip: #166534; --cb-code-chip-ink: #FFFFFF; --cb-code-dim: #3D5A46;
  --cb-out-bg: #FFF7E8; --cb-out-ink: #4A3B2C; --cb-out-bar: #B45309; --cb-out-chip-ink: #7C2D12; --cb-out-dim: #7A5536; }
html[data-rd-theme="dark"], html[data-rd-theme="contrast"] {
  --cb-cmd-bg: #15284A; --cb-cmd-ink: #F3F7FF; --cb-cmd-bar: #60A5FA; --cb-cmd-chip: #93C5FD; --cb-cmd-chip-ink: #0B1220; --cb-cmd-dim: #A5B4CC;
  --cb-code-bg: #0D2016; --cb-code-ink: #F0FFF4; --cb-code-bar: #4ADE80; --cb-code-chip: #86EFAC; --cb-code-chip-ink: #052E16; --cb-code-dim: #9CC5A9;
  --cb-out-bg: #241B10; --cb-out-ink: #E7DCCB; --cb-out-bar: #F59E0B; --cb-out-chip-ink: #FCD34D; --cb-out-dim: #C7AE8A; }
.cb.cb-shell { --rd-code-bg: var(--cb-cmd-bg); --rd-code-ink: var(--cb-cmd-ink); --cb-dim: var(--cb-cmd-dim); --k-bar: var(--cb-cmd-bar); --k-chip: var(--cb-cmd-chip); --k-chip-ink: var(--cb-cmd-chip-ink); }
.cb.cb-file { --rd-code-bg: var(--cb-code-bg); --rd-code-ink: var(--cb-code-ink); --cb-dim: var(--cb-code-dim); --k-bar: var(--cb-code-bar); --k-chip: var(--cb-code-chip); --k-chip-ink: var(--cb-code-chip-ink); }
.cb.cb-output { --rd-code-bg: var(--cb-out-bg); --rd-code-ink: var(--cb-out-ink); --cb-dim: var(--cb-out-dim); --k-bar: var(--cb-out-bar); --cb-fs: calc(14px * var(--rd-scale, 1)); }
.cb.cb-shell, .cb.cb-file { --cb-fs: calc(15px * var(--rd-scale, 1)); }
.cb.cb-shell, .cb.cb-file, .cb.cb-output { background: var(--rd-code-bg); border-left: 4px solid var(--k-bar); }
.cb.cb-output { border-style: dashed; border-color: var(--k-bar); border-width: 1px 1px 1px 4px; }
.cb.cb-shell .cb-bar, .cb.cb-file .cb-bar, .cb.cb-output .cb-bar { background: transparent; color: var(--rd-code-ink); border-bottom: 1px solid color-mix(in srgb, var(--k-bar) 35%, transparent); }
.cb.cb-output .cb-bar { border-bottom-style: dashed; }
.cb.cb-shell .cb-pre, .cb.cb-file .cb-pre { font-weight: 650; }
.cb.cb-output .cb-pre { font-weight: 400; }
/* round 2 (reviewers): a square label tab, not a pill (pills are the page's pressable "Terminal 1" tags); focus ring outside the
   filled Copy; Wrap's on state neutral inside an OUTPUT; line numbers regular weight */
.cb-chip { cursor: default; display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .6rem .1rem .45rem; border-radius: 4px; background: var(--k-chip); color: var(--k-chip-ink); border: 1.5px solid var(--k-chip); font-weight: 500; white-space: nowrap; }
.cb-chip b { font-weight: 800; letter-spacing: .04em; }
.cb-output .cb-chip { background: transparent; color: var(--cb-out-chip-ink); border: 1.5px dashed var(--cb-out-bar); }
.cb-ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cb .cb-lang { font-weight: 600; color: var(--cb-dim); }
.cb-shell .cb-copy, .cb-file .cb-copy { min-height: 36px; min-width: 5.5rem; padding: .2rem 1rem; font-weight: 800; background: var(--k-chip); color: var(--k-chip-ink); border-color: var(--k-chip); }
.cb-shell .cb-copy:hover, .cb-file .cb-copy:hover { background: var(--k-chip); filter: brightness(1.12); }
.cb-shell .cb-copy:focus-visible, .cb-file .cb-copy:focus-visible { outline: 3px solid var(--cb-focus); outline-offset: 2px; }
.cb.cb-shell .cb-bar, .cb.cb-file .cb-bar { padding: .4rem .5rem; }   /* room for that 5 px ring inside the block's overflow: hidden */
.cb-output .cb-btn[aria-pressed="true"] { background: transparent; color: var(--rd-code-ink); border-color: var(--k-bar); text-decoration: underline; }
.cb-num .cb-ln::before { font-weight: 400; }
/* a command: each command's first row starts with a dimmed prompt (not text: copy and selection give the command only) */
.cb-shell .cb-ln.cb-p::before { content: var(--cb-prompt, "$ "); color: var(--cb-dim); font-weight: 400; user-select: none; -webkit-user-select: none; }
.cb-num[data-wrap="on"] .cb-ln { padding-left: calc(3.4em + var(--cb-hang)); }
.cb-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cb-dialog { width: min(96vw, 1400px); max-height: 92vh; padding: .6rem; background: var(--rd-surface); color: var(--rd-ink); border: 2px solid var(--rd-line); border-radius: 10px; }
.cb-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.cb-dhead { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.cb-dhead .cb-close { margin-left: auto; }
.cb-big { max-width: none; }
.cb-big .cb-pre { max-height: 80vh; overflow: auto; font-size: calc(15px * var(--rd-scale, 1)); }
.v3-step .cb.v3-cmdrow { display: block; }
.v3-output > summary { cursor: pointer; }
.v3-cmdpre { max-width: 100%; box-sizing: border-box; overflow-x: auto; overflow-wrap: anywhere; margin: .1rem 0; padding: .3rem .5rem; background: var(--rd-inline-bg); color: var(--rd-ink); border-radius: 4px; white-space: pre-wrap; font-size: var(--rd-fs-code); }
/* V33: Level 1 home, account note, certificate card, Levels 2-5 as short rows */
.v3-facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }
.v3-learn { margin: .2rem 0 .8rem 1.2rem; padding: 0; }
.v3-guestnote, .v3-adopt { margin: .5rem 0; }
.v3-soon h2 { margin: 1.2rem 0 .3rem; }
.v3-soonrow { margin: .2rem 0; color: var(--rd-ink2); }

/* V39c: course home. Calm, one column of sections on an 8 px grid (--sp = .5rem at 16 px): hero -> trust strip -> outcome tiles ->
   curriculum -> Browser Lab -> pricing -> instructor -> FAQ -> final call. Pictures are never cropped (object-fit: contain). */
main.v3-home { --sp: .5rem; max-width: 1120px; margin: 0 auto; padding-bottom: calc(var(--sp) * 8); }
main.v3-home .v3-sec { margin: calc(var(--sp) * 8) 0 0; }
main.v3-home .v3-sec > h2, main.v3-home .v3-final > h2 { margin: 0 0 calc(var(--sp) * 2); font-size: var(--rd-fs-h2); }
main.v3-home .v3-lede { color: var(--rd-ink2); margin: 0 0 calc(var(--sp) * 2); }
.v3-ico { flex: none; width: 1.5rem; height: 1.5rem; color: var(--rd-link); }
.v3-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: calc(var(--sp) * 6); align-items: center; margin: calc(var(--sp) * 4) 0 calc(var(--sp) * 5); }
.v3-kicker { margin: 0 0 var(--sp); color: var(--rd-ink2); font-weight: 700; font-size: var(--rd-fs-small); letter-spacing: .02em; }
main.v3 .v3-hero h1 { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); line-height: 1.2; margin: 0 0 calc(var(--sp) * 2); letter-spacing: -.01em; text-wrap: balance; }
.v3-promise { font-size: 1.125rem; margin: 0 0 var(--sp); max-width: 34rem; }
.v3-tagline { margin: 0 0 calc(var(--sp) * 3); color: var(--rd-ink2); font-style: italic; }
.v3-cta { display: flex; flex-wrap: wrap; gap: calc(var(--sp) * 1.5); margin: 0 0 var(--sp); }
main.v3 .v3-start { font-size: 1.0625rem; padding: .65rem 1.25rem; }
main.v3 .v3-see { font-size: 1.0625rem; padding: .65rem 1.1rem; }
.v3-progline { font-weight: 700; color: var(--rd-ok); margin: var(--sp) 0 0; }
.v3-hero-media { margin: 0; }
.v3-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 14px; box-shadow: 0 14px 40px rgba(11, 37, 69, .18); }
.v3-hero-media figcaption { margin-top: var(--sp); color: var(--rd-ink2); font-size: var(--rd-fs-small); text-align: center; }
/* curriculum: Module 0, the five levels (each with its certificate strip joined below), the exam */
main.v3 .v3-modcard { margin: calc(var(--sp) * 2) 0 0; padding: calc(var(--sp) * 2.5) calc(var(--sp) * 3); border: 1px solid var(--rd-rule); border-radius: 12px; }
main.v3 .v3-modcard > h3 { margin: 0; font-size: var(--rd-fs-h3); }
.v3-lvnum { display: inline-block; margin-right: .4rem; padding: .05rem .6rem; border-radius: 999px; background: var(--rd-head); color: var(--rd-bg); font-size: .8em; font-weight: 700; vertical-align: .08em; white-space: nowrap; }
.v3-outcome { margin: calc(var(--sp) * .75) 0 0; color: var(--rd-ink2); max-width: 62rem; }
main.v3 .v3-modcard .v3-tags { margin: calc(var(--sp) * 1.5) 0 0; }
main.v3 .pill.v3-lock { background: var(--rd-note); color: var(--rd-note-ink); border-color: var(--rd-note-ink); }
.v3-openall { margin: var(--sp) 0 0; }
main.v3 .v3-m0card { border-left: 4px solid var(--rd-ok); }
.v3-m0list { margin: var(--sp) 0 0 1.2rem; padding: 0; }
.v3-lessons { margin-top: calc(var(--sp) * 1.5); }
.v3-lessons > summary { display: inline-block; cursor: pointer; font-weight: 700; color: var(--rd-link); padding: .15rem 0; }
.v3-lessons > summary::before { content: "+ "; font-weight: 700; } .v3-lessons[open] > summary::before { content: "\2212\00a0"; }
.v3-lessons > summary::-webkit-details-marker { display: none; } .v3-lessons > summary { list-style: none; }
.v3-module { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 calc(var(--sp) * 5); margin-top: var(--sp); }
.v3-sec { margin: calc(var(--sp) * 1.5) 0 0; break-inside: avoid; }
.v3-sechead { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; color: var(--rd-head); padding-bottom: .2rem; border-bottom: 1px solid var(--rd-rule); }
.v3-dots { list-style: none; display: block; margin: .25rem 0 0; padding: 0; }
.v3-lrow { display: flex; align-items: center; gap: .6rem; max-width: none; padding: .2rem 0; }
.v3-ltitle { flex: 1; min-width: 0; color: var(--rd-ink); }
main.v3 a.v3-ltitle:not(.btn):not(.v3-mdot) { color: var(--rd-ink); text-decoration: none; } main.v3 a.v3-ltitle:not(.btn):not(.v3-mdot):hover { color: var(--rd-link); text-decoration: underline; }
.v3-lmin { flex: none; color: var(--rd-ink2); font-size: var(--rd-fs-small); white-space: nowrap; }
.v3-mdot { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 3.1rem; height: 1.9rem; padding: 0 .4rem; box-sizing: border-box; border-radius: 1rem; border: 2px solid var(--rd-line); color: var(--rd-ink2); text-decoration: none; }
.v3-mdot.ready { border-color: var(--rd-link); color: var(--rd-link); font-weight: 700; }
.v3-mdot.done { background: var(--rd-ok); border-color: var(--rd-ok); color: var(--rd-bg); font-weight: 700; }
/* the level's certificate: a slim strip joined to the foot of its level card */
main.v3 .v3-level { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
main.v3 .card.v3-cert { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin: 0; padding: calc(var(--sp) * 1.25) calc(var(--sp) * 3); border: 1px solid var(--rd-rule); border-top: 0; border-radius: 0 0 12px 12px; background: var(--rd-inline-bg); font-size: var(--rd-fs-small); }
main.v3 .v3-cert .v3-certh { margin: 0; font-size: inherit; color: var(--rd-head); }
main.v3 .v3-cert .v3-certh::before { content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: .4em; vertical-align: -.18em; background: currentColor; -webkit-mask: var(--v3-cert-ico) center / contain no-repeat; mask: var(--v3-cert-ico) center / contain no-repeat; }
main.v3-home { --v3-cert-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5.5'/%3E%3Cpath d='M8.5 13.5L7 21l5-2.5 5 2.5-1.500-7.500'/%3E%3C/svg%3E"); }
main.v3 .v3-cert p { margin: 0; max-width: none; }
main.v3 .v3-cert .v3-certcount { font-weight: 700; }
main.v3 .v3-cert .btn { padding: .15rem .6rem; margin-left: .3rem; }
main.v3 .v3-cert p:empty { display: none; }
.v3-total { margin: calc(var(--sp) * 2) 0 0; }
/* the Browser Lab section */
.v3-demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--sp) * 5); align-items: center; }
.v3-ticks { list-style: none; margin: calc(var(--sp) * 2) 0; padding: 0; }
.v3-ticks li { display: flex; gap: .6rem; align-items: flex-start; margin: var(--sp) 0; }
.v3-ticks .v3-ico { color: var(--rd-ok); margin-top: .1rem; }
.v3-demo-fig { margin: 0; }
/* pricing */
.v3-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--sp) * 3); align-items: stretch; }
.v3-plan { padding: calc(var(--sp) * 3); border: 1px solid var(--rd-rule); border-radius: 12px; background: var(--rd-surface); }
.v3-plan-main { border: 2px solid var(--rd-link); }
main.v3 .v3-plan h3 { margin: 0; font-size: 1.125rem; }
.v3-amount { margin: var(--sp) 0; font-size: 2rem; font-weight: 700; color: var(--rd-head); line-height: 1.2; }
.v3-amount small { display: block; font-size: 1rem; line-height: 1.5; font-weight: 400; color: var(--rd-ink2); }
.v3-teach p { max-width: 70ch; }
.v3-faq details { margin: 0; padding: calc(var(--sp) * 1.5) 0; border-bottom: 1px solid var(--rd-rule); }
.v3-faq details:first-of-type { border-top: 1px solid var(--rd-rule); }
.v3-faq summary { cursor: pointer; font-weight: 700; color: var(--rd-head); }
.v3-faq details p { margin: var(--sp) 0 0; }
.v3-final { margin: calc(var(--sp) * 8) 0 calc(var(--sp) * 3); padding: calc(var(--sp) * 5) calc(var(--sp) * 3); text-align: center; border-radius: 14px; background: var(--rd-info); color: var(--rd-info-ink); }
main.v3 .v3-final h2 { color: var(--rd-info-ink); text-wrap: balance; }
.v3-final p { max-width: none; margin: 0 0 calc(var(--sp) * 2); }
.v3-final .v3-cta { justify-content: center; margin: 0; }
@media (max-width: 900px) {
  .v3-hero, .v3-demo-grid { grid-template-columns: minmax(0, 1fr); gap: calc(var(--sp) * 3); }
  .v3-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v3-trust li:nth-child(odd) { border-left: 0; } .v3-trust li:nth-child(n+3) { border-top: 1px solid var(--rd-rule); }
  .v3-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v3-module { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .v3-trust, .v3-tiles, .v3-plans { grid-template-columns: minmax(0, 1fr); } .v3-trust li { border-left: 0; } .v3-trust li + li { border-top: 1px solid var(--rd-rule); }
  main.v3 .v3-modcard, main.v3 .card.v3-cert { padding-left: calc(var(--sp) * 2); padding-right: calc(var(--sp) * 2); }
  .v3-cta .btn { flex: 1 1 100%; text-align: center; }
}
/* Module 0 page */
main.v3.v3-m0 { max-width: 780px; margin: 0 auto; }   /* centred (Ananya: a narrow column on the left, the right half empty) */
.v3-m0steps { list-style: none; padding: 0; }
.v3-m0step { margin: .8rem 0; padding: .8rem 1rem; }
.v3-m0step.done { border-left: 6px solid var(--rd-ok); }
.v3-m0step h2 { margin-top: 0; }
.v3-m0step pre.code { padding: .5rem .7rem; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.v3-m0tick[aria-pressed="true"] { background: var(--rd-ok-bg); color: var(--rd-ok); border-color: var(--rd-ok); }

/* V33u: the "Before you start" picture as HTML (text scales with the reading options) */
.v3-tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .6rem; margin: .6rem 0; }
.v3-tour-right { display: grid; gap: .6rem; }
@media (max-width: 700px) { .v3-tour { grid-template-columns: minmax(0, 1fr); } }
.v3-tour-box { min-width: 0; border: 1px solid var(--rd-line); border-radius: 8px; padding: .6rem .8rem; background: var(--rd-surface); color: var(--rd-ink); }
.v3-tour-box p { margin: .3rem 0; }
.v3-tour-editor, .v3-tour-term { background: #1e1e1e; color: #f2f2f2; border-color: #1e1e1e; }
.v3-tour-term { background: #000; }
.v3-tour-tree, .v3-tour-line { margin: .3rem 0; padding: .3rem .5rem; background: #252526; color: #7CFC9A; border-radius: 4px; font-family: var(--rd-mono); font-size: var(--rd-fs-code); white-space: pre-wrap; overflow-wrap: anywhere; }
.v3-tour-line { background: #000; }
.v3-tour-note { color: #FFD27F; }
.v3-tour-tag { display: inline-block; padding: .1rem .6rem; border: 1px solid #1F4FD8; border-radius: 999px; background: #E8EEFF; color: #14306F; font-weight: 700; }
.v3-tour-btn { display: inline-block; padding: .15rem .6rem; border: 1px solid #1F4FD8; border-radius: 4px; background: #fff; color: #14306F; }
.v3-tour-dot { display: inline-block; width: .7em; height: .7em; margin-right: .3em; border: 2px solid #8A97A8; border-radius: 50%; vertical-align: baseline; }
.v3-tour-dot.ok { background: #0E8A7A; border-color: #0E8A7A; }
.v3-tour-nums span { display: inline-block; min-width: 1.8em; margin-right: .3em; padding: .05rem .4rem; border: 1px solid #777; border-radius: 3px; background: #3a3a3a; text-align: center; }
.v3-tour-nums span.on { background: #b83c0f; border-color: #b83c0f; color: #fff; }
/* V33w: the narrated screencast of a lesson (block made by missions/ix-video.js; v3 pages do not load missions/ix.css) */
.v3-video .ix-vid { margin: .2rem 0 .4rem; }
.v3-video .ix-face.ix-soon { max-width: 640px; }   /* the stills are 640 px wide: never drawn larger */
.v3-video .ix-yt, .v3-video .ix-local, .v3-video .ix-face { display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; }
.v3-video .ix-transcript { margin: .4rem 0 0; }
/* V38b: the video card under the goal, the click-to-load facade, "Video coming soon", the pop-out window */
.v3-video { padding: .5rem .8rem .6rem; }
.v3-video > h2.v3-vh { margin: 0 0 .2rem; font-size: var(--rd-fs-h3); }
.ix-vhead { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ix-vhead .ix-vtitle { flex: 1; margin: 0; }
.ix-face { position: relative; padding: 0; overflow: hidden; cursor: pointer; color: #fff; }
.ix-face img { width: 100%; height: 100%; object-fit: contain; display: block; }   /* V39c: a still is never cropped */
.ix-playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4.2rem; height: 3rem; display: grid; place-items: center; border-radius: 12px; background: #B91C1C; color: #fff; font-size: 1.5rem; box-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.ix-facenote { position: absolute; left: .5rem; bottom: .5rem; padding: .15rem .55rem; border-radius: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: .9rem; }
.ix-face:focus-visible { outline: 3px solid var(--rd-focus); outline-offset: 2px; }
.ix-face:hover .ix-playbtn { background: #DC2626; }
.ix-soon { cursor: default; }
.ix-soon .ix-facenote { left: 50%; bottom: .8rem; transform: translateX(-50%); font-size: 1.05rem; font-weight: 700; padding: .4rem .9rem; }
.cb-btn.v3-popbtn, .cb-btn.v3-showme { color: var(--rd-link); background: var(--rd-surface); border-color: var(--rd-link); }
.cb-btn.v3-showme { margin: .2rem .3rem .2rem 0; }
.v3-video.v3-pop { position: fixed; z-index: 80; max-width: calc(100vw - 16px); min-width: 280px; resize: horizontal; overflow: auto; box-shadow: 0 10px 34px rgba(0, 0, 0, .45); margin: 0; }
.v3-video.v3-pop > h2.v3-vh { cursor: move; user-select: none; background: var(--rd-info); color: var(--rd-info-ink); margin: -.5rem -.8rem .3rem; padding: .3rem .8rem; font-size: 1rem; }
.v3-video.v3-pop .ix-transcript, .v3-video.v3-pop > p.small { display: none; }

/* V38b: lesson layout (v3-layout.js). Course bar tools: Prev | progress | Next | Browser Lab / My ROS 2 PC | Focus | ? (then Aa) */
.rim2-bar .v3-bartools { margin-left: auto; flex: none; display: flex; flex-wrap: nowrap; align-items: center; gap: .35rem; }   /* V39c: one row; the breadcrumb on the left shortens instead */
.rim2-bar .v3-bartools + .rd-btn { margin-left: .35rem; }
.v3-barlesson { color: #fff; }
.v3-barnav, .v3-barbtn, .v3-barmodebtn { min-height: 32px; display: inline-flex; align-items: center; padding: 0 .55rem; font: 600 min(.92rem, 16px)/1 var(--rd-font); letter-spacing: 0; color: #fff; background: transparent; border: 1px solid #A5B4CF; border-radius: 6px; text-decoration: none; cursor: pointer; }
.v3-barnav:hover, .v3-barbtn:hover, .v3-barmodebtn:hover { background: rgba(255, 255, 255, .12); }
.v3-barnav:focus-visible, .v3-barbtn:focus-visible, .v3-barmodebtn:focus-visible { outline: 3px solid #FDE047; outline-offset: 1px; }
.v3-barprog { color: #fff; font-size: min(.9rem, 16px); white-space: nowrap; }
.v3-barmode { display: inline-flex; }
.v3-barmode .v3-barmodebtn { border-radius: 0; } .v3-barmode .v3-barmodebtn:first-child { border-radius: 6px 0 0 6px; } .v3-barmode .v3-barmodebtn:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.v3-barmodebtn[aria-pressed="true"], .v3-barbtn[aria-pressed="true"] { background: #fff; color: #0B2545; }
.v3-barlevel { color: #DCE3F0; }
.v3-barmodelbl { color: #DCE3F0; font-size: .85rem; white-space: nowrap; } @media (max-width: 1099px) { .v3-barmodelbl { display: none; } }
@media (max-width: 1279px) { .rim2-bar .where:has(.v3-barlesson) > a, .rim2-bar .where .v3-barlevel { display: none; } .rim2-bar .where:has(.v3-barlesson) { font-size: 0; } .rim2-bar .where .v3-barlesson { font-size: 1rem; } }   /* on a lesson only: the course home keeps its breadcrumb */
/* sticky step list (with the mission card above it in one pinned box) */
.v3-pin { position: sticky; top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px) + 4px); z-index: 30; margin: 0 0 .6rem; }
body.sb-lab2:not(.sb-narrow) .v3-pin { top: 0; }
/* with the lab open on a desktop the lesson and the lab fill the screen exactly: no footer under them, so the window never scrolls them away */
body.v3-lab.sb-lab2:not(.sb-narrow) > .site-foot { display: none; }
body.v3-lab.sb-lab2:not(.sb-narrow) { overflow: hidden; }
.v3-pin .v3-card { position: static; margin: 0 0 .3rem; }
/* ---- V39f: "On this page" (v3-otp.js): the page's own sections. data-mode="list": a list beside the text; "menu": a one-line dropdown ---- */
.v3-otp { font-family: var(--rd-font); }
.v3-otpbtn { display: none; width: 100%; min-height: 40px; box-sizing: border-box; align-items: center; gap: .5rem; padding: .3rem .7rem; font: 600 var(--rd-fs-small)/1.3 var(--rd-font); color: var(--rd-ink); background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); cursor: pointer; text-align: left; }
.v3-otpbtn::after { content: ""; flex: none; width: .5em; height: .5em; margin: 0 .15em .2em auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.v3-otp.open .v3-otpbtn::after { transform: rotate(-135deg); margin-bottom: -.2em; }
.v3-otpbtn:focus-visible, .v3-otplist a:focus-visible { outline: 3px solid var(--rd-focus, #1D4ED8); outline-offset: 1px; }
.v3-otplbl { flex: none; }
.v3-otpcur { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--rd-ink2); }
.v3-otpcur:not(:empty)::before { content: "\00b7\00a0"; }
.v3-otph { margin: 0 0 .35rem; padding: 0 .6rem; font: 700 var(--rd-fs-small)/1.4 var(--rd-font); letter-spacing: .07em; text-transform: uppercase; color: var(--rd-ink2); }
.v3-otplist { list-style: none; margin: 0; padding: 0; } .v3-otplist li[hidden] { display: none; }
main.v3 nav.v3-otp .v3-otplist a, nav.v3-otp .v3-otplist a { display: block; padding: .32rem .6rem; border-radius: 6px; color: var(--rd-ink); text-decoration: none; font-size: var(--rd-fs-small); line-height: 1.35; overflow-wrap: anywhere; }
.v3-otplist a:hover { background: var(--rd-info); color: var(--rd-info-ink); }
main.v3 nav.v3-otp .v3-otplist a[aria-current], nav.v3-otp .v3-otplist a[aria-current] { background: var(--rd-info); color: var(--rd-info-ink); font-weight: 700; }
.v3-otplist li.v3-otpsub a { padding-left: 1.4rem; }
.v3-otplist li.done a::after { content: " \2713"; color: var(--rd-ok); font-weight: 700; }
.v3-otp[data-mode="menu"] { position: relative; }
.v3-otp[data-mode="menu"] .v3-otpbtn { display: flex; }
.v3-otp[data-mode="menu"] .v3-otph, .v3-otp[data-mode="menu"] .v3-otplist { display: none; }
.v3-otp[data-mode="menu"].open .v3-otplist { display: block; position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: min(70vh, 30rem); overflow: auto; padding: .35rem; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.v3-otp[data-mode="menu"] .v3-otplist a { padding-block: .55rem; }
/* a lesson, wide page, lab closed: the mission card and the list are a column in the free room at the right (v3-layout.js docks the card) */
body.v3-side .v3-pin { position: fixed; z-index: 30; right: 1.2rem; top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px) + 10px); width: 20rem; max-width: 30vw; max-height: calc(100vh - var(--top-h, 65px) - var(--rim2-bar-h, 38px) - 24px); overflow: auto; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
body.v3-side .v3-pin .v3-card { position: static; width: auto; max-width: none; max-height: none; overflow: visible; margin: 0; flex: none; }
body.v3-side .v3-stepnav { padding: .1rem 0 .4rem; border-left: 1px solid var(--rd-line); }
/* the lesson's own way out, over its title: Back to Level N, Previous, Next (no list of other lessons on a lesson page) */
.v3-nav.v3-navtop { align-items: baseline; gap: .2rem 1.1rem; margin: 0 0 .7rem; font-size: var(--rd-fs-small); }
.v3-navtop a { padding: .2rem 0; font-weight: 600; text-underline-offset: .2em; }
.v3-navtop .v3-back::before, .v3-navtop .v3-prev::before { content: "\2039\00a0"; } .v3-navtop .v3-next::after { content: "\00a0\203A"; }
.v3-navtop .v3-barprog { margin-left: auto; color: var(--rd-ok); font-weight: 700; white-space: normal; font-size: inherit; } .v3-navtop .v3-barprog:empty { display: none; }
@media (max-width: 700px) { .v3-navtop a { min-height: 40px; display: inline-flex; align-items: center; } }
/* a heading or step brought into view stops under the pinned "Sections" line, not behind it */
main.v3 h2, main.v3 h3, main.v3 .v3-step { scroll-margin-top: 3.4rem; }
/* the mission card scrolls away when the step list is pinned (on a wide page with no lab it stays in the free space, top right) */
.v3-card:has(+ .v3-pin) { position: static; }
@media (min-width: 1240px) { body.sb-cv .v3-card:has(+ .v3-pin) { position: fixed; } }
/* inline step check, hints, phone folds */
.v3-stepcheck { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .1rem 0 .1rem .5rem; }
.v3-stepcheck .v3-dot { margin-left: 0; }
.cb-btn.v3-checkbtn, .cb-btn.v3-hintbtn { color: var(--rd-link); background: var(--rd-surface); border-color: var(--rd-link); min-height: 28px; padding: 0 .5rem; }
.v3-hint { margin: .3rem 0; }
.v3-hint > summary { cursor: pointer; color: var(--rd-link); font-weight: 600; font-size: var(--rd-fs-small); }
.v3-hint p.ifnot { margin: .25rem 0; }
.v3-acc { margin: .4rem 0; border: 1px solid var(--rd-rule); border-radius: 8px; padding: .2rem .6rem; }
.v3-acc > summary { cursor: pointer; font-weight: 700; font-size: var(--rd-fs-h3); }
.v3-needsdesk .btn { margin: .2rem .3rem .2rem 0; }
/* Focus mode: no site header or footer; the lesson column is hidden (sim-bench .sb-focus); a floating current-step card */
body.v3-focus > header.top, body.v3-focus .site-foot, body.v3-focus > .skip { display: none !important; }
body.v3-focus { --top-h: 0px; }
.v3-float { position: fixed; z-index: 85; left: 12px; bottom: 12px; width: min(26rem, calc(100vw - 24px)); padding: .5rem .7rem; background: var(--rd-surface); color: var(--rd-ink); border: 2px solid var(--rd-link); border-radius: 10px; box-shadow: 0 8px 26px rgba(0, 0, 0, .4); }
.v3-float[hidden] { display: none; }
.v3-float-title { display: block; margin-bottom: .2rem; }
.v3-float-text { margin: 0 0 .4rem; max-height: 6.5em; overflow: hidden; }
.v3-float .v3-barbtn { color: var(--rd-link); border-color: var(--rd-link); margin: .1rem .2rem .1rem 0; }
.v3-keys table { border-collapse: collapse; margin: .4rem 0; } .v3-keys th, .v3-keys td { text-align: left; padding: .2rem .7rem .2rem 0; vertical-align: top; }
/* tablet width: Read | Lab tabs instead of the lab under the lesson */
.v3-rltabs { display: none; }
@media (min-width: 768px) and (max-width: 1023px) {
  .v3-rltabs { display: flex; position: fixed; z-index: 70; left: 50%; bottom: 10px; transform: translateX(-50%); gap: 0; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); border-radius: 999px; overflow: hidden; }
  .v3-rltab { min-width: 6.5rem; min-height: 44px; font: 700 1rem var(--rd-font); color: #0B2545; background: #fff; border: 2px solid #0B2545; cursor: pointer; }
  .v3-rltab:first-child { border-radius: 999px 0 0 999px; } .v3-rltab:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
  .v3-rltab[aria-selected="true"] { background: #0B2545; color: #fff; }
  body[data-rl="read"] .page > .bench { display: none; }
  body[data-rl="lab"] .page > main.v3 { display: none; }
  body[data-rl] .sb-jump { display: none !important; }
}

/* ================= V39c lesson page ================= */
/* ---- one figure system (v3-lesson.js figure()): never cropped, never stretched, never larger than the picture, at most 70 % of the screen height ---- */
.v3-fig { margin: .8rem 0 1.2rem; padding: 0; }
.v3-figzoom { all: unset; display: block; box-sizing: border-box; max-width: 100%; cursor: zoom-in; border-radius: 8px; background: var(--rd-code-bg, #F3F4F6); border: 1px solid var(--rd-line); line-height: 0; }
.v3-figzoom:focus-visible { outline: 3px solid var(--rd-focus); outline-offset: 2px; }
.v3-fig img, img.v3-goalimg { display: block; width: auto; height: auto; max-width: min(100%, var(--fig-w, 100%)); max-height: 70vh; object-fit: contain; margin: 0 auto; border: 0; border-radius: 7px; }
.v3-fig-full .v3-figzoom { width: fit-content; }
.v3-fig-ui .v3-figzoom { width: fit-content; } .v3-fig-ui img { max-width: min(100%, 600px, var(--fig-w, 600px)); }
.v3-fig-inset .v3-figzoom { width: fit-content; } .v3-fig-inset img { max-width: min(100%, 320px, var(--fig-w, 320px)); }
.v3-fig-svg .v3-figzoom { width: 100%; max-width: 760px; background: #fff; } .v3-fig-svg img { width: 100%; max-width: 100%; }
.v3-lightbox img.v3-lightsvg { width: min(1100px, calc(96vw - 1.2rem)); background: #fff; }
.v3-fig figcaption { margin: .4rem 0 0; max-width: 70ch; font-size: var(--rd-fs-small); line-height: 1.5; color: var(--rd-ink2); }
.v3-fig figcaption b { color: var(--rd-ink); }
.v3-lightbox { box-sizing: border-box; max-width: 96vw; max-height: 96vh; padding: .6rem; border: 0; border-radius: 10px; background: var(--rd-surface); color: var(--rd-ink); box-shadow: 0 16px 60px rgba(0, 0, 0, .55); }
.v3-lightbox::backdrop { background: rgba(8, 12, 24, .82); }
.v3-lightbox img { display: block; width: auto; height: auto; max-width: calc(96vw - 1.2rem); max-height: calc(96vh - 6.5rem); object-fit: contain; margin: 0 auto; }
.v3-lightfoot { display: flex; align-items: flex-start; gap: .8rem; margin-top: .5rem; } .v3-lightfoot p { margin: 0; flex: 1; max-width: 90ch; }
/* ---- the lesson header: lesson title left; ONE primary button right, the mode switch beside it ---- */
.rim2-bar .where { flex: 1 1 auto; }
.v3-baropen { min-height: 34px; display: inline-flex; align-items: center; padding: 0 .9rem; font: 700 min(.95rem, 16px)/1 var(--rd-font); color: #0B2545; background: #FDE047; border: 1px solid #FDE047; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.v3-baropen:hover { background: #FACC15; } .v3-baropen:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.v3-baropen[hidden], .v3-barbtn[hidden] { display: none; }
.v3-barnav, .v3-barbtn, .v3-barmodebtn { white-space: nowrap; }
/* ---- the launch card at the first hands-on step ---- */
.v3-labcard { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .6rem 0 1rem; padding: .8rem 1rem; border: 2px solid var(--rd-link); border-radius: 10px; background: var(--rd-info); color: var(--rd-info-ink); }
.v3-labcard-text { flex: 1 1 16rem; display: flex; flex-direction: column; gap: .15rem; } .v3-labcard-text strong { font-size: var(--rd-fs-h3); }
.v3-labcard-btn { flex: none; font-weight: 700; }
.btn.v3-checkwork { margin: .4rem 0; font-weight: 700; }
/* ---- with the lab open: no second mode chooser, no second Open / Focus button in the lab's own bar (sim-bench.js makes them for the older course) ---- */
main.v3 > .sb-lab { display: none; }
body.v3-lab .sb-bar .sb-open, body.v3-lab .sb-bar .sb-focusbtn { display: none; }
body.v3-lab .sb-bar { padding: 3px 12px; } body.v3-lab .sb-state { white-space: normal; }
/* ---- 1024-1279 px: the open lab fills the screen; the lesson is a drawer over it (v3-layout.js) ---- */
body.v3-drawer:not(.sb-narrow) > .page { grid-template-columns: minmax(0, 1fr); }
body.v3-drawer main.lesson.v3, body.v3-drawer .sb-split { display: none; }
body.v3-drawer.v3-drawer-open main.lesson.v3 { display: block; position: fixed; z-index: 75; left: 0; top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px)); bottom: 0; width: min(30rem, 92vw); height: auto; overflow: auto; padding: .6rem 1rem 2rem; background: var(--rd-bg); border-right: 1px solid var(--rd-line); box-shadow: 8px 0 30px rgba(0, 0, 0, .35); }
body.v3-focus.v3-drawer.v3-drawer-open main.lesson.v3 { top: var(--rim2-bar-h, 38px); }
/* ---- a video that is not out yet: one closed line ---- */
.v3-video-soon { margin: .4rem 0; } .v3-videosoon > summary { cursor: pointer; color: var(--rd-ink2); font-size: var(--rd-fs-small); }
/* ---- reading column: about 70 characters per line; code and figures may use the full column ---- */
main.v3 [data-block] > p, main.v3 [data-block] > ul, main.v3 [data-block] > ol:not(.v3-steps), main.v3 .v3-step > p, main.v3 .v3-step > .small { max-width: var(--rd-measure, 70ch); }

/* ==== V39d / V39f: the course bar (v3-bar.js): one row, your lab and reading (V39f took the course navigator row out) ==== */
html:has(.rim2-bar) { scroll-padding-top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px) + 8px); }
.rim2-bar.v3-bar2 { display: block; padding: 0; }
/* sizes inside the bar are in em of its own capped font (at most 16 px), never rem: the bar must not widen when the reading size goes up to 175 % */
.v3-row { display: flex; align-items: center; gap: .4em; min-height: 40px; padding: 3px max(16px, 1.2vw); box-sizing: border-box; }
.v3-bar2 .v3-barnav, .v3-bar2 .v3-barbtn, .v3-bar2 .v3-barmodebtn { padding: 0 .55em; } .v3-bar2 .v3-baropen { padding: 0 .9em; }
.v3-bar2 .v3-barmodelbl, .v3-bar2 .v3-barprog { font-size: min(.9rem, 15px); }
.v3-tools, .v3-slot { display: flex; align-items: center; gap: .35em; flex: none; }
.v3-slot:empty, .v3-menubtn { display: none; }
.v3-row1 .v3-tools { margin-left: auto; }
.rd-sepbox { margin: 0 0 .6rem; } .rd-sepbox > summary { cursor: pointer; font-weight: 700; } .rd-sepbox .rd-row { margin: .4rem 0 0; }
.rim2-bar .v3-slot.v3-bartools { margin-left: 0; }
.v3-size { display: inline-flex; align-items: center; gap: .2em; }
.v3-sizeval { min-width: 3.1em; text-align: center; color: #fff; font-weight: 600; white-space: nowrap; }
.v3-barbtn:disabled { opacity: .45; cursor: default; }
.v3-setuplink[aria-current="page"] { background: #fff; color: #0B2545; }
.rim2-bar.v3-bar2 .rd-btn { margin-left: 0; min-width: 0; height: 32px; padding: 0 .55em; border: 1px solid #A5B4CF; font: 600 min(.92rem, 16px)/1 var(--rd-font); }
/* the state of the chosen lab: a full green dot = ready / connected, a hollow amber ring = not connected (the words are in its label) */
.v3-pcdot { display: inline-flex; align-items: center; gap: .3em; flex: none; color: #DCE3F0; font-size: min(.85rem, 14px); white-space: nowrap; }
.v3-pcdot::before { content: ""; width: 11px; height: 11px; box-sizing: border-box; border-radius: 50%; background: #22C55E; border: 1px solid #fff; }
.v3-pcdot[data-state="off"]::before { background: transparent; border: 3px solid #FBBF24; }
.v3-sizelbl { color: #DCE3F0; font-size: min(.85rem, 14px); white-space: nowrap; margin-right: .15em; }
.v3-sheetclose { display: none; } .v3-helpword { margin-left: .3em; }
@media (max-width: 1439px) { .v3-pcword, .v3-helpword, .v3-barmodelbl { display: none; } }   /* "Text & terminal" stays: it says what A- / A+ change */
/* V39d audit: a long code word in "Words you need" (lesson 2.9 at 380 px: 105 px of sideways scrolling) breaks instead of widening the page */
main.v3 details.words dt, main.v3 details.words dd { min-width: 0; overflow-wrap: anywhere; }
/* the step list in a narrow column (the split pane, a phone): numbers, and the name of the part on screen */
/* 1025-1279 px: shorter words so that both rows still fit at the largest text size (the full words stay in each control's label) */
@media (max-width: 1279px) {
  .rim2-bar.v3-bar2 .where:has(.v3-barlesson) { display: none; }
  .v3-setuplink { font-size: 0; } .v3-setuplink::after { content: "Set up my PC"; font-size: min(.92rem, 16px); }
  .v3-themeword, .v3-sizeval, .v3-sizelbl { display: none; }
}
@media (max-width: 1439px) {
}
/* <= 1024 px: the tools are a menu under "Tools" (a bottom sheet on a phone) */
@media (max-width: 1024px) {
  .rim2-bar.v3-bar2 { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: 4px 10px; }
  .v3-row { display: contents; }
  .v3-menubtn { display: inline-flex; }
  .v3-menubtn[aria-expanded="true"] { background: #fff; color: #0B2545; }
  .v3-menubtn::after { content: "\00a0\25BE"; }
  .rim2-bar.v3-bar2 .where { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rim2-bar.v3-bar2.v3-onlesson .where { display: none; }   /* a long breadcrumb is cut with "...", it never widens the page */
  .v3-themeword, .v3-sizeval, .v3-sizelbl, .v3-pcword, .v3-helpword { display: inline; }
  .v3-setuplink { font-size: min(.92rem, 16px); } .v3-setuplink::after { content: none; }
  .v3-sheetclose { display: inline-flex; margin-left: auto; order: -2; } .v3-tools > :first-child + * { margin-left: 0; }
  .v3-tools { display: none; position: fixed; z-index: 85; left: 0; right: 0; top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 40px)); max-height: calc(100vh - var(--top-h, 65px) - var(--rim2-bar-h, 40px)); overflow: auto; flex-wrap: wrap; justify-content: flex-start; gap: .5rem; padding: .7rem 12px 1rem; box-sizing: border-box; background: var(--navy, #14204A); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
  body[data-v3menu="tools"] .v3-tools { display: flex; }
  .v3-tools .v3-barbtn, .rim2-bar.v3-bar2 .v3-tools .rd-btn { min-height: 44px; height: auto; }
  .v3-tools { flex-direction: row; } .v3-tools .v3-sheetclose { order: 99; }
  .v3-barmodelbl { display: none; }
}
@media (max-width: 700px) {
  .v3-modeslot { display: none; }   /* a phone has no lab */
  .v3-menubtn { min-height: 40px; }
  .v3-tools { top: auto; bottom: 0; max-height: 78vh; border-radius: 14px 14px 0 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 30px rgba(0, 0, 0, .45); }
}
/* V39d page audit: the final call's line and buttons sit in the middle; a two-line button label keeps air above and below */
main.v3 .v3-final > p { max-width: none; }
main.v3 .btn, main.v3 a.btn { padding-block: .4rem; }
/* V39d: at the largest text size (28 px) on a phone a long file name, command or lesson title breaks instead of widening the page */
main.v3 p, main.v3 li, main.v3 .v3-ltitle, main.v3 .v3-sechead, .cb-file { overflow-wrap: anywhere; }
.cb-file { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 700px) { .v3-lrow { flex-wrap: wrap; } .v3-ltitle { flex: 1 1 9em; } }
/* V39d page audit: on a phone a deeply indented wrapped line keeps its first word beside the line number (it used to leave the number's row empty); the step number sits beside the first line of a long file tag */
@media (max-width: 700px) { .cb[data-wrap="on"] .cb-ln.cb-deep { word-break: break-all; } }
.v3-step > .v3-chip { vertical-align: top; }

/* ==== V39f: the course front page follows the site's other course page (plan.html: .pagehead, .layout, .sidenav, .aside, .ibox;
   the facts list of courses.html). The site theme's tokens follow the reading tokens here, so the text size control and the dark
   and high-contrast themes keep working on this page. ==== */
main.v3-home { --sp: .5rem; max-width: none; margin: 0; padding: 0; --navy: var(--rd-head); --text: var(--rd-ink); --text-2: var(--rd-ink2); --rule: var(--rd-rule); --link: var(--rd-link); --bg: var(--rd-bg); --ok: var(--rd-ok);
  --tint: color-mix(in srgb, var(--rd-ink) 5%, var(--rd-bg));
  --fs-xs: .9rem; --fs-label: .9rem; --fs-sm: .9rem; --fs-btn: .95rem; --fs-base: 1rem; --fs-lg: 1.15rem; --fs-card: 1.2rem; --fs-xl: 1.45rem; --fs-2xl: 2rem; }
main.v3-home .pagehead, main.v3-home .ibox { background: var(--rd-surface); }
main.v3-home .pagehead .wrap { padding-top: 28px; padding-bottom: 28px; }
main.v3-home .pagehead .wrap + .wrap { padding-top: 0; padding-bottom: 0; }
.v3-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
main.v3-home .pagehead h1 { font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.4rem); letter-spacing: -.01em; text-wrap: balance; }
main.v3-home .pagehead .lede { max-width: 34em; }
.v3-factline { margin: 12px 0 0; color: var(--rd-ink2); font-size: var(--fs-sm); max-width: 44em; }
main.v3-home .pagehead .v3-cta { margin: 20px 0 0; }
main.v3-home .v3-hometabs { margin: 0; border-bottom: 0; }
main.v3-home .sidenav { top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px) + 16px); max-height: calc(100vh - var(--top-h, 65px) - var(--rim2-bar-h, 38px) - 32px); overflow: auto; }
@media (min-width: 1081px) { main.v3-home .aside { top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px) + 16px); } }
main.v3-home .v3-sec { margin: 3rem 0 0; } main.v3-home .main-col > .v3-sec:first-child { margin-top: 0; }
main.v3-home .v3-sec > h2 { font-size: var(--fs-xl); }
main.v3-home .pfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 1.2rem 0 0; }
main.v3-home .pfacts div { padding: .5rem 0; border-bottom: 1px solid var(--rd-rule); }
main.v3-home .pfacts dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--rd-ink2); font-weight: 700; }
main.v3-home .pfacts dd { margin: 0; font-weight: 600; color: var(--rd-head); }
.v3-clo { margin: .6rem 0 1rem; padding-left: 1.5rem; } main.v3 .v3-clo li { margin: .45rem 0; max-width: 70ch; }
main.v3-home .ibox .btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; text-align: center; margin: 4px 0 10px; }
main.v3-home .ibox .meta { margin: 0; color: var(--rd-ink2); } main.v3-home .reqs li { border-bottom-color: var(--rd-rule); }
/* the first button is the site's: navy (in the dark themes the light heading colour, so it still stands out) */
main.v3-home .btn:not(.quiet) { background: var(--rd-head); border-color: var(--rd-head); color: var(--rd-bg); }
main.v3-home .btn:not(.quiet):hover { filter: brightness(1.25); }
@media (max-width: 960px) {
  .v3-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  main.v3-home.v3plan .layout .sidenav { display: block; position: sticky; top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px) + 4px); z-index: 30; max-height: none; overflow: visible; }
}
@media (max-width: 960px) { main.v3-home :is(h2, section)[id] { scroll-margin-top: 3.6rem; } }
@media (max-width: 640px) { main.v3-home .pfacts { grid-template-columns: minmax(0, 1fr); } }
/* Module 0 and the syllabus: "On this page" beside the text when the window has room for it (v3-otp.js sets body.v3-side) */
main.v3.v3-syllabus { max-width: 60rem; margin: 0; }
.v3-m0step { scroll-margin-top: 3.6rem; }
main.v3-home .arrow { white-space: normal; }

/* ==== V39g (owner, 15 Nov): reading mode. While neither lab is open (body.sb-cv) a lesson is one column of up to 920 px (prose keeps
   its 70ch, rule above; step boxes, code and figures use the column). The column and "On this page" (body.v3-side, >= 1240 px) are
   centred together as one block (designer review: a list pinned to the window edge left a 600 px gap at 1920). Module 0 and the
   syllabus read the same way. Opening the lab gives the split view (sim-bench.css); Close lab (v3-layout.js) comes back here, also
   after the lab was made (body.sb-lab2: its split-view rules are undone below). ==== */
body { --v3-col: 920px; --v3-side-w: 0px; }
body.v3-side { --v3-side-w: calc(min(20rem, 30vw) + 2.4rem); }
body.sb-cv main.v3:not(.v3-home), main.v3.v3-syllabus, main.v3.v3-m0 { box-sizing: border-box; width: auto; max-width: min(var(--v3-col), 100% - var(--v3-side-w)); margin-left: max(0px, (100% - var(--v3-side-w) - var(--v3-col)) / 2); margin-right: auto; padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }
body.v3-side .v3-pin { right: max(1.2rem, (100% - var(--v3-side-w) - var(--v3-col)) / 2 + 1.2rem); }
body.sb-cv.sb-lab2:not(.sb-narrow) { height: auto; overflow: visible; display: block; }
body.sb-cv.sb-lab2:not(.sb-narrow) > .page { display: block; }
body.sb-cv.sb-lab2:not(.sb-narrow) main.v3 { height: auto; overflow: visible; padding-top: 1.6rem; }
body.sb-cv.sb-lab2:not(.sb-narrow) .v3-card { top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px) + 6px); }
body.sb-cv.sb-lab2:not(.sb-narrow) .v3-pin { top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px) + 4px); }
body.sb-cv.sb-lab2.v3-side:not(.sb-narrow) .v3-pin { top: calc(var(--top-h, 65px) + var(--rim2-bar-h, 38px) + 10px); }
body.sb-cv .sb-split, body.sb-cv .sb-jump { display: none !important; }
/* V39h (owner, 15 Nov 15:40, replaces the 920 px column above): no empty side areas before the lab is opened. The column takes the
   whole window next to "On this page", with 16-48 px outer margins; step boxes, code, tables and figures use all of it. Prose keeps
   18 px / 1.6 (v3-read.css) with paragraph spacing and stops at 95 characters (designer review: 110 was too long at 1920). */
body { --v3-col: 100vw; }
body.sb-cv main.v3:not(.v3-home), main.v3.v3-syllabus, main.v3.v3-m0 { padding-left: clamp(16px, 2.5vw, 48px); padding-right: clamp(16px, 2.5vw, 48px); }
body.sb-cv main.v3, main.v3.v3-syllabus, main.v3.v3-m0 { --rd-measure: 95ch; }
main.v3 li.v3-step { max-width: none; }   /* a step holds code and boxes: full width; its own text keeps the measure (.v3-step > p) */
body.sb-cv main.v3:not(.v3-home) h2, main.v3.v3-syllabus h2, main.v3.v3-m0 h2 { margin-top: 2.4rem; }
body.sb-cv main.v3:not(.v3-home) p, main.v3.v3-syllabus p, main.v3.v3-m0 p { margin-block: 0 .85em; }
/* "Starting here?" (v3-catchup.js): folded under the title; open by itself when the lesson before is not done */
.v3-catchup { margin: .6rem 0 1rem; padding: .5rem .9rem; scroll-margin-top: 3.5rem; }
.v3-catchup > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; min-height: 32px; display: list-item; }
.v3-catchup h3 { margin: .9rem 0 .2rem; font-size: 1rem; }
.v3-catchup ul, .v3-catchup ol { margin: .2rem 0 .4rem; padding-left: 1.3rem; max-width: 75ch; }
.v3-catchup li { margin: .25rem 0; overflow-wrap: anywhere; }
.v3-catchup p { max-width: var(--rd-measure, 75ch); }
.v3-cu-why { margin: .5rem 0 0; padding: .4rem .6rem; border-radius: 6px; max-width: none; background: var(--rd-note); color: var(--rd-ink); }
.v3-cu-go { font-weight: 700; margin: .5rem 0 .2rem; }
.v3-cu-more { margin: .5rem 0 .1rem; } .v3-cu-more > summary { cursor: pointer; color: var(--rd-link); font-weight: 600; min-height: 32px; display: list-item; }
.v3-cu-status:empty { display: none; }
.v3-cu-status { margin: .4rem 0; padding: .5rem .7rem; border-radius: 6px; border: 1px solid var(--rd-ok); background: var(--rd-ok-bg); color: var(--rd-ink); }
.v3-cu-status.bad { border-color: var(--rd-err); background: var(--rd-err-bg); }
.v3-cu-status:focus { outline: 2px solid var(--rd-focus); outline-offset: 2px; }
/* the lab opened on a lesson whose packages are not in it (the learner skipped the box) */
.v3-cu-missing { margin: .6rem 0; padding: .5rem .7rem; border-radius: 6px; border: 1px solid var(--rd-link); background: var(--rd-info); color: var(--rd-info-ink); }
.v3-cu-missing .btn { margin: .3rem 0 0; font-weight: 700; }

/* V39f review: the site footer follows the reading theme on the course pages (it stayed light under a dark page) */
html[data-rd-theme]:not([data-rd-theme="light"]) .site-foot { background: var(--rd-surface); color: var(--rd-ink2); border-top-color: var(--rd-rule); }
html[data-rd-theme]:not([data-rd-theme="light"]) .site-foot :is(h2.fh, .chan, a:hover) { color: var(--rd-head); }
html[data-rd-theme]:not([data-rd-theme="light"]) .site-foot a { color: var(--rd-ink2); }
/* the lab picture at the full width of the text column, so it can be read */
main.v3-home .v3-demo-grid { grid-template-columns: minmax(0, 1fr); gap: calc(var(--sp) * 2); }
/* phone: the pitch comes before the price boxes */
@media (max-width: 640px) { main.v3-home.v3plan .layout .aside { order: 3; } }
/* V39h: "Who made this course": the ROS2Lab logo (the mark the site footer uses for the YouTube channel), name, one line, the link.
   #v3Instructor stays hidden until the owner fills it. */
.v3-maker { display: flex; align-items: flex-start; gap: calc(var(--sp) * 2.5); }
.v3-makerlogo { flex: none; width: 96px; height: 96px; border-radius: 20px; }
.v3-makertext p { margin: 0 0 var(--sp); }
.v3-makername { font-size: var(--rd-fs-h3); }
@media (max-width: 520px) { .v3-maker { flex-direction: column; } .v3-makerlogo { width: 72px; height: 72px; } }
/* V39h: the front page's next step: Start Module 0 / Continue, and Go to Level N on each level card */
.v3-ctanote { margin: calc(var(--sp) * 0.5) 0 var(--sp); }
.v3-golevel { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin: var(--sp) 0; }
.v3-golevel .btn { margin: 0; }
