/* The Next Row website: the design system from the approved design (7 November 2026).
   Ink, paper and cobalt, with butter for highlights. Manrope for words, IBM Plex Mono for cells and code.
   No inline styles anywhere, so pages run under a strict Content-Security-Policy. */

@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #22283A; --ink-2: #30384C; --ink-3: #475069; --ink-4: #3E465B; --on-ink: #FAF7EF; --on-ink-muted: #C5CBDA;
  --paper: #FAF7EF; --white: #FFFFFF; --sand: #F3EFE4; --grid-head: #F1EDE2;
  --rule: #E4DFD2; --grid: #D9D4C6; --muted: #5C6475; --dash: #7D8598;
  --cobalt: #365CFF; --cobalt-hover: #244BDB; --tint: #E8EDFF; --lilac: #AFC2FF; --tint-ink: #E8EDFF;
  --butter: #FFD978; --butter-soft: #FFF0C6;
  --success: #166449; --success-bg: #E6F4ED; --mint: #7FD6AE;
  --warning: #815600; --warning-bg: #FFF0C6;
  --error: #B42318; --error-bg: #FDECEA;
  --font: "Manrope", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --r-s: 4px; --r: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 24px;
  --shadow-card: 0 32px 64px -32px rgba(34, 40, 58, 0.35);
  /* names the cookie panel (consent.css) uses */
  --surface: var(--white); --surface-2: var(--sand); --text: var(--ink); --border: var(--rule);
  --action: var(--cobalt); --action-hover: var(--cobalt-hover); --on-action: var(--white); --focus: var(--cobalt); --r-p: var(--r-l); --r-c: var(--r);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 0.18em; }
a:hover { color: var(--cobalt-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
code { font-size: 0.92em; background: var(--sand); border-radius: var(--r-s); padding: 0.1em 0.35em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, li[tabindex="-1"]:focus { outline: none; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-s { width: 16px; height: 16px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--r); z-index: 2000; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section.tight { padding-top: 56px; padding-bottom: 56px; }
.section.top0 { padding-top: 0; }
@media (max-width: 640px) { .section { padding-top: 64px; padding-bottom: 64px; } .section.tight { padding-top: 40px; padding-bottom: 40px; } .section.top0 { padding-top: 0; } }
.band-white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-ink { background: var(--ink); color: var(--on-ink); }

/* ---------- type ---------- */
.display { font-size: clamp(44px, 6.2vw, 80px); line-height: 1; letter-spacing: -0.035em; font-weight: 800; }
.display-m { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
.h2-s { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; font-weight: 800; }
.h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 34em; }
.sub { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.fine { font-size: 13px; line-height: 1.55; color: var(--muted); }
.kicker { margin: 0 0 12px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--cobalt); }
.mark { box-shadow: inset 0 -0.3em 0 var(--butter); }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font-family: var(--mono); font-size: 13px; font-weight: 500; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; }
.max-18 { max-width: 18em; } .max-16 { max-width: 16em; } .max-17 { max-width: 17em; } .max-13 { max-width: 13em; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.center .lede, .center .sub { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 0; background: var(--cobalt); color: var(--white); font-family: var(--font); font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:hover { background: var(--cobalt-hover); color: var(--white); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn-md { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-quiet { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--grid); }
.btn-quiet:hover { background: var(--sand); color: var(--ink); }
.btn-butter { background: var(--butter); color: var(--ink); font-weight: 800; }
.btn-butter:hover { background: #FFCD4D; color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); font-weight: 800; }
.btn-white:hover { background: var(--paper); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); font-weight: 800; }
.btn-ink:hover { background: #151a28; color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #0F4D37; color: var(--white); }
.btn-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--cobalt); padding: 0; min-height: 44px; font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-link:disabled { color: var(--muted); cursor: default; }
.btn-link:hover { background: none; color: var(--cobalt-hover); text-decoration: underline; }
.btn .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.linkish { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; font: inherit; }
.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- header and footer ---------- */
.site-head .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.brand { display: flex; align-items: center; height: 44px; color: var(--ink); }
.brand .logo { height: 28px; width: auto; }
.logo-dark { display: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; flex: 1 1 auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 0; }
.nav a:hover { color: var(--cobalt); }
.nav a[aria-current="page"] { color: var(--cobalt); font-weight: 700; box-shadow: inset 0 -2px 0 var(--cobalt); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.head-actions .signin { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 14px; border-radius: var(--r); }
.head-actions .signin:hover { background: var(--sand); }
html[data-signed-in] .when-out, html:not([data-signed-in]) .when-in { display: none !important; }
@media (max-width: 640px) {
  .site-head .wrap { gap: 0 12px; padding-top: 10px; padding-bottom: 4px; }
  .site-head .brand { flex: 1 1 auto; min-width: 0; }
  .site-head .brand .logo { height: 22px; }
  .site-head .nav { order: 3; flex: 1 1 100%; gap: 0 20px; }
  .head-actions { gap: 4px; }
  .head-actions .signin { padding: 12px 8px; }
  .head-actions .btn { padding: 0 14px; }
}

.site-foot { border-top: 1px solid var(--rule); }
.site-foot .cols { padding: 48px 0 40px; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.site-foot .about { flex: 1 1 260px; }
.site-foot .about .logo { height: 24px; width: auto; }
.site-foot .about p { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 22em; }
.site-foot nav { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.site-foot nav h2 { font-size: 14px; font-weight: 800; margin-bottom: 6px; line-height: 1.55; }
.site-foot nav a, .site-foot nav button { color: var(--ink); text-decoration: none; padding: 6px 0; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; }
.site-foot nav a:hover, .site-foot nav button:hover { color: var(--cobalt); text-decoration: underline; }
.site-foot .legal { padding: 0 0 40px; font-size: 13px; color: var(--muted); }
.mini-foot { border-top: 1px solid var(--rule); }
.mini-foot p { padding: 32px 0 40px; font-size: 13px; color: var(--muted); }
.mini-foot .links { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 28px; font-size: 14px; }
.mini-foot .links a, .mini-foot .links button { color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; text-decoration: none; }
.mini-foot .links + p { padding-top: 12px; }

/* ---------- home: hero ---------- */
.hero .wrap { padding-top: 40px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero .copy { flex: 1 1 420px; min-width: 0; }
.hero .copy .lede { margin-top: 24px; }
.hero .copy .btn-row { margin-top: 32px; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.tick { width: 16px; height: 16px; fill: none; stroke: var(--success); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero .visual { flex: 1 1 500px; min-width: 0; }

.sheet-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-card); overflow: hidden; }
.sheet-card .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.sheet-card .top b { font-size: 13px; font-weight: 700; }
.xp-chip { font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--butter); border-radius: 999px; padding: 4px 10px; }
.sheet-card .ask { padding: 16px 18px 0; font-size: 15px; font-weight: 700; }
.fxbar { margin: 12px 18px 0; display: flex; align-items: stretch; border: 1px solid var(--grid); border-radius: var(--r); overflow: hidden; font-family: var(--mono); font-size: 14px; }
.fxbar .nm { padding: 10px 12px; background: var(--grid-head); border-right: 1px solid var(--grid); font-weight: 600; }
.fxbar .fx { padding: 10px 12px; color: var(--muted); font-style: italic; border-right: 1px solid var(--grid); }
.fxbar .f { padding: 10px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* position: relative keeps the hidden labels in the answer cells inside the scroll box, so a wide sheet scrolls on its
   own instead of widening the page */
.sheet-scroll { margin: 14px 18px 0; overflow-x: auto; position: relative; }
.sheet { border-collapse: collapse; width: 100%; min-width: 320px; font-size: 14px; }
.sheet th, .sheet td { border: 1px solid var(--grid); padding: 7px 10px; }
.sheet thead th, .sheet th[scope="row"] { background: var(--grid-head); font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); padding: 6px; text-align: center; }
.sheet th[scope="row"] { width: 36px; padding: 7px 6px; }
.sheet .h { font-weight: 700; }
.sheet .n { text-align: right; font-family: var(--mono); }
.sheet .t { background: var(--butter); box-shadow: inset 0 0 0 2px var(--cobalt); font-family: var(--mono); font-weight: 700; text-align: right; }
.sheet .t.err { color: var(--error); text-align: left; }
.sheet .hl { background: var(--tint); }
.note-ok { margin: 16px 18px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--success-bg); color: var(--success); border-radius: var(--r); padding: 12px 14px; }
.note-ok .icon { width: 22px; height: 22px; stroke-width: 2.6; }
.note-ok .txt { flex: 1 1 200px; min-width: 0; }
.note-ok strong { display: block; font-size: 15px; }
.note-ok span { font-size: 14px; }
.sheet-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.sheet-stats div { padding: 14px 12px; display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; line-height: 1.2; }
.sheet-stats div + div { border-left: 1px solid var(--rule); }
.flame { width: 20px; height: 20px; flex: none; fill: var(--butter); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.shield { width: 20px; height: 20px; flex: none; fill: var(--tint); stroke: var(--cobalt); stroke-width: 1.8; stroke-linejoin: round; }
.ring { width: 20px; height: 20px; flex: none; }
.ring .bg { fill: none; stroke: var(--rule); stroke-width: 5; }
.ring .fg { fill: none; stroke: var(--cobalt); stroke-width: 5; stroke-linecap: round; }
@media (max-width: 480px) {
  .sheet-stats div { padding: 12px 8px; font-size: 12px; }
  .sheet-card .sheet { min-width: 0; font-size: 13px; }
  .sheet-card .sheet th, .sheet-card .sheet td { padding: 6px 6px; }
  .sheet-card .sheet th[scope="row"] { width: 28px; }
  .sheet-card .top, .sheet-card .ask { padding-left: 14px; padding-right: 14px; }
  .sheet-card .fxbar, .sheet-card .sheet-scroll { margin-left: 14px; margin-right: 14px; }
  .note-ok { margin-left: 14px; margin-right: 14px; }
  .taster { padding: 18px; }
  .taster .sheet { min-width: 0; font-size: 13px; }
  .taster .sheet col:not(.cw-36) { width: auto; }
  .taster .sheet th, .taster .sheet td { padding: 6px 7px; }
}

/* ---------- home: steps, taster ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 44px; }
.step { border: 1px solid var(--rule); border-radius: var(--r-l); padding: 28px; background: var(--paper); }
.cell-tag { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600; background: var(--white); border: 1px solid var(--grid); border-radius: var(--r-s); padding: 4px 8px; }
.cell-tag.on { background: var(--butter); border-color: var(--ink); }
.step h3 { margin: 20px 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.step p { font-size: 16px; line-height: 1.55; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > .copy { flex: 1 1 360px; min-width: 0; }
.split > .copy .sub { margin-top: 18px; }
.split > .work { flex: 1 1 480px; min-width: 0; }

/* the taster: one live task, checked in the browser with the teaching engine */
.taster { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 24px; }
.taster .ask { font-size: 16px; font-weight: 700; }
.taster .ask + .fill-note { margin-top: 4px; }
.fill-note { font-size: 14px; color: var(--muted); }
.taster .sheet-scroll { margin: 14px 0 0; }
.taster label.fl { display: block; font-size: 13px; font-weight: 700; margin: 16px 0 6px; }
.taster .entry { display: flex; flex-wrap: wrap; gap: 10px; }
.taster input[type="text"] { flex: 1 1 240px; min-width: 0; min-height: 48px; border: 2px solid var(--ink); border-radius: var(--r); padding: 0 14px; font-family: var(--mono); font-size: 15px; color: var(--ink); background: var(--white); }
.taster input[type="text"]:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--tint); }
.taster .entry .btn { min-height: 48px; padding: 0 22px; font-size: 16px; }
.taster .more { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.taster .hints { margin: 12px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink); display: grid; gap: 6px; }
.taster .next { margin-top: 14px; font-size: 14px; color: var(--muted); }
.taster .next a { font-weight: 700; }
.taster td.target { background: var(--butter); box-shadow: inset 0 0 0 2px var(--cobalt); font-family: var(--mono); font-weight: 700; text-align: right; }
.taster td.target.ok { background: var(--success-bg); box-shadow: inset 0 0 0 2px var(--success); }
.taster td.target.bad, .taster td.target.err { color: var(--error); }

/* status notes: the feedback voice */
.status { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r); padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.status:empty { display: none; }
.status .icon { margin-top: 1px; }
.status.ok { background: var(--success-bg); color: var(--success); }
.status.bad { background: var(--warning-bg); color: var(--warning); }
.status.err { background: var(--error-bg); color: var(--error); }
.status.info { background: var(--sand); color: var(--ink); }
.status p { margin: 0; }
.status .xp { font-family: var(--mono); font-weight: 600; margin-left: 6px; }

/* ---------- home: tracks ---------- */
.tracks-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.tracks-head a { color: var(--butter); font-weight: 700; font-size: 16px; padding: 12px 0; }
.tracks-head a:hover { color: var(--white); }
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 40px; }
.track { background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.track h3 { margin-top: 4px; font-size: 21px; font-weight: 800; }
.track p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.track.pro { background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--on-ink); }
.track.pro p { color: var(--on-ink-muted); }
a.track:hover { box-shadow: 0 0 0 2px var(--butter); }
.badge { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; border-radius: var(--r-s); padding: 4px 8px; }
.badge.free { background: var(--success-bg); color: var(--success); }
.badge.pro { background: var(--lilac); color: var(--ink); }
.badge.save { background: var(--butter); color: var(--ink); padding: 5px 9px; }

/* ---------- home: streaks, leagues, certificates ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 44px; }
.feature { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 28px; }
.feature h3 { margin-bottom: 8px; font-size: 21px; font-weight: 800; }
.feature > p { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.week .d { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.week .lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.week .box { width: 32px; height: 32px; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; }
.week .box.done { background: var(--cobalt); }
.week .box.done svg { width: 16px; height: 16px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.week .box.today { border: 2px solid var(--cobalt); background: var(--tint); }
.week .box.open { border: 2px dashed var(--dash); }
.week-note { margin-top: 18px; font-size: 14px; font-weight: 700; }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.board li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--paper); }
.board li.you { background: var(--butter-soft); }
.board .rk { width: 22px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.board .nm { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .xp { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.cert-mini { border: 1px solid var(--grid); border-radius: var(--r); padding: 18px; background: var(--paper); }
.cert-mini .sym { height: 28px; width: auto; }
.cert-mini .lbl { margin: 14px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cert-mini .crs { font-size: 18px; font-weight: 800; }
.cert-mini .cid { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.feature .text-link { margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cobalt); color: var(--white); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band .copy { flex: 1 1 420px; min-width: 0; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.cta-band p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--white); }

/* ---------- pricing ---------- */
.price-head { padding: 48px 0 40px; }
.price-head .lede { margin-top: 20px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 32px; display: flex; flex-direction: column; }
.plan h2 { font-size: 22px; font-weight: 800; }
.plan .for { margin-top: 6px; font-size: 15px; color: var(--muted); }
.plan .price { margin-top: 24px; display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.plan .price span { font-size: 15px; color: var(--muted); }
.plan .per { margin-top: 4px; font-size: 14px; color: var(--muted); }
.plan .act { margin-top: 24px; min-height: 48px; font-size: 16px; }
.plan .per + .act { margin-top: 20px; }
.plan ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .tick { width: 18px; height: 18px; margin-top: 1px; }
.plan .renew { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.5; color: var(--muted); }
.plan.featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 32px 64px -32px rgba(34, 40, 58, 0.5); }
.plan.featured .for, .plan.featured .price span, .plan.featured .per, .plan.featured .renew { color: var(--on-ink-muted); }
.plan.featured .renew { border-top-color: var(--ink-3); }
.plan.featured .tick { stroke: var(--mint); }
.plan .title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.plan .current { margin-top: 24px; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--success-bg); color: var(--success); font-weight: 800; }
.table-card { overflow-x: auto; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); }
.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.compare thead tr { background: var(--sand); }
.compare th, .compare td { text-align: left; padding: 15px 20px; }
.compare thead th { padding: 16px 20px; font-weight: 800; }
.compare thead th + th { width: 26%; }
.compare tbody tr { border-top: 1px solid var(--rule); }
.compare tbody th { font-weight: 600; }
.compare td.f { color: var(--muted); }
.compare td.p { font-weight: 700; }
.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 0; font-size: 17px; font-weight: 700; list-style-position: outside; }
.faq summary::marker { color: var(--cobalt); }
.faq details p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- article pages: courses, functions, legal ---------- */
.page-head { padding: 40px 0 48px; }
.page-head .lede { margin-top: 20px; }
.page-head .btn-row { margin-top: 28px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cobalt); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; margin-top: 28px; }
.fact { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 18px 20px; }
.fact b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.fact span { font-size: 14px; color: var(--muted); }
.modlist { list-style: none; margin: 28px 0 0; padding: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); }
.modlist > li { display: flex; gap: 18px; padding: 22px 24px; }
.modlist > li + li { border-top: 1px solid var(--rule); }
.modlist .num { width: 44px; flex: none; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 3px; }
.modlist h3 { font-size: 18px; font-weight: 800; }
.modlist p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 600; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px; }
.chips.mono li { font-family: var(--mono); font-weight: 500; background: var(--white); border-color: var(--grid); padding: 7px 12px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 28px; }
.fn-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.fn-card h2, .fn-card h3 { font-size: 19px; font-weight: 800; }
.fn-card p { color: var(--muted); font-size: 15px; }
.fn-card .text-link { margin-top: auto; }
.fn-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fn-links a { display: inline-flex; flex-direction: column; gap: 2px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 16px; text-decoration: none; color: var(--ink); min-width: 160px; }
.fn-links a:hover { border-color: var(--cobalt); }
.fn-links .mono { font-weight: 600; color: var(--cobalt); }
.fn-links small { color: var(--muted); font-size: 13px; }
.syntax { display: block; margin-top: 16px; font-family: var(--mono); font-size: 16px; background: var(--sand); border-radius: var(--r); padding: 14px 16px; overflow-x: auto; white-space: nowrap; }
.args { margin-top: 18px; width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; font-size: 15px; }
.args th, .args td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--rule); vertical-align: top; }
.args thead th { background: var(--sand); border-top: 0; font-weight: 800; }
.args td:first-child { font-family: var(--mono); font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.mistakes { display: grid; gap: 16px; margin-top: 24px; }
.mistake { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 22px 24px; }
.mistake h3 { font-size: 18px; font-weight: 800; }
.mistake .try { display: inline-block; margin-top: 10px; font-family: var(--mono); background: var(--error-bg); color: var(--error); border-radius: var(--r-s); padding: 6px 10px; }
.mistake > p { margin-top: 12px; color: var(--muted); }
.callout { display: flex; gap: 12px; align-items: flex-start; background: var(--sand); border-radius: var(--r-l); padding: 16px 18px; margin-top: 20px; font-size: 15px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.two-col .sub { margin-top: 12px; }
.gap-l { margin-top: 48px; }
.gap-m { margin-top: 28px; }
.gap-s { margin-top: 16px; }

.prose { font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 40px 0 10px; letter-spacing: -0.01em; scroll-margin-top: 16px; }
.prose h3 { font-size: 18px; font-weight: 800; margin: 24px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; background: var(--white); border: 1px solid var(--rule); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--rule); }
.prose thead th { background: var(--sand); border-top: 0; }
.prose .summary { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 20px 24px; margin-bottom: 28px; }
.prose .summary ul { margin-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; }
.toc a { display: inline-block; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--ink); }
.toc a:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* ---------- sign-up and sign-in ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth > .wrap { width: 100%; }
.auth-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 28px 0 8px; }
.auth-top .brand .logo { height: 26px; }
.auth-top p { font-size: 14px; color: var(--muted); }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 28px 0 56px; }
.auth-card { width: 100%; max-width: 560px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: clamp(24px, 5vw, 40px); display: flex; flex-direction: column; }
.auth-card .step-label { margin: 0 0 12px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--cobalt); }
.auth-card h1 { font-size: clamp(28px, 4vw, 34px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
.auth-card .lead { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.auth-card .lead strong { color: var(--ink); word-break: break-all; }
.field-label { display: block; margin-top: 28px; font-size: 14px; font-weight: 700; }
.text-input { margin-top: 8px; width: 100%; min-height: 52px; border: 2px solid var(--ink); border-radius: var(--r); padding: 0 16px; font-family: var(--font); font-size: 17px; color: var(--ink); background: var(--white); }
.text-input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--tint); }
.text-input[aria-invalid="true"] { border-color: var(--error); }
.check-row { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check-row input { margin: 2px 0 0; width: 20px; height: 20px; accent-color: var(--cobalt); flex: none; }
.auth-card .submit { margin-top: 24px; min-height: 52px; font-size: 17px; font-weight: 800; }
.auth-card .legal { margin-top: 16px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.auth-card .switch { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; }
.auth-card .switch a { font-weight: 700; }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.code-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.code-field legend { float: left; width: 100%; padding: 0; }
.code-boxes { clear: both; padding-top: 8px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.code-boxes input { min-height: 60px; min-width: 0; width: 100%; text-align: center; border: 2px solid var(--ink); border-radius: var(--r); font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--ink); background: var(--white); padding: 0; }
.code-boxes input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--tint); }
.code-row { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.code-row .resend { border: 0; background: none; padding: 10px 0; font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--cobalt); cursor: pointer; }
.code-row .resend:disabled { color: var(--muted); cursor: default; }
.code-row a, .code-row .linkish { font-weight: 700; padding: 10px 0; color: var(--cobalt); text-decoration: none; }
.next-up { margin-top: 28px; padding: 16px; border-radius: var(--r); background: var(--sand); display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.5; }
.next-up .icon { stroke-width: 2; }
.ts-box { margin-top: 14px; }
.ts-box:empty { display: none; }
.auth .form-error { margin-top: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: var(--white); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- certificate pages ---------- */
.cert-top .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cert-ok { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--success-bg); color: var(--success); border-radius: var(--r-m); padding: 14px 18px; font-size: 15px; line-height: 1.5; }
.cert-ok .icon { width: 24px; height: 24px; stroke-width: 2.4; }
.cert-layout { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cert-layout > section { flex: 999 1 600px; min-width: 0; }
.cert-layout > aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.certificate { background: var(--white); border: 1px solid var(--grid); border-radius: var(--r-l); padding: clamp(28px, 4vw, 56px); box-shadow: 0 32px 64px -40px rgba(34, 40, 58, 0.45); position: relative; overflow: hidden; }
.certificate .stripe { position: absolute; top: 0; left: 0; right: 0; height: 8px; display: grid; grid-template-columns: 9fr 2fr 1fr; }
.certificate .stripe span:nth-child(1) { background: var(--cobalt); }
.certificate .stripe span:nth-child(2) { background: var(--butter); }
.certificate .stripe span:nth-child(3) { background: var(--ink); }
.certificate .row1 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.certificate .row1 .cert-logo { height: 30px; width: auto; }
.certificate .row1 .cid { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.certificate .kind { margin-top: 36px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.certificate .who { margin-top: 14px; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.certificate .has { margin-top: 14px; font-size: 18px; color: var(--muted); }
.certificate .what { margin-top: 4px; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.02em; font-weight: 800; }
.certificate dl { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18px; }
.certificate dt { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.certificate dd { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
.certificate .disclaimer { margin-top: 28px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 24px; }
.panel h2 { font-size: 18px; font-weight: 800; }
.panel .desc { margin: 6px 0 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.panel .two-btn { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.panel .link-out { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }
.panel.sand { background: var(--sand); border-color: var(--sand); }
.panel.dashed { background: transparent; border: 1.5px dashed var(--dash); }
.panel .inline-form { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.panel .inline-form input { flex: 1 1 160px; min-width: 0; min-height: 48px; border: 2px solid var(--ink); border-radius: var(--r); padding: 0 12px; font-family: var(--mono); font-size: 15px; color: var(--ink); background: var(--white); text-transform: uppercase; }
.panel .inline-form .btn { min-height: 48px; }
.cert-404 { margin-top: 8px; }

/* ---------- 404 ---------- */
.lost { padding: 72px 0 96px; }
.lost .btn-row { margin-top: 28px; }

@media print {
  .site-head, .site-foot, .mini-foot, .cert-top, .cert-layout > aside, .cert-ok, .skip, .cc, .no-print { display: none !important; }
  body { background: #fff; }
  .certificate { box-shadow: none; border: 1px solid #999; }
  .cert-layout { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- home: proof band, SQL strip, reviews (7 Nov 2026) ---------- */
.pill-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.proof-band { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proof li { padding: 30px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.proof li + li { border-left: 1px solid var(--rule); }
.proof b { font-size: clamp(36px, 4.2vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.proof span { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--muted); }
.proof .next b { color: var(--cobalt); }
@media (max-width: 860px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li { padding: 22px 16px; }
  .proof li + li { border-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .proof li:nth-child(even) { border-left: 1px solid var(--rule); }
  .proof .next { grid-column: 1 / -1; }
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.badge.soon { background: var(--butter); color: var(--ink); }
.track.soon { grid-column: 1 / -1; background: transparent; border: 1.5px dashed var(--ink-3); color: var(--on-ink); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.track.soon .soon-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.track.soon p { color: var(--on-ink-muted); max-width: 40em; }
.track.soon .chips { margin: 0; flex: 1 1 300px; justify-content: flex-end; }
.track.soon .chips li { background: var(--ink-2); border-color: var(--ink-3); color: var(--on-ink); }
@media (max-width: 640px) { .track.soon .chips { justify-content: flex-start; } }
.site-foot nav .soon { padding: 6px 0; color: var(--muted); }
.reviews { columns: 3 300px; column-gap: 20px; margin-top: 40px; }
.review { break-inside: avoid; margin: 0 0 20px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review .stars { display: flex; gap: 3px; }
.star { width: 20px; height: 20px; fill: var(--butter); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 17px; line-height: 1.55; font-weight: 600; }
.review figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.review figcaption span { color: var(--muted); }
.review figcaption .src { font-family: var(--mono); font-size: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 9px; }
.hero .wrap { padding-bottom: 56px; }
.faq-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 64px; align-items: start; }
@media (max-width: 860px) { .faq-split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- plain pass (7 Nov 2026): no eyebrows, pills, uppercase badges, tick rows or dashed boxes ---------- */
:root { --r-l: 12px; --r-xl: 16px; }
.kicker { margin: 0 0 10px; font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.badge { padding: 0; border-radius: 0; background: none !important; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; }
.badge.free { color: var(--success); }
.badge.pro { color: var(--cobalt); }
.badge.save { color: var(--success); padding: 0; }
.plan.featured .badge.save { color: var(--butter); }
.chips li { border-radius: 6px; }
.panel.dashed { background: var(--sand); border: 0; }
.fine-line { margin-top: 20px; font-size: 15px; color: var(--muted); }
.hero .btn-row { align-items: center; gap: 12px 28px; }
.how { list-style: none; counter-reset: how; margin: 28px 0; padding: 0; display: grid; gap: 18px; max-width: 34em; }
.how li { counter-increment: how; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 17px; line-height: 1.55; }
.how li::before { content: counter(how); font-weight: 800; color: var(--cobalt); }
.track h3 { margin-top: 0; }
.track .plan-tag { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--lilac); }
.track .plan-tag.free { color: var(--success); }
.sql-next { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--ink-3); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px 48px; align-items: baseline; }
.sql-next h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.sql-next p { color: var(--on-ink-muted); font-size: 17px; line-height: 1.55; max-width: 40em; }
@media (max-width: 760px) { .sql-next { grid-template-columns: minmax(0, 1fr); } }
.play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
.play-item { margin-top: 28px; }
.play-item h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.play-item p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 34em; }
.play-item .text-link { margin-top: 2px; }
.league-panel { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-card); padding: 6px 10px 0; }
.league-panel .lp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 12px 10px; }
.league-panel .lp-top b { font-size: 16px; font-weight: 800; }
.league-panel .lp-top span { font-size: 14px; color: var(--muted); }
.league-panel .board { margin: 0; }
.league-panel figcaption { padding: 12px 12px 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .play { grid-template-columns: minmax(0, 1fr); } }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; margin-top: 32px; }
.qa-item h3 { font-size: 17px; font-weight: 800; line-height: 1.35; margin-bottom: 8px; }
.qa-item p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 36em; }
.wrap.narrow .qa, aside .qa { grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .qa { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.cta-full { background: var(--cobalt); color: var(--white); }
.cta-full .wrap { padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-full .copy { flex: 1 1 420px; min-width: 0; }
.cta-full h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.cta-full p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--white); max-width: 36em; }
.facts-line { margin-top: 20px; font-size: 16px; font-weight: 600; color: var(--ink-3); max-width: 44em; }
h1, h2, h3 { text-wrap: balance; }
.lede, .sub, .qa-item p { text-wrap: pretty; }

/* ---------- home, fidelity pass (7 Nov): a photo on the row-step, tracks as rows, photos with real UI in front ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 40px 56px; align-items: center; padding-top: 24px; padding-bottom: 112px; }
.hero .display { max-width: 9.5em; }
.hero-form { margin-top: 32px; display: flex; align-items: center; gap: 8px; max-width: 520px; padding: 6px; background: var(--white); border: 1.5px solid var(--grid); border-radius: 14px; transition: border-color .18s ease; }
.hero-form:hover { border-color: var(--dash); }
.hero-form:has(input:focus-visible) { border-color: var(--cobalt); outline: 3px solid var(--cobalt); outline-offset: 2px; }
.hero-form input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 12px 0 14px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; }
.hero-form input::placeholder { color: var(--muted); opacity: 1; }
.hero-form input:focus { outline: none; }
.hero-form .btn { flex: none; border-radius: 10px; }
.hero .btn-row.when-in { margin-top: 32px; }
.hero .fine-line { margin-top: 16px; }
.hero .fine-line a { font-weight: 700; white-space: nowrap; }

.stage { position: relative; margin: 0; width: 100%; max-width: 580px; justify-self: end; aspect-ratio: 84 / 80; }
.stage-shape { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; fill: var(--cobalt); }
.stage-person { position: absolute; left: 58%; bottom: 0; height: 90%; width: auto; max-width: none; transform: translateX(-50%); }
.stage-card, .stage-chip { position: absolute; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 24px 48px -24px rgba(34, 40, 58, .5), 0 2px 6px rgba(34, 40, 58, .06); }
.stage-card { left: -7%; bottom: -10%; width: clamp(310px, 60%, 340px); border-radius: 14px; overflow: hidden; }
.stage-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.stage-card .top b { font-size: 13px; font-weight: 700; }
.stage-card .ask { padding: 12px 14px 0; font-size: 14px; font-weight: 700; }
.stage-card .fxbar { margin: 10px 14px 0; font-size: 13px; }
.stage-card .fxbar .nm, .stage-card .fxbar .f { padding: 8px 10px; }
.stage-card .note-ok { margin: 12px 14px 14px; padding: 10px 12px; gap: 10px; flex-wrap: nowrap; align-items: flex-start; }
.stage-card .note-ok .icon { width: 20px; height: 20px; margin-top: 1px; }
.stage-card .note-ok strong { font-size: 14px; }
.stage-card .note-ok span { font-size: 13px; line-height: 1.45; }
.stage-chip { right: -4%; top: 34%; display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; }
.stage-chip div { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (max-width: 979px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 104px; }
  .stage { justify-self: center; max-width: 520px; }
}
@media (max-width: 480px) {
  .hero-form { flex-direction: column; align-items: stretch; padding: 8px; }
  .hero-form .btn { width: 100%; }
}
@media (max-width: 520px) {
  .stage-person { left: 62%; height: 92%; }
  .stage-card { left: 0; bottom: -14%; width: 70%; min-width: 0; border-radius: 12px; }
  .stage-card .top { padding: 10px 12px; }
  .stage-card .ask, .stage-card .fxbar .nm, .stage-card .note-ok span { display: none; }
  .stage-card .fxbar { margin: 10px 12px 0; font-size: 11.5px; }
  .stage-card .fxbar .f { padding: 8px; }
  .stage-card .note-ok { margin: 10px 12px 12px; padding: 8px 10px; align-items: center; }
  .stage-card .note-ok .icon { margin-top: 0; }
  .stage-chip { right: -3%; top: 36%; padding: 10px 12px; }
  .stage-chip div + div { display: none; }
}

/* tracks: each track a row, stepping right like the logo */
.rows { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 10px; }
.rs { width: 72%; }
.rs:nth-child(2) { margin-left: 7%; }
.rs:nth-child(3) { margin-left: 14%; }
.rs:nth-child(4) { margin-left: 21%; }
.rs:nth-child(5) { margin-left: 28%; }
.rs > a, .rs > div { display: grid; grid-template-columns: 52px minmax(0, 14em) minmax(0, 1fr) 48px; grid-template-rows: auto auto; min-height: 88px; border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .18s ease; }
.rs-num { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-head { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 20px; }
.rs-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.rs-plan { font-size: 14px; font-weight: 700; }
.rs-desc { grid-column: 3; grid-row: 1; align-self: end; padding: 16px 8px 2px 0; font-size: 15px; line-height: 1.5; }
.rs-facts { grid-column: 3; grid-row: 2; align-self: start; padding: 0 8px 16px 0; font-size: 14px; font-weight: 600; }
.rs .icon { grid-column: 4; grid-row: 1 / span 2; align-self: center; justify-self: center; transition: transform .18s ease; }
.rs.soon .rs-desc { grid-row: 1 / span 2; align-self: center; padding: 16px 20px 16px 0; }
.rs.free > a { background: var(--paper); color: var(--ink); }
.rs.free .rs-num { background: var(--grid-head); color: var(--muted); box-shadow: inset -1px 0 0 var(--grid); }
.rs.free .rs-plan { color: var(--success); }
.rs.free .rs-facts { color: var(--muted); }
.rs.pro > a { background: var(--ink-2); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.rs.pro .rs-num { background: var(--ink-4); color: var(--on-ink-muted); box-shadow: inset -1px 0 0 var(--ink-3); }
.rs.pro .rs-plan { color: var(--lilac); }
.rs.pro .rs-facts { color: var(--on-ink-muted); }
.rs.soon > div { color: var(--on-ink); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.rs.soon .rs-num { color: var(--on-ink-muted); box-shadow: inset -1.5px 0 0 var(--ink-3); }
.rs.soon .rs-plan { color: var(--butter); }
.rs.soon .rs-desc { color: var(--on-ink-muted); }
.rs > a:hover { box-shadow: 0 0 0 2px var(--butter); }
.rs > a:hover .icon { transform: translateX(3px); }
html.motion-ok .rows[data-reveal] .rs { opacity: 0; transform: translateX(-28px); transition: opacity .24s ease, transform .24s cubic-bezier(.2, .7, .2, 1); }
html.motion-ok .rows[data-reveal].in .rs { opacity: 1; transform: none; }
html.motion-ok .rows.in .rs:nth-child(2) { transition-delay: .06s; }
html.motion-ok .rows.in .rs:nth-child(3) { transition-delay: .12s; }
html.motion-ok .rows.in .rs:nth-child(4) { transition-delay: .18s; }
html.motion-ok .rows.in .rs:nth-child(5) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { html.motion-ok .rows[data-reveal] .rs { opacity: 1; transform: none; transition: none; } }
@media (max-width: 860px) {
  .rs { width: calc(100% - 32px); }
  .rs:nth-child(2) { margin-left: 8px; }
  .rs:nth-child(3) { margin-left: 16px; }
  .rs:nth-child(4) { margin-left: 24px; }
  .rs:nth-child(5) { margin-left: 32px; }
  .rs > a, .rs > div { grid-template-columns: 40px minmax(0, 1fr) 40px; grid-template-rows: auto auto auto; }
  .rs-num { grid-row: 1 / span 3; }
  .rs-head { grid-column: 2; grid-row: 1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 16px 0 6px 16px; }
  .rs-head h3 { font-size: 18px; }
  .rs-desc, .rs.soon .rs-desc { grid-column: 2; grid-row: 2; align-self: start; padding: 0 0 4px 16px; }
  .rs-facts { grid-column: 2; grid-row: 3; padding: 0 0 16px 16px; }
  .rs.soon .rs-desc { padding-bottom: 16px; }
  .rs .icon { grid-column: 3; grid-row: 1 / span 3; }
}

/* streaks and leagues: a real setting, with the league table in front */
.play-visual { position: relative; padding-bottom: 64px; }
.setting-photo { display: block; width: 82%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.play-visual .league-panel { position: absolute; right: 0; bottom: 0; width: 62%; }
@media (max-width: 860px) {
  .play-visual { padding-bottom: 0; }
  .setting-photo { width: 100%; aspect-ratio: 5 / 4; object-position: 50% 35%; }
  .play-visual .league-panel { position: relative; width: calc(100% - 32px); margin: -88px auto 0; }
}

/* closing band: a learner standing in the band, head above its top edge */
.cta-full.with-photo { margin-top: 96px; }
.cta-full.with-photo .wrap { position: relative; padding-right: 400px; min-height: 340px; }
.cta-person { position: absolute; right: 32px; bottom: 0; width: 340px; height: auto; }
@media (max-width: 960px) {
  .cta-full.with-photo { margin-top: 0; }
  .cta-full.with-photo .wrap { padding-right: 24px; min-height: 0; }
  .cta-person { display: none; }
}

/* ---------- finish pass (8 Nov 2026): mono only for cells, formulas and code; no pills; no dashed boxes ---------- */
.xp-chip { font-family: var(--font); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; border-radius: 6px; }
.status .xp, .board .rk, .board .xp { font-family: var(--font); font-variant-numeric: tabular-nums; font-weight: 700; }
.review figcaption .src { font-family: var(--font); border-radius: 6px; }
.toc a { border-radius: 6px; }
.week .box.open { border: 1.5px solid var(--grid); background: var(--white); }

/* course pages: copy beside a solved exercise from the course, on the row-step */
.course-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; padding-bottom: 72px; }
.course-head .copy { min-width: 0; }
.stage-course { aspect-ratio: 84 / 62; max-width: 540px; }
.stage-course .stage-card { left: 5%; top: 4%; bottom: auto; width: 80%; }
.stage-cert { position: absolute; right: -3%; bottom: -7%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 20px 40px -24px rgba(34, 40, 58, .5); }
.stage-cert svg { width: 30px; height: auto; flex: none; }
.stage-cert b { display: block; font-size: 13px; font-weight: 800; }
.stage-cert span { font-size: 13px; color: var(--muted); }
@media (max-width: 979px) {
  .course-head .wrap { grid-template-columns: minmax(0, 1fr); padding-bottom: 88px; }
  .stage-course { justify-self: center; width: 100%; max-width: 520px; }
}
@media (max-width: 520px) {
  .stage-course .stage-card { left: 0; top: auto; bottom: -14%; width: 80%; }
  .stage-course .stage-card .ask, .stage-course .stage-card .note-ok span, .stage-course .stage-card .fxbar .nm { display: none; }
  .stage-course .stage-card .fxbar { font-size: 11.5px; }
  .stage-cert { right: 0; top: 4%; bottom: auto; padding: 10px 12px; }
  .stage-cert span { display: none; }
}

/* modules as numbered rows, like sheet rows */
.modrows { list-style: none; margin: 28px 0 0; padding: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; }
.modrows li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; }
.modrows li + li { border-top: 1px solid var(--rule); }
.mr-num { display: flex; justify-content: center; padding-top: 21px; background: var(--grid-head); box-shadow: inset -1px 0 0 var(--grid); font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.modrows li.test .mr-num { background: var(--tint); color: var(--cobalt); }
.mr-body { padding: 18px 20px; min-width: 0; }
.mr-body h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.mr-body p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.mr-body .mr-lessons { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.mr-count { padding: 20px 20px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .modrows li { grid-template-columns: 40px minmax(0, 1fr); }
  .mr-count { grid-column: 2; padding: 0 16px 16px 20px; margin-top: -8px; }
}
.skill-list { list-style: none; margin: 16px 0 0; padding: 0; columns: 3 13em; column-gap: 32px; }
.skill-list li { break-inside: avoid; display: flex; align-items: baseline; gap: 10px; padding: 5px 0; font-size: 15px; font-weight: 600; }
.skill-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--cobalt); transform: translateY(-1px); }

/* function index: one row per function */
.fn-rows { list-style: none; margin: 40px 0 0; padding: 0; max-width: 900px; border-top: 1px solid var(--rule); }
.fn-rows li { border-bottom: 1px solid var(--rule); }
.fn-rows a { display: grid; grid-template-columns: 10em minmax(0, 1fr) 24px; align-items: center; gap: 6px 28px; padding: 22px 4px; color: inherit; text-decoration: none; }
.fr-name { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--cobalt); }
.fr-desc { font-size: 16px; line-height: 1.5; color: var(--muted); }
.fn-rows .icon { color: var(--cobalt); transition: transform .18s ease; }
.fn-rows a:hover .fr-name { text-decoration: underline; text-underline-offset: 4px; }
.fn-rows a:hover .icon { transform: translateX(3px); }
@media (max-width: 600px) {
  .fn-rows a { grid-template-columns: minmax(0, 1fr) 24px; padding: 18px 2px; }
  .fn-rows .icon { grid-column: 2; grid-row: 1 / span 2; }
}

/* sign-up and sign-in: the form beside a photo on the row-step (wide screens only) */
.auth-split { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); align-items: center; justify-content: center; gap: 40px 80px; }
.auth-visual { position: relative; margin: 0; width: 100%; max-width: 480px; aspect-ratio: 84 / 84; justify-self: start; }
.auth-visual .stage-shape { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; fill: var(--cobalt); }
.auth-person { position: absolute; left: 56%; bottom: 0; height: 92%; width: auto; max-width: none; transform: translateX(-50%); }
.auth-chip { position: absolute; left: -8%; bottom: 10%; display: grid; gap: 4px; max-width: 64%; padding: 12px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 20px 40px -24px rgba(34, 40, 58, .5); }
.auth-chip b { font-size: 14px; font-weight: 800; }
.auth-chip span { font-size: 13px; color: var(--muted); }
.auth-chip .chip-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.auth-chip .chip-row span { color: var(--ink); }
@media (max-width: 979px) {
  .auth-split { grid-template-columns: minmax(0, 560px); }
  .auth-visual { display: none; }
}

/* Pro opens soon: the Worker sets data-pro="soon" on <html> while there's no Stripe key, and the buy buttons give way */
html:not([data-pro="soon"]) .pro-soon { display: none !important; }
html[data-pro="soon"] .pro-buy { display: none !important; }
.soon-note { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--sand); color: var(--ink); font-size: 15px; font-weight: 700; text-align: center; }
.plan.featured .soon-note { background: var(--ink-2); color: var(--butter); }
.soon-line { margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--cobalt); }

/* ---------- search pass (8 Nov 2026): a subheading in the h1, the courses hub and the blog ---------- */
.h1-sub { display: block; margin-top: 14px; font-size: clamp(19px, 2vw, 25px); line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; color: var(--ink-3); text-wrap: balance; }

/* courses hub: one row per course, like the function index */
.course-list { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.cl-row { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px 56px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.cl-name { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.cl-name a { color: var(--ink); text-decoration: none; }
.cl-name a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.cl-plan { color: var(--cobalt); }
.cl-plan.free { color: var(--success); }
.cl-desc { margin-top: 12px; font-size: 17px; line-height: 1.55; max-width: 38em; }
.cl-who { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 42em; }
.cl-who b { color: var(--ink); }
.cl-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 4px; }
.cl-facts { font-size: 15px; line-height: 1.55; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .cl-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 26px 0; } }
.pick { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); align-self: start; }
.pick li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.5; }
.pick a { font-weight: 800; white-space: nowrap; }
@media (max-width: 520px) { .pick li { grid-template-columns: minmax(0, 1fr); } }

/* blog index */
.post-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.post-list > li { border-bottom: 1px solid var(--rule); }
.pl-item { padding: 28px 0; }
.pl-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
.pl-title a { color: var(--ink); text-decoration: none; }
.pl-title a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
.pl-desc { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 40em; }
.pl-meta { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* a blog post: one readable column, tables that scroll sideways on small screens */
.post-head { padding-bottom: 28px; }
.post-title { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.post-head .lede { max-width: none; color: var(--ink-3); }
.post-head .lede code, .post-body code { font-size: 0.86em; white-space: nowrap; }
.post-body code.long { white-space: normal; overflow-wrap: anywhere; }
.byline { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.post-body { padding-bottom: 88px; font-size: 18px; line-height: 1.7; }
.post-body > p, .post-body > ol, .post-body > ul { margin: 0 0 18px; max-width: 40em; }
.post-body > ol, .post-body > ul { padding-left: 24px; }
.post-body > ol > li, .post-body > ul > li { margin-bottom: 8px; padding-left: 4px; }
.post-body h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 64px 0 16px; scroll-margin-top: 16px; text-wrap: balance; }
.post-body > h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin: 44px 0 12px; scroll-margin-top: 16px; }
.post-note { font-size: 15px; line-height: 1.6; color: var(--muted); border-left: 3px solid var(--butter); padding-left: 14px; }
.post-toc { margin: 32px 0 8px; padding: 22px 26px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); }
.toc-title { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.post-toc ol { margin: 0; padding-left: 22px; font-size: 16px; line-height: 1.6; columns: 2 15em; column-gap: 36px; }
.post-toc li { margin: 0 0 4px; break-inside: avoid; }
.post-body .table-card { margin: 8px 0 24px; }
.post-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.5; }
.post-table th, .post-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--rule); }
.post-table thead th { background: var(--sand); border-top: 0; font-weight: 800; white-space: nowrap; }
.post-table tbody th { font-weight: 700; }
.post-table td code, .post-body .post-table td code { font-size: 14px; background: none; padding: 0; color: var(--cobalt); font-weight: 600; white-space: nowrap; overflow-wrap: normal; }
.post-table.fixed { table-layout: fixed; }
.post-body .post-table.fixed td code { white-space: normal; overflow-wrap: normal; }
.post-table .res { font-family: var(--mono); font-weight: 600; }
.post-table .res-note { color: var(--muted); }
.post-table .err { font-family: var(--mono); font-weight: 600; color: var(--error); white-space: nowrap; }
.post-table.errors { min-width: 720px; }
.post-sheet { margin: 8px 0 24px; background: var(--white); }
.post-sheet .sheet { min-width: 420px; }
.post-try { margin: 12px 0 36px; }
.post-try .taster { font-size: 16px; line-height: 1.55; }
.post-body .qa { margin-top: 20px; }
.post-body .qa-item p code { font-size: 0.9em; }
/* the exercises post: each set's table with its answer cells shaded, the tasks, then the answers */
.post-body > .ex-answers { font-size: 17px; font-weight: 800; letter-spacing: 0; line-height: 1.3; margin: 28px 0 10px; scroll-margin-top: 16px; }
.post-sheet td.target { background: var(--butter); box-shadow: inset 0 0 0 2px var(--cobalt); }
.post-body > .ex-list > li { margin-bottom: 10px; }
.post-table.answers .ex-n { font-weight: 800; }
.post-download { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 28px; }
.post-download .fine { margin: 0; }
/* the assessment test post: the levels table, and multiple-choice questions with their options lettered A to D */
.post-table.levels td:first-child { font-weight: 800; }
.post-body > .quiz > li { margin-bottom: 22px; }
.post-body .quiz .q { margin: 0 0 6px; }
.post-body .quiz .opts { list-style: upper-alpha; margin: 0; padding-left: 26px; }
.post-body .quiz .opts li { margin: 2px 0; padding-left: 4px; }
@media (max-width: 640px) {
  .post-body { font-size: 17px; padding-bottom: 64px; }
  .post-body h2 { margin-top: 52px; }
  .post-toc { padding: 18px 20px; }
}
/* phones: tables fit the screen; the cheat sheet and the error table become stacked rows */
@media (max-width: 640px) {
  .post-table, .post-table.errors { min-width: 0; font-size: 14px; }
  .post-table th, .post-table td { padding: 10px 12px; }
  .post-sheet .sheet { min-width: 0; font-size: 13px; }
  .post-sheet .sheet col:not(.cw-36) { width: auto; }
  .post-sheet .sheet th, .post-sheet .sheet td { padding: 6px 7px; }
  .post-table thead th { white-space: normal; }
  .post-table.fixed, .post-table.fixed tbody { display: block; width: 100%; }
  .post-table.fixed thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .post-table.fixed tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 16px; border-top: 1px solid var(--rule); }
  .post-table.fixed tbody tr:first-child { border-top: 0; }
  .post-table.fixed td { display: block; padding: 0; border: 0; }
  .post-table.cheat td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .post-table.cheat td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .post-table.cheat td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); }
  .post-table.errors tbody tr { grid-template-columns: minmax(0, 1fr); }
  .post-table.errors td:nth-child(3)::before, .post-table.errors td:nth-child(4)::before { content: attr(data-label); display: block; font-weight: 800; color: var(--ink); }
  /* answers: the number beside the formula, then the result, then how it works */
  .post-table.answers tbody tr { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
  .post-table.answers td:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
  .post-table.answers td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .post-table.answers td:nth-child(4) { grid-column: 2; grid-row: 2; }
  .post-table.answers td:nth-child(4)::before { content: attr(data-label) ": "; font-weight: 800; }
  .post-table.answers td:nth-child(3) { grid-column: 2; grid-row: 3; color: var(--muted); }
  .post-table.answers.tools td:nth-child(1) { grid-row: 1; }
  /* multiple-choice answers: the number beside the answer, then why */
  .post-table.answers.quiz td:nth-child(1) { grid-row: 1 / span 2; }
  .post-table.answers.quiz td:nth-child(3) { grid-row: 2; }
  /* levels: the level, what it covers, then who it's set for */
  .post-table.levels tbody tr { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .post-table.levels td:nth-child(3) { color: var(--muted); }
  .post-table.levels td:nth-child(3)::before { content: attr(data-label) ": "; font-weight: 800; color: var(--ink); }
}
/* the XLOOKUP vs VLOOKUP post: the comparison table, and VLOOKUP formulas beside their XLOOKUP versions. On phones each
   row stacks, and every cell after the first (every cell, for the formula pairs) is labelled with its column */
.post-table.versus td:first-child { font-weight: 800; }
@media (max-width: 640px) {
  .post-table.versus tbody tr, .post-table.convert tbody tr { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .post-table.versus td:nth-child(n+2)::before, .post-table.convert td::before { content: attr(data-label) ": "; font-weight: 800; color: var(--ink); }
}

/* ---------- the account menu: the website header and the app header share it (8 Nov 2026) ---------- */
.head-actions .signin { display: inline-flex; align-items: center; gap: 8px; }
.head-actions .signin .icon { width: 18px; height: 18px; }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px 4px 4px; border: 1px solid var(--rule); border-radius: 12px; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.acct-btn:hover, .acct-btn.on { border-color: var(--cobalt); }
.acct-btn[aria-expanded="true"] { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--tint); }
.acct-av { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 800; letter-spacing: 0.02em; flex: none; }
.acct-av .icon { width: 18px; height: 18px; }
.acct-av.lg { width: 44px; height: 44px; border-radius: 11px; font-size: 15px; }
.acct-av.xl { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.acct-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s ease; }
.acct-btn[aria-expanded="true"] .acct-chev { transform: rotate(180deg); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 300; width: 300px; max-width: calc(100vw - 24px); padding: 8px; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(34, 40, 58, 0.4); text-align: left; }
.acct-who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--rule); }
.acct-who > div { min-width: 0; }
.acct-who b { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.acct-who > div > span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who > div > .acct-plan { color: var(--ink); font-weight: 700; }
.acct-links { list-style: none; margin: 0; padding: 0 0 6px; border-bottom: 1px solid var(--rule); }
.acct-links a, .acct-out { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.acct-links a:hover, .acct-out:hover { background: var(--sand); color: var(--ink); }
.acct-links .icon, .acct-out .icon { width: 18px; height: 18px; color: var(--muted); }
.acct-out { margin-top: 6px; }
.acct-out:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 640px) {
  .acct-btn { padding: 4px 6px 4px 4px; gap: 4px; }
  .acct-btn .acct-name { display: none; }
  .head-actions .signin .icon { display: none; }
}
@media (max-width: 480px) {
  .head-actions .head-lessons { display: none; }
}

/* Cookie choices banner and panel (site/consent.js). Uses the brand tokens both stylesheets define. */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.cc-box { pointer-events: auto; position: relative; width: 100%; max-width: 640px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-p); box-shadow: 0 12px 32px rgba(34, 40, 58, 0.18); padding: 20px 22px; font-family: var(--font); font-size: 15px; line-height: 1.5; }
.cc-box h2 { font-size: 18px; line-height: 1.3; margin: 0 32px 6px 0; font-weight: 700; color: var(--text); }
.cc-box h2:focus { outline: none; }
.cc-box p { margin: 0; color: var(--text); }
.cc-box a { color: var(--action); text-decoration: underline; text-underline-offset: 0.2em; }
.cc-opts { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cc-opts[hidden] { display: none; }
.cc-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.cc-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action); }
.cc-opt label { display: grid; gap: 2px; cursor: pointer; }
.cc-opt label span { color: var(--muted); font-size: 14px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: var(--r-c); border: 1px solid transparent; background: var(--action); color: var(--on-action); font: 600 15px/1.25 var(--font); cursor: pointer; }
.cc-btn:hover { background: var(--action-hover); }
.cc-btn.cc-alt { background: transparent; color: var(--text); border-color: var(--border); }
.cc-btn.cc-alt:hover { background: var(--surface-2); }
.cc-btn:focus-visible, .cc-close:focus-visible, .cc-opt input:focus-visible, .cc-box a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cc-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: var(--r-c); background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.cc-close:hover { background: var(--surface-2); }
@media (max-width: 480px) { .cc { left: 8px; right: 8px; bottom: 8px; } .cc-box { padding: 16px; } .cc-btn { flex: 1 1 auto; } }
@media print { .cc { display: none; } }

/* column widths for the practice sheets */
.cw-28 { width: 28px; }
.cw-36 { width: 36px; }
.cw-56 { width: 56px; }
.cw-64 { width: 64px; }
.cw-72 { width: 72px; }
.cw-84 { width: 84px; }
.cw-88 { width: 88px; }
.cw-90 { width: 90px; }
.cw-92 { width: 92px; }
.cw-96 { width: 96px; }
.cw-100 { width: 100px; }
.cw-104 { width: 104px; }
.cw-110 { width: 110px; }
.cw-112 { width: 112px; }
.cw-116 { width: 116px; }
.cw-120 { width: 120px; }
.cw-124 { width: 124px; }
.cw-128 { width: 128px; }
.cw-130 { width: 130px; }
.cw-140 { width: 140px; }
.cw-150 { width: 150px; }
.cw-160 { width: 160px; }
/* column widths for the blog tables */
.pc-11 { width: 11%; }
.pc-13 { width: 13%; }
.pc-16 { width: 16%; }
.pc-20 { width: 20%; }
.pc-24 { width: 24%; }
.pc-27 { width: 27%; }
.pc-28 { width: 28%; }
.pc-32 { width: 32%; }
.pc-33 { width: 33%; }
.pc-36 { width: 36%; }
.pc-40 { width: 40%; }
.pc-42 { width: 42%; }
.pc-44 { width: 44%; }
.pc-56 { width: 56%; }
.pc-89 { width: 89%; }
