/* The public course pages (src/courses.js), on top of /docs/docs.css.
   Quiet and exact: hairlines instead of boxes, one green, Plex, no gradients, no shadows except a soft one
   under a screenshot. Every rule here is scoped to .c-pg (the page wrapper) or to a c-* class, so a change
   in docs.css can move the colours and the header but never break the layout of a course page.
   The lesson sidebar deliberately does NOT carry the shared .side class: it is a course outline, not the
   docs menu, and must not turn into a row of pills on a phone. */

/* ── header extras ───────────────────────────────────────────────────────────────────────────── */
.c-langs { display: inline-flex; gap: 2px; margin-right: 8px; font: 500 12.5px/1 var(--mono); }
.c-langs a, .c-langs span { height: 28px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 6px; color: var(--ink-2); }
.c-langs a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.c-langs span[aria-current] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
a.hd-sec { text-decoration: none; }
a.hd-sec:hover { color: var(--ink); text-decoration: none; }

/* ── page frame ──────────────────────────────────────────────────────────────────────────────── */
.page.c-pg { width: min(1200px, 100% - 56px); max-width: none; display: block; padding: 72px 0 128px; }
.c-pg article { max-width: none; min-width: 0; }
.c-pg article ul, .c-pg article ol, .c-pg article p { max-width: none; }
/* docs.css underlines every link in running text; here only the links inside a lesson body are running text */
.c-pg article p a, .c-pg article li a, .c-pg article td a { text-decoration: none; }
.c-pg .ic { flex: none; width: 16px; height: 16px; }
.c-pg .crumbs { font: 400 12.5px/1.4 var(--mono); color: var(--faint); margin: 0 0 44px; gap: 6px 8px; }
.c-pg .crumbs a { color: var(--muted); }
.c-pg .crumbs a:hover { color: var(--ink); text-decoration: none; }
.c-pg .crumbs span:last-child { color: var(--muted); }
.c-pg article h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
.c-pg .lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin: 28px 0 0; text-wrap: pretty; }
.c-pg article h2 { border: 0; padding: 0; margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.c-pg article h3 { margin: 0; }
.c-pg article h2, .c-pg article h3, .c-pg article section[id] { scroll-margin-top: 96px; }
.c-pg .c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font: 400 12.5px/1.5 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.c-pg .c-meta > span, .c-pg .c-meta > .c-type { display: inline-flex; align-items: center; gap: 6px; }
.c-pg .c-meta > span + span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--line-h); margin-right: 4px; }
.c-pg .c-type .ic { width: 14px; height: 14px; }
.c-pg .btn { height: 46px; padding: 0 22px; border-radius: 9px; font-size: 15.5px; gap: 10px; }
.c-pg .btn .ic-arrow { transition: transform .18s ease; }
.c-pg .btn:hover .ic-arrow { transform: translateX(3px); }
.c-pg .btn-live { color: var(--brand-ink); }
.c-pg .btn-live:hover { text-decoration: none; }

/* ── hub: the path first, then each track with its courses ───────────────────────────────────── */
.c-hub { counter-reset: track; }
.c-hub .c-hero { margin-bottom: 88px; }
.c-hub-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 40px 96px; align-items: end; }
.c-hero-text { max-width: 860px; }
.c-pg .c-hub-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.c-hub-facts li { display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.c-hub-facts b { min-width: 3.2ch; font: 500 26px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.c-hub-facts .c-free { align-items: center; color: var(--brand-text); font: 500 13px/1.5 var(--mono); }
.c-hub-facts .c-free::before { content: ''; flex: none; width: 7px; height: 7px; margin-right: 2px; border-radius: 50%; background: var(--brand); }

/* the path: every track in order on one line, the number sits on the line */
.c-path { margin: 0 0 112px; counter-reset: step; }
.c-pg .c-path ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 36px 0; }
.c-path li { counter-increment: step; position: relative; margin: 0; padding: 0; border-top: 1px solid var(--line-h); }
.c-path li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -9px; left: 0; padding-right: 10px; background: var(--bg); font: 500 12.5px/18px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.c-path a { display: block; padding: 24px 20px 4px 0; color: var(--ink); }
.c-path a:hover { text-decoration: none; }
.c-path b { display: block; overflow-wrap: break-word; font-size: 15.5px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; transition: color .18s ease; }
.c-path a:hover b { color: var(--brand-text); }
.c-path span { display: block; margin-top: 6px; font: 400 12.5px/1.4 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }

.c-track { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 0 64px; padding: 44px 0 0; border-top: 1px solid var(--line); margin-bottom: 96px; }
.c-track[id] { counter-increment: track; }
.c-track-head { position: sticky; top: 100px; align-self: start; }
.c-pg .c-track h2 { font-size: 24px; line-height: 1.22; letter-spacing: -.02em; }
.c-track[id] h2::before { content: counter(track, decimal-leading-zero); display: inline-block; margin-right: 14px; font: 500 13px/1 var(--mono); letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; transform: translateY(-3px); }
.c-track-head .c-meta { margin-top: 12px; }
.c-track:not(:has(.c-track-head)) .c-list { grid-column: 1 / -1; }
.c-list { list-style: none; margin: 0; padding: 0; }
.c-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: start; padding: 0 0 44px; margin: 0 0 44px; border-bottom: 1px solid var(--line); }
.c-row:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.c-row-main { display: flex; flex-direction: column; min-width: 0; }
.c-row-title { color: var(--ink); text-decoration: none; }
.c-row-title b { display: block; overflow-wrap: break-word; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; transition: color .18s ease; }
.c-row-title:hover { text-decoration: none; }
.c-row-title:hover b { color: var(--brand-text); }
.c-sub { color: var(--ink-2); font-size: 18px; line-height: 1.5; max-width: 58ch; margin-top: 12px; }
.c-desc { color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 64ch; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-row .c-meta { margin-top: 18px; }
/* the rest of a track is a quieter list under its lead: a smaller title, the description kept short */
.c-row:not(.c-row-lead) .c-row-title b { font-size: clamp(21px, 2vw, 25px); line-height: 1.2; }
.c-row:not(.c-row-lead) .c-sub { font-size: 16.5px; margin-top: 8px; }
.c-row:not(.c-row-lead) .c-desc { -webkit-line-clamp: 2; }
.c-row-lead .c-row-title b { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
/* what the course walks through: its modules, numbered */
.c-pg .c-row-mods { list-style: none; counter-reset: rm; margin: 22px 0 0; padding: 0; columns: 2; column-gap: 40px; max-width: 680px; }
.c-row-mods li { counter-increment: rm; break-inside: avoid; display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 5px 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.c-row-mods li::before { content: counter(rm, decimal-leading-zero); flex: none; font: 400 12px/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.c-row-mods a { color: var(--ink-2); }
.c-row-mods a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-h); text-underline-offset: 3px; }
.c-start { display: inline-flex; align-items: center; gap: 10px; height: 42px; margin-top: 2px; padding: 0 16px; border: 1px solid var(--line-h); border-radius: 9px; color: var(--ink); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background-color .18s ease, border-color .18s ease; }
.c-start:hover { background: var(--surface); border-color: var(--brand); text-decoration: none; }
.c-start .ic-arrow { color: var(--ink-2); transition: transform .18s ease; }
.c-start:hover .ic-arrow { transform: translateX(3px); }

/* ── course page: hero, intro, syllabus ──────────────────────────────────────────────────────── */
.c-course .c-hero { max-width: 920px; padding-bottom: 72px; }
/* the facts are one line of cells divided by hairlines; a cell that starts a new line loses its divider */
.c-pg .c-facts { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 40px 0 0 -21px; padding: 0; clip-path: inset(0 0 0 21px); font: 500 13px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.c-facts span { display: inline-flex; align-items: center; padding: 0 20px; border-left: 1px solid var(--line-h); color: var(--ink-2); white-space: nowrap; }
.c-facts .c-free { color: var(--brand-text); }
.c-facts .c-free::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 10px; }
.c-pg .c-hero-act { margin: 40px 0 0; }
.c-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 88px; padding: 64px 0 72px; border-top: 1px solid var(--line); }
.c-pg .c-about { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 52ch; margin: 0; text-wrap: pretty; }
.c-pg .c-outcomes h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 18px; }
.c-pg .c-outcomes ul { list-style: none; margin: 0; padding: 0; }
.c-outcomes li { position: relative; padding: 15px 0 15px 36px; margin: 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 17px; line-height: 1.5; }
.c-outcomes li:last-child { border-bottom: 1px solid var(--line); }
.c-outcomes li::before { content: ''; position: absolute; left: 0; top: 19px; width: 18px; height: 18px; background: var(--brand-text);
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }

.c-syllabus { border-top: 1px solid var(--line); padding-top: 72px; counter-reset: mod; }
.c-pg .c-syllabus > h2 { margin-bottom: 48px; }
/* a module: its number, what it is about, and its lessons as one aligned table of rows */
.c-mod { display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 7fr); gap: 0 32px; align-items: baseline; padding: 40px 0 44px; border-top: 1px solid var(--line); counter-increment: mod; counter-reset: les; }
.c-mod::before { content: counter(mod, decimal-leading-zero); font: 500 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.c-mod-head { padding-right: 24px; }
.c-pg .c-mod-head h3 { overflow-wrap: break-word; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.c-pg .c-mod-head p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 44ch; }
.c-pg .c-mod-head .c-meta { margin-top: 14px; max-width: none; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.c-pg .c-lessons { list-style: none; margin: 0; padding: 0; }
.c-lessons li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; margin: 0; padding: 15px 0; border-top: 1px solid var(--line); counter-increment: les; }
.c-lessons li:first-child { border-top: 0; padding-top: 0; }
.c-lessons li:last-child { padding-bottom: 0; }
.c-lessons li::before { content: counter(mod) "." counter(les); font: 400 12.5px/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; transition: color .18s ease; }
.c-lessons a { overflow-wrap: break-word; color: var(--ink); font-size: 17px; line-height: 1.4; font-weight: 500; letter-spacing: -.005em; }
.c-lessons a::after { content: ''; position: absolute; inset: 0; }
.c-lessons a:hover { text-decoration: none; color: var(--brand-text); }
.c-lessons li:hover::before { color: var(--brand-text); }
/* type and length sit in their own columns, so every length ends on the same edge */
.c-pg .c-lessons .c-meta { display: grid; grid-template-columns: auto 52px; gap: 0 12px; align-items: baseline; justify-items: end; white-space: nowrap; }
.c-pg .c-lessons .c-meta > span::before { display: none; }
.c-pg .c-lessons .c-type { display: inline-block; color: var(--muted); }
.c-pg .c-lessons .c-type .ic { display: inline-block; vertical-align: -2.5px; margin-right: 7px; }
.c-lessons li.c-t-quiz .c-type, .c-lessons li.c-t-assignment .c-type { color: var(--ink-2); }
.c-pg .c-other { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* ── lesson page: outline, progress, reading column ──────────────────────────────────────────── */
.page.c-pg-lesson { width: min(1040px, 100% - 56px); justify-content: normal; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 72px; align-items: start; padding-top: 56px; }
.c-pg-lesson .crumbs { margin-bottom: 36px; }
.c-side { overflow-wrap: break-word; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; font-size: 14.5px; line-height: 1.4; padding: 0 6px 8px 0; }
.c-side a:hover { text-decoration: none; }
.c-side-course { display: block; color: var(--ink); font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.c-side-course:hover { color: var(--brand-text); }
.c-prog { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; }
.c-pos { font: 400 12.5px/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-pos b { color: var(--ink); font-weight: 500; }
.c-prog progress { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; height: 3px; border: 0; border-radius: 3px; background: var(--line-h); overflow: hidden; }
.c-prog progress::-webkit-progress-bar { background: var(--line-h); }
.c-prog progress::-webkit-progress-value { background: var(--brand); border-radius: 3px; }
.c-prog progress::-moz-progress-bar { background: var(--brand); }

/* the course as a rail: a dot per module, filled behind you, green where you are, open ahead */
.c-side-mods { list-style: none; margin: 28px 0 0 3px; padding: 0; border-left: 1px solid var(--line-h); }
.c-side-mod { position: relative; margin: 0; padding: 0 0 0 20px; }
.c-side-mod::before { content: ''; position: absolute; left: -4px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--faint); }
.c-side-mod.is-past::before { background: var(--faint); }
.c-side-mod.is-on::before { background: var(--brand); box-shadow: 0 0 0 3px var(--bg); top: 14px; }
.c-side-mod > a, .c-side-mod > span { display: block; padding: 7px 0; color: var(--muted); transition: color .15s ease; }
.c-side-mod > a:hover { color: var(--ink); }
.c-side-mod.is-on { padding-top: 8px; padding-bottom: 12px; }
.c-side h4 { font: 600 14.5px/1.4 var(--sans); letter-spacing: -.005em; text-transform: none; color: var(--ink); margin: 0 0 6px; padding: 0; border: 0; }
.c-side-les { list-style: none; margin: 0 0 0 -10px; padding: 0; }
.c-side-les li { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 0; border-radius: 6px; color: var(--ink-2); transition: background-color .15s ease; }
.c-side-les li > a, .c-side-les li > b { flex: 1; min-width: 0; padding: 7px 0 7px 10px; color: inherit; font-weight: 400; }
.c-side-les li.is-past { color: var(--muted); }
.c-side-les li:hover { background: var(--surface); color: var(--ink); }
.c-side-les li[aria-current] { background: var(--surface); color: var(--ink); }
.c-side-les li[aria-current] > b { font-weight: 600; color: var(--ink); }
.c-dur { flex: none; padding-right: 10px; font: 400 11.5px/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-pg .c-side-back { margin: 24px 0 0; font-size: 14px; }
.c-side-back a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.c-side-back a:hover { color: var(--ink); }
.c-side-back .ic { transition: transform .18s ease; }
.c-side-back a:hover .ic { transform: translateX(-3px); }

.c-lesson { min-width: 0; }
.c-lhead { max-width: var(--c-col); padding-bottom: 36px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.c-pg .c-lesson .c-lhead h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; }
.c-pg .c-lhead .c-meta { margin: 24px 0 0; gap: 6px 10px; }
.c-pg .c-lhead .c-meta .c-pos { margin-left: auto; }
.c-pg .c-lhead .c-meta .c-pos::before { display: none; }
.c-lprog { display: none; }

/* the reading column: 17px, about 68 characters */
.c-pg { --c-col: 680px; }
.c-pg .c-prose { overflow-wrap: break-word; max-width: var(--c-col); font-size: 17px; line-height: 1.7; }
.c-pg .c-prose > p, .c-pg .c-prose > ul, .c-pg .c-prose > ol, .c-pg .c-prose > blockquote, .c-pg .c-prose > h2, .c-pg .c-prose > h3, .c-pg .c-prose > h4, .c-pg .c-prose > h5,
.c-pg .c-prose > .callout-tip, .c-pg .c-prose > .callout-note { max-width: 34em; }
.c-pg .c-prose > :last-child { margin-bottom: 0; }
.c-pg .c-prose p, .c-pg .c-prose li { color: var(--ink-2); }
.c-pg .c-prose p { margin: 0 0 1.25em; }
.c-pg .c-prose > p:first-child { font-size: 19px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.c-pg .c-prose ul, .c-pg .c-prose ol { margin: 0 0 1.5em; padding-left: 1.5em; }
.c-pg .c-prose li { margin-bottom: .5em; padding-left: .3em; }
.c-pg .c-prose li > ul, .c-pg .c-prose li > ol { margin: .6em 0 .2em; }
.c-pg .c-prose ul > li::marker { color: var(--faint); }
.c-pg .c-prose ol > li::marker { font-family: var(--mono); font-size: .8em; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-pg .c-prose li:has(> .check) { list-style: none; margin-left: -1.5em; }
.c-pg .c-prose h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.18; margin: 72px 0 22px; padding-top: 44px; border-top: 1px solid var(--line); }
.c-pg .c-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* a lesson's own sections are h3 (the renderer shifts headings one down: the title is the h1) */
.c-pg .c-prose h3 { font-size: clamp(24px, 2.4vw, 29px); line-height: 1.2; letter-spacing: -.02em; margin: 64px 0 18px; }
.c-pg .c-prose h4 { font-size: 20px; line-height: 1.35; margin: 44px 0 12px; letter-spacing: -.015em; }
.c-pg .c-prose h5 { font-size: 17px; line-height: 1.4; margin: 32px 0 8px; }
.c-pg .c-prose > h3:first-child, .c-pg .c-prose > h4:first-child { margin-top: 0; }
.c-pg .c-prose strong { color: var(--ink); }
.c-pg .c-prose a:not(.app-link) { text-decoration: underline; text-decoration-color: var(--line-h); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .18s ease; }
.c-pg .c-prose a:not(.app-link):hover { text-decoration-color: currentColor; }
.c-pg .c-prose hr { margin: 56px 0; }
/* a quotation: larger, in ink, hung on one rule */
.c-pg .c-prose blockquote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--ink); color: var(--ink); font-size: 21px; line-height: 1.5; letter-spacing: -.01em; text-wrap: pretty; }
.c-pg .c-prose :not(pre) > code { font-size: .86em; padding: 2px 6px; border-radius: 5px; }
.c-pg .c-prose .tbl { margin: 0 0 1.8em; border-radius: 10px; -webkit-overflow-scrolling: touch; }
.c-pg .c-prose .tbl table { font-size: 15px; font-variant-numeric: tabular-nums; min-width: 480px; }
.c-pg .c-prose th { background: var(--surface); }
.c-pg .c-prose td { color: var(--ink-2); }

/* code: one block with a quiet strip on top */
.c-pg .c-prose .code { margin: 0 0 1.8em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
/* the shared pre draws its own window strip (dots, an inset band); here the strip is .code-bar, so all of that is off */
.c-pg pre { box-shadow: none; }
.c-pg pre::before { display: none; }
.c-pg pre code { display: block; padding: 0; border: 0; background: none; font-size: inherit; color: inherit; }
.code-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--raised); color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: .02em; }
.c-pg .code-bar .ic { width: 14px; height: 14px; }
.c-pg .c-prose .code pre { margin: 0; border: 0; border-radius: 0; background: transparent; padding: 16px 18px 18px; overflow-x: auto; font: 400 13.5px/1.7 var(--mono); color: var(--ink-2); }

/* ── callouts ────────────────────────────────────────────────────────────────────────────────────
   Each kind has one job and one shape, so a reader knows what it is before reading it. Colour is
   the last thing that tells them apart: neutrals everywhere, green only on the tip's rule and the
   task's mark, amber only on a real warning.
     note            a remark beside the text: a hairline on the left, a small mono name, quieter text
     tip             advice worth acting on: a 2px green rule, its name in ink
     let-op          a warning: the only tinted block on the page, amber, with its sign
     land, info      an aside: set between two hairlines, its name in a column of its own
     voorbeeld       a specimen: a quiet grey panel, its name in mono, the text set like a quotation
     opdracht        the one thing to do: an outlined object, the largest type in the text
     claude          a prompt to copy: a message on the page colour, selected whole with one click
   Code (.code below) is the only block with a filled strip on top, so a prompt never reads as code. */
.callout { --c: var(--muted); --i: var(--i-note); position: relative; margin: 0 0 1.8em; padding: 2px 0 2px 22px; border-left: 1px solid var(--line-h); font-size: 16px; line-height: 1.65; }
.c-pg .c-prose .callout p { margin: 0 0 .7em; font-size: inherit; line-height: inherit; }
.c-pg .c-prose .callout > :last-child { margin-bottom: 0; }
.c-pg .c-prose .callout li { font-size: inherit; line-height: inherit; }
.callout-head { display: flex; align-items: center; gap: 10px; font: 500 12.5px/1.4 var(--mono); letter-spacing: 0; text-transform: none; color: var(--c); margin: 0 0 6px; overflow-wrap: break-word; }
.c-pg .c-prose .callout-note p, .c-pg .c-prose .callout-note li { color: var(--muted); }

.callout-tip { --c: var(--ink); padding-left: 22px; border-left: 2px solid var(--brand); font-size: 16.5px; }
.callout-tip .callout-head { font: 600 14.5px/1.4 var(--sans); }

.callout-let-op { --c: var(--warn); --i: var(--i-warn); padding: 20px 24px 22px; border: 0; border-radius: 10px; background: var(--warn-dim, rgba(210, 153, 34, .1)); font-size: 16.5px; }
.callout-let-op .callout-head { font: 600 15px/1.4 var(--sans); margin-bottom: 8px; }
.callout-let-op .callout-head::before, .callout-opdracht .callout-head::before, .callout-claude .callout-head::before, .callout-land .callout-head::before, .callout-info .callout-head::before { content: ''; flex: none; width: 18px; height: 18px; background: var(--c); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.c-pg .c-prose .callout-let-op p, .c-pg .c-prose .callout-let-op li { color: var(--ink); }

.callout-claude { --c: var(--ink); --i: var(--i-prompt); padding: 18px 22px 20px; border: 1px solid var(--line-h); border-radius: 14px; background: var(--bg); }
.callout-claude .callout-head { margin: 0 0 12px; font: 600 14.5px/1.4 var(--sans); color: var(--ink); }
.callout-claude .callout-head::before { background: var(--brand-text); }
.c-pg .callout .prompt { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 0 0 0 28px; border: 0; border-radius: 0; background: transparent; font: 400 14.5px/1.75 var(--mono); color: var(--ink); overflow-x: visible; -webkit-user-select: all; user-select: all; cursor: text; }
.callout .prompt::selection { background: var(--brand-dim); }

.callout-land, .callout-info { --c: var(--ink-2); display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 0 28px; padding: 22px 0 24px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.65; }
.callout-land { --i: var(--i-land); }
.callout-info { --i: var(--i-info); }
.callout-land > *, .callout-info > * { grid-column: 2; }
.callout-land > .callout-head, .callout-info > .callout-head { grid-column: 1; grid-row: 1 / span 40; align-self: start; align-items: flex-start; margin: 0; font: 500 13.5px/1.45 var(--sans); color: var(--ink); text-wrap: balance; }
.callout-land > .callout-head::before, .callout-info > .callout-head::before { width: 16px; height: 16px; margin-top: 2px; background: var(--muted); }
.c-pg .c-prose .callout-land p, .c-pg .c-prose .callout-info p, .c-pg .c-prose .callout-land li, .c-pg .c-prose .callout-info li { color: var(--ink-2); }
/* two asides in a row share the line between them */
.callout-land + .callout-land, .callout-land + .callout-info, .callout-info + .callout-land, .callout-info + .callout-info { margin-top: -1.8em; border-top: 0; }

.callout-opdracht { --c: var(--brand-text); --i: var(--i-task); margin: 2.4em 0; padding: 26px 28px 28px; border: 1px solid var(--line-h); border-radius: 14px; background: var(--bg); font-size: 17.5px; line-height: 1.6; }
.callout-opdracht .callout-head { gap: 12px; margin-bottom: 12px; font: 600 20px/1.3 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.callout-opdracht .callout-head::before { width: 22px; height: 22px; background: var(--brand-text); }
.c-pg .c-prose .callout-opdracht p, .c-pg .c-prose .callout-opdracht li { color: var(--ink); }

.callout-voorbeeld { padding: 20px 24px 22px; border: 0; border-radius: 10px; background: var(--surface); }
.callout-voorbeeld .callout-head { color: var(--muted); margin-bottom: 8px; }
.c-pg .c-prose .callout-voorbeeld p { color: var(--ink); font-size: 17px; }

/* figures: a real capture, framed */
.c-pg .c-prose .lesson-figure { margin: 2.4em 0; }
.c-pg .lesson-figure img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line-h); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .45); }
.c-pg .lesson-figure figcaption { font: 400 13px/1.5 var(--mono); color: var(--faint); margin-top: 14px; max-width: none; }
.c-pg .img-missing { font: 400 13px/1.5 var(--mono); color: var(--faint); border: 1px dashed var(--line-h); border-radius: 10px; padding: 14px 16px; }

/* the app buttons in the text */
a.app-link { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border: 1px solid var(--line-h); border-radius: 6px; background: var(--surface); font-size: .88em; font-weight: 500; line-height: 1.5; color: var(--ink); text-decoration: none; white-space: nowrap; max-width: 100%; vertical-align: baseline; transition: border-color .18s ease, background-color .18s ease; }
a.app-link::after { content: ''; flex: none; width: 12px; height: 12px; background: var(--muted); transition: background-color .18s ease; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }
a.app-link:hover { border-color: var(--brand); color: var(--ink); text-decoration: none; }
a.app-link:hover::after { background: var(--brand-text); }

/* checkboxes (markdown task lists and the assignment checklist) */
.check { display: inline-block; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-h); border-radius: 5px; margin-right: 12px; vertical-align: -3px; background: var(--bg); }
.check.done { border-color: var(--brand); background: var(--brand) var(--i-check-w) center / 14px no-repeat; }

/* the assignment checklist: a sheet you could print and tick */
.c-checklist { max-width: var(--c-col); margin-top: 64px; }
.c-pg .c-checklist h2 { font-size: 26px; margin-bottom: 22px; }
.c-pg .c-checklist ul { list-style: none; margin: 0; padding: 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.c-checklist li { display: flex; align-items: flex-start; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--ink); }
.c-checklist li:first-child { border-top: 0; }
.c-checklist .check { margin: 3px 16px 0 0; width: 20px; height: 20px; border-radius: 6px; }

/* quiz: a question, its options as a plain lettered list (nothing here is a button), then the answer */
.c-quiz { max-width: var(--c-col); margin-top: 48px; }
.c-pg .c-quiz > .c-meta { display: block; font: 400 15.5px/1.6 var(--sans); color: var(--muted); margin: 0 0 32px; }
.c-pg .c-quiz > ol { list-style: none; padding: 0; margin: 0; counter-reset: q; }
.c-quiz > ol > li { counter-increment: q; position: relative; margin: 0; padding: 36px 0 36px 60px; border-top: 1px solid var(--line); }
.c-quiz > ol > li:last-child { border-bottom: 1px solid var(--line); }
.c-quiz > ol > li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 42px; font: 500 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.c-pg .c-quiz > ol > li > p { font-size: 21px; line-height: 1.35; letter-spacing: -.015em; margin: 0 0 18px; color: var(--ink); text-wrap: balance; }
.c-pg .c-options { list-style: none; counter-reset: opt; margin: 0 0 22px; padding: 0; }
.c-options li { counter-increment: opt; display: flex; gap: 16px; align-items: baseline; margin: 0; padding: 9px 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.c-options li::before { content: counter(opt, upper-alpha); flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-h); font: 500 12px/24px var(--mono); text-align: center; color: var(--muted); }
.c-quiz summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink); font-weight: 500; font-size: 15px; border-radius: 6px; transition: color .18s ease; }
.c-quiz summary::-webkit-details-marker { display: none; }
.c-quiz summary::before { content: ''; width: 16px; height: 16px; background: var(--brand-text); -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; transition: transform .18s ease; }
.c-quiz details[open] summary::before { transform: rotate(90deg); }
.c-quiz summary:hover { color: var(--brand-text); }
.c-pg .c-quiz details > p { margin: 0; padding: 0 0 0 24px; border-left: 2px solid var(--brand); font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.c-pg .c-quiz details > summary + p { margin-top: 12px; padding-top: 2px; color: var(--ink); }
.c-pg .c-quiz details > p + p { padding-top: 6px; }
.c-pg .c-quiz details > p:last-child { padding-bottom: 2px; }

/* ── the end of a lesson: the next one is the largest thing left on the page ──────────────────── */
.c-nav { max-width: var(--c-col); margin: 88px 0 0; padding: 0; border: 0; display: block; }
.c-nav a { color: var(--ink); text-decoration: none; }
.c-nav a:hover { text-decoration: none; }
.c-nav-next { position: relative; display: grid; gap: 10px; padding: 30px 84px 32px 32px; border: 1px solid var(--line-h); border-radius: 14px; background: var(--surface); transition: border-color .18s ease, background-color .18s ease; }
.c-nav-next:hover { border-color: var(--brand); background: var(--raised); }
.c-nav-k { font: 500 12.5px/1 var(--mono); color: var(--muted); }
.c-nav-next .c-nav-t { overflow-wrap: break-word; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; color: var(--ink); text-wrap: balance; }
.c-nav-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.c-nav-m > span { display: inline-flex; align-items: center; gap: 6px; }
.c-nav-m > span + span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--line-h); margin-right: 4px; }
.c-pg .c-nav-next > .ic { position: absolute; top: 50%; right: 30px; width: 24px; height: 24px; margin-top: -12px; color: var(--brand-text); transition: transform .18s ease; }
.c-nav-next:hover > .ic { transform: translateX(4px); }
/* the last lesson has no next one: the same card takes you back to the course, arrow on the side it points to */
.c-nav-end { padding: 30px 32px 32px 84px; }
.c-pg .c-nav-end > .ic { right: auto; left: 30px; }
.c-nav-end:hover > .ic { transform: translateX(-4px); }
.c-nav-prev { display: inline-flex; align-items: baseline; gap: 10px; max-width: 100%; margin: 22px 0 0; padding: 4px 0; font-size: 15px; line-height: 1.4; }
.c-pg .c-nav-prev > .ic { align-self: center; color: var(--muted); transition: transform .18s ease, color .18s ease; }
.c-nav-prev .c-nav-k { color: var(--faint); }
.c-nav-prev .c-nav-t { color: var(--ink-2); font-weight: 500; transition: color .18s ease; }
.c-nav-prev:hover .c-nav-t { color: var(--ink); }
.c-nav-prev:hover > .ic { transform: translateX(-3px); color: var(--ink); }

.c-pg .c-cta { max-width: var(--c-col); margin: 88px 0 0; padding: 44px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.c-hub .c-cta, .c-course .c-cta { max-width: none; margin-top: 112px; padding-top: 64px; }
.c-pg .c-cta h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.18; margin: 0 0 18px; }
.c-hub .c-cta h2, .c-course .c-cta h2 { font-size: clamp(28px, 3vw, 40px); }
.c-pg .c-cta p { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 56ch; margin: 0; text-wrap: pretty; }
.c-pg .c-cta-act { margin: 0; }
.c-pg .c-disclaimer { max-width: var(--c-col); font-size: 13px; line-height: 1.6; color: var(--faint); margin: 48px 0 0; padding: 0; border: 0; }
.c-hub .c-disclaimer, .c-course .c-disclaimer { max-width: 64ch; }

/* icons used as masks (stroke 1.7, one colour from the element) */
:root {
  --i-check: 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%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-check-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-arrow: 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%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
  --i-chev: 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%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2L12 3zM12 10v5M12 18v.01'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8v.01'/%3E%3C/svg%3E");
  --i-land: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6 7-11a7 7 0 0 0-14 0c0 5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E");
  --i-task: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='3'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
  --i-prompt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17l6-5-6-5M12 19h8'/%3E%3C/svg%3E");
  --i-note: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .c-pg .lesson-figure img { box-shadow: 0 14px 30px -18px rgba(27, 31, 36, .35); }
}
:root[data-theme="light"] .c-pg .lesson-figure img { box-shadow: 0 14px 30px -18px rgba(27, 31, 36, .35); }

/* ── narrower screens ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .page.c-pg-lesson { grid-template-columns: 232px minmax(0, 1fr); gap: 48px; }
  .c-track { grid-template-columns: 1fr; gap: 32px; }
  .c-hub-hero { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .c-pg .c-hub-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 32px; max-width: 760px; }
  .c-track-head { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
  .c-track-head .c-meta { margin-top: 0; }
  .c-intro { grid-template-columns: 1fr; gap: 40px; }
  .c-mod { grid-template-columns: 44px minmax(0, 1fr); gap: 24px 16px; }
  .c-mod-head { padding-right: 0; }
  .c-mod > .c-lessons { grid-column: 2; }
}
@media (max-width: 960px) {
  .page.c-pg { width: min(1200px, 100% - 40px); padding: 48px 0 88px; }
  .page.c-pg-lesson { display: flex; flex-direction: column; gap: 0; padding-top: 32px; }
  .page.c-pg-lesson > * { width: 100%; min-width: 0; max-width: 100%; }
  .c-pg-lesson article { order: 1; }
  .c-pg .c-lprog { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 3px; margin: 22px 0 0; border: 0; border-radius: 3px; background: var(--line-h); overflow: hidden; }
  .c-lprog::-webkit-progress-bar { background: var(--line-h); }
  .c-lprog::-webkit-progress-value { background: var(--brand); border-radius: 3px; }
  .c-lprog::-moz-progress-bar { background: var(--brand); }
  .c-pg-lesson .c-side { order: 2; position: static; max-height: none; overflow: visible; margin: 72px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); }
  .c-hub .c-hero { margin-bottom: 56px; }
  .c-path { margin-bottom: 72px; }
  .c-track { padding-top: 36px; margin-bottom: 64px; }
  .c-row { grid-template-columns: minmax(0, 1fr); padding-bottom: 36px; margin-bottom: 36px; }
  .c-start { justify-self: start; }
  .c-pg .c-cta { grid-template-columns: 1fr; align-items: start; margin-top: 64px; padding-top: 36px; }
  .c-hub .c-cta, .c-course .c-cta { margin-top: 72px; padding-top: 44px; }
  .c-nav { margin-top: 64px; }
}
/* docs.css hides every header link but the button below 860px; the language picker must stay */
@media (max-width: 860px) {
  .hd-nav .c-langs a { display: inline-flex; }
}
@media (max-width: 720px) {
  .c-langs { margin-right: 2px; }
  .hd-nav a[href$="/docs/"] { display: none; }
  .callout-land, .callout-info { grid-template-columns: 1fr; }
  .callout-land > *, .callout-info > * { grid-column: 1; }
  .callout-land > .callout-head, .callout-info > .callout-head { grid-row: auto; margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .page.c-pg { width: min(1200px, 100% - 32px); padding-top: 36px; }
  .wm { white-space: nowrap; }
  .c-langs a, .c-langs span { padding: 0 6px; }
  .c-pg .c-hub-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .c-hub-facts b { font-size: 22px; }
  .c-pg .crumbs { margin-bottom: 28px; }
  .c-pg article h1 { font-size: clamp(34px, 10.5vw, 44px); -webkit-hyphens: auto; hyphens: auto; }
  .c-pg .c-lesson .c-lhead h1 { font-size: clamp(30px, 9vw, 40px); }
  .c-pg .c-path ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .c-path a { padding-top: 20px; padding-right: 14px; }
  .c-pg .c-row-mods { columns: 1; }
  .c-course .c-hero { padding-bottom: 48px; }
  .c-pg .c-facts { margin-left: -15px; clip-path: inset(0 0 0 15px); }
  .c-facts span { padding: 0 14px; }
  .c-intro { padding: 44px 0 48px; }
  .c-syllabus { padding-top: 48px; }
  .c-pg .c-syllabus > h2 { margin-bottom: 32px; }
  .c-mod { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 36px; }
  .c-mod::before { display: none; }
  .c-pg .c-mod-head h3::before { content: counter(mod, decimal-leading-zero); display: inline-block; margin-right: 12px; font: 500 13px/1 var(--mono); letter-spacing: 0; color: var(--muted); transform: translateY(-3px); }
  .c-mod > .c-lessons { grid-column: 1; }
  .c-lessons li { grid-template-columns: 34px minmax(0, 1fr); gap: 6px 10px; }
  .c-pg .c-lessons .c-meta { grid-column: 2; display: flex; gap: 4px 12px; }
  .c-pg .c-prose { font-size: 16.5px; }
  .c-pg .c-prose > p:first-child { font-size: 18px; }
  .c-pg .c-prose h2 { margin-top: 56px; padding-top: 36px; }
  .c-pg .c-prose blockquote { font-size: 19px; padding-left: 20px; }
  .callout { padding-left: 18px; }
  .callout-let-op, .callout-voorbeeld { padding: 18px 18px 20px; }
  .callout-opdracht { padding: 22px 20px 24px; }
  .callout-land, .callout-info { padding: 20px 0 22px; }
  .c-pg .callout .prompt { padding: 16px 18px 18px; font-size: 13.5px; }
  .c-quiz > ol > li { padding: 28px 0; }
  .c-quiz > ol > li::before { position: static; display: block; margin-bottom: 12px; }
  .c-pg .c-quiz > ol > li > p { font-size: 19px; }
  .c-pg .c-checklist ul { padding: 0 18px; }
  .c-lhead { padding-bottom: 28px; margin-bottom: 32px; }
  .c-pg .c-lhead .c-meta .c-pos { margin-left: 0; }
  .c-nav-next { padding: 24px 60px 26px 22px; }
  .c-pg .c-nav-next > .ic { right: 20px; }
  .c-nav-end { padding: 24px 22px 26px 60px; }
  .c-pg .c-nav-end > .ic { right: auto; left: 20px; }
  .c-nav-prev { flex-wrap: wrap; }
  a.app-link { white-space: normal; }
  .c-pg .c-prose .code { margin-inline: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .callout-claude { padding: 16px 18px 18px; }
  .c-pg .callout .prompt { padding-left: 0; }
}
/* a phone has room for the mark, the wordmark and the languages: the page itself carries the start button */
@media (max-width: 480px) {
  .hd-in { gap: 12px; }
  .hd-nav:has(.c-langs) .btn { display: none; }
}
/* on a phone a row of facts wraps: no dot may start a line, the gap does the dividing; the
   breadcrumb of a lesson keeps only its course and module */
@media (max-width: 560px) {
  .c-pg .c-meta, .c-nav-m { gap: 4px 16px; }
  .c-pg .c-meta > span + span::before, .c-nav-m > span + span::before { display: none; }
  .c-pg-lesson .crumbs > * { display: none; }
  .c-pg-lesson .crumbs > a:nth-of-type(3), .c-pg-lesson .crumbs > a:nth-of-type(4), .c-pg-lesson .crumbs > span:nth-of-type(3) { display: inline; }
}
