/* focus.css — Focus mode for the step-based Python lessons (focus.js). Desktop only: one screen, the steps in a line
   on top, the open step in two columns (read | do), no page scrolling. */
.pxf-title { display: none; }
.px-focusbtn[hidden] { display: none !important; }   /* beats the inline-flex rules below (phones, tablets: Focus is desktop only) */
/* the button on pages without patterns.css (BitSize Python, Recipes) */
.pxf-btn, .py-topbar .px-focusbtn, .rx-bar .px-focusbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(0,0,0,.12); background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.py-topbar .px-focusbtn { margin-left: 8px; }

html.pxf, html.pxf body { overflow: hidden !important; }
html.pxf .pxf-root { position: fixed; inset: 0; z-index: 1200; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; overflow: hidden; }

/* the bar: one line — back, the lesson's name, the steps, score, tools */
html.pxf .pxf-bar { position: static; flex-wrap: nowrap; width: auto; max-width: none; margin: 0; padding: 10px 22px; border-radius: 0;
  border-width: 0 0 1px; box-shadow: none; gap: 14px; }
html.pxf .px-bar__back { margin-right: 0; }
html.pxf .pxf-title { display: block; flex: 0 1 220px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 750; font-size: 15px; color: var(--px-ink); }
html.pxf .px-steps { order: 0; flex: 1 1 auto; width: auto; margin: 0; padding: 0 8px; border-top: 0; }
html.pxf .px-stepbtn { font-size: 12px; }
html.pxf .px-tool span:not([aria-hidden]) { display: none; }      /* tools as icons; the Focus button keeps its words */
html.pxf .px-tool.px-focusbtn span.px-focusbtn__t { display: inline; }

/* the step: fills the screen under the bar */
html.pxf .pxf-main { max-width: none; margin: 0; padding: 16px 32px 12px; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
html.pxf .pxf-main > * { flex: none; }
html.pxf .px-head, html.pxf .pxf-skip, html.pxf .px-next { display: none !important; }
html.pxf .px-status:empty, html.pxf .px-status[hidden] { display: none; }
html.pxf .pxf-main > .pxf-step.pxf-cur, html.pxf .pxf-unit { display: grid; grid-template-rows: minmax(0, 1fr) auto; flex: 1 1 auto; min-height: 0; }
html.pxf .pxf-cols { display: grid; grid-template-columns: minmax(320px, 38fr) minmax(0, 62fr); gap: 32px; min-height: 0; }
html.pxf .pxf-cols.pxf-cols--one { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 1080px; margin: 0 auto; }
html.pxf .pxf-read, html.pxf .pxf-do { min-height: 0; min-width: 0; overflow: hidden; }
html.pxf .pxf-read { padding-right: 4px; }
html.pxf .pxf-read.is-scroll, html.pxf .pxf-do.is-scroll { overflow-y: auto; scrollbar-width: thin; padding-right: 8px; }
html.pxf .pxf-wide { margin-top: 14px; }
html.pxf .pxf-step h2 { font-size: 22px; margin-bottom: 10px; }
html.pxf .pxf-read > :first-child, html.pxf .pxf-do > :first-child { margin-top: 0; }
html.pxf .pxf-read .px-lead { font-size: 16px; line-height: 1.6; }
/* side panels (Playground, Reference) open above Focus */
html.pxf .px-panel { top: 0; z-index: 1400; }
/* two side-by-side callouts stack in the narrow read column */
html.pxf .pxf-read .px-grid2 { grid-template-columns: minmax(0, 1fr); }
/* a coding task (focus.js wraps it): what to do on the left, the editor, Run and output / expected on the right */
html.pxf .px-task.pxf-task { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); column-gap: 20px; align-items: start; }
html.pxf .pxf-tl, html.pxf .pxf-tr { display: grid; gap: 10px; align-content: start; min-width: 0; }
html.pxf .pxf-tr > .px-editor { margin: 0; }
html.pxf .pxf-tr .px-out, html.pxf .pxf-tr [class*="result"], html.pxf .pxf-tr [class*="-io__col"] { max-height: 34vh; overflow: auto; }
html.pxf .px-task.pxf-task > .px-task__body { display: none; }
/* a step's cards (questions, tasks): the counter + dots and ‹ Back / Next › share one line on top */
html.pxf :has(> .px-stepq) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-content: start; }
html.pxf :has(> .px-stepq) > * { grid-column: 1 / -1; }
html.pxf :has(> .px-stepq) > .px-stepq { grid-column: 1; grid-row: 1; margin-bottom: 10px; }
html.pxf :has(> .px-stepq) > .px-stepnav2 { grid-column: 2; grid-row: 1; margin: 0 0 10px; align-self: center; }
/* a column's parts (focus.js paginate): one shown at a time, "1 / 3 ‹ ›" at its foot */
html.pxf .pxf-read, html.pxf .pxf-do { position: relative; display: flex; flex-direction: column; }
html.pxf .pxf-read > *, html.pxf .pxf-do > * { flex: none; }
html.pxf .pxf-off { display: none !important; }
html.pxf .pxf-pager { position: sticky; bottom: 0; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--px-line); box-shadow: 0 6px 18px -12px rgba(20,45,40,.5);
  font: 700 12px var(--px-mono); color: var(--px-soft); }
html.pxf .pxf-pager button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--px-soft-bg); color: var(--px-accent); font: 700 16px/1 inherit; cursor: pointer; }
html.pxf .pxf-pager button:disabled { opacity: .35; cursor: default; }
html.pxf .pxf-pager span { min-width: 44px; text-align: center; }
/* line notes, one at a time under the code (focus.js noteDecks) */
html.pxf .pxf-notes > li:not(.pxf-cur) { display: none; }
html.pxf .pxf-notenav { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font: 700 12px var(--px-mono); color: var(--px-soft); }
html.pxf .pxf-notenav button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--px-line); background: #fff; color: var(--px-accent); font: 700 16px/1 inherit; cursor: pointer; }
html.pxf .pxf-notenav button:disabled { opacity: .35; cursor: default; }
/* → on a question not answered yet: a small shake instead of skipping it */
html.pxf .pxf-nudge { animation: pxf-nudge .35s ease; }
@keyframes pxf-nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { html.pxf .pxf-nudge { animation: none; outline: 2px solid var(--px-accent); } }
/* tighter rhythm in Focus: every pixel goes to the lesson */
html.pxf .pxf-step h2 { margin: 0 0 6px; }
html.pxf .pxf-step .px-lead { margin-top: 0; margin-bottom: 10px; }
html.pxf .px-stepq { margin-bottom: 6px; }
/* a step-through picture's stage: one fixed height in Focus (focus.js stages) */
html.pxf .vz-stage.pxf-stage { min-height: 0 !important; overflow: hidden; }
/* a short picture (one row of cells) sits in the middle of its stage, not at the top of an empty canvas */
html.pxf .vz-stage.pxf-stage { display: flex; flex-direction: column; justify-content: center; }
html.pxf .vz-stage.pxf-stage > * { flex: none; }
/* Chunks in Focus: the full width, the code pieces two side by side */
html.pxf .pxf-cols.pxf-cols--one.pxf-cols--wide { max-width: none; }
html.pxf .pxf-cols--wide [class*="chunks"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
html.pxf .pxf-cols--wide [class*="chunks"] > * { margin: 0; min-width: 0; }
/* "When to reach for it" boxes: three across in Focus */
html.pxf .ml-when { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.pxf .pxf-cols--one:has(.ml-when) { max-width: none; }
/* ML / DL pipeline strip: one slim line in Focus */
html.pxf .ml-pipe { margin: 0 0 10px; padding-bottom: 0; }
html.pxf .ml-pipe .ml-slot { padding: 4px 10px; min-height: 0; }
html.pxf .ml-pipe .ml-slot small { display: none; }
html.pxf .ml-pipe.dl-loop::after, html.pxf .ml-pipe.dl-loop::before { display: none; }
/* a question with code: the code on the left, the options (and then the why) beside it */
html.pxf .px-q:has(> pre) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; align-items: start; }
html.pxf .px-q:has(> pre) > * { grid-column: 1 / -1; }
html.pxf .px-q:has(> pre) > pre { grid-column: 1; grid-row: 3 / span 2; margin: 0; }
html.pxf .px-q:has(> pre) > .px-opts { grid-column: 2; grid-row: 3; margin-top: 0; }
html.pxf .px-q:has(> pre) > .px-why { grid-column: 2; grid-row: 4; }
/* a long note inside a task folds to its title in Focus (Show / Hide) */
html.pxf .pxf-fold:not(.is-open) > :not(:first-child):not(:nth-child(2)) { display: none; }
html.pxf .pxf-foldbtn { float: right; margin: -2px 0 0 8px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--px-line); background: #fff;
  font: 700 11.5px var(--px-mono); color: var(--px-accent); cursor: pointer; }
/* a short step sits in the middle of the screen (focus.js grow) */
html.pxf .pxf-read.pxf-mid, html.pxf .pxf-do.pxf-mid { justify-content: center; }

/* ── BitSize Python (lesson.html: py-sheet / py-topbar / tabs as the steps / one topic at a time) ── */
html.pxf .pxf-root--py { background: var(--py-paper, #FBFAF7); }
html.pxf .pxf-root--py .pxf-bar { display: flex; align-items: center; gap: 14px; padding: 8px 22px; border-bottom: 1px solid rgba(0,0,0,.08); background: #fff; }
html.pxf .pxf-root--py .py-topbar__progress, html.pxf .pxf-root--py .py-topbar__badge { display: none; }
html.pxf .pxf-root--py .pxf-bar .py-tabs { margin: 0 auto; flex: none; }
html.pxf .pxf-root--py #pyApp { display: block; position: relative; min-height: 0; height: 100%; overflow: hidden; }
html.pxf .pxf-root--py .py-sidebar, html.pxf .pxf-root--py .py-content__topic { display: none !important; }
html.pxf .pxf-root--py .pxf-main { position: absolute; inset: 0; height: auto; max-height: none; padding: 12px 32px 10px; box-sizing: border-box; }
html.pxf .pxf-root--py .pxf-step.pxf-cur { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
html.pxf .pxf-root--py .pxf-step.pxf-cur > * { flex: none; }
html.pxf .pxf-root--py .pxf-step.pxf-cur > .py-block:not(.is-off),
html.pxf .pxf-root--py .pxf-step.pxf-cur > .py-pitfall:not(.is-off) { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; margin: 0; }
html.pxf .pxf-root--py .py-block:not(.is-off) > .py-block__body,
html.pxf .pxf-root--py .py-pitfall:not(.is-off) > .py-pitfall__body { flex: 1 1 auto; min-height: 0; display: grid; max-height: none; overflow: hidden; padding-top: 10px; }
html.pxf .pxf-root--py .py-gatebar { margin-bottom: 8px; }
html.pxf .pxf-root--py .py-stepnav, html.pxf .pxf-root--py .py-stepnav2 { margin: 8px 0 0; }
html.pxf .pxf-root--py .py-fab, html.pxf .pxf-root--py .js-pg-fab { z-index: 1300; }
/* ── Python Recipes (recipe.html: rx / rx-bar with task dots / the intro beside each task) ── */
html.pxf .pxf-root--rx .pxf-bar { border-radius: 0; margin: 0; max-width: none; width: auto; top: 0; }
html.pxf .pxf-root--rx .pxf-main { max-width: none; width: auto; }
html.pxf .pxf-root--rx .pxf-step.pxf-cur { border: 0; box-shadow: none; background: transparent; padding: 0; margin: 0; }
html.pxf .pxf-root--rx .pxf-read > .rx-intro { margin: 0 0 14px; }
html.pxf .pxf-off-shared { display: none !important; }
html.pxf .pxf-root--rx .pxf-read > .rx-intro .rc-hero__top, html.pxf .pxf-root--rx .pxf-read > .rx-intro .rc-meter { display: none; }
html.pxf .pxf-root--rx .pxf-read > .rx-intro { padding: 14px 16px; }
/* the page hides the intro after task 1; in Focus there is room for it beside every task */
html.pxf .pxf-root--rx .pxf-read > .rx-intro.is-off { display: block !important; }
/* BitSize Python: the topic's ‹ Back / Next › on the dots' line, the reading meter one slim line — room for the topic */
html.pxf .pxf-root--py .pxf-step.pxf-cur { position: relative; }
html.pxf .pxf-root--py .pxf-step.pxf-cur > .py-stepnav2 { position: absolute; right: 0; top: var(--pxf-navtop, 50px); margin: 0; gap: 8px; z-index: 2; }
html.pxf .pxf-root--py .pxf-step.pxf-cur > .py-stepnav2 button { min-height: 30px; padding: 4px 14px; font-size: 13px; flex: none; }
html.pxf .pxf-root--py .py-gatebar { padding: 6px 12px; margin-bottom: 6px; }
html.pxf .pxf-root--py .py-stepq { margin-bottom: 6px; min-height: 30px; }
/* BitSize Python, Nov 2026: the screen is used — text and code grow with it, a short topic sits in the middle */
html.pxf .pxf-root--py { --px-line: rgba(0,0,0,.12); --px-soft: #6B7280; --px-soft-bg: #F3F1EA; --px-accent: #B7791F; --px-mono: var(--py-mono2, var(--mono, ui-monospace, monospace));
  --pxf-text0: calc(clamp(15.5px, calc(.6vw + 1vh), 19px) * var(--pxf-u, 1)); --pxf-code0: calc(clamp(13.5px, calc(.45vw + .9vh), 16.5px) * var(--pxf-u, 1)); }
/* --pxf-k (focus.js shrinkText): a column too tall for the screen steps its text and code down */
html.pxf .pxf-root--py .pxf-read, html.pxf .pxf-root--py .pxf-do { --pxf-text: calc(var(--pxf-text0) * var(--pxf-k, 1)); --pxf-code: calc(var(--pxf-code0) * var(--pxf-k, 1)); }
html.pxf .pxf-root--py .pxf-cols { grid-template-columns: minmax(340px, 42fr) minmax(0, 58fr); gap: clamp(28px, 3vw, 56px); }
html.pxf .pxf-root--py .pxf-read, html.pxf .pxf-root--py .pxf-do { justify-content: safe center; }
html.pxf .pxf-root--py .pxf-read .py-block__text, html.pxf .pxf-root--py .pxf-read .py-pitfall__text,
html.pxf .pxf-root--py .pxf-read .py-pitfall__explain { font-size: var(--pxf-text); line-height: 1.72; color: #2F3337; max-width: 62ch; }
html.pxf .pxf-root--py .pxf-do .py-runbox__code, html.pxf .pxf-root--py .pxf-do .py-runbox__highlight,
html.pxf .pxf-root--py .pxf-do .py-runbox__gutter { font-size: var(--pxf-code); line-height: 1.7; }
html.pxf .pxf-root--py .pxf-do .py-runbox__highlight code { font-size: var(--pxf-code) !important; line-height: 1.7 !important; }
html.pxf .pxf-root--py .pxf-do .py-runbox { --rb-gut: 46px; margin-bottom: 18px; }
html.pxf .pxf-root--py .pxf-do .py-runbox__cap { font-size: calc(var(--pxf-text) * .8); margin-bottom: 8px; }
html.pxf .pxf-root--py .pxf-do .py-runbox__output { font-size: calc(var(--pxf-code) * .95); }
html.pxf .pxf-root--py .py-block__title, html.pxf .pxf-root--py .py-pitfall__title { font-size: calc(var(--pxf-text0) * 1.08); }
/* split into parts: the pager sits right under the part, which stays in the middle with the text beside it */
html.pxf .pxf-root--py .pxf-pager, html.pxf .pxf-root--rx .pxf-pager { position: static; margin-top: 14px; }
/* BitSize Python's Quiz and Predict: one question in the middle of the screen, sized like the topics */
html.pxf .pxf-root--py .pxf-step.pxf-cur > .py-q:not(.is-off),
html.pxf .pxf-root--py .pxf-step.pxf-cur > .py-predict:not(.is-off) { width: min(100%, 1180px); margin: auto; padding: clamp(18px, 2.4vh, 30px) clamp(18px, 2vw, 32px); }
html.pxf .pxf-root--py .py-q__text, html.pxf .pxf-root--py .py-predict__q { font-size: calc(var(--pxf-text0) * 1.1); line-height: 1.5; color: var(--py-ink, #1a1a1a); }
html.pxf .pxf-root--py .py-predict__header { padding: 14px 0 16px; background: none; gap: 16px; }
html.pxf .pxf-root--py .pxf-step.pxf-cur .py-opts, html.pxf .pxf-root--py .pxf-step.pxf-cur .py-predict__opts { gap: 10px; }
html.pxf .pxf-root--py .pxf-step.pxf-cur .py-opt { min-height: 58px; padding: 14px 18px; gap: 14px; }
html.pxf .pxf-root--py .pxf-step.pxf-cur .py-opt__letter { width: 30px; height: 30px; font-size: 13px; }
html.pxf .pxf-root--py .pxf-step.pxf-cur .py-opt__text { font-size: var(--pxf-text0); }
html.pxf .pxf-root--py .pxf-step.pxf-cur .py-opt__text--code { font-size: var(--pxf-code0); }
html.pxf .pxf-root--py .pxf-step.pxf-cur .py-feedback, html.pxf .pxf-root--py .pxf-step.pxf-cur .py-predict__explain { font-size: calc(var(--pxf-text0) * .92); }
html.pxf .pxf-root--py .pxf-step.pxf-cur[data-stepq] .py-runbox__code, html.pxf .pxf-root--py .pxf-step.pxf-cur[data-stepq] .py-runbox__highlight,
html.pxf .pxf-root--py .pxf-step.pxf-cur[data-stepq] .py-runbox__gutter { font-size: var(--pxf-code0); line-height: 1.7; }
html.pxf .pxf-root--py .pxf-step.pxf-cur[data-stepq] .py-runbox__highlight code { font-size: var(--pxf-code0) !important; line-height: 1.7 !important; }
/* a question with code: the code on the left, the options beside it */
html.pxf .pxf-root--py .py-q:not(.is-off):has(> .py-q__runbox) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
html.pxf .pxf-root--py .py-q:has(> .py-q__runbox) > * { grid-column: 1 / -1; }
html.pxf .pxf-root--py .py-q:has(> .py-q__runbox) > .py-q__runbox { grid-column: 1; grid-row: 3; margin: 0; }
html.pxf .pxf-root--py .py-q:has(> .py-q__runbox) > .py-opts { grid-column: 2; grid-row: 3; }
html.pxf .pxf-root--py .py-predict:not(.is-off):has(> .py-predict__opts) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
html.pxf .pxf-root--py .py-predict > * { grid-column: 1 / -1; }
html.pxf .pxf-root--py .py-predict > .py-runbox { grid-column: 1; grid-row: 2; margin: 0; }
html.pxf .pxf-root--py .py-predict > .py-predict__opts { grid-column: 2; grid-row: 2; padding: 0; }
html.pxf .pxf-root--py .pxf-step.pxf-cur > .py-q:not(.is-off), html.pxf .pxf-root--py .pxf-step.pxf-cur > .py-predict:not(.is-off) { margin: auto auto 0; }
html.pxf .pxf-root--py .pxf-step.pxf-cur > .py-stepnav2__hint { margin: 14px 0 auto; font-size: 14px; }
/* Python Recipes, Nov 2026: what to do on the left (the recipe, then the task, both grown with the screen), a roomy
   editor and its output on the right; both columns sit in the middle of the screen */
html.pxf .pxf-root--rx { --pxf-text0: calc(clamp(15.5px, calc(.6vw + 1vh), 19px) * var(--pxf-u, 1)); --pxf-code0: calc(clamp(14px, calc(.5vw + .95vh), 18px) * var(--pxf-u, 1)); }
html.pxf .pxf-root--rx .pxf-read, html.pxf .pxf-root--rx .pxf-do { --pxf-text: calc(var(--pxf-text0) * var(--pxf-k, 1)); --pxf-code: calc(var(--pxf-code0) * var(--pxf-k, 1));
  justify-content: safe center; }
html.pxf .pxf-root--rx .pxf-cols { grid-template-columns: minmax(340px, 42fr) minmax(0, 58fr); gap: clamp(28px, 3vw, 56px); }
html.pxf .pxf-root--rx .pxf-read .rx-intro__desc, html.pxf .pxf-root--rx .pxf-read .rx-intro p { font-size: calc(var(--pxf-text) * .94); line-height: 1.65; }
html.pxf .pxf-root--rx .pxf-read .rx-intro__tag { font-size: calc(var(--pxf-text) * 1.05); }
html.pxf .pxf-root--rx .pxf-read .rx-task__head { padding: 6px 0 8px; }
html.pxf .pxf-root--rx .pxf-read .rx-task__title { font-size: calc(var(--pxf-text) * 1.3); line-height: 1.3; }
html.pxf .pxf-root--rx .pxf-read .rx-task__prompt { font-size: var(--pxf-text); line-height: 1.65; padding: 0 0 14px 44px; }
html.pxf .pxf-root--rx .pxf-read .rx-hints { padding: 0 0 0 44px; }
html.pxf .pxf-root--rx .pxf-read .rx-hint { font-size: calc(var(--pxf-text) * .9); }
html.pxf .pxf-root--rx .pxf-do .rx-editor { margin: 0; }
html.pxf .pxf-root--rx .pxf-do .rx-editor .CodeMirror { font-size: var(--pxf-code); line-height: 1.65; padding: 10px 0; }
html.pxf .pxf-root--rx .pxf-do.pxf-roomy .rx-editor .CodeMirror, html.pxf .pxf-root--rx .pxf-do.pxf-roomy .rx-editor .CodeMirror-scroll { min-height: clamp(180px, 34vh, 420px); }
html.pxf .pxf-root--rx .pxf-do .rx-row { padding: 14px 0; }
html.pxf .pxf-root--rx .pxf-do .rx-run { min-height: 46px; padding: 0 22px; font-size: 15px; }
html.pxf .pxf-root--rx .pxf-do .rx-io { padding: 0; gap: 14px; }
html.pxf .pxf-root--rx .pxf-do .rx-out pre { font-size: calc(var(--pxf-code) * .9); min-height: 64px; padding: 12px 14px; }
html.pxf .pxf-root--rx .rx-task.pxf-step::before { display: none; }   /* the card's status edge: no card in Focus */
/* Coding tasks in every step-based app (Patterns … Algorithms): the task sits in the middle of the screen, its words
   and code grown with it (focus.js steps them down, --pxf-k, when it is too tall), the editor roomy */
html.pxf .pxf-root { --pxf-text0: calc(clamp(15.5px, calc(.6vw + 1vh), 19px) * var(--pxf-u, 1)); --pxf-code0: calc(clamp(14px, calc(.5vw + .95vh), 18px) * var(--pxf-u, 1)); }
html.pxf .pxf-read, html.pxf .pxf-do { --pxf-text: calc(var(--pxf-text0) * var(--pxf-k, 1)); --pxf-code: calc(var(--pxf-code0) * var(--pxf-k, 1)); }
html.pxf .pxf-cols--one:has(.pxf-task) { max-width: 1320px; }
html.pxf .pxf-do:has(.pxf-task) { justify-content: safe center; }
html.pxf .px-task.pxf-task .px-task__h h3 { font-size: calc(var(--pxf-text) * 1.15); }
html.pxf .px-task.pxf-task .px-task__p { font-size: var(--pxf-text); line-height: 1.65; }
html.pxf .px-task.pxf-task .pxf-tr .px-editor .CodeMirror { font-size: var(--pxf-code); line-height: 1.65; }
html.pxf .pxf-roomy .px-task.pxf-task .pxf-tr .px-editor .CodeMirror, html.pxf .pxf-roomy .px-task.pxf-task .pxf-tr .px-editor .CodeMirror-scroll { min-height: clamp(160px, 28vh, 360px); }
html.pxf .px-task.pxf-task .pxf-tr .px-out pre { font-size: calc(var(--pxf-code) * .88); }

/* ── Easy to drive (Nov 2026) ── */
/* ‹ › in the side margins: the mouse's ← / → (focus.js move) */
.pxf-edge, .pxf-hint { display: none; }
html.pxf .pxf-edge { display: grid; place-items: center; position: fixed; top: 50%; z-index: 5; width: 26px; height: 64px; margin-top: -32px; padding: 0 0 3px;
  border: 0; border-radius: 10px; background: transparent; color: rgba(0,0,0,.38); font: 400 26px/1 system-ui, sans-serif; cursor: pointer;
  transition: background .15s, color .15s; }
html.pxf .pxf-edge--prev { left: 3px; }
html.pxf .pxf-edge--next { right: 3px; }
html.pxf .pxf-edge:hover, html.pxf .pxf-edge:focus-visible { background: rgba(0,0,0,.07); color: rgba(0,0,0,.75); outline: none; }
/* the keys, for a few seconds after Focus is turned on */
html.pxf .pxf-hint { display: flex; align-items: center; gap: 7px; position: fixed; left: 50%; bottom: 22px; z-index: 6; transform: translate(-50%, 10px);
  padding: 9px 16px; border-radius: 999px; background: rgba(24,28,30,.92); color: #E8ECEB; font: 600 13px/1 system-ui, -apple-system, sans-serif;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; box-shadow: 0 14px 34px -14px rgba(0,0,0,.6); }
html.pxf .pxf-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.pxf-hint kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1); font: 700 11.5px/1 ui-monospace, 'JetBrains Mono', monospace; }
.pxf-hint i { width: 3px; height: 3px; margin: 0 4px; border-radius: 50%; background: rgba(255,255,255,.4); }
/* a wide screen: a docked panel (Playground, Reference) sits beside the lesson instead of over its right column */
@media (min-width: 1500px) {
  html.pxf body.px-panel-open:not(.pgf-floating) .pxf-root { right: 460px; }
  html.pxf body.px-panel-open.pgk-wide:not(.pgf-floating) .pxf-root { right: min(62vw, 980px); }
  html.pxf body.px-panel-open:not(.pgf-floating) .pxf-edge--next { right: 463px; }
  html.pxf body.px-panel-open:not(.pgf-floating) .pxf-title { display: none; }      /* the steps keep their room */
  html.pxf body.px-panel-open.pgk-wide:not(.pgf-floating) .pxf-edge--next { right: calc(min(62vw, 980px) + 3px); }
}
@media (prefers-reduced-motion: reduce) { html.pxf .pxf-hint, html.pxf .pxf-edge { transition: none; } }

/* ── Text size (Nov 2026): A− 100% A+ in the bar (focus.js setSize; − / + keys). --pxf-u multiplies --pxf-text0 /
   --pxf-code0 above; a plain block (no picture, no editor) is zoomed instead ── */
.pxf-size { display: none; }
html.pxf .pxf-size { display: inline-flex; align-items: center; flex: none; height: 32px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); background: #fff; overflow: hidden; }
html.pxf .pxf-size button { height: 100%; min-width: 34px; padding: 0 9px; border: 0; background: transparent; color: #374151; font: 700 13px/1 system-ui, -apple-system, sans-serif; cursor: pointer; }
html.pxf .pxf-size button small { font-size: 11px; margin-left: 1px; }
html.pxf .pxf-size button:hover:not(:disabled), html.pxf .pxf-size button:focus-visible { background: rgba(0,0,0,.07); outline: none; }
html.pxf .pxf-size button:disabled { color: rgba(0,0,0,.25); cursor: default; }
html.pxf .pxf-size .pxf-size__v { min-width: 50px; padding: 0 4px; border-inline: 1px solid rgba(0,0,0,.1); font: 600 12px/1 ui-monospace, 'JetBrains Mono', monospace; color: #6B7280; }
html.pxf .pxf-size.is-set .pxf-size__v { color: #047857; }
html.pxf .pxf-read > .pxf-u, html.pxf .pxf-do > .pxf-u { zoom: var(--pxf-u, 1); }
