/* app2/ui/templates.css — the four page templates (ui/components/template.js; docs/specs/page-templates.md, register UI-35):
   every width, gap, column and breakpoint of a page on a template lives here, from the tokens (the rows, the measures, the
   three gaps --tpl-in, --tpl-group and --tpl-section, marketing's --tpl-section-mk). A page file sets none. Direction A:
   the white ground, few boxes, a strong type hierarchy, one column set by its content. Loaded after the page stylesheets,
   so it wins where they disagree. */

/* ---------- every template ---------- */
.tpl-host{display:contents}   /* the element a page mounts: the template is the column's own child */
html:has(#root .tpl) body{background:var(--sheet)}
.tpl:not(.tpl-app){--lh-body:var(--lh-lede)}   /* the Exercism look's 1.55 on settings, reading and marketing pages; an app page keeps 1.5 */
.tpl{box-sizing:border-box; width:100%; min-width:0; display:flex; flex-direction:column; gap:var(--tpl-section); font-family:var(--font); font-size:var(--fs-body); line-height:var(--lh-body); color:var(--ink)}
.tpl :where(h1, h2, h3, p, ul, ol, dl){margin:0}
.tpl :where(.tpl-list, .tpl-proof, .tpl-read-side ol){list-style:none; padding:0}

/* the band (the Exercism look; register UI-35): the tint (--band) from the top bar's foot to the foot of the page head, edge to
   edge of the window, with a hairline under it. Drawn as the head's border image pushed out to the window's edges and up over
   the frame's top air (--band-top, the column's own padding), so nothing is measured, nothing moves and the head's words stay
   on the frame's column lines; an outset is ink, never scroll overflow, so no window scrolls sideways. A settings page's band
   holds the identity block and the tab row (the active tab's underline on its foot); a reading page's the title, the lede and
   the nav; a marketing page's the hero (its foot half a gap under the hero; the landing's runs to the proof row under the
   strip, Wolf 2026-10-29, and the footer sits on white under it). An app page has none */
.tpl-band{--band-top:var(--frame-v); --band-foot:0px; border-image:linear-gradient(var(--band) calc(100% - 1px), var(--line) 0) fill 0 / 0 / var(--band-top) 100vmax var(--band-foot)}
/* the column a band (or the breadcrumb strip) sits in reaches the window's edges (its gutters as padding), so a scrolling
   column never clips the band */
body > .app:has(.tpl-band, .tpl-crumbs){max-width:none; padding-inline:max(var(--page-gutter), calc((100% - var(--page-w)) / 2))}

/* the breadcrumb strip (UI-38 rule 5; tplCrumbsHtml): a deep page's thin band under the top bar, on the sheet with a hairline
   under it, edge to edge as the band is (its border image pushed out to the window's edges). It takes the top of the frame's
   air, so the page head keeps its own air under it and a band under it starts at the strip's hairline */
.tpl > .tpl-crumbs{box-sizing:border-box; display:flex; align-items:center; min-height:var(--tpl-crumbs-h); margin-top:calc(-1 * var(--frame-v)); margin-bottom:calc(var(--frame-v) - var(--tpl-section)); border-image:linear-gradient(var(--sheet) calc(100% - 1px), var(--line) 0) fill 0 / 0 / 0 100vmax 0}
.tpl-settings > .tpl-crumbs{margin-bottom:calc(var(--frame-v) - var(--tpl-group))}
.tpl-crumbs ol{display:flex; flex-wrap:wrap; align-items:center; gap:var(--tpl-in); margin:0; padding:0; list-style:none; font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.tpl-crumbs li{display:inline-flex; align-items:center; gap:var(--tpl-in); min-width:0}
.tpl-crumbs a{color:inherit; text-decoration:none; border-radius:var(--r-btn)}
.tpl-crumbs a:hover{color:var(--ink); text-decoration:underline}
.tpl-crumbs a:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
.tpl-crumbs [aria-current]{color:var(--ink)}
.tpl-crumb-sep{display:inline-flex; color:var(--ink-2)}
.tpl-crumb-chev{transform:rotate(-90deg)}

/* a section: its heading at --fs-head, a group gap to its rows */
.tpl-sec{display:flex; flex-direction:column; gap:var(--tpl-group); min-width:0}
.tpl-sec-body{min-width:0}
.tpl-sec-head{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--tpl-in) var(--tpl-group)}
.tpl-sec-h{display:flex; align-items:center; gap:var(--tpl-in); font-size:var(--fs-head); line-height:var(--lh-head); font-weight:var(--fw-title)}
.tpl-sec-facts{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2); font-variant-numeric:tabular-nums; white-space:nowrap}
.tpl-prose{display:flex; flex-direction:column; gap:calc(var(--s4) * var(--k)); max-width:var(--measure-read)}   /* paragraphs --s4 apart */

/* list rows: one --row-list each on a hairline; an open row shows its markup under it */
.tpl-list{display:flex; flex-direction:column; margin:0; border-top:1px solid var(--grid)}
.tpl-li{min-width:0; border-bottom:1px solid var(--grid)}
.tpl-row{box-sizing:border-box; display:flex; align-items:center; gap:var(--tpl-in); min-height:var(--row-list); padding:var(--tpl-in); color:inherit; text-decoration:none; outline:none}
a.tpl-row:hover{background:var(--chrome)}
button.tpl-row{width:100%; font:inherit; color:inherit; text-align:start; background:none; border:0; border-radius:0; cursor:pointer}   /* a row that picks */
button.tpl-row:hover{background:var(--chrome)}
.tpl-row:focus-visible, .tpl-row.cursor-on{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
/* a list that picks (the lessons, the drills, the reference: controls 2d): one look for every page. A row under the pointer takes
   the chrome; the row in hand the brand's tint, the same under the pointer; with the list in focus the cursor's ring sits inside it */
.tpl-row[role="option"]{cursor:pointer}
.tpl-row[role="option"]:hover{background:var(--chrome)}
.tpl-row[aria-selected="true"], .tpl-row[aria-selected="true"]:hover{background:var(--learn-tint)}
[role="listbox"]:focus-visible .tpl-row[aria-selected="true"]{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
.tpl-lead{flex:none; display:grid; place-items:center; width:calc(var(--s8) * var(--k))}
.tpl-lead:has(> :is(.art, .art-line)){width:auto; display:flex; align-items:center; gap:var(--tpl-in)}   /* a mark (art.js rowMarkHtml) and what stands with it */
/* a mark in a row or beside a section's heading (UI-37 rule 6): one size (art.js ROW_MARK) and one grey; a chapter's and a
   mode's mark keep their own colour (UI-28), a state mark (state-mark.js) its state's */
.tpl :is(.tpl-lead, .tpl-sec-h) > .art-fl:is(:not([data-art^="fluency/ch-"], [data-art^="fluency/mode-"]), .art-grey) img{filter:var(--art-row)}   /* .art-grey: a chapter's mark in a list of chapters (Certificate, Verify) takes the one grey too */
.tpl-txt{flex:1 1 auto; display:flex; flex-direction:column; min-width:0}
.tpl-t{display:flex; flex-wrap:wrap; align-items:center; gap:var(--tpl-in); font-weight:var(--fw-semi)}
.tpl-sub{font-size:var(--fs-small); color:var(--ink-2)}
.tpl-end{flex:none; margin-left:auto; display:flex; align-items:center; gap:var(--tpl-in); font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2); white-space:nowrap; font-variant-numeric:tabular-nums}
.tpl-open{padding:0 var(--tpl-in) var(--tpl-in) calc(var(--s8) * var(--k) + 2 * var(--tpl-in))}
/* reading rows: one --row-read each, no hairlines (an open row's lessons) */
.tpl-list-read, .tpl-list-read > .tpl-li{border:0}
.tpl-list-read .tpl-row{min-height:var(--row-read); padding-block:0; font-size:var(--fs-small)}
.tpl-list-read .tpl-lead{width:auto}
.tpl-list-read .tpl-t{font-weight:var(--fw-body); color:var(--ink-2)}
.tpl-list-read .is-now .tpl-t{font-weight:var(--fw-bold); color:var(--learn-ink)}
/* a row's state: the one in hand in its chapter's ink, a done one in full ink, the rest quiet */
.tpl-row.is-todo .tpl-t{color:var(--ink-2)}
.tpl-row.is-now .tpl-t{color:var(--learn-ink); font-weight:var(--fw-bold)}
.tpl-t > b{font-variant-numeric:tabular-nums}

/* the one box on a page: the thing acted on as one (Up next). The kit's card on the tint plate with no border (Wolf, 2026-10-28
   23:17, on Home: "blended with the main color (grey here)"); the words at the left, the button at the right */
.tpl-act.ui-card{background:var(--plate-neutral); border-color:transparent}
.tpl-act{display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:var(--tpl-in) var(--tpl-group)}
.tpl-act > *{grid-column:1; min-width:0}
.tpl-act > .tpl-act-eye{grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:var(--tpl-group)}
.tpl-act-eye > :last-child{display:inline-flex; align-items:center; gap:var(--tpl-in)}
.tpl-act-eye .pbar{width:calc(var(--lvl-bar-w) * .45)}
.tpl-act-eye{font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--learn-ink)}
.tpl-act-h{font-size:var(--fs-head); line-height:var(--lh-head); font-weight:var(--fw-title); text-wrap:balance}
.tpl-act-body{display:flex; flex-wrap:wrap; align-items:center; gap:var(--tpl-in); color:var(--ink-2)}
.tpl-act > .tpl-act-go{grid-column:2; grid-row:2 / span 2; align-self:center; display:flex; flex-direction:column; align-items:flex-end; gap:var(--tpl-in)}
/* a hero with no eyebrow (UI-63, Home's Chapter 1 done): its button centres on the title and the line, not on the rows under a
   missing eyebrow. Wide windows only: the narrow layouts below put the button under the words */
@media (min-width:961px){ .tpl-act:not(:has(> .tpl-act-eye)):not(.tpl-side *) > .tpl-act-go{grid-row:1 / span 2} }
/* a narrow window (761 to 960, a laptop zoomed in): the action card's button goes under its words, as in the side column, so the
   title keeps its line and the button never sits on it (QA C14, 800x450); the eyebrow's two ends keep their words whole */
@media (max-width:960px){ .tpl-act{grid-template-columns:minmax(0, 1fr)} .tpl-act > .tpl-act-go{grid-column:1; grid-row:auto; flex-direction:row; flex-wrap:wrap; align-items:center} }
.tpl-act > .tpl-act-eye{flex-wrap:wrap; row-gap:var(--s1)}
.tpl-act-eye > *{white-space:nowrap}

/* ---------- app: head, then the main column and the side column (--frame-side-w) one --s8 apart ---------- */
.tpl-head{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--tpl-in) var(--tpl-group)}
.tpl-head > :not(.tpl-ph, .tpl-ph-end){flex:1 0 100%; min-width:0}   /* what the head holds under its title line (a row of ways in, the filter) takes the full width */
.tpl-head:has(> :not(.tpl-ph, .tpl-ph-end)){row-gap:var(--tpl-group)}
.tpl-app:has(> .tpl-head > :not(.tpl-ph, .tpl-ph-end)){gap:var(--tpl-group)}   /* one rhythm from the title to the list: title, the head's foot, the chips, the list */
.tpl-cols{display:grid; grid-template-columns:minmax(0, 1fr) var(--frame-side-w); column-gap:var(--tpl-side-gap); align-items:stretch}   /* the two columns end together (layout-rules C4); the side's pieces stack at its top at one rhythm, never one pinned to the foot over a hole (rules 4, 7) */
.tpl-one > .tpl-cols{grid-template-columns:minmax(0, 1fr)}
/* a narrow computer window (761 to 1100, a laptop zoomed in; UI-56): the side column gives up to 40% of the frame, so the list's
   names keep their room */
@media (min-width:761px) and (max-width:1100px){ .tpl-cols{grid-template-columns:minmax(0, 1fr) min(var(--frame-side-w), 40%)} }
.tpl-cols-read{grid-template-columns:minmax(0, var(--measure-read)) var(--frame-side-w); justify-content:space-between}   /* templateHtml read: the main at the reading measure */
.tpl-main{display:flex; flex-direction:column; gap:var(--tpl-section); min-width:0}
.tpl-side{display:flex; flex-direction:column; gap:var(--tpl-group); min-width:0}
.tpl-note{font-size:var(--fs-small); color:var(--ink-2)}
/* stat rows (the streak, the next level): the label, the mark, the figure, one --row-set each on a hairline */
.tpl-stats{display:flex; flex-direction:column; border-top:1px solid var(--grid)}
.tpl-stat{display:grid; grid-template-columns:var(--tpl-stat-k) minmax(0, 1fr) auto; align-items:center; gap:var(--tpl-in); min-height:var(--row-set); padding:0 var(--tpl-in); border-bottom:1px solid var(--grid); font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.tpl-stat > b{color:var(--ink); font-weight:var(--fw-bold); white-space:nowrap; font-variant-numeric:tabular-nums}

/* the head's anatomy (UI-38 rule 1; tplHeadHtml): the mark, the title and one fact on one line at the left, the second fact
   or the controls at the right */
.tpl-ph{display:flex; flex-wrap:wrap; align-items:center; gap:var(--tpl-in) var(--tpl-group); min-width:0}
.tpl-ph-mark{flex:none; display:grid; place-items:center}
.tpl-ph-fact{display:inline-flex; align-items:center; gap:var(--tpl-in); font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2); white-space:nowrap; font-variant-numeric:tabular-nums}
.tpl-ph-end{display:flex; flex-wrap:wrap; align-items:center; gap:var(--tpl-in); margin-left:auto}
/* progress shown once (UI-37 rule 2; tplMeterHtml): the count beside its bar */
.tpl-meter{display:inline-flex; align-items:center; gap:var(--tpl-in); font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2); white-space:nowrap; font-variant-numeric:tabular-nums}
.tpl-meter > b{color:var(--ink); font-weight:var(--fw-bold)}
.tpl-meter > .pbar{width:var(--tpl-meter-w)}
/* a list's filter (UI-38 rule 3; tplFilterHtml): the search above the chip row, the row's last piece at its right end */
.tpl-filter{display:flex; flex-direction:column; gap:var(--tpl-in); min-width:0}
.tpl-filter-row{display:flex; flex-wrap:wrap; align-items:center; gap:var(--tpl-in)}
.tpl-filter-q{display:flex; align-items:center; gap:var(--tpl-in)}
.tpl-filter-q > :first-child{flex:1 1 auto; min-width:0}
.tpl-filter-row > .ui-chips{flex:1 1 auto; min-width:0}
.tpl-filter-end{flex:none; margin-left:auto; display:flex; align-items:center; gap:var(--tpl-in)}
.tpl-filter-end .ui-field-in{width:auto; max-width:100%}   /* a picker at the row's end is as wide as its longest choice */
.tpl-filter-inline > .tpl-filter-row > .ui-chips{flex:0 1 auto}
.tpl-filter-inline .tpl-filter-q{flex:1 1 var(--tpl-search-min); max-width:var(--tpl-search-w); margin-left:auto}   /* the search on the chip row's line, at its right end */
/* the search keeps the chip row's first line on every window: the chips wrap beside it, never pushing it to a line of its own
   (a narrow or zoomed-in window, QA C14 and UI-56: it cost Learn and Drills a whole row) */
.tpl-filter-inline > .tpl-filter-row{flex-wrap:nowrap}
/* the search keeps the chip row's first line on every window: the chips wrap beside it, never pushing it to a line of its own
   (a narrow or zoomed-in window, QA C14 and UI-56: it cost Learn and Drills a whole row); a narrow window gives it its full
   width so its words never clip */
.tpl-filter-inline > .tpl-filter-row > .tpl-filter-q{min-width:var(--tpl-search-min)}
@media (max-width:1100px){ .tpl-filter-inline > .tpl-filter-row > .tpl-filter-q{min-width:var(--tpl-search-w)} }
/* an app page that fits the window (fit: true): the main's last piece (a scroll panel) takes what is left and scrolls */
html[data-shell="app"] #root:has(> .tpl-host > .tpl-fit, > .tpl-fit){flex:1 1 0; min-height:0}
.tpl-fit{flex:1 1 0; min-height:0}
@media (max-height:760px){ .tpl-fit{--tpl-section:var(--tpl-group)} }   /* a short window: the page that fits the window keeps its room for the list */
.tpl-fit > .tpl-cols{flex:1 1 0; min-height:0; grid-template-rows:minmax(0, 1fr)}
.tpl-fit .tpl-main{min-height:0; gap:var(--tpl-group)}
.tpl-fit .tpl-main > :last-child{flex:1 1 auto; min-height:0}
.tpl-fit .tpl-side{min-height:0; overflow:auto}
html[data-lf-open] .tpl-fit .tpl-side:has(.lf.open){overflow:visible}   /* a length fan rises over its button whole, never cut by the column it sits in (rule 6) */
/* a side column the page hides (sideHidden, a toggle) gives its room to the main */
.tpl-side[hidden]{display:none}
.tpl-cols:has(> .tpl-side[hidden]){grid-template-columns:minmax(0, 1fr)}
/* a list in a scroll panel: each section's heading stays at the panel's top while its rows pass under it */
.tpl-scroll{min-height:0}
.tpl-scroll .tpl-sec-head{position:sticky; top:0; z-index:1; min-height:var(--row-set); background:var(--sheet)}
.tpl-scroll .tpl-sec + .tpl-sec{margin-top:var(--tpl-group)}
.tpl-scroll .tpl-sec{gap:0}
/* the fold ends on a row's edge or a section's head (ui/components/scroll-panel.js finds what crosses the fold where it is
   drawn): the sections, their bodies and their lists are left out of that test, their heads and rows are not */
.tpl-scroll :is(.tpl-sec, .tpl-sec-body, .tpl-list, .tpl-li){pointer-events:none}
.tpl-scroll :is(.tpl-sec-head, .tpl-row, .tpl-open, .ui-empty){pointer-events:auto}
.tpl-scroll .tpl-sec-body > :not(.tpl-list){pointer-events:auto}   /* a section that holds no list (a board, a form) is pressed as drawn */
/* boxes that hug their content, in columns of the side column's width across the main (the desk's cards under its sheet):
   each box keeps its own height and the next one sits under it, never a stretched box beside a short one */
.tpl-cards{column-width:var(--frame-side-w); column-gap:var(--tpl-group)}
.tpl-cards > *{break-inside:avoid; margin-bottom:var(--tpl-group)}
.tpl-cards > :last-child{margin-bottom:0}
.tpl-cards:empty{display:none}
/* sections in those columns (the desk's, under its sheet: UI-37, no box): a heading over its rows and lines, the side gap
   between the columns, a section gap under each; a heading stays put (no sticky head in a column flow) */
.tpl-cards:has(> .tpl-sec){column-gap:var(--tpl-side-gap)}
.tpl-cards > .tpl-sec{margin-bottom:var(--tpl-section)}
.tpl-cards > .tpl-sec:last-child{margin-bottom:0}
.tpl-cards .tpl-sec{gap:var(--tpl-group)}
.tpl-cards .tpl-sec-head{position:static; min-height:0}
.tpl-cards .tpl-sec-body{display:flex; flex-direction:column; align-items:stretch; gap:var(--tpl-in)}
.tpl-cards .tpl-sec-body > :is(.btn-row, .ui-btn, .btn2){align-self:flex-start}
/* a long list in two columns of equal rows (UI-38: Arcade's deck): row by row, left then right, one hairline under each */
.tpl-list-two{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:var(--tpl-side-gap)}   /* the list's top hairline (.tpl-list's) spans both columns under the heading and its fact (rule 2) */
.tpl-list-two > .tpl-li > .tpl-row{height:100%}
@media (max-width:760px){ .tpl-list-two{grid-template-columns:minmax(0, 1fr)} }
/* a list with columns (the keys on Reference): the lead, the words, then each end piece in its own column, so the rows line up */
/* a short list across the column (Practice's other ways to play): its rows side by side, one hairline under each */
.tpl-list-across{display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); column-gap:var(--tpl-side-gap); border-top:0}
.tpl-list-across .tpl-sub{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
/* the one box in the side column: its button under its words, the column being narrow */
.tpl-side .tpl-act{grid-template-columns:minmax(0, 1fr)}
.tpl-side .tpl-act > .tpl-act-go{grid-column:1; grid-row:auto; flex-direction:row; align-items:center}
/* a row at the foot of a list in a scroll panel (Learn's certificate row): a group gap above it, the rows' inset */
.tpl-list-foot{padding:var(--tpl-group) var(--tpl-in) 0}
/* the card's foot (tplActHtml foot: Practice's reps and week goal): its stat rows on hairlines, a label column wide enough
   for a goal's words, then its own button */
.tpl-act > .tpl-act-foot{grid-column:1 / -1; display:flex; flex-direction:column; align-items:stretch; gap:var(--tpl-in); --tpl-stat-k:var(--label-w)}
.tpl-act-foot > .tpl-act-go{display:flex; align-items:center; gap:var(--tpl-in)}
/* quiet tiles across the foot of a page head (tplTilesHtml; Practice's ways to play): a hairline box each, no fill, the mark,
   the name over its one fact, and a plain link at the right */
.tpl-tiles{display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); gap:var(--tpl-group); margin:0; padding:0; list-style:none}
.tpl-tile{display:grid; grid-template-columns:auto minmax(0, 1fr) auto; grid-template-rows:auto auto; align-items:center; column-gap:var(--tpl-in); min-height:var(--row-list); padding:var(--tpl-in) var(--tpl-group); border:1px solid var(--grid); border-radius:var(--r-card)}
.tpl-tile-mark{grid-row:1 / span 2; display:grid; place-items:center}
.tpl-tile-t{display:flex; align-items:center; gap:var(--tpl-in); min-width:0; font-weight:var(--fw-bold)}
.tpl-tile-f{grid-column:2; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.tpl-tile-go{grid-column:3; grid-row:1 / span 2; display:flex; align-items:center}
.tpl-tile-go .ui-btn-link{color:var(--mode-ink, var(--learn-ink))}
/* the small tile (size 'sm'; the landing's six chapters): the name on the first line, the fact and its chip on the second
   (a mark, when it has one, before them); on a marketing page every size steps with --mk-s, so the strip grows and shrinks with the block it sits under */
.tpl-tiles-sm{--ts:var(--mk-s, 1); gap:calc(var(--s2) * var(--ts))}
.tpl-tiles-sm{--pl-fs-tile:max(var(--pl-small-min), round(calc(var(--pl-small) * var(--ts)), 1px))}   /* the marketing small type on the strip's own scale */
.tpl-tiles-sm .tpl-tile{grid-template-columns:minmax(0, 1fr); column-gap:calc(var(--s2) * var(--ts)); min-height:0; padding:calc(var(--s2) * var(--ts)) calc(var(--s3) * var(--ts)); background:var(--sheet); font-size:var(--pl-fs-tile); line-height:var(--lh-head)}
.tpl-tiles-sm .tpl-tile-t{gap:calc(var(--s1) * var(--ts)); white-space:nowrap}
.tpl-tiles-sm .tpl-tile-t > span{min-width:0; overflow:hidden; text-overflow:ellipsis}
.tpl-tiles-sm .tpl-tile-n{color:var(--ink-2); font-variant-numeric:tabular-nums}
.tpl-tiles-sm .tpl-tile:has(> .tpl-tile-mark){grid-template-columns:auto minmax(0, 1fr)}
.tpl-tiles-sm .tpl-tile:not(:has(> .tpl-tile-mark)) > :is(.tpl-tile-t, .tpl-tile-f){grid-column:1}
.tpl-tiles-sm .tpl-tile-f{display:flex; align-items:center; justify-content:space-between; gap:calc(var(--s2) * var(--ts)); margin-top:calc(var(--s1) * var(--ts)); color:var(--ink-2); font-variant-numeric:tabular-nums}
.tpl-tiles-sm .ui-chip{--chip-h:calc(var(--s5) * var(--ts)); --chip-px:calc(var(--s2) * var(--ts)); --chip-fs:var(--pl-fs-tile); --chip-icon:calc(var(--s3) * var(--ts)); flex:none}
.tpl-list-cols .tpl-row{display:grid; grid-template-columns:var(--tpl-cols); column-gap:var(--tpl-group)}
.tpl-list-cols .tpl-lead{width:auto; justify-content:start; display:flex; flex-wrap:wrap; align-items:center; gap:var(--s1) var(--s2)}
.tpl-list-cols .tpl-txt{grid-column:2}   /* a row with no lead keeps its words in the words' column */
.tpl-list-cols .tpl-end{grid-column:3 / -1; display:grid; grid-template-columns:subgrid; align-items:center; margin-left:0}
.tpl-list-cols .tpl-end > *{min-width:0}
.tpl-list-cols .tpl-end > .ui-chip{justify-self:start}   /* a chip in a column is as wide as its words */
.tpl-list-cols .tpl-head-row{border-bottom:1px solid var(--line); min-height:var(--row-set); font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--ink-2)}
/* ---------- settings: the identity block, the tab row (or the jump list), one column of sections at --measure-set ----------
   The column under the band takes what the window leaves and scrolls there (a scroll panel: its fade and "more" while more
   is below), never the page (Wolf, 2026-10-17: no page scroll, ever) */
.tpl-settings{gap:var(--tpl-group)}
.tpl-settings > .tpl-band{display:flex; flex-direction:column; gap:var(--tpl-group); min-width:0}
.tpl-identity{display:flex; flex-direction:column; gap:var(--tpl-group); min-width:0}
.tpl-id-top{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--tpl-in) var(--tpl-group)}
.tpl-id-plate{min-width:0}
.tpl-id-plate .np{gap:var(--tpl-in)}
.tpl-id-plate .av{--av:var(--tpl-av); font-size:var(--fs-head)}
.tpl-id-plate .np-name{font-size:var(--fs-title); line-height:var(--lh-head); font-weight:var(--fw-title)}
/* the facts hug their words (Wolf, round 5: "large non-human looking gaps horizontally"): from the frame's left edge, one
   section gap between them, each fact's link a group gap after its words */
.tpl-facts{display:flex; flex-wrap:wrap; align-items:center; gap:var(--tpl-in) var(--tpl-section); padding-top:var(--tpl-group); border-top:1px solid var(--grid)}
.tpl-fact{display:grid; grid-template-columns:auto auto; grid-template-rows:auto auto; column-gap:var(--tpl-group); align-items:baseline; min-width:0}
.tpl-fact-k{grid-column:1; font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2)}
.tpl-fact-v{grid-column:1; font-weight:var(--fw-bold); overflow-wrap:anywhere}
.tpl-fact-a{grid-column:2; grid-row:1 / span 2; align-self:center}
/* a short window (UI-65 call B): the Account head keeps its name, level and tabs, and its four facts step aside so the list under
   it gets the room (each fact is one tab away); a phone's page scrolls, so it keeps them */
@media (min-width:761px) and (max-height:770px){ .tpl-settings.acct .tpl-facts{display:none} }
.tpl-tabs{min-width:0}
.tpl-tabs .acct-tabs-wrap, .tpl-tabs .acct-tabs{margin:0}
.tpl-sections{display:flex; flex-direction:column; gap:var(--tpl-section); min-width:0}
html[data-shell="app"] #root:has(> .tpl-settings), html[data-shell="app"] #root > .tpl-settings{flex:1 1 0; min-height:0}   /* no clip: the band reaches past the column */
.tpl-settings > .tpl-col{--sp-ground:var(--sheet)}
.tpl-settings > .tpl-col > .sp-body{position:relative}   /* the scroller holds its read-only labels (sr-only, absolute): none hangs below the column and scrolls the page */
.tpl-settings .tpl-sections{box-sizing:border-box; width:100%; max-width:var(--measure-set); padding-block:var(--tpl-in) var(--tpl-group)}
/* the tab's one action card (UI-38 rule 2) in the side column at the frame's right edge, the sections at the measure from
   its left; the card's top on the first section's. An empty side column gives its room back */
.tpl-set-cols{display:grid; grid-template-columns:minmax(0, var(--measure-set)) var(--frame-side-w); justify-content:space-between; column-gap:var(--tpl-side-gap); align-items:start}
.tpl-col .tpl-set-cols{pointer-events:none}   /* the fold test passes through the grid to its rows and the card */
.tpl-set-cols:has(> .tpl-set-side:empty){grid-template-columns:minmax(0, var(--measure-set))}
.tpl-set-side{padding-block:var(--tpl-in) var(--tpl-group); pointer-events:auto}
.tpl-set-side:empty{display:none}
/* Settings in two columns on a big window (UI-116, option A: width buys columns; Wolf 2026-11-19): from 2400 wide the tab's
   sections sit in two columns of the main column's width, a section never split, so the whole tab shows without scrolling
   inside; the side card stays at the frame's right edge (UI-38 rule 2) and a laptop keeps one column at the measure. At 1920 by
   945 two columns still ran 43px past the column's foot (Lessons' last row cut), so 1920 keeps one column */
@media (min-width:2400px){
  .tpl-set-cols:has(> .tpl-sections > .ac-tab-settings){grid-template-columns:minmax(0, 1fr) var(--frame-side-w)}
  .tpl-settings .tpl-sections:has(> .ac-tab-settings){max-width:none}
  .ac-tab-settings{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); row-gap:inherit; column-gap:var(--tpl-side-gap); align-items:start}
  .tpl-settings > .tpl-col .tpl-sections > .ac-tab-settings .tpl-sec-head{position:static}
}
/* the scroll list's sticky parts (UI-59, UI-65): the column still scrolls as one; a section's head stays at the list's top while its
   rows pass, and the side card stays in view (taller than the view, it rides up until its foot shows: --sp-side-top) */
@media (min-width:761px){
  .tpl-settings > .tpl-col .tpl-sections .tpl-sec-head{position:sticky; top:0; z-index:1; background:var(--sheet)}
  .tpl-settings > .tpl-col .tpl-set-cols > .tpl-set-side{position:sticky; top:var(--sp-side-top, 0)}
}
.tpl-settings .tpl-set-side .tpl-sec-body > * + :not(.mk-kv, .mk-set){margin-top:var(--tpl-in)}   /* a section in the card (Your data): its blocks one group, a group gap under its heading */
.tpl-act-body > :is(.cert-card, .mk-preview){flex:1 1 100%; min-width:0}   /* a picture in the card takes its width */
/* the fold ends on a row's edge or a section's head (scroll-panel.js finds what crosses it where it is drawn) */
.tpl-col :is(.tpl-sections, .tpl-host, .tpl-sec, .tpl-sec-body, .tpl-list, .tpl-li){pointer-events:none}
.tpl-col :is(.tpl-sec-head, .tpl-sec-body > *, .tpl-row){pointer-events:auto}
.tpl-col .tpl-sec-body > .tpl-list{pointer-events:none}
/* a settings row is the menu kit's key and value row (Profile) or setting row (Settings, Appearance) at the template's
   height: the label, the value one gap after it, the control at the row's right edge, a hairline under each, to the
   column's edges. A section's rows share one label column (a subgrid of the section's body) that hugs the longest label
   in the section, at most --label-w, so every value sits next to its label (--set-k-w, --set-k-gap) */
.tpl-settings .tpl-sec{--menu-kv-w:var(--label-w); --menu-kv-h:var(--row-set); --menu-set-h:var(--row-set); --menu-pad:0}
.tpl-settings .tpl-sec-body{display:grid; grid-template-columns:var(--set-k-w) minmax(0, 1fr) auto; column-gap:var(--set-k-gap)}
.tpl-settings .tpl-sec-body > *{grid-column:1 / -1}
.tpl-settings .tpl-sec-body > .mk-kv{grid-template-columns:subgrid; column-gap:var(--set-k-gap)}
.tpl-settings .tpl-sec-body > :is(.mk-kv, .mk-set){border-top:0; border-bottom:1px solid var(--grid)}
.tpl-settings .tpl-sec-body > :is(.mk-kv, .mk-set):first-child{border-top:1px solid var(--grid)}
.tpl-settings .tpl-sec .mk-set{display:grid; grid-template-columns:subgrid; align-items:center; gap:var(--tpl-in) var(--set-k-gap); padding-block:var(--s1)}
.tpl-settings .tpl-sec .mk-set > .w{grid-column:1; grid-row:1; display:grid; grid-template-columns:minmax(0, 1fr); align-items:center; min-width:0}   /* the label (and its value): the row's first column, or the first two */
.tpl-settings .tpl-sec .mk-set:has(> .w > .v) > .w{grid-column:1 / 3; grid-template-columns:subgrid; column-gap:var(--set-k-gap)}
.tpl-settings .tpl-sec .mk-set .n{font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2)}
.tpl-settings .tpl-sec .mk-set .v{font-size:var(--fs-body); font-weight:var(--fw-bold)}
.tpl-settings .tpl-sec .mk-set .w > .h{grid-column:-2 / -1}
.tpl-settings .tpl-sec .mk-set > .c{grid-column:2 / -1; grid-row:1; justify-self:start; max-width:100%; flex-wrap:wrap}
.tpl-settings .tpl-sec .mk-set:has(> .w > .v) > .c{grid-column:3; justify-self:end}
.tpl-settings .tpl-sec .mk-set > .c:empty{display:none}
.tpl-settings .tpl-sec .mk-set > .pub-name{grid-column:1 / -1}   /* the one show-my-name block (ID-5): its label and switch on the row's columns */
.tpl-settings .tpl-sec .mk-set > .pub-name .pub-name-row{display:grid; grid-template-columns:var(--label-w) minmax(0, 1fr); justify-items:start; column-gap:var(--s3)}
.tpl-settings .tpl-sec .mk-set > .pub-name .pub-name-label{font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2)}
.tpl-settings .tpl-sec-body > :is(.mk-note, .mk-act, .mk-field){padding-inline:0}
.tpl-settings .tpl-sec-body > .mk-note{padding-block:var(--tpl-in)}
/* a tall row (the theme picker) keeps its label at its top */
.tpl-settings .tpl-sec .mk-set.stack{align-items:start}
.tpl-settings .tpl-sec .mk-set.stack .n{padding-top:var(--s2)}
/* the theme picker: its label at the top of its group and the grid under it from the column's edge, as the heading and the
   rule (rule 2); its tiles a size up on a computer so no name wraps and the sub lines share one line (rule 2) */
.tpl-settings .tpl-sec .mk-set[data-setting="theme"] > .c{grid-column:1 / -1; grid-row:2}
.tpl-settings .tpl-sec .mk-set[data-setting="theme"] .n{padding-top:0}
@media (min-width:481px){ .tpl-settings .tpl-sec .mk-set[data-setting="theme"]{--menu-tile-w:var(--set-tile-w); --menu-tile-h:var(--set-tile-h)} }
/* a section's other blocks (a line, buttons, a list, a form) sit a group gap from what is above them; rows after a block
   start their own hairline */
.tpl-settings .tpl-sec-body > * + :not(.mk-kv, .mk-set){margin-top:var(--tpl-group)}
.tpl-settings .tpl-sec-body > :not(.mk-kv, .mk-set) + :is(.mk-kv, .mk-set){margin-top:var(--tpl-group); border-top:1px solid var(--grid)}
.tpl-settings .tpl-sec-body > :empty{display:none}
/* list rows in a settings section (the certificate's chapters): a settings row's height, on the column's edges */
.tpl-settings .tpl-list .tpl-row{min-height:var(--row-set); padding-inline:0}
.tpl-settings .tpl-list .tpl-end{gap:var(--s3)}
/* a heading a step under the section's (Good to know, What a free account adds): a group gap over it, its rows right under it */
.tpl-sub-h{font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--ink-2)}
.tpl-sub-h + *, .tpl-settings .tpl-sec-body > .tpl-sub-h + *{margin-top:var(--tpl-in)}
/* the jump list (shape 'jump', UI-37 rule 5): the kit's chip row where the tab row sits, on the band's foot */
.tpl-jumps{padding-bottom:var(--tpl-in)}
/* ---------- reading: the head on the band (the title and a fact at the left, a fact at the right, the lede, the nav), the
   body at --measure-read in a column that takes what the window leaves and scrolls there; no card ----------
   The head and the column start on the frame's left edge, as an app page's do (the title under the wordmark; Wolf, round 5:
   "the others look odd with the title centered"); the words keep the measure, left aligned, and a side column (the legal
   reader's sections) sits at the frame's left with the body beside it. The head's line spans the frame, so its second fact
   ends on the frame's right edge as an app page's controls do */
.tpl-reading{--tpl-read-w:var(--measure-read); align-items:stretch; gap:var(--tpl-read-gap)}
.tpl-reading > .tpl-crumbs{margin-bottom:calc(var(--frame-v) - var(--tpl-read-gap))}
.tpl-read-two{--tpl-read-w:calc(var(--tpl-read-side-w) + var(--tpl-side-gap) + var(--measure-read))}
.tpl-reading > *{width:100%; max-width:var(--tpl-read-w)}
.tpl-read-head{display:flex; flex-direction:column; gap:var(--tpl-in)}
.tpl-reading > :is(.tpl-band, .tpl-crumbs){max-width:none; align-items:flex-start}
.tpl-reading > .tpl-band{padding-bottom:var(--tpl-read-pad)}
.tpl-reading > :is(.tpl-band, .tpl-crumbs) > *{width:100%; max-width:var(--tpl-read-w)}
.tpl-reading > .tpl-band > .tpl-head{max-width:none}
.tpl-reading > .tpl-col{max-width:none}   /* the column spans the frame (it scrolls under the wheel anywhere); its words keep the measure */
.tpl-reading .tpl-col{--sp-ground:var(--sheet)}
.tpl-reading .tpl-col > .sp-body{position:relative}
.tpl-reading .tpl-body{box-sizing:border-box; width:100%; max-width:var(--measure-read); padding-bottom:var(--tpl-group)}
.tpl-read-grid{display:grid; grid-template-columns:var(--tpl-read-side-w) minmax(0, 1fr); column-gap:var(--tpl-side-gap)}
.tpl-read-side{display:flex; flex-direction:column; gap:var(--tpl-in); min-width:0; min-height:0}
.tpl-read-side nav > p{padding-inline:var(--tpl-in)}   /* a line in the side column's list (the legal reader's "no section matches") sits on its rows' inset */
/* long text in the body (the legal pages): paragraphs, lists, a subheading, code, at the reading line height */
.tpl-reading .tpl-prose{line-height:var(--lh-read)}
.tpl-reading .tpl-sec:has(> .tpl-sec-body > .tpl-prose){gap:var(--tpl-in)}   /* a section of long text: its heading sits --tpl-in over its first paragraph (the gap between sections stays) */
.tpl-prose :is(ul, ol){display:flex; flex-direction:column; gap:var(--tpl-in); padding-left:var(--s6)}
.tpl-prose li::marker{color:var(--ink-2); font-weight:var(--fw-bold)}
.tpl-prose h3{font-size:var(--fs-body); font-weight:var(--fw-heavy)}
.tpl-prose strong{font-weight:var(--fw-heavy)}
.tpl-prose code{font-family:var(--mono); font-size:var(--fs-label); padding:0 var(--s1); border-radius:var(--r-btn); background:var(--chrome); overflow-wrap:anywhere}
/* a column that takes the focus (bodyLabel) shows the cursor's ring inside its edge once the reader uses the keys; the page
   sets data-quiet while the focus is its own, not the reader's */
.tpl-reading .tpl-col > .sp-body[tabindex="0"]:focus-visible:not([data-quiet]){outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
/* a reading page's list with columns (the course's chapters): the number and mark, the name, the figure right aligned, the chip */
.tpl-reading .tpl-list-cols{--tpl-cols:var(--tpl-read-cols)}
.tpl-reading .tpl-list-cols .tpl-end > :first-child{justify-self:end}
.tpl-lead > b{font-variant-numeric:tabular-nums; color:var(--ink-2)}
.tpl-lead:has(> b){width:auto; display:flex; align-items:center; gap:var(--tpl-in)}   /* a number and its mark side by side */
/* questions that open in place (the FAQ's accordion): one --row-list a question */
.tpl-reading .acc{--acc-q-h:var(--row-list)}
/* the window: the head stays, the column under it takes the rest and scrolls (the frame's air over and under it) */
@media (min-width:761px){
  html[data-shell="read"]:has(#root > .tpl-host > .tpl-reading), html[data-shell="read"]:has(#root > .tpl-host > .tpl-reading) body{height:100%; overflow:hidden}
  html[data-shell="read"]:has(#root > .tpl-host > .tpl-reading) body{min-height:0; padding-bottom:0}
  html[data-shell="read"]:has(#root > .tpl-host > .tpl-reading) body > .app{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
  html[data-shell="read"] #root:has(> .tpl-host > .tpl-reading){flex:1 1 0; min-height:0; display:flex; flex-direction:column}
  .tpl-reading{flex:1 1 0; min-height:0}
  .tpl-reading > :is(.tpl-col, .tpl-read-grid){flex:1 1 0; min-height:0}
  .tpl-read-grid{grid-template-rows:minmax(0, 1fr)}
}
.tpl-title{font-size:var(--fs-title); line-height:var(--lh-title); font-weight:var(--fw-title); outline:none}
.tpl :is(.tpl-title, .tpl-sec-h):focus-visible{outline:none}   /* a heading the page puts the focus on (the title, a jump's section) shows no ring */
.tpl-lede{font-size:var(--fs-lede); line-height:var(--lh-lede); color:var(--ink-2)}
.tpl :is(.tpl-lede, .tpl-prose, .tpl-note) a{color:var(--learn-ink); font-weight:var(--fw-bold); text-decoration:none}
.tpl :is(.tpl-lede, .tpl-prose, .tpl-note) a:hover{text-decoration:underline}
.tpl .tpl-ph-fact:is(a), .tpl .tpl-ph-fact a{color:var(--learn-ink); font-weight:var(--fw-bold); text-decoration:none}   /* a fact that is a link (Contact's address) */
.tpl .tpl-ph-fact:is(a):hover, .tpl .tpl-ph-fact a:hover{text-decoration:underline}
/* the cell cursor on a reading page: what it stands on holds its handle; the page's one Enter keycap hides once it shows */
.tpl-reading [data-cursor]{position:relative}
.tpl-reading:has(.cursor-on) .go .ui-cap{display:none}
.tpl-nav{display:flex; flex-wrap:wrap; gap:var(--tpl-in)}
.tpl-body{display:flex; flex-direction:column; gap:var(--tpl-section); min-width:0}
.tpl-reading .ui-table-read{--table-read-px:var(--tpl-in)}
.tpl-reading .ui-table-read td{vertical-align:middle}
.tpl-reading .ui-table-read td.num{white-space:nowrap}
.tpl-reading .ui-table-read td[data-col="art"]{width:1%; padding-right:0}

/* ---------- marketing: the hero (the words at --measure-hero, the product in the tint plate), the proof row ----------
   One scale, --mk-s (the landing's one-screen fit sets --pl-s; 1 elsewhere), grows the whole block as one piece; its type is
   the marketing scale's (--pl-fs-*: --fs-landing's 54, the lede's 18, the body's 15, the small 13, each times --pl-s) */
.tpl-marketing{--mk-s:var(--pl-s, 1); --mk-text:calc(var(--measure-hero) / var(--k) * var(--mk-s)); --mk-gap:calc(var(--s12) * var(--mk-s)); --mk-pad:calc(var(--s6) * var(--mk-s));
  width:max-content; max-width:100%; margin:0 auto; gap:var(--mk-gap)}
.tpl-hero{display:grid; grid-template-columns:var(--mk-text) auto; align-items:center; column-gap:var(--mk-gap)}
.tpl-hero-text{display:flex; flex-direction:column; align-items:flex-start; gap:calc(var(--s6) * var(--mk-s)); min-width:0}
.tpl-hero-text h1{font-size:var(--pl-fs-h1); line-height:var(--lh-landing); font-weight:var(--fw-title); text-wrap:balance}
.tpl-hero-text > p{font-size:var(--pl-fs-lead); line-height:var(--lh-lede); color:var(--ink-2)}
.tpl-hero-text > p:last-child{font-size:var(--pl-fs-small); font-weight:var(--fw-semi)}
.tpl-plate{box-sizing:border-box; display:flex; flex-direction:column; gap:calc(var(--s2) * var(--mk-s)); min-width:0; padding:var(--mk-pad); border-radius:var(--r-plate-mk); background:var(--sheet); box-shadow:inset 0 0 0 1px var(--line)}   /* a white plate with a hairline on the band */
.tpl-marketing > .tpl-band{--band-foot:calc(var(--mk-gap) / 2)}
html[data-shell="landing"] .tpl-marketing > .tpl-band{--band-top:var(--pl-air); --band-foot:0px}   /* the band ends on the air under the proof row, the footer on white under its hairline */
/* the strip (the landing's six chapters) across the band's foot, under the words and the plate; the proof row (a page with
   no sections) under the strip, one even gap from it, closing the band */
.tpl-hero:has(> .tpl-strip){row-gap:calc(var(--s6) * var(--mk-s))}
.tpl-hero > .tpl-strip{grid-column:1 / -1; min-width:0; contain:inline-size; outline:none}   /* it takes the width the words and the plate set, never widens them */
.tpl-hero > .tpl-proof{grid-column:1 / -1}
.tpl-proof{display:flex; flex-wrap:wrap; gap:calc(var(--s6) * var(--mk-s)); margin:0}
.tpl-proof > li{display:flex; align-items:center; gap:calc(var(--s2) * var(--mk-s)); font-size:var(--pl-fs-body)}
.tpl-proof-i{display:grid; place-items:center}
.tpl-proof-i :is(.mk, .mk-play){width:calc(var(--s5) * var(--mk-s)); height:calc(var(--s5) * var(--mk-s))}
.tpl-proof-w{display:flex; flex-direction:column}
.tpl-proof-w > span{color:var(--ink-2)}
/* a fact that links (its words the link), and the row's one grey fact: a locked state's unlock condition (UI-37), its icon the
   ticks' size and the one grey (UI-37 r6) */
.tpl-proof-a{font-weight:var(--fw-bold); color:inherit; text-decoration:none}
button.tpl-proof-a{font:inherit; font-weight:var(--fw-bold); background:none; border:0; padding:0; cursor:pointer; text-align:left}
.tpl-proof-a:hover{text-decoration:underline}
.tpl-proof-grey{color:var(--ink-2)}
.tpl-proof-grey .tpl-proof-i > svg{width:calc(var(--s5) * var(--mk-s)); height:calc(var(--s5) * var(--mk-s)); color:var(--ink-2)}
.tpl-marketing > .tpl-sections{gap:calc(var(--s24) * var(--mk-s))}
/* the landing's one screen (app/landing-page.js landingFitter): the block in the middle of the window, the bar and the
   footer on its column */
html[data-shell="landing"] body > .app{padding-block:0}
@media (min-width:1101px){
  html[data-shell="landing"], html[data-shell="landing"] body{height:100%; overflow:hidden}
  html[data-shell="landing"] body{min-height:0}
  html[data-shell="landing"] body > .app{flex:1 1 auto; min-height:0}
}
html[data-shell="landing"] body > .app:has(.tpl-marketing){max-width:none; padding-inline:0}
html[data-shell="landing"]:has(.tpl-marketing) .tb-in, html[data-shell="landing"]:has(.tpl-marketing) #footMount .footer-in{box-sizing:border-box; max-width:100%; width:calc(var(--pl-col) * var(--mk-s, var(--pl-s)) + var(--pl-spare) + 2 * var(--page-gutter))}
html[data-shell="landing"] .tpl-marketing{margin-block:var(--pl-air) 0}
html[data-shell="landing"] .tpl-marketing:not(.tpl-stack) > .tpl-hero:has(> .tpl-strip){row-gap:var(--pl-gap, calc(var(--s6) * var(--mk-s)))}   /* the fitter's one rhythm: the gaps grow with the air (landing-page.js) */
html[data-shell="landing"] .tpl-marketing > .tpl-hero{padding-bottom:var(--pl-air); column-gap:calc(var(--mk-gap) + var(--pl-spare))}   /* the air under the proof row is the band's, as even as the air over the hero; the footer closes the page */
/* a marketing page with sections (Pricing, For teams): the hero across the frame on the band, the words on the frame's left
   line (the title at --fs-landing, the line at --fs-lede, the price line at --fs-small), the tabs (optional) on the band's
   foot; under it the proof and the sections in a column that takes what the window leaves and scrolls there, never the
   page. One scale, --mk-s, steps the hero's type and the gaps down on a short window so the plans stay in view */
.tpl-mk-page{--mk-s:1; width:100%; margin:0}
@media (max-height:900px){ .tpl-mk-page{--mk-s:.8} }
.tpl-mk-page > .tpl-hero{grid-template-columns:minmax(0, var(--measure-hero)); row-gap:calc(var(--s6) * var(--mk-s))}
.tpl-mk-page > .tpl-hero:has(> .tpl-plate){grid-template-columns:minmax(0, var(--measure-hero)) auto; justify-content:space-between}
.tpl-mk-page .tpl-hero-text{gap:calc(var(--s3) * var(--mk-s))}
.tpl-mk-page{--pl-fs-h1:round(calc(var(--fs-landing) * var(--mk-s)), 1px)}   /* the hero's title: --fs-landing on the page's scale */
.tpl-mk-page .tpl-hero-text h1{outline:none}
.tpl-mk-page .tpl-hero-text > p{font-size:var(--fs-lede)}
.tpl-mk-page .tpl-hero-text > p:last-child:not(:first-of-type){font-size:var(--fs-small); font-weight:var(--fw-semi)}
.tpl-mk-page > .tpl-hero > .tpl-tabs{grid-column:1 / -1}
.tpl-mk-tabs > .tpl-band{--band-foot:0px}
/* a short marketing page (Pricing; a head, not a hero): the reading page's thin band, and one even gap, the group's (as Account's
   band to its column), from the band to the plans and from the plans to the rows, so the whole page shows on a laptop */
.tpl-mk-short{gap:var(--tpl-group)}
.tpl-mk-short > .tpl-band{--band-foot:0px; padding-bottom:var(--tpl-read-pad)}
.tpl-mk-page.tpl-mk-short .tpl-sections{gap:var(--tpl-group)}
.tpl-mk-short .tpl-sections > :first-child{display:flex; flex-direction:column; gap:var(--tpl-in)}   /* the plans and their footnote, one group */
.tpl-mk-page > .tpl-col{--sp-ground:var(--sheet)}
.tpl-mk-page > .tpl-col > .sp-body{position:relative}
.tpl-mk-body{display:flex; flex-direction:column; gap:var(--mk-gap); padding-bottom:var(--tpl-group)}
.tpl-mk-page .tpl-sections{gap:calc(var(--s24) * var(--mk-s))}
.tpl-mk-page .tpl-sections > :not(.tpl-list), .tpl-mk-body > .tpl-proof{pointer-events:auto}   /* the column's fold test leaves the sections out (.tpl-col below); what they hold is pressed as drawn */
.tpl-mk-page [data-cursor]{position:relative}
.tpl-mk-page:has(.cursor-on) .go .ui-cap{display:none}   /* the page's one Enter keycap hides once the cell cursor shows */
.tpl-mk-page .cursor-on:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w)); border-radius:var(--r-btn)}
.tpl-mk-page .go.cursor-on:focus-visible{outline-offset:var(--focus-off)}
/* plans side by side (Pricing): equal width, one height, each card on the kit's padding (--card-pad) */
.tpl-plans{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--tpl-group); align-items:stretch}
.tpl-plans.tpl-plans-2{grid-template-columns:repeat(2, minmax(0, 1fr))}   /* Pricing once club passes are on: Free and Full Access; the clubs row points to passes */
/* the laptop step (UI-65): at the 14px floor Full Access's yearly line needs 4px more than a third of the column, so the plans stand one
   step closer and the line stays whole (the words are his; a two-line sub opened a band under the other two cards, R4) */
@media (min-width:1100px) and (max-width:1700px) and (max-height:1000px){ .tpl-plans{column-gap:calc(var(--s4) * var(--k))} }
.tpl-plans .pc-band{padding-inline:var(--card-pad-x)}
.tpl-plans .pc-body{padding:var(--card-pad-y) var(--card-pad-x)}
.tpl-plans :is(.pc-ticks, .pc-foot){margin-top:0; padding-top:calc(var(--s3) * var(--k))}   /* one step above the list and one above the button: one rhythm in the card (the template zeroes the list's own margin) */
.tpl-plans .pc-ticks{padding-top:var(--tpl-in)}   /* the line above the list brings its own leading, so the list takes the in-group step: the band over the first tick stays inside R4 at 1920x1080 (24.6px with the full step) */
.tpl-plans .pc-foot{margin-top:auto}
.tpl-go-chev{transform:rotate(-90deg); color:var(--ink-2)}   /* a row that is a link ends on the set's chevron */
/* one column of a marketing page's sections (For teams: the form, the rows under it, the tax note) at the reading measure */
.tpl-mk-col{display:flex; flex-direction:column; gap:var(--tpl-group); width:100%; max-width:var(--measure-read); min-width:0}
/* the sections' column starts on the frame's left edge at the reading measure, as a reading page's does (round 5: the title
   under the wordmark on every page): a list under the plans (Pricing's other ways) and a page of one column (For teams) sit
   on the hero's left line */
.tpl-mk-page .tpl-sections > .tpl-list{box-sizing:border-box; width:100%}
.tpl-mk-page .tpl-sections > .tpl-list:not(.pc-ways){max-width:var(--measure-read)}   /* Pricing's rows under the plans share the cards' edges (rule 2) */
.tpl-mk-col > :empty{display:none}
.tpl-mk-col > div:has(> .tpl-list){display:flex; flex-direction:column; gap:var(--tpl-group)}
/* the tabs on the band's foot (For teams' two doors): the band's hairline is their line */
.tpl-mk-page .tpl-tabs .lt-row{margin-inline-start:calc(-1 * var(--tb-tab-pad)); border-bottom:0}   /* the first tab's words on the title's line */
.tpl-mk-page a:not([class]){color:var(--mode-ink); font-weight:var(--fw-semi)}
/* a row whose end holds a field and its button (Have a code?): they take the row's free room up to the side column's width;
   their refusal line under them */
.tpl-row:has(> .tpl-end > form){flex-wrap:wrap; padding-block:var(--s2)}
.tpl-end:has(> form){flex:1 1 auto; justify-content:flex-end; white-space:normal}
.tpl-end > form{flex:0 1 var(--frame-side-w); min-width:0}
.tpl-end .ui-field-help:empty{display:none}
@media (min-width:761px){
  html[data-shell="read"]:has(#root > .tpl-host > .tpl-mk-page), html[data-shell="read"]:has(#root > .tpl-host > .tpl-mk-page) body{height:100%; overflow:hidden}
  html[data-shell="read"]:has(#root > .tpl-host > .tpl-mk-page) body{min-height:0; padding-bottom:0}
  html[data-shell="read"]:has(#root > .tpl-host > .tpl-mk-page) body > .app{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
  html[data-shell="read"] #root:has(> .tpl-host > .tpl-mk-page){flex:1 1 0; min-height:0; display:flex; flex-direction:column}
  .tpl-mk-page{flex:1 1 0; min-height:0}
  .tpl-mk-page > .tpl-col{flex:1 1 0; min-height:0}
}
/* stacked (the fitter's narrow window, or a phone): the words over the product, the page scrolls */
.tpl-marketing.tpl-stack{width:100%; padding-inline:var(--page-gutter)}
.tpl-stack > .tpl-hero{grid-template-columns:minmax(0, 1fr); row-gap:var(--tpl-group)}
.tpl-stack .tpl-plate{justify-self:start; max-width:100%}
.tpl-stack .tpl-tiles-sm{grid-auto-flow:row; grid-template-columns:repeat(3, minmax(0, 1fr))}   /* the strip in two rows of three */

/* ---------- the kinds in miniature (#/styleguide's Templates; tplMiniHtml): each region where its template puts it ---------- */
.tpl-mini{box-sizing:border-box; display:grid; gap:var(--s1); margin:0; aspect-ratio:16 / 10; padding:var(--s2); border:1px solid var(--grid); background:var(--sheet)}
.tpl-mini-r{display:flex; align-items:center; justify-content:center; min-width:0; background:var(--learn-tint); color:var(--learn-ink); font-size:var(--fs-label); font-weight:var(--fw-bold)}
.tpl-mini-app{grid-template:"head head" auto "main side" 1fr "note side" auto / minmax(0, 1fr) 36%}
.tpl-mini-settings{grid-template:"identity identity" auto "tabs tabs" auto "sections side" 1fr / 52% 32%; justify-content:space-between}
.tpl-mini-reading{grid-template:"title title" auto "lede lede" auto "nav nav" auto "side body" 1fr / 16% 48%}
.tpl-mini-marketing{grid-template:"hero product" 1fr "strip strip" auto "proof proof" auto "sections sections" auto / 42% minmax(0, 1fr)}
.tpl-mini-r[data-r="product"]{background:var(--plate-neutral); color:var(--ink-2)}
/* the band in miniature: the tint across the figure behind the head's regions, its hairline at their foot */
.tpl-mini{position:relative; isolation:isolate}
.tpl-mini-band{position:absolute; inset:0 0 auto; z-index:-1; height:var(--mini-band-h); background:var(--band); border-bottom:1px solid var(--line)}
.tpl-mini-settings{--mini-band-h:42%} .tpl-mini-reading{--mini-band-h:52%} .tpl-mini-marketing{--mini-band-h:88%}
.tpl-mini-r[data-band]{background:var(--sheet); color:var(--ink-2); box-shadow:inset 0 0 0 1px var(--line)}
.tpl-mini-marketing .tpl-mini-r[data-r="product"]{background:var(--sheet)}
.tpl-mini-r[data-r="head"]{grid-area:head} .tpl-mini-r[data-r="main"]{grid-area:main} .tpl-mini-r[data-r="side"]{grid-area:side} .tpl-mini-r[data-r="note"]{grid-area:note}
.tpl-mini-r[data-r="identity"]{grid-area:identity} .tpl-mini-r[data-r="tabs"]{grid-area:tabs} .tpl-mini-r[data-r="sections"]{grid-area:sections}
.tpl-mini-r[data-r="title"]{grid-area:title} .tpl-mini-r[data-r="lede"]{grid-area:lede} .tpl-mini-r[data-r="nav"]{grid-area:nav} .tpl-mini-r[data-r="body"]{grid-area:body}
.tpl-mini-r[data-r="hero"]{grid-area:hero} .tpl-mini-r[data-r="product"]{grid-area:product} .tpl-mini-r[data-r="strip"]{grid-area:strip} .tpl-mini-r[data-r="proof"]{grid-area:proof}
.tpl-mini-r[data-r="main"], .tpl-mini-r[data-r="side"], .tpl-mini-r[data-r="sections"], .tpl-mini-r[data-r="body"], .tpl-mini-r[data-r="hero"], .tpl-mini-r[data-r="product"]{min-height:calc(var(--s10) * var(--k))}

/* ---------- a phone: one column; the side column under the main, the identity block stacks ---------- */
@media (max-width:760px){
  .tpl-cols{grid-template-columns:minmax(0, 1fr); row-gap:var(--tpl-section)}
  .tpl-facts{flex-direction:column; align-items:stretch}
  .tpl-fact{grid-template-columns:minmax(0, 1fr) auto}
  .tpl-set-cols{grid-template-columns:minmax(0, 1fr); row-gap:var(--tpl-section)}
  .tpl-set-side{padding-top:0}
  .tpl-id-top{flex-direction:column; align-items:flex-start}
  .tpl-id-plate{max-width:100%}
  .tpl-id-plate .np{flex-wrap:wrap}   /* the name at 36 and its chips wrap on a phone */
  .tpl-act{grid-template-columns:minmax(0, 1fr)}
  .tpl-act > .tpl-act-go{grid-column:1; grid-row:auto; align-items:flex-start}
  /* a computer window this narrow (a laptop zoomed to 200%, UI-55): a page that fits the window stacks its side column under
     the main one, and the column between the bar and the footer scrolls (body > .app), never the page, so the two never
     draw over each other (QA C14, 683x328) */
  html[data-shell="app"] #root:has(> .tpl-host > .tpl-fit, > .tpl-fit){flex:1 0 auto}
  .tpl-fit, .tpl-fit > .tpl-cols{flex:none}
  .tpl-fit > .tpl-cols{grid-template-rows:none}
  .tpl-fit .tpl-main > :last-child{flex:none}
  .tpl-fit .tpl-side{overflow:visible}
  .tpl-list-across, .tpl-tiles{grid-auto-flow:row; grid-auto-columns:auto}
  .tpl-tiles{gap:var(--tpl-in)}
  .tpl-hero{grid-template-columns:minmax(0, 1fr); row-gap:var(--tpl-group)}
  .tpl-marketing{width:100%}
  html[data-shell="app"]:has(#root > .tpl-settings), html[data-shell="app"]:has(#root > .tpl-settings) body{height:auto; overflow:visible}
  html[data-shell="app"]:has(#root > .tpl-settings) body > .app{overflow:visible}
  html[data-shell="app"] #root:has(> .tpl-settings), html[data-shell="app"] #root > .tpl-settings{flex:none; overflow:visible}
  .tpl-settings > .tpl-col, .tpl-settings > .tpl-col > .sp-body{flex:none; overflow:visible; max-height:none !important}   /* a phone: the page scrolls (round 1) */
  .tpl-settings > .tpl-col::after, .tpl-settings > .tpl-col::before, .tpl-settings > .tpl-col > .sp-rail{content:none; display:none}
  .tpl-settings .tpl-sec .mk-set{grid-template-columns:minmax(0, 1fr) auto}
  .tpl-settings .tpl-sec .mk-set > .w, .tpl-settings .tpl-sec .mk-set:has(> .w > .v) > .w{grid-column:1; grid-template-columns:minmax(0, 1fr)}
  .tpl-settings .tpl-sec .mk-set > .c{grid-column:1 / -1; grid-row:auto}
  .tpl-settings .tpl-sec .mk-set:is(:has(> .w > .v), :has(> .c > .ui-btn)) > .c{grid-column:2; grid-row:1; align-self:center}   /* a value or one button sits at the row's end, the same in every row (rule 6); a choice of several stacks under its name */
  .tpl-settings .tpl-sec .mk-set.stack:has(> .c > .ui-btn){align-items:center}
  .tpl-settings .tpl-sec .mk-set.stack:has(> .c > .ui-btn) .n{padding-top:0}
  .tpl-settings .tpl-sec .mk-set .w > .h{grid-column:1}
  .tpl-settings .tpl-sec .mk-set > .pub-name .pub-name-row{grid-template-columns:minmax(0, 1fr) auto}   /* a phone: the name switch's label takes the row, the switch at its end */
  /* a reading page on a phone: the page scrolls (as the settings page's), the side column folds away (its page opens it) */
  .tpl-reading .tpl-col, .tpl-reading .tpl-col > .sp-body{flex:none; overflow:visible; max-height:none !important}
  .tpl-reading .tpl-col::after, .tpl-reading .tpl-col::before, .tpl-reading .tpl-col > .sp-rail{content:none; display:none}
  .tpl-read-grid{grid-template-columns:minmax(0, 1fr)}
  /* a marketing page on a phone: the page scrolls, the plans stack */
  .tpl-mk-page .tpl-col, .tpl-mk-page .tpl-col > .sp-body{flex:none; overflow:visible; max-height:none !important}
  .tpl-mk-page .tpl-col::after, .tpl-mk-page .tpl-col::before, .tpl-mk-page .tpl-col > .sp-rail{content:none; display:none}
  .tpl-plans{grid-template-columns:minmax(0, 1fr)}
  .tpl-mk-page .ui-btn .ui-cap{display:none}   /* a phone has no Enter to press */
  .tpl-reading :is(.go, .btn2) .ui-cap{display:none}   /* a phone has no Enter to press */
}

/* ---- the rail frame (UI-62, UI-76, UI-84; the layout sprint's system 4.3 to 4.6): the outline rail at the left of Home,
        Course and a module page, the main column beside it. One vertical seat for every rail page: the block sits one page-top
        gap under the bar at every size (--tpl-drop-max is 0 since 2026-11-16: the old drop left about 110px of air over the
        title at 2560x1300), and a deep page's crumbs band takes its own height, so the rail's heading and the next step card
        sit on one line on all three pages ---- */
.tpl-railed{gap:0; --tpl-drop:min(var(--tpl-drop-max), max(0px, calc((100vh - var(--top-h) - 2 * var(--frame-v) - var(--tpl-stage-h)) * .4)))}
.tpl-railed > .tpl-crumbs{margin-bottom:var(--frame-v)}
.tpl-frame{flex:1 1 0; min-height:0; display:grid; grid-template-columns:var(--tpl-rail-w) minmax(0, 1fr); column-gap:var(--tpl-side-gap); grid-template-rows:minmax(0, 1fr); margin-top:var(--tpl-drop)}
.tpl-deep > .tpl-frame{margin-top:max(0px, calc(var(--tpl-drop) - var(--tpl-crumbs-h)))}
.tpl-mainsp{min-width:0; min-height:0}
.tpl-railed .tpl-main{min-height:0; gap:var(--tpl-group)}
.tpl-railed .tpl-main > *{flex:none}
html[data-shell="app"] #root:has(> .tpl-host > .tpl-railed){flex:1 1 0; min-height:0}

/* the outline rail: an h2, its rows, one lock label over the chapters never opened */
.tpl-rail{display:flex; flex-direction:column; gap:var(--tpl-group); min-width:0; min-height:0}
.tpl-rail-h{margin:0; font-size:var(--fs-head); line-height:var(--lh-head); font-weight:var(--fw-title)}
.tpl-rail .tpl-row{position:relative}
.tpl-rail .tpl-t{flex-wrap:nowrap; white-space:nowrap; gap:var(--tpl-in)}
.tpl-rail .tpl-t{min-width:0}
.tpl-rail .tpl-rn{min-width:0; white-space:normal; line-height:var(--lh-head)}   /* a long name takes a second line a row's gap before its count, never runs under it (Wolf 2026-11-16 15:11: Finance and Accounting ran into 18 open); the kit's way, as the door's rail (.dr-rail-doc), never an ellipsis (layout audit C1) */
.tpl-rail .tpl-row.is-on{background:var(--plate-neutral); box-shadow:inset var(--focus-w) 0 0 var(--rail-mode, var(--learn))}   /* you are here: the plate, and a bar at its left in the chapter's colour, so the place never rests on weight alone */
.tpl-rail .tpl-row.is-on .tpl-t{font-weight:var(--fw-bold)}
.tpl-rail .tpl-row.is-grey, .tpl-rail .tpl-row.is-grey .tpl-t{color:var(--ink-2); font-weight:var(--fw-body)}   /* a chapter never opened: grey words and its flat mark in the same grey */
.tpl-rail-shut{margin-top:calc(-1 * var(--tpl-group))}
.tpl-rail-lock{display:flex; align-items:center; gap:var(--s2); margin:calc(-1 * var(--tpl-in)) 0 0; padding:0 var(--s2); min-height:var(--menu-row-h); font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink-2); border-bottom:1px solid var(--grid)}
.tpl-rail-n{font-variant-numeric:tabular-nums}

/* the flat mark (the line family, components.css .art-flat); a key with no line keeps its icon's shape as a mask */
.art-mask{background:currentColor; -webkit-mask:var(--art-src) center / contain no-repeat; mask:var(--art-src) center / contain no-repeat}
/* a rail's marks: the one grey at rest, the place in hand in its chapter's or mode's line colour (UI-85 (1), UI-28) */
.tpl-rail :is(.ui-li, .art-flat){color:var(--ink-2)}
.tpl-rail .tpl-row.is-on :is(.ui-li, .art-flat){color:var(--rail-line, var(--rail-mode, var(--ink-2)))}
.tpl-place-locked .tpl-sec-h > .art-flat{color:var(--ink-2)}
.tpl-lead:has(> .art-flat){width:auto}
.tpl-nomark{display:block; width:calc(var(--s5) * var(--k)); height:calc(var(--s5) * var(--k))}
.tpl-lockmark{display:inline-grid; place-items:center; color:var(--ink-2)}

/* the page's head on a rail page: the h1 and its one count straight after it */
.tpl-place > .tpl-sec-head, .tpl-lower > .tpl-sec-head, .tpl-queue > .tpl-sec-head{justify-content:flex-start; gap:var(--tpl-group)}
.tpl-place .tpl-sec-h > :is(.art, .art-flat){margin-right:var(--tpl-in)}
.tpl-place, .tpl-queue, .tpl-lower{gap:var(--tpl-in)}
.tpl-place-n{margin-right:var(--tpl-in)}
.tpl-lower .tpl-sec-h, .tpl-two .tpl-sec-h{font-size:var(--fs-item)}
.tpl-lower > .tpl-sec-head > .tpl-sec-facts{display:flex; flex:1 1 auto; align-items:center; gap:var(--tpl-group); min-width:0}   /* the count after the heading, See all at the far right */
.tpl-all{margin-left:auto; font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--learn-ink); text-decoration:none}
.tpl-all:hover{text-decoration:underline}
.tpl-all:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off); border-radius:var(--r-btn)}
.tpl-all[hidden], .tpl-fill[hidden], .tpl-grow > [hidden]{display:none !important}

/* the modules: the kit's two column list, each row's count and bar a short step from its name */
.tpl-mods .tpl-t{flex-wrap:nowrap; line-height:var(--lh-title)}
.tpl-mods .tpl-meter > .pbar, .tpl-queue .pbar, .tpl-lower .tpl-meter > .pbar{width:calc(var(--tpl-meter-w) / 2)}
.tpl-mods .tpl-meter > b, .tpl-mods .tpl-end > .tpl-n{min-width:calc(var(--s10) * var(--k)); text-align:right}
.tpl-zero > b{font-weight:var(--fw-body); color:var(--ink-2)}   /* a module not started: its count steps back */
.tpl-n{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2); font-variant-numeric:tabular-nums; white-space:nowrap}
.tpl-railed .tpl-row.is-now .tpl-t{color:var(--ink)}   /* the row in hand is marked by its ring; its words stay ink in every chapter */
.tpl-greylist .tpl-row, .tpl-greylist .tpl-t{color:var(--ink-2); font-weight:var(--fw-body)}
.tpl-greylist .tpl-n{font-weight:var(--fw-body)}
.tpl-greylist .tpl-row.is-marked{background:var(--plate-neutral)}
.tpl-greylist .is-marked .tpl-t{color:var(--ink); font-weight:var(--fw-semi)}
.tpl-two .tpl-row, .tpl-steps .tpl-row, .tpl-mods .tpl-row{padding-block:0}
.tpl-two .tpl-txt, .tpl-steps .tpl-txt, .tpl-mods .tpl-txt{padding-block:calc((var(--row-list) - 1lh) / 2); line-height:var(--lh-title)}   /* a two line row keeps a one line row's air over and under its words */
.tpl-time{font-variant-numeric:tabular-nums; font-weight:var(--fw-semi); color:var(--ink)}

/* the two columns under the card (a module page's Lessons and Practice; Home's lower band) */
.tpl-two{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:var(--tpl-side-gap); align-items:start; min-height:0}
.tpl-stack{display:flex; flex-direction:column; gap:var(--tpl-group); min-width:0; min-height:0}
.tpl-two .tpl-sec{gap:var(--tpl-in); min-height:0}
.tpl-two .tpl-t{flex-wrap:nowrap; white-space:normal; line-height:var(--lh-title)}
.tpl-lessons .ui-caps, .tpl-two .tpl-end .ui-caps{flex-wrap:nowrap}

/* hotkey and tip rows */
.tpl-keys{display:grid; grid-auto-flow:column; grid-template-rows:repeat(var(--tpl-key-rows, 6), auto); grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:var(--tpl-side-gap)}
.tpl-keys[data-cols="1"]{grid-template-columns:minmax(0, 1fr)}
.tpl-key{display:flex; align-items:center; justify-content:space-between; gap:var(--tpl-group); min-height:var(--menu-row-h); margin:0; padding:var(--s1) var(--tpl-in); color:var(--ink-2); font-size:var(--fs-small); line-height:var(--lh-title); text-decoration:none; border-bottom:1px solid var(--grid)}
.tpl-key-name{min-width:0; text-wrap:balance}   /* a key's name is a name: a long one ("Previous / next worksheet") wraps to two even lines beside its keys rather than clip them (R6); the audit reads it as text that may wrap (R3) */
.tpl-key.is-done{color:var(--ink); font-weight:var(--fw-semi)}
.tpl-key .ui-caps{flex:none; flex-wrap:nowrap; white-space:nowrap}
a.tpl-key:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
@media (hover:hover){ a.tpl-key:hover{background:var(--chrome)} }
.tpl-tip{justify-content:flex-start; color:var(--ink)}
.tpl-tip .ui-caps{display:inline-flex; vertical-align:middle}

/* the next step card: three lines in three seats, the XP chip beside the button, one height whatever the step */
.tpl-next{min-height:var(--tpl-next-h)}
.tpl-next .tpl-act-eye{color:var(--ink)}
.tpl-next-l{display:inline-flex; align-items:baseline; gap:var(--s2)}
.tpl-next-place, .tpl-next-r{color:var(--ink-2); font-weight:var(--fw-semi)}
.tpl-facts-line{display:flex; flex-wrap:nowrap; align-items:center; gap:var(--s2) var(--s3); min-height:var(--tpl-facts-h); font-size:var(--fs-small); color:var(--ink-2); white-space:nowrap}
.tpl-facts-line b{color:var(--ink); font-variant-numeric:tabular-nums}
.tpl-more{font-weight:var(--fw-semi); font-variant-numeric:tabular-nums}
.tpl-fact-rule{align-self:stretch; width:1px; margin-block:var(--s1); background:var(--line)}
.tpl-next .tpl-act-go{flex-direction:row; align-items:center}
.tpl-next .tpl-act-go .xp-chip{order:-1}
.tpl-next .first-cue::after{inset:calc(var(--btn-edge) * -1); border-radius:var(--btn-r)}
/* the next step button is the site's green in every chapter (UI-84, amends HM-18); the chapter's colour stays on the ring and the marks */
.tpl-next .tpl-go:not(.ui-btn-gold){--primary:var(--learn); --primary-ink:var(--learn-ink); --primary-on:var(--learn-on); --primary-hover:var(--learn-hover); --primary-line:var(--learn-line); --on-fill:var(--learn-on); --m:var(--learn); --m-tint:var(--learn-tint)}
/* Enter is the card's only while nothing else holds the focus: a focused link, row or button takes Enter itself */
.tpl-railed[data-enter-elsewhere] .tpl-next .tpl-go .ui-cap{visibility:hidden}   /* course-nav.js sets it while another control holds the focus, or a row carries its own Enter */
@media (min-width:701px) and (max-width:960px){ .tpl-next.tpl-act{grid-template-columns:minmax(0, 1fr) auto} .tpl-next.tpl-act > .tpl-act-go{grid-column:2; grid-row:2 / span 2; flex-wrap:nowrap} }

/* the card with the finished sheet (UI-107, the study's A4 round): the tile at the left over the card's three lines, then the words,
   then the one filled button with its quiet links under it, all three seats beside one another; the words take what is left
   and the title stays on one line */
.tpl-next.tpl-next-media{grid-template-columns:auto minmax(0, 1fr) auto; grid-template-rows:auto auto 1fr; align-items:start}
.tpl-next-media > .tpl-act-media{grid-column:1; grid-row:1 / span 3; align-self:center; display:flex}
.tpl-next-media > .tpl-act-eye{grid-column:2 / -1; grid-row:1}
.tpl-next-media > .tpl-act-h{grid-column:2; grid-row:2; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; text-wrap:balance}   /* a lesson's long name takes two even lines (the study's A4 course card) */
.tpl-next-media.cp-play > .tpl-act-h{display:block; white-space:nowrap; text-overflow:ellipsis}   /* a drill's name stays on one line at every window */
.tpl-next-media > .tpl-act-body{grid-column:2; grid-row:3; align-self:start}
.tpl-next.tpl-next-media > .tpl-act-go{grid-column:3; grid-row:2 / span 2; align-self:center; flex-direction:column; align-items:stretch}
.tpl-next-media .tpl-act-go .xp-chip{align-self:center}
.tpl-next-quiet{display:flex; justify-content:center; gap:var(--s2)}
.tpl-next-quiet .ui-li{color:var(--ink-2)}   /* Next and Random: each its line icon in the set's one grey before its word (Wolf 17:26: "add a next and random icons") */
@media (max-width:960px){ .tpl-next-media > .tpl-act-media{display:none} .tpl-next.tpl-next-media{grid-template-columns:minmax(0, 1fr) auto} .tpl-next-media > :is(.tpl-act-eye, .tpl-act-h, .tpl-act-body){grid-column:1} .tpl-next.tpl-next-media > .tpl-act-go{grid-column:2} }

/* the step row: a list row with a kind column (Today's queue, a module page's Practice) */
.tpl-kind{flex:none; min-width:var(--tpl-kind-w); font-weight:var(--fw-bold)}
.tpl-name{min-width:0; font-weight:var(--fw-body)}
.tpl-step .tpl-t{flex-wrap:nowrap; white-space:normal; line-height:var(--lh-title)}
.tpl-step .tpl-name{min-width:min-content}   /* a name wraps at its spaces but never cuts a word (R6: the three columns at 2560 left "spreadsheet" past its box) */
.tpl-step.is-done .tpl-name{color:var(--ink-2)}
.tpl-step .tpl-end{gap:var(--s3)}
.tpl-step.is-wait :is(.tpl-kind, .tpl-name, .tpl-time){color:var(--ink-2)}
.tpl-step.is-wait .tpl-kind{font-weight:var(--fw-semi)}
.tpl-queue .is-done .xp-chip{color:var(--ink); font-weight:var(--fw-semi)}
.tpl-done-tick{width:calc(var(--s4) * var(--k)); height:calc(var(--s4) * var(--k)); color:var(--learn)}
.tpl-lockrow{padding-inline:var(--tpl-in); gap:var(--tpl-in)}
.tpl-lockrow > .ui-empty-mark{width:calc(var(--s8) * var(--k))}
.tpl-lockrow .ui-empty-act{margin-left:var(--tpl-in)}
.tpl-lockrow .ui-btn-link{color:var(--learn-ink)}

/* the Daily Race board on Home: a rank, a name, a time; your row on the rail's plate */
.tpl-rank{display:block; min-width:calc(var(--s5) * var(--k)); text-align:right; font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2); font-variant-numeric:tabular-nums}
.tpl-brow .tpl-name{font-weight:var(--fw-body)}
.tpl-brow.is-marked{background:var(--plate-neutral)}
.tpl-brow.is-marked :is(.tpl-name, .tpl-rank){font-weight:var(--fw-bold); color:var(--ink)}

/* a narrow window (150 percent zoom): the rail folds to marks that still name their rows; the main column scrolls inside itself */
@media (max-width:1100px){
  .tpl-railed{--tpl-drop:0px}
  .tpl-frame{grid-template-columns:auto minmax(0, 1fr); column-gap:var(--tpl-group)}
  .tpl-rail-h, .tpl-rail .tpl-rn, .tpl-rail .tpl-end, .tpl-rail-lock > span:last-child{display:none}
  .tpl-rail-ch .tpl-txt{display:none}
  .tpl-rail-lock{justify-content:center; padding:0}
  .tpl-next-place{display:none}
}
@media (max-width:1100px), (max-height:560px){ .tpl-rail{overflow-y:auto; scrollbar-width:none} }
@media (min-width:761px) and (max-width:1100px){ .tpl-rail-head > :not(.tpl-rail-h){display:none} }   /* the index rail's count and search fold with its names, so the rail is the marks alone (spec narrow-1119 section C step 7) */
@media (max-width:760px){
  .tpl-frame{grid-template-columns:minmax(0, 1fr); grid-template-rows:auto minmax(0, 1fr); row-gap:var(--tpl-in)}
  .tpl-rail{overflow:visible}
  .tpl-rail .tpl-li:not(:has(> .is-on)), .tpl-rail-lock, .tpl-rail-shut:not(:has(.is-on)){display:none}
  .tpl-rail .tpl-rn, .tpl-rail-ch .tpl-txt{display:revert}
  .tpl-two{grid-template-columns:minmax(0, 1fr); row-gap:var(--tpl-group)}
  .tpl-facts-line{flex-wrap:wrap; white-space:normal}
  .tpl-railed > .tpl-crumbs li:last-child{display:none}
  /* the crumb strip's air on a phone (A-grade pass): the page's gap here is the group's when it has a head, so the strip never
     sits on the card under it (Manage, a player's page) */
  .tpl-app:has(> .tpl-head > :not(.tpl-ph, .tpl-ph-end)) > .tpl-crumbs{margin-bottom:calc(var(--frame-v) - var(--tpl-group))}
  /* a rail page that fits the window, in a computer window this narrow (a laptop zoomed to 200%, UI-55): as the fit pages
     above, the rail and the main column stack at their own heights and the column between the bar and the footer scrolls
     (body > .app), never the page; a frame sized to the window's leftover would draw nothing in a short window (QA C14,
     683x328: Home's main column was 0 tall) */
  html[data-shell="app"] #root:has(> .tpl-host > .tpl-railed.tpl-fit){flex:1 0 auto}
  .tpl-fit > .tpl-frame{flex:none; grid-template-rows:none}
  .tpl-fit .tpl-mainsp, .tpl-fit .tpl-mainsp > .tpl-main{flex:none; overflow:visible; max-height:none}
  .tpl-fit .tpl-mainsp::before, .tpl-fit .tpl-mainsp::after, .tpl-fit .tpl-mainsp > .sp-rail{content:none; display:none}
}
/* a module page's two columns give way on a short window: Lessons scrolls inside its own list, never the page */
.tpl-railed .tpl-main > .tpl-two-fit{flex:0 1 auto; min-height:0; grid-template-rows:minmax(0, 1fr)}
.tpl-two-fit > .tpl-stack-l, .tpl-two-fit .tpl-lessons, .tpl-two-fit .tpl-lessons > .tpl-sec-body{display:flex; flex-direction:column; min-height:0; max-height:100%}
.tpl-railed .tpl-main > .tpl-fine{margin:auto 0 0; font-size:var(--fs-min); color:var(--ink-2)}   /* the independence line at the foot of Course (the IP audit) */

/* ---- Compete (UI-88; app/compete-page.js; the layout sprint's round 3): one page on the rail frame. The card, the head (the
        mode's mark and name, the scope chips at the right), then two columns at three fifths and two fifths on one row grid:
        every heading, row, label and gap is one unit tall (--row-u: a board row and its rule), so every rule runs across both
        columns. The fit (fitCompete) opens whole rows only, so the page never scrolls ---- */
.cp .tpl-main{margin-inline:calc(-1 * var(--s1)); padding-inline:var(--s1)}   /* room for a focus ring at the column's edges */
.cp-rail .tpl-end .mk{flex:none}
.cp-place > .tpl-sec-head{align-items:center; min-height:var(--chip-h-lg)}
.cp-hmark{display:inline-grid; place-items:center; margin-right:var(--tpl-in)}
.cp-head-end{margin-left:auto; display:inline-flex; align-items:center; gap:var(--tpl-group)}
.cp-scope{flex-wrap:nowrap}
.cp-menu .mk-row{white-space:nowrap}
.cp-mk-shut .mk-name{color:var(--ink-2)}
.cp-lockover{flex:none}
/* the card after a run: the result stands in the title's seat at the clock size, the run's name moves up to the eyebrow */
.cp-result .tpl-act-h{font-size:var(--fs-clock); font-weight:var(--fw-heavy); font-variant-numeric:tabular-nums}
.cp-eyemode{display:inline-grid; place-items:center; align-self:center}
.cp-eyemode .art-flat{width:calc(var(--s4) * var(--k)); height:calc(var(--s4) * var(--k))}
.cp-tier{display:inline-flex; align-items:center; gap:var(--s2)}
.cp-paid .tpl-next-l{align-items:center}

.cp-two{flex:1 1 auto; grid-template-columns:minmax(0, 3fr) minmax(0, 2fr); align-items:start; --row-list:var(--board-row-h)}
.cp-two > .tpl-stack{gap:var(--row-u)}
.cp-two.cp-three{grid-template-columns:minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr)}   /* from 2400 wide the keys band takes its own column (compete-page.js placeKeys; UI-116 width buys columns) */
.cp-two .cp-band{gap:0}
.cp-two .cp-band[hidden]{display:none}
.cp-two .cp-band > .tpl-sec-head{box-sizing:border-box; height:var(--row-u); min-height:0; flex-wrap:nowrap; align-items:center; border-bottom:1px solid var(--line); white-space:nowrap}
.cp-band > .tpl-sec-head > .tpl-sec-facts{display:flex; flex:1 1 auto; align-items:center; gap:var(--tpl-group); min-width:0}
.cp-fact{font-size:var(--fs-small); color:var(--ink-2); font-variant-numeric:tabular-nums}
.cp-all{margin-left:auto}
.cp-two .tpl-list{border-top:0}
.cp-two .tpl-li{box-sizing:border-box; height:var(--row-u)}
.cp-two .tpl-li[hidden]{display:none}
.cp-two .tpl-row{min-height:0; height:100%; padding-block:0}
.cp-two .tpl-txt{padding-block:0}
.cp-two .tpl-t{white-space:nowrap}
.cp-two .ui-empty{box-sizing:border-box; height:var(--row-u); min-height:0; padding-block:0}
.cp-two .tpl-key{box-sizing:border-box; height:var(--row-u); min-height:0; padding-block:0; white-space:nowrap}
.cp-boardsec > .tpl-sec-body{min-width:0}

/* the board on the kit's rows: the place, the player, the gap seat, the figure; no head row in sight (a screen reader has one) */
.cp-board{--board-cols:var(--board-c-rank) minmax(0, 1fr) auto auto; --board-px:var(--tpl-in); --mt:color-mix(in srgb, var(--mode-line) var(--board-me), var(--sheet)); min-width:0}
.cp-board .ui-board-row{box-sizing:border-box; height:var(--row-u); min-height:0; column-gap:var(--s3)}
.cp-board .ui-board-row.cp-nogap, .cp-board .ui-board-row.cp-wait{grid-template-columns:var(--board-c-rank) minmax(0, 1fr) auto}
.pg-compete .cp-cut{display:none}   /* a row past the fit's cut (compete-page.js fitCompete) */
.cp-board .ui-board-row.cp-nogap > .cp-gap{display:none}   /* a row with no gap to show (the page sets it: no :has() on a row, a style pass a key) */
.cp-board .ui-board-time{min-width:calc(var(--s10) * var(--k) + var(--s2)); font-family:var(--font); font-weight:var(--fw-semi)}
.cp-board .is-me .ui-board-time{font-weight:var(--fw-heavy)}
.cp-board .np{flex-wrap:nowrap}
.cp-board .av-row{--av:calc(var(--board-row-h) - var(--s2))}   /* the tile keeps a little of the row over and under it */
.cp-board .np > .ui-chip{flex:none}
.cp-board .np-name{font-weight:var(--fw-semi); overflow:visible; text-overflow:clip}
.cp-board .is-me .np-name{font-weight:var(--fw-heavy)}
.cp-board .np-chip{border:1px solid var(--ink); background:var(--sheet); color:var(--ink)}   /* the You chip in ink: green stays the one action's */
.cp-no-level .lvl-chip{display:none}
.cp-board .ui-board-body .ui-board-row:nth-child(even):not(.is-me):not(.is-ghost){background:none}   /* ruled by the grid, no zebra: your row is the one fill */
.cp-board .ui-board-row.cp-quiet{background:none; box-shadow:none}
.cp-gap{font-size:var(--fs-min); font-weight:var(--fw-body); color:var(--ink-2); white-space:nowrap}
.cp-gap b{font-weight:var(--fw-semi); color:var(--ink)}   /* the figure in ink, its word in grey */
/* the top rows: the kit's scroll list cut to whole rows; no foot fade */
.cp-sp{flex:none}
.cp-sp::before, .cp-sp::after{content:none}
.cp-rows{scroll-snap-type:y mandatory}
.cp-rows > .ui-board-row{scroll-snap-align:start}
/* Around you: a label one row tall on the board's own rule, then the rows beside yours */
.cp-around[hidden], .cp-near > [hidden]{display:none}
.cp-around-h{box-sizing:border-box; display:flex; align-items:center; height:var(--row-u); margin:-1px 0 0; padding:0 var(--tpl-in); border-top:1px solid var(--line); border-bottom:1px solid var(--grid); font-size:var(--fs-min); font-weight:var(--fw-bold); color:var(--ink-2)}
.cp-near .ui-board-row.is-near{border-bottom:1px solid var(--grid)}
.cp-foot .ui-board-row{color:var(--ink-2)}   /* a waiting row is grey: a row with a result is ink */
.cp-foot .ui-board-rank:empty{visibility:hidden}
.cp-waitword{font-size:var(--fs-small)}
.cp-club .team-tag{display:none}   /* every row of a club's own board is the club's */
/* the guest's place: the kit's dashed row on the board's own columns, its one ask an outlined button */
.cp-near .ui-board-row.is-ghost{grid-template-columns:var(--board-c-rank) minmax(0, 1fr) auto auto; column-gap:var(--s3); margin:var(--bw-2) 0; padding:0 calc(var(--tpl-in) - 1px); height:calc(var(--row-u) - 2 * var(--bw-2))}
.cp-near .ui-board-row.is-ghost .ui-board-who{gap:var(--s2)}
.cp-ghost-n{font-weight:var(--fw-semi); color:var(--ink-2); white-space:nowrap}
.cp-ghost-act .ui-btn{height:calc(var(--board-row-h) - var(--s2) - 2 * var(--bw-2)); min-height:0}
.cp-near .ui-board-row.is-ghost .ui-board-time{color:var(--ink); font-weight:var(--fw-heavy)}
/* the empty row on the board's own seats: the empty cell in the avatar's seat, so its line starts on every name's edge */
.cp-board .cp-empty{display:grid; grid-template-columns:var(--board-c-rank) minmax(0, 1fr); column-gap:var(--s3); align-items:center; padding:0 var(--board-px)}
.cp-board .cp-empty .ui-board-who{gap:var(--s2)}
.cp-emark{display:inline-grid; place-items:center; width:var(--av); height:var(--av); background:none; color:var(--ink-2)}
.cp-emark .mk-cell{width:100%; height:100%}
.cp-eline{color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cp-fail .ui-board-who{justify-content:space-between}
.cp-listlock{border-bottom:1px solid var(--grid)}
.cp-listlock .ui-empty-line{font-weight:var(--fw-body)}

/* Times to beat, the pick list, the keys: rows one unit tall */
.cp-trow .tpl-t{gap:var(--s3); flex-wrap:nowrap}
.cp-trow .tpl-kind{min-width:calc(var(--tpl-kind-w) * .92)}
.cp-trow .tpl-end, .cp-pick .tpl-end{gap:var(--s3)}
.cp-shut .cp-trow, .cp-shut .tpl-kind{color:var(--ink-2)}
.cp-shut .tiers i{border-color:var(--edge)}
.cp-shut .tiers i.on{background:var(--edge)}
.cp-pick{width:100%; text-align:left}
.cp-pick .tpl-name{font-weight:var(--fw-body)}
.cp-pick.is-on{background:var(--plate-neutral); box-shadow:inset var(--focus-w) 0 0 var(--mode)}   /* the row in hand: the rail's own mark */
.cp-pick.is-on .tpl-name{font-weight:var(--fw-bold)}
.cp-pick:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
.cp-keysec .tpl-key{color:var(--ink); gap:var(--s3)}
.cp-keysec .tpl-key:not(.is-done){color:var(--ink-2)}
.cp-keysec .tpl-key.is-done{font-weight:inherit}   /* learned is said by the ink alone: one weight down the list (R3) */
.cp-keysec .tpl-key-name{flex:0 1 auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cp-keysec .tpl-key > .ui-caps{margin-left:auto}   /* the caps at the row's right edge, the module's number beside the name */
.cp-modn{flex:none; font-size:var(--fs-min); font-weight:var(--fw-semi); color:var(--ink-2); font-variant-numeric:tabular-nums}
.cp-no-modn > .cp-modn{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}   /* a row too tight for its name and its number: the number steps out of sight (a screen reader keeps it, as .sr-only), never the name cut (fitCompete) */

/* Your week: one row of a sheet, two units tall: a grey head band of seven day letters over seven cells. A played day holds
   its medal, or its score right aligned as a sheet holds a number; today's head is lit and its cell holds the cell cursor */
.cp-week{box-sizing:border-box; height:calc(2 * var(--row-u)); display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); border:1px solid var(--line); border-top:0; background:var(--sheet)}
.cp-wk{position:relative; display:grid; grid-template-rows:4fr 6fr; min-width:0; border-left:1px solid var(--grid)}
.cp-wk:first-child{border-left:0}
.cp-wk-d{display:grid; place-items:center; background:var(--chrome); border-bottom:1px solid var(--line); font-size:var(--fs-min); font-weight:var(--fw-semi); color:var(--ink-2)}
.cp-wk-v{display:flex; align-items:center; justify-content:flex-end; padding:0 var(--s1); font-size:var(--fs-small); font-variant-numeric:tabular-nums; color:var(--ink); white-space:nowrap}
.cp-wk-tier{justify-content:center}
.cp-wk.is-best .cp-wk-v{font-weight:var(--fw-heavy)}
.cp-wk.is-today .cp-wk-d{background:var(--xl-hdr); color:var(--xl-hdr-ink); font-weight:var(--fw-bold)}
.cp-wk-cur{position:absolute; left:-1px; right:-1px; bottom:-1px; top:40%; border:var(--cursor-w) solid var(--cell-cursor); pointer-events:none}
.cp-wk-cur::after{content:''; position:absolute; right:calc(-1px - var(--cursor-w)); bottom:calc(-1px - var(--cursor-w)); width:var(--cursor-handle); height:var(--cursor-handle); background:var(--cell-cursor); outline:1px solid var(--sheet)}
@media (max-width:760px){ .cp-two{grid-template-columns:minmax(0, 1fr)} .cp-head-end{margin-left:0} .cp-place > .tpl-sec-head{flex-wrap:wrap} }
/* the scaling rule's third column (option A, spec scaling-1118 section 2; a preview for Wolf's pick): from 2400 wide a page
   gets three list columns (--tpl-ncols), none wider than --tpl-col-max. A module page's Hotkeys stop sitting under Lessons and
   Practice and take the third column beside them, the three columns sharing the width evenly (2fr for the two lists, 1fr for
   Hotkeys; a fixed track would leave Hotkeys at its cap and squeeze the lists); the card and the head still span the main column */
@media (min-width:2400px){
  .tpl-railed .tpl-main:has(> .tpl-two-fit + .tpl-keysec){display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); max-width:calc(var(--tpl-ncols) * var(--tpl-col-max) + (var(--tpl-ncols) - 1) * var(--tpl-side-gap)); grid-template-rows:auto auto minmax(0, 1fr); column-gap:var(--tpl-side-gap); align-content:start}
  .tpl-railed .tpl-main:has(> .tpl-two-fit + .tpl-keysec) > *{grid-column:1 / -1}
  .tpl-railed .tpl-main:has(> .tpl-two-fit + .tpl-keysec) > .tpl-two-fit{grid-column:1; grid-row:3}
  .tpl-railed .tpl-main:has(> .tpl-two-fit + .tpl-keysec) > .tpl-keysec{grid-column:2; grid-row:3; align-self:start}
  .tpl-railed .tpl-main:has(> .tpl-two-fit + .tpl-keysec) > .tpl-keysec .tpl-keys{grid-auto-flow:row; grid-template-rows:none; grid-template-columns:minmax(0, 1fr)}   /* one column of keys in its own column */
}
/* Home at 1920 (option A, UI-116: width buys columns; the check of 2026-11-19, Wolf 00:21 "did the big-screen spacing reach the
   other pages"): with nothing in For you, Today sat over the club in a 536px column, the main column's right half empty. From
   1800 wide Today and the club sit side by side under the hero, as at 2560; a laptop keeps them stacked */
@media (min-width:1800px) and (max-width:2399.98px){
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])):has(.fy-two > .tpl-stack-r:empty){display:grid; grid-template-columns:repeat(var(--tpl-ncols), minmax(0, 1fr)); column-gap:var(--tpl-side-gap); align-content:start}
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])):has(.fy-two > .tpl-stack-r:empty) > *{grid-column:1 / -1}
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])):has(.fy-two > .tpl-stack-r:empty) > .tpl-queue{grid-column:1; grid-row:2; align-self:start}
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])):has(.fy-two > .tpl-stack-r:empty) > .fy-two{grid-column:2; grid-row:2; align-self:start; grid-template-columns:minmax(0, 1fr)}
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])):has(.fy-two > .tpl-stack-r:empty) > .tpl-queue .tpl-list-two{grid-template-columns:minmax(0, 1fr)}
  .fy-two > .tpl-stack-r:empty{display:none}
}
/* Home: the scaling rule's columns at 2560 (option A, spec scaling-1118; the check of 2026-11-18: Today and the club sat in a 740px
   column under a 1525px hero, the right third empty): from 2400 wide Today and the blocks under it sit side by side under the
   hero, the last ending on the hero's right edge. Today, For you and the club as three columns; Today and the club as two */
@media (min-width:2400px){
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])){display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 2fr); column-gap:var(--tpl-side-gap); align-content:start}
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])):has(.fy-two > .tpl-stack-r:empty){grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])) > *{grid-column:1 / -1}
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])) > .tpl-queue{grid-column:1; grid-row:2; align-self:start}
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])) > .fy-two{grid-column:2; grid-row:2; align-self:start}
  .tpl-railed .tpl-main:has(> .tpl-queue + .fy-two:not([hidden])) > .tpl-queue .tpl-list-two{grid-template-columns:minmax(0, 1fr)}   /* its own column: one list column */
  .fy-two:has(> .tpl-stack-r:empty){grid-template-columns:minmax(0, 1fr)}
  .fy-two > .tpl-stack-r:empty{display:none}
}
/* ---- the index template (tpl-index; the Drills page, UI-99, spec scaling-1118 section 3; app/compete-page.js): the rail is
        the page's head and the chapters as a filter (All first), the main column the chip row and the search over one table of
        every drill (its head fixed, its rows scrolling inside it), the side column the drill in hand's card and This week. The
        rail, the side, the gaps, the row height and the columns are the index's tokens (--idx-*), so the laptop, the 1080p
        window and the 1440p window each get their own without a rule here ---- */
.tpl-index .tpl-frame{grid-template-columns:var(--idx-rail-w) minmax(0, 1fr); column-gap:var(--idx-gap)}
.tpl-rail-head{display:flex; flex-direction:column; align-items:flex-start; gap:var(--tpl-in)}
.dx-q{align-self:stretch; margin-top:var(--tpl-in)}
.dx-q .ui-field, .dx-q input{width:100%}
.dx-meter .pbar{width:var(--tpl-meter-w)}
.pg-drills .tpl-railed .tpl-main > .dx-two, .cs-page .tpl-railed .tpl-main > .dx-two{flex:1 1 auto; min-height:0; grid-template-columns:minmax(var(--idx-list-min), 1fr) minmax(var(--idx-side-min), var(--idx-side-w)); grid-template-rows:minmax(0, 1fr); column-gap:var(--idx-gap); align-items:stretch}   /* the side card takes spare room up to its cap and gives it back first; the list never goes under its floor (spec narrow-1119 section C) */
.dx-two > .tpl-stack-l{display:flex; flex-direction:column; min-height:0; max-height:100%}
/* the list answers to its own box, not the window: under its floor with Best the Drills list drops Best (the side card shows it), from its
   head and its rows alike, so the reading order loses it too. Not on a phone, which keeps its own columns */
@media (min-width:761px){ .dx-two > .tpl-stack-l{container:idx-list / inline-size} }
/* the threshold is the list's floor with Best: the laptop's four fixed tracks (76 80 52 44), the name's 144 floor, four column
   gaps and two paddings (448 at k 1); above 1700 wide the list never comes near it */
@container idx-list (width < 448px){
  .pg-drills .dx-index{--tpl-cols:var(--idx-cols-compact)}
  .pg-drills .dx-index .tpl-end > :nth-child(2){display:none}
  .cs-page .cs-index{--tpl-cols:var(--idx-cols-compact)}
  .cs-page .cs-index .tpl-end > :nth-child(1){display:none}
}
/* Course drops Level the same way (the card shows it): its floor with Level is 480 at k 1 (72 76 96 44, the name's 144, six
   gaps) and 446 at the laptop's .9, which the 448 above covers; at k 1 it drops under 480 */
@media not ((min-width:1100px) and (max-width:1700px) and (max-height:1000px)){
  @container idx-list (width < 480px){
    .cs-page .cs-index{--tpl-cols:var(--idx-cols-compact)}
    .cs-page .cs-index .tpl-end > :nth-child(1){display:none}
  }
}
.dx-two > .tpl-stack-r{min-height:0; overflow:hidden}
.dx-index{flex:1 1 auto; display:flex; flex-direction:column; gap:var(--tpl-in); min-height:0;
  --tpl-cols:var(--idx-cols)}   /* the number and state, the name, Level, Best, Pass, Chapter (spec section 3, "Columns") */
.dx-index > *{flex:none}
.dx-table{flex:0 1 auto; display:flex; flex-direction:column; min-height:0}
.dx-table > .dx-sp{flex:0 1 auto; min-height:0; overflow:visible clip}   /* the rows scroll in their body; the panel clips them down the page, never its rail at the side */
.dx-index .tpl-list-cols :is(.tpl-row, .tpl-end){column-gap:var(--tpl-in)}   /* one even gap between every column, the rows and the head alike */
.dx-index .tpl-end > :first-child{justify-self:start}   /* Level sits left; Best and Pass right, tabular; the chapter left */
.dx-rows .tpl-t{min-width:0}
/* a row is one --idx-row-h; a name too long for its column takes a second line (the Course rows' way, never an ellipsis: layout
   rule 9, R6), its row grows by a line with a one line row's air over and under its words */
.dx-rows .tpl-list{border-top:0}
.dx-rows .tpl-li{height:auto; min-height:var(--idx-row-h)}
.dx-rows .dx-row{min-height:var(--idx-row-h); padding-block:0; font-size:var(--fs-body); align-items:center}
.dx-rows .dx-row .tpl-txt{padding-block:calc((var(--idx-row-h) - 1lh) / 2); line-height:var(--lh-title)}
.dx-rows .dx-row .tpl-t{white-space:normal; flex-wrap:nowrap}
.dx-rows .tpl-name{text-wrap:balance}
.pg-drills .dx-rows .tpl-name{max-height:2lh; overflow-y:clip}   /* a drill's name takes two lines at most (spec narrow-1119 section C step 3), cut at the line and never an ellipsis (R6) */
.dx-rows .dx-num{color:var(--ink-2)}
.dx-rows .dx-row{box-shadow:inset var(--bw-2) 0 0 var(--dx-ch, transparent)}   /* the drill's chapter as a thin left edge (UI-136, the edge UI-104 gave module rows) */
.dx-rows .dx-row .dx-num{color:var(--dx-ch-ink, var(--ink-2))}   /* its number in the chapter's ink, which passes as text where the line step may not */
.dx-rows .dx-row.is-on{box-shadow:inset var(--focus-w) 0 0 var(--dx-ch, var(--mode))}   /* the row in hand: the same edge, at the rail's width */
.dx-row.is-on .tpl-name{font-weight:var(--fw-body)}   /* the row in hand is said by its plate and its bar: one weight down the index (R3) */
.dx-row.is-on{background:var(--drills-tint)}
.dx-head .tpl-head-row{box-sizing:border-box; height:var(--idx-head-h); min-height:0; padding:0 var(--tpl-in); align-items:center}
.dx-head .tpl-end > :nth-child(2), .dx-head .tpl-end > :nth-child(3), .dx-rows .dx-n{justify-self:end}   /* numbers right aligned under their heads (UI-37) */
.dx-index .tpl-lead{display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; justify-items:start; column-gap:var(--tpl-in); width:auto}
.dx-num{font-family:var(--mono); font-size:var(--fs-body); font-weight:var(--fw-bold); font-variant-numeric:tabular-nums; white-space:nowrap}
.dx-mark{display:grid; place-items:center}
.dx-rows .tpl-end{font-weight:var(--fw-body)}
.dx-best{display:inline-flex; align-items:center; gap:var(--s2); color:var(--ink); font-weight:var(--fw-semi); white-space:nowrap}   /* the best is the learner's own figure: ink */
.dx-tiers{display:none}
.dx-rows .dx-n{font-variant-numeric:tabular-nums; white-space:nowrap}
.dx-rows .tpl-t{display:flex; align-items:center; gap:var(--s2)}
.dx-rows .dx-lock{flex:none; margin-left:auto; font-size:var(--fs-small); color:var(--ink-2); white-space:nowrap}   /* a drill still ahead: its unlock condition at the Drill column's right edge */
.dx-row.is-shut :is(.tpl-name, .dx-num){color:var(--ink-2)}
.dx-row.is-shut .tpl-end > *{color:var(--ink-2)}
.dx-row.is-locked .ui-chip-dot{background:var(--line)}   /* a locked row is one grey: its Level chip's dot too */
@media (min-width:1800px){ .dx-tiers{display:inline-flex} }
/* the locked block's one divider: a lock, With Full Access and the plain Get Full Access at its right (UI-37: said once) */
.dx-divider{min-height:var(--idx-row-h); padding:0 var(--tpl-in); gap:var(--tpl-in); border-bottom:1px solid var(--grid); background:var(--plate-neutral); font-size:var(--fs-body)}
.dx-divider .ui-empty-line{font-weight:var(--fw-bold); color:var(--ink-2)}
.dx-divider .ui-empty-act{margin-left:auto}
.dx-divider .ui-btn-link{color:var(--learn-ink); font-size:var(--fs-small)}   /* the same small link as the Best head's sort (R3: one kind, one look) */
.dx-list > .dx-none{border-bottom:1px solid var(--grid)}
/* the chip row: two groups, the group gap between them; the search at the line's right */
.dx-chips{display:flex; flex-wrap:wrap; align-items:center; gap:var(--tpl-group); row-gap:var(--tpl-in); min-width:0}
.dx-chips > .ui-chips{flex-wrap:wrap}   /* a short row takes its chips on to a second line, never clipped and never under a neighbour (spec narrow-1119 section C step 6) */
/* the Best head: the sort's button, the column's name and the caret (grey at number order, ink once sorted) */
.dx-sorthead{justify-self:end}
.dx-sort, .dx-sort:hover{color:var(--ink-2)}   /* the kit's link button in the head's grey (its own weight, so it reads as the one control in the head), its caret the set's one grey */
.dx-sort .dx-caret{color:var(--edge)}
.dx-sort:not(.is-on) .dx-caret{visibility:hidden}   /* no caret until a sort is on (number order is the table's own order); its room is kept, so the head never shifts */
.dx-sort.is-on, .dx-sort.is-on .dx-caret{color:var(--ink)}
/* the side card: the still on top, the place, the name, the Level, Times to beat, Start with Next and Random under it */
.tpl-next.dx-card{flex:none; display:flex; flex-direction:column; align-items:stretch; gap:var(--tpl-in); min-height:0}
.tpl-next.dx-card > :is(.tpl-act-media, .tpl-act-eye, .tpl-act-h, .tpl-act-body, .tpl-act-go){flex:none; align-self:stretch}   /* one left edge and one right edge for every part (the check of 2026-11-18: the times hugged the left, Start sat centred) */
.dx-card > .tpl-act-media{display:flex; justify-content:flex-start; min-width:0}
.dx-card .ui-thumb{flex:0 1 auto; max-width:100%; min-width:0}
.dx-card .ui-thumb-frame{max-width:min(100%, calc(var(--thumb-w) * var(--thumb-k))); padding:calc(var(--s2) * var(--thumb-k))}
/* one picture box for every drill (Wolf 2026-11-19 02:45: "the animation things on the drill page are all slightly different sizes"):
   on the side card the frame fills the slot whatever the drill's crop, and the sheet sits in its middle, so arrowing down the
   table never moves or resizes the box (UI-118) */
.dx-card .ui-thumb-at{width:100%; height:100%}
.dx-card .ui-thumb-frame{display:flex; align-items:center; justify-content:center; width:100%; height:100%}   /* the sheet's air inside the frame (the Fable check of 2026-11-18): end-states.js DRILL_TILE.pad at k 1 */
.dx-card > .tpl-act-eye{justify-content:flex-start}
.dx-card > .tpl-act-h{font-size:var(--fs-item); white-space:normal; text-wrap:balance}
.dx-card > .tpl-act-body{flex-direction:column; align-items:stretch; gap:var(--tpl-in)}
.dx-card .tpl-next-more{display:block}
.dx-card .dx-level{background:var(--sheet)}   /* the Level chip keeps its ground on the card's grey (the check of 2026-11-18) */
.dx-times{border-top:1px solid var(--grid)}
@media (min-width:1800px){ .dx-times{max-width:calc(var(--thumb-w) * var(--k))} }   /* on a big window the times sit by their labels: the laptop card's width at most, never a wide sparse row (rule 4) */
.dx-times .tpl-row{min-height:var(--row-read); padding-block:var(--s1)}
.dx-times .tpl-t{display:flex; align-items:center; gap:var(--s2); white-space:nowrap}
.dx-times .tpl-end{display:inline-flex; align-items:center; gap:var(--s2)}
.dx-card > .tpl-act-go{display:flex; flex-direction:column; align-items:stretch; gap:var(--s1)}
.dx-card .tpl-go{width:100%; justify-content:center}
/* the narrow band (UI-132, Wolf's pick 2026-11-19 17:07 UTC: "Under about 860 wide, the side card becomes one bar under the list
   with the name, level and Start"): from 900 wide down to the phone, at the site's shared 900 breakpoint, Drills and Course are
   one column and the side card is a Start bar under the list: the name, the Level chip and the one filled button with its Enter
   cap. The picture, the eyebrow, the times, Next and Random, the XP chip and This week step out; the list gets its whole width
   back, so Best and Level return */
@media (min-width:761px) and (max-width:900px){
  .pg-drills .tpl-railed .tpl-main > .dx-two, .cs-page .tpl-railed .tpl-main > .dx-two{grid-template-columns:minmax(0, 1fr); grid-template-rows:minmax(0, 1fr) auto; row-gap:var(--tpl-in)}
  .dx-two > .tpl-stack-r{overflow:visible}
  .dx-two > .tpl-stack-r > .dx-week{display:none}
  .tpl-next.dx-card{flex-direction:row; align-items:center; gap:var(--tpl-group)}
  .tpl-next.dx-card > :is(.tpl-act-media, .tpl-act-eye){display:none}
  .dx-card :is(.tpl-next-more, .tpl-next-quiet, .xp-chip){display:none}
  .tpl-next.dx-card > :is(.tpl-act-h, .tpl-act-body, .tpl-act-go){align-self:center}
  .tpl-next.dx-card > .tpl-act-h{flex:0 1 auto; min-width:0}
  .tpl-next.dx-card > .tpl-act-body{flex:1 1 auto}
  .dx-card .tpl-go{width:auto}
}
/* This week under the card: its head carries the Everyone and club switch and See all (Alt+W) */
.dx-week > .tpl-sec-head{flex-wrap:nowrap; gap:var(--tpl-in)}
.dx-week .tpl-sec-facts{display:flex; align-items:center; gap:var(--tpl-in); min-width:0; flex:1 1 auto}
.dx-week .cp-fact{display:inline-flex; align-items:center; gap:var(--tpl-in); min-width:0}
.dx-wfact{display:none}
/* the side's short board: the player's tile, name, club tag and time (the level chip steps aside, and the You chip) */
.dx-two .cp-board :is(.lvl-chip, .np-chip){display:none}
.dx-two .cp-board .np-name{overflow:hidden; text-overflow:ellipsis}
.dx-two .cp-board .cp-empty{grid-template-columns:minmax(0, 1fr)}
.dx-two .cp-board .cp-empty > .ui-board-rank{display:none}
/* the rail: All first, then each chapter's number and passed count (at the laptop the count is the passed number alone) */
.dx-rail .tpl-t > .dx-num{color:var(--ink-2)}
.dx-rail .tpl-row.is-on .tpl-t > .dx-num{color:var(--ink)}
.dx-of-short{display:none}
@media (min-width:1100px) and (max-width:1700px) and (max-height:1000px){ .dx-of-long{display:none} .dx-of-short{display:inline} .dx-rows .dx-row, .dx-num, .dx-divider{font-size:var(--fs-small)} }   /* the laptop: the rows in the small type (spec section 3) */
@media (max-width:760px){
  .pg-drills .tpl-railed .tpl-main > .dx-two, .cs-page .tpl-railed .tpl-main > .dx-two{grid-template-columns:minmax(0, 1fr); grid-template-rows:none}
  .dx-index{--tpl-cols:calc(var(--s16) * var(--k) + var(--s4)) minmax(0, 1fr) calc(var(--s16) * var(--k)) calc(var(--s12) * var(--k))}
  .dx-index .tpl-end > :nth-child(1){display:none}   /* a phone keeps the best and the Pass time */
  .dx-rows .tpl-row{min-height:var(--row-u); padding-block:var(--s1)}
  .dx-rows .dx-row .tpl-txt{padding-block:0}
  .dx-rows .dx-row .tpl-t{flex-wrap:wrap; row-gap:0}
  .dx-rows .dx-lock{margin-left:0}
  .dx-filter > .tpl-filter-row{flex-wrap:wrap}
  .dx-chips{flex-wrap:wrap}
  .dx-filter > .tpl-filter-row > .tpl-filter-q{flex:1 1 100%; max-width:none; min-width:0; margin-left:0}
}
/* ---- the Club pages on the rail frame (app/club-rail.js; layout sprint round 4, UI-89) ---- */
/* one row unit for every heading row, list row and band gap */
.club-page .tpl-two{column-gap:var(--tpl-side-gap); grid-template-columns:minmax(0, 3fr) minmax(0, 2fr)}
.club-page .tpl-two.club-even{grid-template-columns:repeat(2, minmax(0, 1fr))}
.club-page .tpl-stack{gap:var(--club-u)}
.club-page :is(.tpl-two, .club-railblock, .clubw-picks) .tpl-sec{gap:0}
.club-page :is(.tpl-two, .club-railblock, .clubw-picks) .tpl-sec-head{height:var(--club-u); min-height:0; align-items:center; border-bottom:1px solid var(--line)}
.club-page :is(.tpl-two, .club-railblock, .clubw-picks) .tpl-li{border:0}
.club-page :is(.tpl-two, .club-railblock, .clubw-picks) .tpl-row{height:var(--club-u); min-height:0; padding-block:0; border-bottom:1px solid var(--grid); align-items:center}
.club-page :is(.tpl-two, .club-railblock, .clubw-picks) .tpl-txt{padding-block:0}
.club-page :is(.tpl-two, .club-railblock, .clubw-picks) .tpl-t{flex-wrap:nowrap; white-space:nowrap; align-items:center; gap:var(--s2)}
.club-page :is(.tpl-two, .club-railblock, .clubw-picks) .av.av-row{width:calc(var(--club-u) - var(--s2)); height:calc(var(--club-u) - var(--s2)); font-size:var(--fs-min)}
.club-page .tpl-two .club-brow .tpl-t{min-width:0}
/* a row too narrow for all its words (a long club name, a player and the drill they hold, 1536 and 2560): its marks and words
   keep their size and never shrink under each other; fitRowWords (club-rail.js) takes its droppable piece away (the drill
   beside a handle, a club's level chip), so no word is cut or runs into the next (review 2026-11-18 V6, C1) */
.club-page .tpl-two .club-brow .tpl-t > *{flex:none}
.club-drop{display:inline-flex; flex:none}
.club-page .tpl-list{border:0}
.club-page .tpl-main{margin-inline:calc(-1 * var(--s1)); padding-inline:var(--s1)}   /* room for a focus ring at the column's edges (the search boxes at the right end of Clubs to join, Members and Records), as Compete's */
.club-page .tpl-sec[hidden], .club-page .tpl-li[hidden]{display:none}
/* the club's page frame: one drop for every Club page at a size */
.club-page .tpl-railed{--tpl-drop:min(var(--tpl-drop-max), max(0px, calc((100vh - var(--top-h) - 2 * var(--frame-v) - var(--tpl-stage-h) - 3 * var(--club-u)) * .4)))}
.club-page .tpl-next .tpl-facts-line{min-height:var(--menu-row-h); align-items:center}
.club-page .tpl-next .tpl-act-go{flex-wrap:nowrap}
.club-page .tpl-next .tpl-next-l{align-items:center}
.club-page .tpl-next .tiers{flex:none}
.club-eye{align-self:center}
/* the one action's green (UI-88): the card's button and every filled button on these pages, one green per paper */
.club-page .ui-btn-primary:not(.ui-btn-gold), .club-page .tpl-next .tpl-go:not(.ui-btn-gold), .tpl-settings.acct .ui-btn-primary:not(.ui-btn-gold){--primary:var(--act); --primary-ink:var(--act-ink); --primary-on:var(--act-on); --primary-hover:var(--act-hover); --primary-line:var(--act-line); --on-fill:var(--act-on); --m:var(--act)}
/* board rows: the player's tile and level; your row once run takes the Daily Race tint */
.club-brow .av{flex:none}
.club-brow .tpl-rank{min-width:calc(var(--s5) * var(--k))}
.club-brow.club-me{background:var(--daily-row); box-shadow:inset var(--focus-w) 0 0 var(--daily)}
.club-brow.club-me :is(.tpl-name, .tpl-rank, .tpl-time), .club-brow.club-me .club-gap b{color:var(--daily-row-ink)}
.club-brow:is(.club-mine, .club-me) .tpl-name{font-weight:var(--fw-bold)}
.club-brow.club-mine .tpl-name, .club-brow.club-mine .tpl-rank{color:var(--ink)}
.club-keys .tpl-t{min-width:0; overflow:hidden}
.club-keys .tpl-name{min-width:0; overflow:hidden; text-overflow:ellipsis}   /* a long hotkey name ends in an ellipsis before its caps, never under them */
.club-gap{font-size:var(--fs-small); color:var(--ink-2); font-variant-numeric:tabular-nums; white-space:nowrap}
.club-gap b{color:var(--ink); font-weight:var(--fw-semi)}
.club-wait:not(.club-mine) :is(.tpl-name, .tpl-rank){color:var(--ink-2)}
.club-wait:not(.club-mine) .av{opacity:.55}
.club-page .tpl-row.club-ghost{border-bottom-style:dashed}
.club-ghost .tpl-name{color:var(--ink-2)}
/* Records' one grey row for the drills with no club time (V15): on the list rows' own padding, gap and height, so its mark sits under theirs */
.club-page .clubw-rest{box-sizing:border-box; min-height:var(--club-u); padding:0 var(--tpl-in); gap:var(--tpl-in)}
.club-slot{display:block; flex:none; width:calc(var(--club-u) - var(--s2)); height:calc(var(--club-u) - var(--s2)); border:1px dashed var(--edge); border-radius:var(--r-btn)}
.club-end{display:inline-flex; align-items:center; gap:var(--s3)}
.club-end .tiers, .club-beat .tiers{flex:none}
.club-beat .tiers{margin-left:var(--s1)}
.club-page :is(.tpl-two, .club-railblock, .clubw-picks) .tpl-row.club-label{color:var(--ink-2); font-size:var(--fs-min); font-weight:var(--fw-bold)}
.club-mono{font-family:var(--mono); font-variant-numeric:tabular-nums}
.club-url{color:var(--ink)}
.club-monotitle .tpl-act-h{font-family:var(--mono); font-variant-numeric:tabular-nums}
.club-timecard .tpl-act-h{font-size:var(--fs-clock); line-height:1.15; font-variant-numeric:tabular-nums}
.club-steplock{display:inline-grid; place-items:center; color:var(--ink-2)}
.club-steplock svg, .tpl-next-r .tpl-lockmark svg{width:calc(var(--s4) * var(--k)); height:calc(var(--s4) * var(--k))}
.tpl-next-r .tpl-lockmark{display:inline-grid; place-items:center; color:var(--ink-2)}
/* the head: the crest, the name, the tag and its count; buttons at the right */
.club-head > .tpl-sec-head{align-items:center; row-gap:var(--s1)}   /* the name, its headline and its facts read as one head */
.club-head .tpl-sec-h{display:block; flex:1 1 0; min-width:0; font-size:var(--fs-title); line-height:var(--lh-title); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}   /* the club's name is the page's title on one line, a long one cut (UI-38; the club home spec, section 2) */
.club-head .tpl-sec-h > .club-tagseat{vertical-align:middle; margin-right:var(--s3); margin-bottom:var(--s1)}
.club-head-act{flex:none; display:inline-flex; margin-left:var(--s4)}   /* Copy invite link at line 1's right end (the spec, section 3) */
@media (max-width:760px){ .club-head .tpl-sec-h{flex-basis:100%; white-space:normal} .club-head-act{order:3; margin-left:0} }   /* a phone: the head stacks, the name wraps (the spec, section 2) */
.club-head .club-tagseat.is-empty{height:var(--chip-h-lg)}
.club-head > .tpl-sec-body:empty{display:none}   /* the head has no body: no gap under its facts */
.club-head:has(> .tpl-sec-body .clubw-strip){gap:var(--tpl-in)}   /* the strip sits under the head as its facts, one block */
.club-head .tpl-sec-facts{display:flex; flex:1 1 100%; align-items:center; gap:var(--s3)}   /* the facts take their own row under the name */
.club-head-line{flex:1 1 100%; margin:0; min-width:0; line-height:var(--lh-head); overflow-wrap:anywhere; text-wrap:pretty}   /* the club's headline: the lede's one line under the name (TC-60; Wolf 2026-11-19) */
.club-head-end{margin-left:auto; display:inline-flex; align-items:center; gap:var(--s2)}
.club-head.is-blank .tpl-sec-h{color:var(--ink-2)}
.club-crest{display:inline-grid; place-items:center; flex:none; width:calc(var(--s8) * var(--k)); height:calc(var(--s8) * var(--k)); border-radius:var(--r-btn); background:var(--tc, var(--ink-2)); color:var(--tc-on, var(--on-fill))}
.club-crest .ui-li{color:inherit; width:calc(var(--s5) * var(--k)); height:calc(var(--s5) * var(--k))}
.club-tagseat{display:inline-flex; align-items:center; gap:var(--s1)}   /* the club's mark: its tag chip (TC-44), its medal beside it (TC-45) */
.club-tagseat.is-empty{width:calc(var(--s12) * var(--k)); height:var(--chip-h); border:1px dashed var(--edge); border-radius:var(--chip-r)}
/* the door card: one field in its facts seat; an error beside it */
.club-door .tpl-facts-line{gap:var(--s3)}
.club-door .ui-field-in{width:var(--pop-w-sm); height:var(--menu-row-h); font-size:var(--fs-small)}
.club-door .ui-field-in.club-tag-in{width:var(--menu-tile-w)}   /* the tag (TC-35): five characters */
.club-door .tpl-facts-line:has(.mk-dots){flex-wrap:wrap}
/* the colours on their own line under the name and tag, as wide as the two fields, in even columns at the kit's gap (UI-103) */
.club-door .club-look-pick{flex-basis:100%; min-width:0; display:grid; justify-content:start; grid-template-columns:min(calc(var(--pop-w-sm) + var(--s3) + var(--menu-tile-w)), 100%); row-gap:var(--s3)}   /* a phone narrows the row to the card */
.club-door .club-look-pick .mk-dots{padding:0}
.club-door .club-look-pick .mk-dots-field{padding:0}
.club-door .club-look-pick:not(.is-custom) .mk-dots-field > .mk-field{display:none}   /* the code field shows once Custom is picked */
/* who can join (0106, TC-51): its label, then Settings' three picks, on the colours' left edge */
.club-door .club-door-pick{flex-basis:100%; display:flex; align-items:center; gap:var(--s3)}
.club-door .club-door-pick .mk-picks{padding:0}
.club-err{color:var(--red-ink); font-weight:var(--fw-semi); font-size:var(--fs-small)}
.club-err:empty{display:none}
.club-door .tpl-facts-line:has(.club-err:not(:empty)){flex-wrap:wrap}
.club-door .club-err{flex-basis:100%}   /* the error takes its own line under the field, never under the button beside it (review 2026-11-18 V5) */
.club-door .ui-field-in[aria-invalid="true"]{box-shadow:none}   /* its red edge is the kit's error field (components.css): the focus ring alone while it is in hand */
/* the club home spec: the stat strip under the head (the player page's facts row), the leader mark, a reward drawn as the tag */
.clubw-strip .tpl-facts{flex-wrap:nowrap; column-gap:var(--tpl-section); padding-top:var(--tpl-in)}
.clubw-strip .tpl-fact-v{display:inline-flex; align-items:center; gap:var(--s2); height:var(--chip-h); white-space:nowrap; font-variant-numeric:tabular-nums}
.clubw-strip .tpl-fact-k .ui-btn-link{height:auto; min-height:0; padding:0; font:inherit; vertical-align:baseline; color:inherit; text-decoration:none}
.clubw-strip .tpl-fact-k .ui-btn-link:hover{text-decoration:underline}   /* Next reward's key as a link reads as the other keys */
.clubw-strip .clubw-place, .clubw-strip .clubw-level, .clubw-next{display:inline-flex; align-items:center; gap:var(--s2)}
.club-lead{display:inline-grid; place-items:center; flex:none; color:var(--ink-2)}
.clubw-reward{display:inline-flex; align-items:center; flex:none}
.club-aboutblock > * + *{margin-top:0}
/* the rail's one reference block: Leaders on Manage */
.club-railblock{margin-top:var(--club-u)}
.club-railblock-h{margin:0; display:flex; align-items:center; gap:var(--s3); height:var(--club-u); padding-inline:var(--s2); font-size:var(--fs-item); font-weight:var(--fw-bold); border-bottom:1px solid var(--line)}
.club-railblock .tpl-list{margin:0; padding:0; list-style:none}
.club-railblock .tpl-row{padding-inline:var(--s2)}
/* Manage: the member sheet across the main column, scrolling inside its own frame */
.club-page .tpl-main > .club-sheet{display:flex; flex-direction:column; flex:1 1 auto; min-height:0; margin-top:calc(var(--tpl-in) - var(--tpl-group))}
.club-sheet .ms{flex:1 1 auto; min-height:0}
.club-page .club-sheet .ms-wrap{flex:1 1 auto; height:auto; min-height:0; display:flex; flex-direction:column}
.club-sheet .ms-frame{flex:1 1 auto; min-height:0}
.club-railblock .tbl-leaders{width:100%}
.club-railblock .desk-sec{gap:var(--tpl-in)}
.club-railblock > * + *{margin-top:var(--club-u)}
/* ---- Account's short band (round 4, UI-89): the nameplate and the level; the counts on their tabs ---- */
.acct-short .tpl-band{margin-top:calc(-1 * var(--frame-v)); padding-top:calc(2 * var(--tpl-in)); gap:var(--tpl-in)}
.acct-short .tpl-identity{gap:0; padding-bottom:0; border:0}
.acct-short .tpl-id-top{border:0; padding:0; margin:0; align-items:center}
.acct-short .tpl-identity .tpl-facts{display:none}
.acct-tab-n{margin-left:var(--s1); font-size:var(--fs-min); font-weight:var(--fw-semi); color:var(--ink-2); font-variant-numeric:tabular-nums}

/* ---- the doors (layout sprint round 5, UI-92; app/door-kit.js): For teams, the FAQ, the legal pages, Contact, Not found,
        Verify and Checkout on the module page's frame. The rail seat, the card seat, two stacks, bands that open by room,
        the footer band under it all. Every class here starts door- ---- */
/* the window: a door fits it (the bar, the frame, the footer band); its lists and its paper scroll inside themselves */
@media (min-width:761px){
  html:is([data-shell="read"], [data-shell="plain"]):has(#root > .dr), html:is([data-shell="read"], [data-shell="plain"]):has(#root > .dr) body{height:100%; overflow:hidden}
  html:is([data-shell="read"], [data-shell="plain"]):has(#root > .dr) body{min-height:0; padding-bottom:0}
  html:is([data-shell="read"], [data-shell="plain"]):has(#root > .dr) body > .app{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
  html:is([data-shell="read"], [data-shell="plain"]) #root:has(> .dr){flex:1 1 0; min-height:0; display:flex; flex-direction:column; width:100%; max-width:none}
  .dr > .tpl-railed{flex:1 1 0; min-height:0}
  .dr .tpl-main{height:100%; box-sizing:border-box}
}
.dr .tpl-mono, .dr-mono{font-family:var(--mono); font-variant-numeric:tabular-nums}
.dr :is(.tpl-rail-h, .tpl-act-h, .dr-pane-h):focus{outline:none}   /* a heading the page puts the focus on shows no ring */
/* the rail: the page's own index; its counts grey and right aligned; a rail of facts has no hover and no pointer */
.dr-rail .tpl-rr .tpl-n{color:var(--ink-2); font-size:var(--fs-small)}
.dr-rail .tpl-rail-lock{margin-top:0}
.dr-rail .tpl-rail-list:empty{display:none}
.dr-flat .tpl-row{cursor:default}
.dr-flat .tpl-row:hover{background:none}
.dr-facts .tpl-row :is(.tpl-t, .tpl-rn){font-weight:var(--fw-body); color:var(--ink-2)}
.dr-facts .tpl-row{min-height:var(--menu-row-h)}
.dr-time{font-family:var(--mono); color:var(--ink) !important; font-weight:var(--fw-semi)}
.dr-art{margin:auto 0 0; font-size:var(--fs-min); line-height:var(--lh-head); color:var(--ink-2)}
.dr-art a{color:var(--ink-2)}
.dr-go{color:var(--ink-2)}

/* the card seat: a lone card hugs its words; it never stretches to the frame's foot */
.dr .tpl-main > .tpl-next{flex:0 0 auto; height:auto}
.dr-card:not(:has(> .tpl-act-eye)) > .tpl-act-go{grid-row:1 / span 2}
.dr-card .tpl-next-l{display:inline-flex; align-items:center}
.dr-card .tpl-next-l .ui-li{color:inherit}
.dr-card .tpl-act-go{gap:var(--s3)}
.dr-addr .tpl-act-h{font-family:var(--mono); letter-spacing:0}
.dr-wrap .tpl-facts-line{white-space:normal; flex-wrap:wrap; max-width:var(--measure-hero)}
.dr-card .tpl-go{--primary:var(--learn); --primary-ink:var(--learn-ink); --primary-on:var(--learn-on); --primary-hover:var(--learn-hover); --primary-line:var(--learn-line); --on-fill:var(--learn-on)}
/* the card's mark seat: the seal or the cell, whole, at the card's left */
.dr-marked{position:relative; padding-left:calc(var(--card-pad-x) + var(--tpl-av) + var(--tpl-group))}
.dr-seal, .dr-face{position:absolute; left:var(--card-pad-x); top:50%; width:var(--tpl-av); height:var(--tpl-av); margin-top:calc(var(--tpl-av) / -2); display:grid; place-items:center}
.tpl-act > :is(.dr-seal, .dr-face){grid-area:auto}
.dr-seal svg{display:block; width:100%; height:100%}
.dr-seal-b{fill:var(--learn)}
.dr-seal-t{fill:none; stroke:var(--learn-on); stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round}
.dr-seal.is-no .dr-seal-b{fill:var(--red)}
.dr-err{display:block; min-height:calc(var(--fs-small) * var(--lh-head)); font-size:var(--fs-small); line-height:var(--lh-head); font-weight:var(--fw-semi); color:var(--red-ink); white-space:nowrap}
.dr-err:empty::before{content:"\00a0"}
.dr .ui-field-in[aria-invalid="true"]{box-shadow:none}
/* a form in the card: labelled fields across the card's text width, the foot row ending on the one button */
.dr-form.tpl-act > *{grid-column:1 / -1}
.dr-form.dr-card.tpl-act > .tpl-act-go{grid-column:1 / -1; grid-row:auto; flex-direction:row; align-items:center; justify-content:space-between; gap:var(--tpl-group); margin-top:calc(-1 * var(--tpl-in))}
.dr-form .tpl-act-body, .dr-form .tpl-facts-line, .dr-ask .tpl-act-body, .dr-ask .tpl-facts-line{width:100%; min-width:0; white-space:normal}
.dr-co .dr-card .tpl-facts-line{min-width:0; white-space:normal}
.dr-errline{color:var(--red-ink); font-weight:var(--fw-semi)}
.dr-fields{display:flex; align-items:flex-start; gap:var(--s3); width:100%; min-width:0}
.dr-fld{display:flex; flex-direction:column; gap:var(--s1); min-width:0; flex:1 1 0}
.dr-fld-l{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink); white-space:nowrap}
.dr-fld .ui-field-box, .dr-fld .ui-field-in{width:100%; box-sizing:border-box}
.dr-fld .ui-field-in{height:var(--btn-h-md); font-size:var(--fs-small)}
.dr-fld-s{flex:0 0 auto; width:calc(var(--s24) * 1.5 * var(--k))}
.dr-fld-s .dr-err{text-align:right; align-self:flex-end}
.dr-check{display:inline-flex; align-items:center; gap:var(--s2); font-size:var(--fs-small); color:var(--ink); cursor:pointer}
.dr-check input{width:var(--s4); height:var(--s4); margin:0; accent-color:var(--learn)}
.dr-links{display:inline-flex; align-items:center; gap:var(--tpl-group); font-size:var(--fs-small); min-width:0}
/* a one field card (a code, a credential id): the button on the field's own line, at the card's right edge */
.dr-ask.tpl-act > *{grid-column:1 / -1}
.dr-fgo{display:flex; align-items:flex-start; justify-content:space-between; gap:var(--tpl-group); width:100%}
.dr-fgo .dr-fld{flex:0 1 var(--pop-w-sm)}
.dr-fgo .dr-fld .ui-field-in{height:var(--btn-h-lg); font-size:var(--fs-body)}
.dr-fgo > .ui-btn{flex:none}
.dr-fgo .dr-fld:has(> .dr-fld-l.sr-only) + .ui-btn{margin-top:0}
.dr-fgo .dr-fld:has(> .dr-fld-l:not(.sr-only)) + .ui-btn{margin-top:calc(var(--fs-small) * var(--lh-head) + var(--s1))}
.dr-titlerow{grid-column:1 / -1; display:flex; align-items:baseline; justify-content:space-between; gap:var(--tpl-group)}
.dr-titlerow > output{font-size:var(--fs-small); color:var(--ink-2); white-space:nowrap}
.dr-titlerow > output.is-sum{color:var(--ink); font-weight:var(--fw-bold); font-variant-numeric:tabular-nums}
.dr-tax{margin:0; font-size:var(--fs-small); line-height:var(--lh-head); color:var(--ink-2)}
/* a waiting button keeps its width: the ring takes the cap's seat */
.dr-spin{display:inline-block; width:calc(var(--s4) * var(--k)); height:calc(var(--s4) * var(--k)); border:var(--bw-2) solid currentColor; border-right-color:transparent; border-radius:50%; animation:dr-spin var(--d-beat-tick) linear infinite}
@keyframes dr-spin{to{transform:rotate(1turn)}}

/* the rows under the card */
.dr-kv .tpl-t{flex-wrap:nowrap; white-space:normal; line-height:var(--lh-title)}
.dr-kv .tpl-kind{color:var(--ink-2); font-weight:var(--fw-semi); min-width:calc(var(--tpl-kind-w) * 1.2)}
.dr-kv .tpl-name{color:var(--ink); font-weight:var(--fw-semi); overflow-wrap:anywhere}
.dr-kv .dr-mono{font-weight:var(--fw-body)}
.dr-kv.is-none .tpl-name{color:var(--ink-2); font-weight:var(--fw-body)}
.dr-nb{white-space:nowrap}
.dr-kv .tpl-name:has(.dr-nb){overflow-wrap:normal}
.dr-who{font-size:var(--fs-small); color:var(--ink-2); white-space:nowrap}
.dr-notin .tpl-t{color:var(--ink-2); font-weight:var(--fw-body)}
.dr-light .tpl-t{font-weight:var(--fw-body)}
.dr-light .tpl-row:hover{background:none}
.dr-linkrow .tpl-t{font-weight:var(--fw-semi); white-space:normal}
.dr-stepn{display:inline-grid; place-items:center; width:var(--tpl-mark); height:var(--tpl-mark); font-size:var(--fs-small); font-weight:var(--fw-bold); font-variant-numeric:tabular-nums; color:var(--ink-2)}
.dr-stepnow .dr-stepn{color:var(--ink)}
.dr-stepnow .tpl-t{font-weight:var(--fw-bold)}
.dr-stepdone .tpl-t{color:var(--ink-2)}
.dr-modn{display:inline-block; min-width:var(--tpl-mark); font-variant-numeric:tabular-nums; color:var(--ink-2); font-size:var(--fs-small)}
/* a band: its rows two to four across, on the stacks' hairlines */
.dr-across{display:grid; grid-template-columns:repeat(var(--door-cols, 2), minmax(0, 1fr)); column-gap:var(--tpl-side-gap)}
.dr-band .tpl-sec-facts{font-size:var(--fs-small); color:var(--ink-2)}
.dr-band .tpl-row{padding-block:0}
.dr-band .tpl-txt{padding-block:calc((var(--row-list) - 1lh) / 2); line-height:var(--lh-title)}
.dr-band .tpl-t{white-space:normal}
.dr-course .tpl-t .ui-chip{margin-block:calc(var(--s2) * -1)}
.dr-teach .tpl-row{align-items:flex-start; padding-block:var(--s2)}
.dr-teach .tpl-txt{padding-block:0; display:flex; flex-direction:column; gap:0; line-height:var(--lh-head)}
.dr-teach .tpl-sub{white-space:normal; max-width:45ch; line-height:var(--lh-head); display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; min-height:2lh}

/* ---- the FAQ: every question in one pick list beside the reading pane, the paper at the list's own height ---- */
.dr-read{flex:1 1 auto; min-height:0; grid-template-columns:minmax(0, 2fr) minmax(0, 3fr); align-items:stretch; grid-template-rows:minmax(0, 1fr)}
.dr-read > .tpl-stack-l, .dr-qs, .dr-qs > .sp{display:flex; flex-direction:column; min-height:0; max-height:100%}
.dr-read > .tpl-stack-r{display:flex; flex-direction:column; min-height:0}
.dr-qs > .sp{flex:1 1 auto; border-bottom:1px solid var(--line)}
.dr-pick .tpl-row{width:100%; text-align:left; background:none; border:0; font:inherit; color:inherit; cursor:pointer; padding-inline:var(--s3)}
.dr-pick .tpl-row .tpl-t{font-weight:var(--fw-semi); white-space:normal}
.dr-pick .dr-q.is-on{background:var(--plate-neutral); box-shadow:inset var(--focus-w) 0 0 var(--learn)}
.dr-pick .dr-q.is-on .tpl-t{font-weight:var(--fw-bold)}
.dr-pick .dr-label{cursor:default; min-height:var(--menu-row-h); padding-block:0; align-items:center}
.dr-pick .dr-label .tpl-txt{padding-block:0}
.dr-pick .dr-label .tpl-t{font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink-2)}
.dr-pick .dr-label-li{position:sticky; top:0; z-index:1; background:var(--sheet)}
.dr-pane{background:var(--sheet); border:1px solid var(--line); padding:0; display:flex; flex-direction:column; gap:0; flex:1 1 auto; min-height:0; overflow:hidden; box-sizing:border-box}
.dr-pane-words{flex:1 1 auto; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:var(--s3); padding:var(--card-pad-y) var(--card-pad-x)}
.dr-pane-top{display:flex; align-items:baseline; justify-content:space-between; gap:var(--tpl-group)}
.dr-pane-h{margin:0; font-size:var(--fs-head); line-height:var(--lh-head); font-weight:var(--fw-title); outline:none}
.dr-pane-pos{color:var(--ink-2); font-weight:var(--fw-semi); font-size:var(--fs-small); white-space:nowrap; font-variant-numeric:tabular-nums}
.dr-pane-body p{margin:0; font-size:var(--fs-body); line-height:var(--lh-read); color:var(--ink); max-width:var(--measure-hero)}
.dr-pane-foot{flex:none; display:flex; align-items:center; justify-content:space-between; gap:var(--tpl-group); padding:var(--s3) var(--card-pad-x); background:var(--chrome); border-top:1px solid var(--line); font-size:var(--fs-small)}
.dr-pane-l{display:inline-flex; align-items:center; gap:var(--s3); min-width:0}
.dr-pane-keys{display:inline-flex; gap:var(--s1)}
.dr-phone-go{display:none}
.dr-ans p{margin:0; font-size:var(--fs-body); line-height:var(--lh-read)}

/* ---- the paper (legal): the grey head, then the text at the item size on the reading measure, scrolling inside the card ---- */
.dr-legal .tpl-main{gap:0}
.dr-paper{flex:1 1 0; min-height:0; display:flex; flex-direction:column; padding:0; overflow:hidden; background:var(--sheet); border:1px solid var(--line)}
.dr-paper-head{flex:none; display:flex; flex-direction:column; gap:var(--s2); padding:var(--s3) var(--card-pad-x); background:var(--chrome); border-bottom:1px solid var(--line)}
.dr-ph-1{display:flex; align-items:center; justify-content:space-between; gap:var(--tpl-group); min-height:var(--tpl-facts-h)}
.dr-ph-l{display:inline-flex; align-items:center; gap:var(--s3); min-width:0}
.dr-ph-date{font-size:var(--fs-small); color:var(--ink-2); white-space:nowrap; font-variant-numeric:tabular-nums}
.dr-ph-date time{color:var(--ink); font-weight:var(--fw-semi)}
.dr-ph-2{margin:0; font-size:var(--fs-small); line-height:var(--lh-head); color:var(--ink-2)}
.dr-paper > .sp{flex:1 1 0; min-height:0; display:flex; flex-direction:column}
.dr-paper > .sp > .sp-rail{left:auto; right:var(--sp-rail-gap)}   /* the rail inside the paper, which clips what leaves it */
.dr-paper .lg-main{flex:1 1 0; min-height:0; overflow-y:auto; padding:var(--card-pad-y) 0; outline:none}
.dr-paper .lg-main:focus-visible:not([data-quiet]){outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
.dr-sheet{display:flex; flex-direction:column; gap:var(--tpl-group); max-width:76ch; padding-inline:var(--card-pad-x); font-size:var(--fs-item); line-height:var(--lh-read)}
.dr-sheet :is(p, li, dd, dt, td, th){font-size:var(--fs-item); line-height:var(--lh-read)}
.dr-sheet .tpl-lede{color:var(--ink); font-size:var(--fs-item)}
.dr-sheet .tpl-sec-h{font-size:var(--fs-head)}
.dr-sheet .legal-sec{scroll-margin-top:var(--card-pad-y)}
.dr-rail-doc{gap:var(--tpl-group)}
.dr-rail-doc > .sp{flex:1 1 0; min-height:0; display:flex; flex-direction:column}
.dr-rail-doc > .sp > .sp-body{flex:1 1 0; min-height:0; overflow-y:auto}
.dr-rail-doc .lg-toc-list{list-style:none; margin:0; padding:0}
.dr-rail-doc .tpl-row{min-height:var(--menu-row-h); padding-block:var(--s1); align-items:flex-start}
.dr-rail-doc .tpl-txt{padding-block:var(--s1)}
.dr-rail-doc .tpl-rn{white-space:normal; font-size:var(--fs-small); line-height:var(--lh-head)}
.dr-rail-doc .tpl-lead{padding-top:var(--s1)}
.dr-sn{display:inline-block; min-width:var(--tpl-mark); text-align:right; font-size:var(--fs-small); font-weight:var(--fw-semi); font-variant-numeric:tabular-nums; color:var(--ink-2)}
.dr-rail-doc .tpl-row.is-on .dr-sn{color:var(--ink)}
.dr-rail-doc .lg-fold{display:none}

/* ---- Contact ---- */
.dr-yours{color:var(--ink-2); font-weight:var(--fw-semi)}
.dr-copy.is-copied{justify-content:center}
.ui-btn-lg .dr-keys .ui-cap{height:var(--btn-key-h-lg); min-width:var(--btn-key-h-lg)}   /* a chord in a big button: its caps the button key's one height (layout rule R3) */

/* ---- Not found: the plain words lead; the formula and the cell it fills are the quiet last line ---- */
.dr-nf .tpl-facts-line{flex-direction:column; align-items:flex-start; gap:var(--s2); white-space:normal}
.dr-fxrow{display:inline-flex; align-items:center; gap:var(--s3); font-size:var(--fs-small)}
.dr-fx{font-family:var(--mono); font-style:italic; font-weight:var(--fw-bold); color:var(--ink-2); padding-right:var(--s2); border-right:1px solid var(--edge)}
.dr-formula{font-family:var(--mono); font-weight:var(--fw-body); color:var(--ink-2); white-space:nowrap}
.tpl-facts-line > .dr-sw{display:inline-flex; align-items:center; gap:var(--s2) var(--s3)}
.dr-ref{color:var(--red); font-weight:var(--fw-bold)}
.dr-fixd{color:var(--learn-ink); font-weight:var(--fw-bold)}
.dr-cellv{display:inline-flex; align-items:center; justify-content:flex-end; gap:var(--s1); min-width:calc(var(--s24) * var(--k)); height:var(--tpl-facts-h); padding-inline:var(--s2); box-sizing:border-box; font-family:var(--mono); font-size:var(--fs-small); background:var(--sheet); border:1px solid var(--learn)}
.dr-swapw{position:relative; display:inline-flex; align-items:center}
.dr-swapw > *{display:inline-flex; align-items:center; gap:var(--s1); white-space:nowrap}
.dr-swapw > .dr-new{position:absolute; left:0; top:0; visibility:hidden}
.dr-cellv .dr-swapw > .dr-new{left:auto; right:0}
.dr-fix .dr-swapw > .dr-old{position:absolute; left:0; top:0; visibility:hidden}
.dr-fix .dr-cellv .dr-swapw > .dr-old{left:auto; right:0}
.dr-fix .dr-swapw > .dr-new{position:static; visibility:visible}
.dr-celltick{width:var(--s4); height:var(--s4); color:var(--learn)}
@media (prefers-reduced-motion: no-preference){
  html:not([data-effects="off"]) .dr-fix .dr-swapw > .dr-old{visibility:visible; animation:dr-fadeout var(--d-route-out) linear both}
  html:not([data-effects="off"]) .dr-fix .dr-swapw > .dr-new{animation:dr-fadein var(--d-route-in) var(--ease-out) both}
  html:not([data-effects="off"]) .dr-fix .dr-celltick{animation:dr-pop var(--d-land-tick) var(--ease-out) both}
}

/* ---- Verify: the seal lands once, then the rail's ticks, top to bottom ---- */
.dr-cert .tpl-act-h{font-size:var(--fs-title); line-height:var(--lh-title)}
.dr-vrow .tpl-end .is-not{color:var(--ink-2); font-family:var(--font); font-weight:var(--fw-body)}
@media (prefers-reduced-motion: no-preference){
  html:not([data-effects="off"]) .dr-stamp .dr-seal{animation:dr-stamp var(--d-wkey-pop) var(--ease-out) both}
  html:not([data-effects="off"]) .dr-stamp .dr-vrow :is(.tpl-lead, .dr-time){animation:dr-pop var(--d-land-tick) var(--ease-out) both; animation-delay:calc(var(--d-wkey-pop) + var(--door-n, 0) * var(--d-acct-rise-gap))}
}

/* ---- For teams: the club that builds as its name is typed ---- */
.dr-club:not(.is-named) .tpl-sec-h{color:var(--ink-2)}
.dr-club .tpl-sec-facts{display:flex; align-items:center; flex:1 1 auto}
.dr-tagseat{display:inline-block; width:calc(var(--chip-h) * 2); height:var(--chip-h); border:1px dashed var(--edge); border-radius:var(--chip-r); box-sizing:border-box}
.dr-place{display:inline-block; min-width:var(--s4); text-align:right; font-variant-numeric:tabular-nums; font-size:var(--fs-small); color:var(--ink-2); margin-right:var(--s2)}
.dr-you-tile, .dr-seat-tile{display:inline-grid; place-items:center; width:var(--tpl-mark); height:var(--tpl-mark); border-radius:var(--r-btn); box-sizing:border-box}
.dr-you-tile{background:var(--ink-2); color:var(--on-fill)}
.dr-you-tile .ui-li{color:var(--on-fill)}
.dr-seat-tile{border:1px dashed var(--edge)}
.dr-seat .tpl-t{color:var(--ink-2); font-weight:var(--fw-body)}
.dr-you{background:var(--plate-neutral); box-shadow:inset var(--focus-w) 0 0 var(--ink)}
.dr-you .tpl-lead, .dr-seat .tpl-lead{width:auto; flex:none; display:inline-flex; align-items:center; gap:var(--s1)}
@media (prefers-reduced-motion: no-preference){ html:not([data-effects="off"]) .dr-club.dr-stamp .team-tag{animation:dr-stamp var(--d-wkey-pop) var(--ease-out) both} }
.dr-club .tpl-sec-h{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.dr-loose{white-space:normal}
.dr-more{display:flex; flex-direction:column; gap:var(--s2); width:100%; margin-top:var(--s2)}
.dr-more fieldset{border:0; margin:0; padding:0; min-width:0}
.dr-more .tr-checks{display:flex; flex-wrap:wrap; gap:var(--s2) var(--tpl-group)}
.dr-more .dr-fld .ui-field-ta{height:auto}
.dr-cfine{grid-column:1 / -1; display:flex; flex-direction:column; gap:0; margin-top:calc(var(--tpl-in) / -2)}
.dr-cfine .consent{display:block; margin:0; font-size:var(--fs-small); line-height:var(--lh-head); color:var(--ink-2)}
.dr-form .tr-basis, .dr-form fieldset.class-basis{width:100%; margin-top:var(--s2)}
.tr-code.dr-mono{font-size:var(--fs-body); font-weight:var(--fw-bold); color:var(--ink)}

/* ---- Checkout: the order in the rail seat; the step in hand in the main column ---- */
.dr-order{gap:var(--tpl-group)}
.dr-order-body{display:flex; flex-direction:column; gap:var(--s3); align-items:flex-start}
.dr-order .tpl-rail-lock{justify-content:space-between}
.dr-order .tpl-rail-shut{margin-top:calc(-1 * var(--tpl-group))}
.dr-period{display:inline-flex; align-items:center; min-height:var(--btn-h-md)}
.dr-price{display:flex; align-items:baseline; gap:var(--s2)}
.dr-figure{font-family:var(--mono); font-size:var(--fs-title); font-weight:var(--fw-bold); line-height:1; color:var(--ink); font-variant-numeric:tabular-nums}
.dr-unit{font-size:var(--fs-body); color:var(--ink-2)}
.dr-student, .dr-payer{margin:0; font-size:var(--fs-small); color:var(--ink-2)}
.dr-payer{display:flex; align-items:center; gap:var(--s2)}
.dr-lockn{font-weight:var(--fw-semi); font-variant-numeric:tabular-nums; white-space:nowrap}
.dr-locklab{display:inline-grid}
.dr-locklab > span{grid-area:1 / 1; display:inline-flex; align-items:center; gap:var(--s2)}
.dr-locklab > .dr-lock-open{opacity:0}
.dr-order.is-open .dr-lock-open{opacity:1; color:var(--learn-ink)}
.dr-order.is-open .dr-lock-open .ui-li{color:var(--learn)}
.dr-order.is-open .dr-lock-shut{opacity:0}
.dr-chm{display:inline-grid; place-items:center; width:var(--tpl-mark); height:var(--tpl-mark)}
.dr-chm > *{grid-area:1 / 1}
.dr-chm-c{display:none; line-height:0}
.dr-order.is-open .dr-chm-c{display:inline-block}
.dr-order.is-open .dr-chm-f{display:none}
.dr-fine{display:flex; flex-direction:column; gap:var(--s2); list-style:none; margin:0; padding:0}
.dr-fine li{display:flex; align-items:flex-start; gap:var(--s2); font-size:var(--fs-small); line-height:var(--lh-head); color:var(--ink-2)}
.dr-fine .ui-li{margin-top:1px; flex:none}
.dr-order.is-tight :is(.dr-order-ch, .tpl-rail-lock, .tpl-rail-shut){display:none}
/* the pay step: Stripe's embedded page in one card, the whole main column; a foot strip of ours while its button is out of view */
.dr .tpl-main > .dr-embed{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; padding:0; overflow:hidden; background:var(--sheet); border:1px solid var(--line)}
.dr-embed > .sp{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
.dr-embed .sp-body{flex:1 1 auto; min-height:0; overflow-y:auto; padding:var(--card-pad-y) var(--card-pad-x)}
.dr-embed #coStripe{max-width:var(--pop-w-lg); margin-inline:auto}
.dr-wait{margin:auto; display:flex; align-items:center; gap:var(--s3); min-height:calc(var(--btn-h-lg) * 4); font-size:var(--fs-body); color:var(--ink-2)}
.dr-jump{flex:none; display:flex; align-items:center; justify-content:space-between; gap:var(--tpl-group); padding:var(--s3) var(--card-pad-x); background:var(--chrome); border-top:1px solid var(--line); font-size:var(--fs-small); color:var(--ink-2)}
.dr-jump[hidden]{display:none}
.dr-jump > span{display:inline-flex; align-items:center; gap:var(--s2)}
html:has(#root .dr-co-pay) #footMount{display:none}
/* the wait bar takes the seat and the width of the button it stands in for */
.dr-waitseat{display:inline-grid; align-items:center}
.dr-waitseat > *{grid-area:1 / 1}
.dr-ghostbtn{visibility:hidden}
.dr-waitbar{display:block; width:100%; height:var(--s2); border-radius:var(--s2); background:var(--line); overflow:hidden}
.dr-waitbar > i{display:block; width:40%; height:100%; border-radius:inherit; background:var(--learn); animation:dr-wait var(--d-beat-tick) var(--ease-out) infinite}
@keyframes dr-wait{from{transform:translateX(-100%)} to{transform:translateX(250%)}}
.dr-under{margin:0; padding-inline:var(--card-pad-x); font-size:var(--fs-small); line-height:var(--lh-read); color:var(--ink-2); max-width:var(--measure-hero)}
.dr-first.is-wait .tpl-step :is(.tpl-kind, .tpl-name){color:var(--ink-2)}
.dr-keys{display:inline-flex; align-items:center; gap:var(--s1)}
.dr-first.is-wait .dr-keys{opacity:.6}
/* the unlock: the label crossfades, each row turns to ink in its own colour, the lessons' words turn to ink, the button brightens */
@media (prefers-reduced-motion: no-preference){
  html:not([data-effects="off"]) .dr-unlock .dr-order.is-open .dr-locklab > span{transition:none; animation:dr-fadein var(--d-count-out) linear both}
  html:not([data-effects="off"]) .dr-unlock .dr-order.is-open .dr-locklab > .dr-lock-shut{animation-name:dr-fadeout}
  html:not([data-effects="off"]) .dr-unlock .dr-order.is-open .dr-och .dr-chm-c{animation:dr-pop var(--d-land-tick) var(--ease-out) both; animation-delay:calc(var(--d-count-out) + var(--door-n, 0) * var(--d-tray-gap))}
  html:not([data-effects="off"]) .dr-unlock .dr-order.is-open .dr-och .tpl-rn{animation:dr-ink var(--d-land-tick) linear both; animation-delay:calc(var(--d-count-out) + var(--door-n, 0) * var(--d-tray-gap))}
  html:not([data-effects="off"]) .dr-unlock .dr-first .tpl-step :is(.tpl-kind, .tpl-name){animation:dr-ink var(--d-land-keys) linear both; animation-delay:calc(var(--d-land-live) + var(--door-n, 0) * var(--d-tray-gap))}
  html:not([data-effects="off"]) .dr-unlock .dr-rise{animation:dr-bright var(--d-land-keys) var(--ease-out) var(--d-land-live) both}
}
@keyframes dr-ink{from{color:var(--ink-2)}}
@keyframes dr-bright{from{opacity:.5} to{opacity:1}}

/* ---- the answer swap (M2): the old words leave where they stand, the new rise 6 px, title then body ---- */
@media (prefers-reduced-motion: no-preference){
  html:not([data-effects="off"]) .dr-swap .dr-sw{animation:dr-rise var(--d-route-in) var(--ease-out) var(--d-route-out) both}
  html:not([data-effects="off"]) .dr-swap .dr-sw2{animation-delay:calc(var(--d-route-out) + var(--d-acct-rise-gap))}
}
@keyframes dr-rise{from{opacity:0; transform:translateY(var(--dlg-rise))} to{opacity:1; transform:none}}
@keyframes dr-fadeout{from{opacity:1} to{opacity:0}}
@keyframes dr-fadein{from{opacity:0} to{opacity:1}}
@keyframes dr-pop{from{opacity:0; transform:scale(var(--pop-from))} to{opacity:1; transform:none}}
@keyframes dr-stamp{from{opacity:0; transform:scale(var(--pop-over))} to{opacity:1; transform:none}}
@media (prefers-reduced-motion: reduce){ .dr-spin{animation:none; border-right-color:currentColor; opacity:.6} .dr-waitbar > i{animation:none; width:60%} }

/* ---- the bar on the doors (P4, UI-92): the page in hand is marked as the kit marks a tab; Try for free is outlined and keeps
        its seat, unseen and out of Tab, where the page's own card says it ---- */
.tb .tb-link.on{background:none; color:var(--ink); border-radius:0; box-shadow:inset 0 calc(-1 * var(--bw-2)) 0 var(--learn)}
.tb .tb-try.ui-btn-outline{--mode-line:var(--learn-line); height:var(--menu-row-h); min-height:0}
html:has(#root .dr-tryhere) .tb .tb-try{visibility:hidden}

/* ---- the account card (UI-92, P2): its main button the card seat's one green; the page behind it is the kit's scrim, dimmed and
        blurred as every dialog's is (components.css; Wolf 2026-11-15 04:42 over round 5's "dim, never blur") ---- */
.pop-signin .ui-btn-primary{--primary:var(--learn); --primary-ink:var(--learn-ink); --primary-on:var(--learn-on); --primary-hover:var(--learn-hover); --primary-line:var(--learn-line)}
.pop-signin .sd-busy{display:inline-flex; align-items:center; justify-content:center; gap:var(--s2)}
/* signed in (M6): a tick pops into the button, the card and the dim fade out from --d-land-keys, and the learner's tile stamps
   into the bar from --d-jump where Sign in held its seat (ui/components/signin-dialog.js holdBarSeat) */
.pop-signin .sd-done .sd-donetick{width:var(--s4); height:var(--s4); flex:none; animation:dr-pop var(--d-land-tick) var(--ease-out) both}
.pop.pop-signin.sd-landing{pointer-events:none; animation:pop-scrim-out var(--d-route-out) linear var(--d-land-keys) both}
.tb-held{position:fixed; z-index:60; pointer-events:none; animation:dr-fadeout var(--d-route-out) linear var(--d-jump) both}
html.tb-stamp #navMount .tb-me{animation:dr-stamp var(--d-wkey-pop) var(--ease-out) both}
@media (prefers-reduced-motion: reduce){ .tb-held{display:none} html.tb-stamp #navMount .tb-me, .pop-signin .sd-done .sd-donetick{animation:none} }
.pop-signin .mk-check input[aria-invalid="true"]{box-shadow:0 0 0 var(--bw-2) var(--red)}
.pop-signin .mk-check input[aria-invalid="true"]:focus-visible{box-shadow:none}   /* one ring at a time: the red one, or the focus ring alone while it is in hand */

/* ---- a narrow window: the doors' own pieces give way as the kit's rail does ---- */
@media (max-width:1100px){
  .dr-art{display:none}
  .dr-rail-doc .tpl-rn{display:none}
  .dr-order :is(.dr-order-body, .dr-fine){display:none}
}

/* ---- the phone: one column that scrolls; a choice rail becomes chips; a record rail sits under the card; no keycaps ---- */
@media (max-width:760px){
  .dr > .tpl{flex:none; height:auto; min-height:0}
  .dr .tpl-frame{display:flex; flex-direction:column; flex:none; gap:var(--tpl-group); margin-top:0}
  .dr-pick .tpl-open{padding-left:0; margin-left:0}
  .dr .tpl-frame > *{flex:none}
  .dr .tpl-mainsp, .dr .tpl-main{overflow:visible; height:auto; max-height:none}
  .dr .tpl-main{gap:var(--tpl-group)}
  .dr .ui-btn .ui-cap, .dr .dr-keys, .dr .dr-pane-keys{display:none}
  .dr .tpl-next.tpl-act{display:flex; flex-direction:column; align-items:stretch; gap:var(--s3); min-height:0; height:auto}
  .dr .tpl-act-go{flex-direction:column !important; align-items:stretch !important}
  .dr .tpl-act-go > .ui-btn:not(.ui-btn-link){width:100%; justify-content:center}
  .dr .tpl-act-go > :is(.dr-check, .dr-links, .ui-btn-link){align-self:flex-start}
  .dr .tpl-facts-line{white-space:normal; flex-wrap:wrap}
  .dr .tpl-act-eye{flex-wrap:wrap; row-gap:var(--s1)}
  .dr-across{grid-template-columns:minmax(0, 1fr)}
  .dr-fields, .dr-fgo, .dr-links{flex-direction:column; align-items:stretch}
  .dr-fld, .dr-fld-s, .dr-fgo .dr-fld{flex:none; width:auto}
  .dr-fld .ui-field-in, .dr-fgo .dr-fld .ui-field-in{height:var(--btn-h-lg); font-size:var(--fs-body)}
  .dr-fgo > .ui-btn{width:100%; justify-content:center; margin-top:0 !important}
  .dr-err{white-space:normal}
  .dr-marked{padding-left:var(--card-pad-x); padding-top:calc(var(--card-pad-y) + var(--tpl-av) + var(--s3))}
  .dr-seal, .dr-face{top:var(--card-pad-y); margin-top:0}
  .dr-cellv{display:none}
  .dr-rail .tpl-rail-h{display:block}
  /* a choice rail (For teams, the FAQ, Contact): chips that wrap, the one in hand filled ink */
  .dr-chips .tpl-rail-list, .dr-chips .tpl-rail-shut{display:flex; flex-wrap:wrap; gap:var(--s2); border:0; margin:0; padding:0}
  .dr-chips .tpl-li{display:block !important; flex:none; width:auto; border:0}
  .dr-chips .tpl-row{width:auto; min-width:0; min-height:var(--btn-h-md); padding:0 var(--s3); border:1px solid var(--edge); border-radius:var(--chip-r); box-shadow:none; background:none; gap:var(--s2)}
  .dr-chips .tpl-row.is-on{background:var(--ink); border-color:var(--ink)}
  .dr-chips .tpl-row.is-on :is(.tpl-t, .tpl-rn, .tpl-n, .ui-li){color:var(--on-fill)}
  .dr-chips .tpl-rn{display:revert}
  .dr-chips :is(.tpl-lead, .tpl-end){display:none}
  .dr-chips .tpl-rail-lock{display:flex; border:0; padding:0; margin:var(--s2) 0 0; min-height:0}
  .dr-chips .tpl-rail-lock > span{display:inline}
  /* a record rail (Verify's chapters, Not found's places, the order's chapters): whole rows, under the card */
  .dr-record{order:2}
  .dr-record .tpl-li, .dr-record .tpl-rail-shut{display:revert !important}
  .dr-record .tpl-rail-lock{display:flex; padding:0 var(--s2)}
  .dr-record .tpl-rn, .dr-record .tpl-end{display:revert}
  .dr-record .tpl-rail-lock > span{display:inline-flex}
  /* the FAQ: no pane; the answer opens under its own row; the one button under the list */
  .dr-read{display:block}
  .dr-read > .tpl-stack-r{display:none}
  .dr-qs, .dr-qs > .sp, .dr-qs .sp-body, .dr-read > .tpl-stack-l{max-height:none; overflow:visible; display:block}
  .dr-pick .dr-label-li{position:static}
  .dr-ans{padding:0 var(--s3) var(--s4)}
  .dr-phone-go{display:block}
  .dr-phone-go .ui-btn{width:100%; justify-content:center}
  .dr-art{display:none}
  /* the legal paper: the sections fold to one row; the head's rows on the page; the text the full width */
  .dr-rail-doc > .sp{display:none}
  .dr-rail-doc .lg-fold{display:flex; align-self:flex-start; gap:var(--s2)}
  .dr-rail-doc.is-open > .sp{display:flex; max-height:none}
  .dr-rail-doc.is-open > .sp > .sp-body{overflow:visible}
  .dr-rail-doc .lg-toc-row{min-height:var(--st-phone-row)}
  .dr-paper, .dr-paper > .sp, .dr-paper .lg-main{flex:none; overflow:visible; max-height:none; display:block; padding:0; border:0; background:none}
  .dr-paper-head{padding-inline:0; background:none; border:0}
  .dr-paper .dr-sheet{padding-inline:0; max-width:none}
  .dr-ph-1{flex-direction:column; align-items:flex-start; gap:var(--s2)}
  /* checkout: the price on top, then the card, then the chapters under their lock label */
  .dr-order{display:contents}
  .dr .tpl-frame:has(> .dr-order) > .tpl-mainsp{order:1}
  .dr-order > :is(.tpl-rail-lock, .tpl-rail-shut, .dr-order-ch){order:2}
  .dr-order .tpl-li, .dr-order .tpl-rail-shut, .dr-order .tpl-rn, .dr-order .tpl-end{display:revert !important}
  .dr-order .tpl-rail-lock{display:flex}
  .dr-order :is(.dr-order-body, .dr-fine){display:flex}
  .dr .tpl-main > .dr-embed, .dr-embed > .sp, .dr-embed .sp-body{flex:none; overflow:visible; display:block; max-height:none}
  .dr-jump{display:none}
}
/* the Club pages' week and their own pages (TC-29, TC-33; app/club-week.js), on kit tokens only */
.clubw-level, .clubw-goal{display:inline-flex; align-items:center; gap:var(--s3)}
.clubw-cols{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:var(--tpl-group)}
.clubw-page .clubw-sp{flex:1 1 auto; min-height:0}
/* a club's member list (Manage, Members): every member in reach, no page scroll (rule 5); its band takes what the column has
   left and the rows scroll inside it, the kit's scroll list; past 8 members a search box sits in its head (UI-38) */
.tpl-two-fit > .tpl-stack > .clubw-fill, .clubw-fill > .tpl-sec-body{display:flex; flex-direction:column; min-height:0; max-height:100%}
.clubw-fill > .tpl-sec-head{flex:none}
.clubw-find{margin-left:auto; flex:0 1 var(--tpl-search-w); min-width:0; --field-h:var(--menu-row-h)}   /* the search at the head's right end, the bar's search box's height */
.clubw-find .ui-field-in{font-size:var(--fs-small)}
@media (max-width:760px){   /* a phone stacks the Club page's two columns */
  .club-page .tpl-two, .club-page .tpl-two.club-even{grid-template-columns:minmax(0, 1fr); row-gap:var(--tpl-group)}
  .club-head .tpl-sec-facts{flex-wrap:wrap}
  .club-page :is(.tpl-two, .clubw-picks) .tpl-sec-head{height:auto; min-height:var(--club-u); flex-wrap:wrap; padding-block:var(--s2)}
  .clubw-cols{grid-template-columns:minmax(0, 1fr)}
  /* the A-grade phone pass (2026-11-18): nothing runs past the card or scrolls the page sideways (layout rule 5), and no word is cut
     or runs under the next (rule 9, C1). The door card's name field shares the card's width with the tag and its colours wrap at a
     thumb's size (UI-81); the head's facts wrap under the name; a row's long name takes a second line; a club list row keeps Join
     at its end whether or not its count fits (rules 2 and 6) */
  .club-door .ui-field-in:not(.club-tag-in, .mk-in){flex:1 1 0; width:auto; min-width:0}
  .club-door .club-look-pick{grid-template-columns:minmax(0, 1fr)}
  .club-door .club-look-pick .mk-dots-field{grid-template-columns:repeat(4, minmax(0, 1fr))}   /* the eleven colours and Custom fill the card's width in three full rows of four, each at least a thumb's 44 (UI-81), on the field's right edge (rule 2) */
  .club-door .club-look-pick .mk-dots-field > .mk-dots{grid-row:1 / span 3}
  .club-door .club-look-pick .mk-dots-field > .mk-field{grid-row:4; grid-column:1 / -1}
  .club-door .club-look-pick .mk-field > .ui-field-in{width:100%}   /* the Custom code field under the colours, on their edges (rule 2) */
  .club-door .club-look-pick .mk-dot{aspect-ratio:auto; height:var(--menu-set-h)}
  .club-door .club-door-pick{flex-wrap:wrap; row-gap:var(--s2)}
  .club-door .club-door-pick > .ui-field-label{flex-basis:100%}   /* Who can join over its three picks, which keep one line (rule 6) */
  .club-door .tpl-act-go > .tpl-go{flex:1 1 100%; justify-content:center}   /* one foot (UI-63): the card's one button runs its full width, the same right edge as the field and the colours */
  .club-head .tpl-sec-facts{flex-basis:100%; min-width:0; white-space:normal}
  .club-head-end{flex-wrap:wrap; margin-left:0; min-width:0}
  .club-page :is(.tpl-two, .club-railblock, .clubw-picks) .tpl-row{height:auto; min-height:max(var(--club-u), var(--menu-set-h)); padding-block:var(--s1)}
  .club-page .club-brow .tpl-t{min-width:0}
  .club-page .club-brow .tpl-t > .tpl-name{flex:0 1 auto; min-width:min-content; overflow:visible; text-overflow:clip; white-space:normal}
  /* a row's chips keep one place on every row: line two, under the name, never after however far the name runs (rules 2 and 6) */
  .club-page .club-brow .tpl-t:has(> .club-drop){display:grid; grid-template-columns:auto max-content minmax(0, 1fr); column-gap:var(--tpl-in); row-gap:var(--s1); align-items:center; justify-items:start}
  .club-page .club-brow .tpl-t:has(> .club-drop) > :not(.tpl-name, .club-drop){grid-row:1 / span 2; grid-column:1}
  .club-page .club-brow .tpl-t:has(> .club-drop) > .tpl-name{grid-row:1; grid-column:2 / -1; max-width:100%}
  .club-page .club-brow .tpl-t:has(> .club-drop) > .club-drop{grid-row:2; grid-column:auto}
  .club-page .club-brow .tpl-t:has(> .club-drop):has(> .team-tag){grid-template-columns:var(--menu-tile-w) max-content minmax(0, 1fr)}   /* a tag of up to five letters (TC-35) in one set column, so every name and chip starts on one edge (rule 2) */
}
.clubw-clubs > .tpl-sec-head{flex-wrap:nowrap}
/* Clubs to join (TC-49, the no-club Club page): under the start card the list takes what the column has left and its rows
   scroll inside it (rule 5); each row's count and its Join sit in two set columns, so both line up down the list (rules 2, 6); the button column holds Join, Ask or the Asked chip at sm */
.clubw-none-page .tpl-main > .clubw-picks{flex:1 1 auto}
.clubw-pick-end{display:grid; grid-template-columns:var(--board-c-rank) calc(var(--tpl-kind-w) * .75); align-items:center; justify-items:end; column-gap:var(--tpl-group)}
.clubw-pick-n{display:inline-flex; align-items:center; gap:var(--s1); color:var(--ink-2); justify-self:stretch; justify-content:space-between; font-variant-numeric:tabular-nums}   /* the count is one column down the list, as wide on every row: its mark at the column's start, its number right aligned and tabular (UI-37) */
/* the button keeps its own track: a row whose count fitRowWords took away gives that width to the name, never to an empty track
   after a button pulled left (layout audit C1, 2026-11-18: The Quarter Close Crew cut at 2560 beside a blank end) */
.clubw-pick-act{grid-column:2}
.clubw-picks .tpl-list-two{align-content:start}
.clubw-pick .tpl-t{min-width:0; flex-wrap:nowrap}
.clubw-pick .tpl-t > :not(.tpl-name){flex:none}
.clubw-pick .tpl-name{flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.clubw-hd{display:inline-flex; align-items:center; gap:var(--tpl-group); white-space:nowrap}
.clubw-place{display:inline-flex; align-items:center; gap:var(--s1); white-space:nowrap}   /* the club's place, How ranking works beside it */
.clubw-clubs .tpl-sec-h{white-space:nowrap}
/* the club's settings rows: the label column fits its longest label (Who can join), as the drill page's facts do */
.clubw-set .tpl-kind{min-width:calc(var(--tpl-kind-w) * 1.2); white-space:nowrap}
.clubw-set .tpl-txt{flex:1 0 auto}
.clubw-set .tpl-t{flex-wrap:nowrap; white-space:nowrap}
.clubw-look{display:inline-flex; align-items:center; gap:var(--s2)}   /* the Look row: the crest, then the tag (TC-35) */
/* Manage's sponsorships (0095, behind CLUB_SEATS; PR-20 to PR-24): the seats band heads the member list, its count beside a bar
   (UI-37) and Buy sponsorships at its end; each member row's seat, role and row action sit in three set columns, so the Sponsor
   buttons, the Sponsored chips and the role chips each line up down the list (rules 2 and 6) */
.clubw-spon .tpl-t{min-width:0}
.clubw-spon-m .pbar{width:calc(var(--tpl-kind-w) * .9)}
.clubw-seats .club-brow:not(.clubw-ask) .club-end{display:grid; grid-template-columns:auto calc(var(--tpl-kind-w) * .8) calc(var(--tpl-kind-w) * .7); align-items:center; justify-items:end; column-gap:var(--s2)}
.clubw-seats .club-brow .tpl-t{min-width:0; flex-wrap:nowrap}
.clubw-seats .club-brow .tpl-t > :not(.tpl-name){flex:none}
.clubw-seats .club-brow .tpl-name{flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.clubw-seats .club-end > .clubw-seat{grid-column:1; display:inline-grid; grid-template-columns:calc(var(--tpl-kind-w) * .75) minmax(calc(var(--tpl-kind-w) * 1.25), max-content); align-items:center; column-gap:var(--s2)}
.clubw-seats .club-end > .clubw-seat > .ui-chip{grid-column:1; justify-self:end}
.clubw-seats .club-end > .clubw-seat > .ui-btn{grid-column:2; justify-self:start}   /* the Pass chip and the button each in a set slot, so Give a pass and Take back share one left edge down the list (rule 2) */
.clubw-seats .club-end > .clubw-seat:empty{display:none}
.clubw-seats .club-end > .ui-chip{grid-column:2}
.clubw-seats .club-end > .clubw-act{grid-column:3}
.clubw-fa{display:inline-grid; place-items:center}
/* the Buy sponsorships card (the kit's md pop-out): the count and Monthly or Semester on one line at one height, then the
   price line (a fact, tabular) and the billing line */
.clubw-buy-ctl{display:flex; align-items:center; gap:var(--s3); padding:var(--s1) var(--menu-pad) var(--s2)}
.clubw-buy-ctl .mk-field{flex:none; width:calc(var(--tpl-kind-w) * 1.1); padding:0; margin:0}
.clubw-buy-ctl .mk-picks{flex:1 1 auto; margin:0; padding:0}
.clubw-buy-ctl .mk-pick{height:var(--field-h)}
.clubw-buy-price{padding-bottom:0; font-weight:var(--fw-semi); font-variant-numeric:tabular-nums}
.clubw-buy-bill{color:var(--ink-2)}

/* ---------- For teams as the clubs page (app/teams-clubs.js, TC-36 layout C): the top club today beside Sponsored members,
   Who it's for across the foot with the template's section gap above it (Wolf 2026-11-16: "more space between the clubs and
   who's it for"); the board rows and the price rows at one height ---------- */
.tm-clubs{--tpl-cols:auto minmax(0, 1fr) calc(var(--label-w) / 2) calc(var(--label-w) / 2)}
.tpl-mk-page.tpl-mk-short.tm-clubs .tpl-sections{gap:var(--tpl-section)}
.tm-clubs .tmc-who{grid-template-columns:minmax(0, 1fr)}
.tm-clubs .tmc-prices .tpl-t{white-space:nowrap}
.tm-clubs .tmc-prices .tpl-end > *, .tm-clubs .tpl-list-cols .tpl-head-row .tpl-end > *{justify-self:end}
.tm-clubs :is(.tmc-top, .tmc-prices) .tpl-row{min-height:var(--row-set); padding-block:0}
.tm-clubs :is(.tmc-top, .tmc-prices) .tpl-txt{padding-block:0}
.tm-clubs .tmc-top .tpl-sec-facts{display:flex; align-items:center; gap:var(--s3)}   /* the tag, then how many played */
@media (max-width:760px){ .tm-clubs{--tpl-cols:auto minmax(0, 1fr) auto auto} .tm-clubs .tpl-list-across{grid-auto-flow:row; grid-template-columns:repeat(2, minmax(0, 1fr))} }

/* the folds (UI-111; Wolf 15:15: "flipping between pages and it's a bit overwhelming because i just see huge lists of text"):
   Drills' This week and Course's Tips show their head row only, its count and a See all that opens it in place; Course's open
   tips (on the module's card, UI-122's amendment of 2026-11-19) take the card's spare height and scroll in their own panel, so the
   page never scrolls */
.cp-boardsec.dx-folded > .tpl-sec-body, .tpl-tips-shut > .tpl-sec-body{display:none}
.tpl-tips-open{flex:1 1 auto; min-height:0}
.tpl-tips-open > .tpl-sec-body{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
.tpl-tips-open .tpl-tips-sp{flex:1 1 auto; min-height:0}

/* ---- Course (UI-122, shape A, Wolf's pick 2026-11-19; app/course-page.js): the index template (tpl-index) with the Drills
        page's table, rows and side card. The lesson table's own columns, and each module a group head that sticks to the table's
        top while its rows pass; one table at every size, as Drills (UI-118): at 2560 the width goes to the side card and the
        columns grow with --k, since a second column of groups leaves the lesson's name no room beside the card ---- */
.cs-page .tpl-main > .tpl-fine{flex:none}
.cs-two .cs-prac .tpl-li{height:auto; min-height:var(--row-u)}   /* a row of two lines grows (the Compete frame's rows are one line) */
.cs-index{--tpl-cols:calc((var(--s16) + var(--s2)) * var(--k)) minmax(var(--idx-name-min), 1fr) calc((var(--s16) + var(--s3)) * var(--k)) calc((var(--s10) + var(--s1)) * var(--k))}   /* #, Lessons, Level, Time: steps of the scale, grown with the window's --k (no Teaches column: the new key is on the card) */
.cs-group .cs-mhead{position:sticky; top:0; z-index:1; background:var(--paper); border-top:0}
.cs-mod .cs-modname{min-width:0; font-weight:var(--fw-bold)}   /* the module head's name: its own kind, bold over the lesson rows (R3 holds tpl-name to one weight) */
.cs-mod .dx-num{color:var(--ink)}
.cs-key{display:block; justify-self:start; min-width:0; max-width:100%}
.cs-formula{font-family:var(--mono); font-weight:var(--fw-semi); color:var(--ink-2); overflow-wrap:normal}   /* a function's name, as the formula bar writes it: never a keycap */
.cs-cardprac .tpl-list{border-top:1px solid var(--grid)}
.cs-cardprac .tpl-step .tpl-t{flex-wrap:wrap; column-gap:var(--s2)}   /* in the card's narrow column a long name goes under its kind, never past the card (C7) */
.cs-card:has(.tpl-tips-open){flex:0 1 auto}   /* open Tips: the card stops at its column's foot, the tips panel gives way first */
.cs-card:has(.tpl-tips-open) > .tpl-act-body, .cs-card .tpl-next-more:has(.tpl-tips-open){flex:0 1 auto; min-height:0; display:flex; flex-direction:column; flex-wrap:nowrap}
.cs-card .tpl-next-more > .cs-cardprac{flex:none}
.cs-card .tpl-act-go .xp-chip{align-self:center}   /* the module card has no picture: its XP chip keeps the lesson card's place over the button */
.cs-card .cs-feat{color:var(--ink-2)}   /* a feature a lesson brings in, in plain words on the card's fact line */
