/* Drill Sergeant public website. Colors are the app's design tokens (DrillSergeant src/ui/theme/palette.ts):
   olive drab accent, signal-orange action, a near-black olive "command" panel that stays dark in both schemes,
   brass for achievements. No inline styles anywhere (the Content-Security-Policy forbids them). */

@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Saira Stencil One"; src: url("/assets/fonts/saira-stencil-one-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ECEEE5; --surface: #F8F9F3; --raised: #FDFDFA; --sunk: #E3E7DA;
  --ink: #1E2318; --muted: #59624F; --line: #CDD3C0; --line-strong: #7E876D;
  --accent: #4D662B; --accent-soft: #E2E8D3; --on-accent: #F8F9F3;
  --action: #A44D0E; --action-strong: #8A400B; --on-action: #FFFFFF;
  --success: #2B7235; --success-soft: #E9F2E7; --danger: #A8412B; --danger-soft: #F4DED7;
  --info: #2B5D78; --brass: #8F7128; --warn: #83560A;
  /* command panels are dark in BOTH schemes */
  --command: #1F2717; --command-raised: #2A3420; --command-line: #3B4730; --command-deep: #161A11;
  --on-command: #EEF1E6; --on-command-muted: #B7C1A6; --signal: #F08C3C; --olive-light: #9DB86A;
  --ok-on-dark: #7CC487; --ok-on-dark-soft: #1C2D1D; --bad-on-dark: #E07A62; --bad-on-dark-soft: #3A1F18;
  --grid: rgba(157, 184, 106, 0.08);
  /* the keyboard focus ring: at least 3:1 against what it touches (WCAG 2.2), measured by tools/focus_ring.js. The page's
     burnt orange by default (the signal orange in dark), reset by each surface that needs another (below :focus-visible) */
  --focus-ring: var(--action);
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Saira Stencil One", "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --page: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12150E; --surface: #1B1F15; --raised: #22271B; --sunk: #161A11;
    --ink: #E5E9DA; --muted: #9AA38B; --line: #424B37; --line-strong: #6A7559;
    --accent: #9DB86A; --accent-soft: #263018; --on-accent: #12150E;
    --action: #F08C3C; --action-strong: #F6A462; --on-action: #12150E;
    --success: #7CC487; --success-soft: #1C2D1D; --danger: #E07A62; --danger-soft: #3A1F18;
    --info: #7DB3D0; --brass: #D2AE5A; --warn: #E3B45A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-body); }
img { max-width: 100%; height: auto; }
a { color: var(--action); }
a:hover { color: var(--action-strong); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
/* surfaces that are dark in both schemes (the skip link opens over the dark header); the signal-orange band */
.command, .panel-dark, .site-footer, .skip { --focus-ring: var(--signal); }
.follow-band { --focus-ring: #12150E; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--signal); color: #12150E; padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.eyebrow { font: 600 13px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; line-height: 1.02; margin: 14px 0 0; }
h2.display { font-size: clamp(34px, 5vw, 52px); }
.lead { font-size: 18px; color: var(--muted); margin: 14px 0 0; max-width: 680px; }
.mono { font-family: var(--font-mono); }
/* no heading or label leaves one word alone on its last line */
h1, h2, h3, .eyebrow, .drill-q { text-wrap: balance; }
.lead, .card p, .step p { text-wrap: pretty; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn svg { flex: none; }
.btn-signal { background: var(--signal); color: #12150E; }
.btn-signal:hover { background: #F6A462; color: #12150E; }
.btn-ghost-dark { color: var(--on-command); border-color: var(--command-line); background: transparent; }
.btn-ghost-dark:hover { color: var(--on-command); border-color: var(--olive-light); }
.btn-lg { min-height: 52px; font-size: 17px; padding: 14px 26px; }

/* command (dark) sections */
.command { background-color: var(--command); color: var(--on-command); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; }
.command .eyebrow { color: var(--signal); }
.command .lead { color: var(--on-command-muted); }

/* header */
.site-header { border-bottom: 1px solid var(--command-line); }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-command); text-decoration: none; }
.brand:hover { color: var(--on-command); }
.brand img { width: 50px; height: 46px; object-fit: contain; }
.brand span { font: 400 22px/1 var(--font-display); letter-spacing: .04em; }
.tm { font-size: .62em; line-height: 0; vertical-align: .62em; margin-left: 1px; }
.brand .tm { font: 600 .42em/1 var(--font-mono, monospace); vertical-align: super; margin-left: 3px; letter-spacing: 0; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 300px; }
.site-nav a { color: var(--on-command-muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--on-command); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.header-cta { display: flex; gap: 12px; }
/* below 1000px the links take their own row under the brand and Subscribe, so a squeezed row never leaves one link alone */
@media (max-width: 1000px) {
  .site-nav { order: 3; flex-basis: 100%; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 600px) {
  .site-header .bar { gap: 8px 12px; }
  /* five links never fit one phone line; a 3-column grid keeps the second row aligned instead of leaving one link alone */
  .site-nav { display: grid; grid-template-columns: repeat(3, max-content); gap: 0 22px; }
  .header-cta .btn { min-height: 44px; padding: 10px 14px; font-size: 15px; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 37px; }
  .brand span { font-size: 18px; }
}

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 80px; }
.hero-copy { flex: 1 1 440px; min-width: 0; }
/* the h1 carries the searchable words (styled as the eyebrow); the slogan is the big display line */
.hero h1.eyebrow, .page-head h1.eyebrow { font-size: 13px; font-weight: 600; margin: 0; }
/* when the kicker wraps, it breaks after "HQ:" (each phrase wraps inside itself only if it alone is too wide) */
.hero h1.eyebrow .kick { display: inline-block; }
.hero .slogan { font-size: clamp(46px, 7.5vw, 88px); }
.page-head .slogan { font-size: clamp(40px, 6vw, 68px); }
.hero .lead { font-size: 19px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* the lesson fact gets its own line and the two short facts pair under it (a free-wrapping row left one fact alone);
   on the narrowest phones the pair stacks */
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--on-command-muted); }
.facts li:first-child { flex-basis: 100%; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive-light); flex: none; }

/* demo drill card */
.drill { flex: 1 1 420px; min-width: 0; max-width: 560px; background: var(--command-raised); border: 1px solid var(--command-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.drill-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 14px 20px; border-bottom: 1px solid var(--command-line); font: 500 12px/1.4 var(--font-mono); letter-spacing: .1em; color: var(--on-command-muted); }
.drill-head .live { display: inline-flex; align-items: center; gap: 8px; }
.drill-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.drill-body { padding: 22px 20px 20px; }
.drill-q { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.4; }
.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.choice { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; font: 400 16px/1.45 var(--font-body); color: var(--on-command); padding: 13px 16px; min-height: 52px; border-radius: 12px; cursor: pointer; background: #232B1A; border: 1px solid #3F4C31; transition: background .16s ease, border-color .16s ease; }
.choice:hover:not([disabled]) { border-color: var(--olive-light); }
.choice .key { flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 var(--font-mono); background: var(--command); color: var(--on-command-muted); border: 1px solid #3F4C31; }
.choice[disabled] { cursor: default; opacity: .6; }
.choice.is-right { background: var(--ok-on-dark-soft); border-color: var(--ok-on-dark); opacity: 1; }
.choice.is-right .key { background: var(--ok-on-dark); color: #12150E; border-color: var(--ok-on-dark); }
.choice.is-wrong { background: var(--bad-on-dark-soft); border-color: var(--bad-on-dark); opacity: 1; }
.choice.is-wrong .key { background: var(--bad-on-dark); color: #12150E; border-color: var(--bad-on-dark); }
.feedback { margin-top: 18px; border-radius: 12px; background: var(--command-deep); border: 1px solid var(--command-line); padding: 16px 18px; }
.feedback[hidden] { display: none; }
.verdict { font-weight: 800; font-size: 16px; margin: 0; }
.verdict.is-right { color: var(--ok-on-dark); }
.verdict.is-wrong { color: var(--bad-on-dark); }
.feedback p { margin: 8px 0 0; font-size: 15px; color: var(--on-command); }
.label-dark { margin-top: 14px; font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; color: var(--on-command-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip-dark { font-size: 13px; color: var(--on-command); text-decoration: none; border: 1px solid var(--command-line); border-radius: 999px; padding: 6px 12px; }
.chip-dark:hover { color: var(--on-command); border-color: var(--olive-light); }
.lesson-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--signal); text-decoration: none; padding: 6px 0; }
.lesson-link:hover { color: #F6A462; }
.reset { display: block; margin-top: 6px; background: none; border: 0; color: var(--on-command-muted); font: 600 14px/1 var(--font-body); padding: 10px 0; cursor: pointer; text-decoration: underline; }

/* follow band: the site's first job is growing the channels */
.follow-band { background: var(--signal); color: #12150E; }
.follow-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 28px; padding-bottom: 28px; }
.follow-inner h2 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; font-weight: 800; }
.follow-inner p { margin: 6px 0 0; font-size: 16px; }
.follow-links { display: flex; flex-wrap: wrap; gap: 10px; }
.follow { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: #12150E; color: #EEF1E6; font-weight: 700; font-size: 15px; text-decoration: none; }
.follow:hover { background: #1F2717; color: #FFFFFF; }

/* sections */
.section { padding-top: 88px; padding-bottom: 24px; }
.section:last-of-type { padding-bottom: 88px; }

/* category filter + track cards */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 700 15px/1 var(--font-body); cursor: pointer; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.filter .n { font: 600 12px/1 var(--font-mono); opacity: .8; }
.filter[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
/* flex, centred: five cards sit 3 over 2 instead of 4 over a lone 1; a filtered pair stays centred */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 26px; }
.card { flex: 1 1 300px; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.status { font: 600 11px/1.3 var(--font-mono); letter-spacing: .1em; border-radius: 999px; padding: 5px 10px; text-transform: uppercase; background: var(--sunk); color: var(--info); }
.status.good { color: var(--success); background: var(--success-soft); }
.status.soon { color: var(--warn); }
.card .kind { font: 500 12px/1.4 var(--font-mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin: 0; }
.card h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .go { margin-top: auto; padding-top: 6px; font-weight: 700; text-decoration: none; }
.note { margin: 22px 0 0; font-size: 15px; color: var(--muted); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.step { padding: 30px 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .step { border-bottom: 0; border-right: 1px solid var(--line); } .step:last-child { border-right: 0; } }
.step:last-child { border-bottom: 0; }
.step .num { font: 400 44px/1 var(--font-display); color: var(--action); }
.step h3 { margin: 18px 0 0; font-size: 21px; }
.step p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* sources */
.split { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.record { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.record-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.label { font: 500 12px/1.4 var(--font-mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--success); background: var(--success-soft); border-radius: 999px; padding: 5px 12px; }
.record dl { margin: 18px 0 0; }
.record dt { font-size: 13px; color: var(--muted); margin-top: 12px; }
.record dd { margin: 2px 0 0; font-weight: 600; }
.record blockquote { margin: 16px 0 0; border-left: 3px solid var(--accent); background: var(--sunk); border-radius: 0 10px 10px 0; padding: 12px 16px; font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font: 500 12px/1.4 var(--font-mono); color: var(--muted); background: var(--sunk); border-radius: 8px; padding: 6px 10px; }

/* practice band */
.band { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.band > div { flex: 1 1 420px; min-width: 0; }
.panel-dark { background: var(--command-raised); border: 1px solid var(--command-line); border-radius: 18px; padding: 28px; }
.panel-dark ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.panel-dark li { display: flex; gap: 10px; align-items: flex-start; }
.panel-dark li svg { flex: none; margin-top: 4px; color: var(--olive-light); }
/* pricing (the pass comes from the catalog) */
.price-panel .label-dark { margin-top: 0; }
.price-panel .fine + ul { margin-top: 16px; }
.price-track { margin: 6px 0 0; font-size: 20px; line-height: 1.3; color: var(--on-command); }
.price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 18px; }
.price .amt { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--on-command); }
.price .per { font-size: 18px; color: var(--on-command-muted); }
/* on the narrowest phones "for 30 days" goes under the amount: beside it, it stuck out of a 320px screen */
@media (max-width: 340px) { .price { flex-wrap: wrap; gap: 6px 12px; } }
/* the pricing band (11/24): the headline and "Good to know" beside the panel on a wide screen, as a pair centred against it;
   on a phone the order is headline, panel, good to know, so the price and the Buy button come first */
.price-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.price-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.good-to-know h3 { margin: 0; font-size: 18px; line-height: 1.3; color: var(--on-command); }
.good-to-know ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; max-width: 620px; }
.good-to-know li { border-left: 3px solid var(--signal); padding: 1px 0 1px 16px; font-size: 16px; color: var(--on-command-muted); text-wrap: pretty; }
@media (min-width: 928px) {
  .price-band { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr auto auto 1fr; gap: 0 40px; }
  .price-copy { grid-area: 2 / 1; }
  .good-to-know { grid-area: 3 / 1; margin-top: 36px; }
  .price-panels { grid-area: 1 / 2 / -1 / 3; align-content: center; }
}
.buy-row { margin-top: 24px; }
.btn-waiting { color: var(--on-command); border: 1px dashed var(--olive-light); background: transparent; cursor: default; }
.fine { margin: 12px 0 0; font-size: 14px; color: var(--on-command-muted); }
.fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* lessons page */
.page-head { padding-top: 48px; padding-bottom: 56px; }
.page-head h1.lesson-h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; max-width: 980px; }
.lead.small { font-size: 15px; margin-top: 18px; }
.lesson-title { color: var(--ink); text-decoration: none; }
.lesson-title:hover { color: var(--action); text-decoration: underline; }

/* a lesson's own page */
.lesson-page { padding-top: 40px; padding-bottom: 72px; max-width: 900px; }
.lesson-page section { margin-top: 36px; }
.lesson-page section:first-child { margin-top: 0; }
.lesson-page h2 { margin: 0; font-size: 22px; }
.sheet-copy { margin: 10px 0 14px; }
.learn { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.learn li { position: relative; padding-left: 26px; }
.learn li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.chapters { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.chapters li, .chapters a { display: flex; gap: 14px; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.chapters a { border-bottom: 0; padding: 0; }
.chapters a:hover { color: var(--action); }
.chapters .t { font-family: var(--font-mono); min-width: 52px; color: var(--muted); }
.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 48px; }
.pager a { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--accent); }
.pager .label { font: 500 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* lesson page: transcript (the voiced narration) and related lessons (Marketing search spec, 11/20) */
.transcript { margin-top: 14px; }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 4px 0; }
.transcript h3 { font-size: 17px; margin: 22px 0 0; }
.transcript p { margin: 8px 0 0; }
.related { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.related a { display: block; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.related a:hover { border-color: var(--accent); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.toc a { color: var(--on-command); border: 1px solid var(--command-line); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: 14px; }
.toc a:hover { border-color: var(--olive-light); color: var(--on-command); }
.domain { padding-top: 56px; }
.domain h2 { margin: 0; font-size: 26px; }
.domain .sub { margin: 6px 0 0; color: var(--muted); }
.lessons { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.lesson h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.lesson .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--muted); }
.lesson .watch { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.lesson .soon { font-weight: 600; color: var(--warn); }
.lesson details { margin-top: 6px; }
.lesson summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); padding: 4px 0; }
.lesson ol { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.lesson ol .t { font-family: var(--font-mono); color: var(--ink); display: inline-block; min-width: 52px; }

/* prose pages */
.prose { max-width: 760px; padding-top: 48px; padding-bottom: 88px; }
.prose h1 { font-size: clamp(38px, 6vw, 60px); }
.prose h2 { font-size: 22px; margin: 36px 0 0; }
.prose p, .prose li { color: var(--ink); }
.prose .lead { color: var(--muted); }
.prose ul { padding-left: 20px; }

/* about (11/24): one screen on a computer (1440x900). The photo sits beside "Who runs it", above it on a phone */
.about-head { padding-top: 24px; padding-bottom: 36px; }
.about { padding-top: 28px; padding-bottom: 48px; display: grid; gap: 16px; }
.about section { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.about h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.about p { margin: 8px 0 0; text-wrap: pretty; }
.about-who { display: grid; gap: 18px; }
.about-who picture { display: block; line-height: 0; }
.about-who img { width: 176px; height: 176px; border-radius: 14px; border: 1px solid var(--line-strong); }
.about-who h2 { font-size: 26px; }
.about-who p { font-size: 18px; text-wrap: balance; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.about .nb { white-space: nowrap; }
@media (min-width: 600px) {
  .about-who { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; }
  .about-who p { font-size: 20px; line-height: 1.5; }
}
@media (min-width: 900px) { .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* footer */
.site-footer { background: #0F120C; color: #B7C1A6; border-top: 1px solid #3B4730; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px 56px; padding-top: 44px; padding-bottom: 44px; }
.site-footer .lockup { flex: 1 1 260px; min-width: 0; }
.site-footer .lockup img { width: 120px; height: 135px; object-fit: contain; }
.site-footer .lockup p { margin: 12px 0 0; font-size: 14px; }
.site-footer b { color: #F08C3C; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.site-footer nav .label { color: #B7C1A6; }
.site-footer nav a { color: #EEF1E6; font-size: 14px; padding: 2px 0; }
.site-footer nav a:hover { color: #F08C3C; }
.site-footer .legal { flex: 1 1 100%; border-top: 1px solid #3B4730; padding-top: 22px; font-size: 13px; line-height: 1.6; }
.site-footer .legal p { margin: 0 0 8px; }
/* a link inside the small print (the maker line): the footer is dark in both themes, so it uses the footer nav colours, underlined because it sits in a sentence */
.site-footer .legal a { color: #EEF1E6; text-decoration: underline; text-underline-offset: 2px; }
.site-footer .legal a:hover { color: #F08C3C; }

/* practice-tests block on lesson pages and the lessons index (11/20) */
.practice-cta { margin-top: 36px; color: var(--on-command); }
.practice-cta .label-dark { margin-top: 0; }
.practice-cta .practice-h { margin: 6px 0 0; font: 400 26px/1.15 var(--font-display); color: var(--on-command); }
.practice-cta .practice-copy { margin: 10px 0 18px; color: var(--on-command-muted); max-width: 62ch; }

/* at-a-glance table on a lesson page (11/24), in the command panel below the buttons. Fixed columns and wrapping cells:
   it fits a 360px phone with nothing to scroll sideways. */
.glance { margin-top: 30px; max-width: 900px; color: var(--on-command); }
.glance h2 { margin: 0; font: 400 26px/1.15 var(--font-display); }
.glance table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 14px; font-size: 15px; line-height: 1.45; }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--command-line); overflow-wrap: break-word; }
.glance th:last-child, .glance td:last-child { padding-right: 0; }
.glance thead th { padding-top: 4px; font: 600 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-command-muted); }
.glance thead .name { width: 36%; }
.glance thead .num { width: 36px; }
.glance tbody th { font-weight: 700; }
.glance tbody .num { font: 600 15px/1.45 var(--font-mono); color: var(--signal); }
.glance tbody tr:last-child > * { border-bottom: 0; padding-bottom: 0; }
.glance p { margin: 12px 0 0; font-size: 15px; color: var(--on-command-muted); }
.glance table + p { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--command-line); }
.glance td, .glance p { text-wrap: pretty; }
/* a shown caption, and a "coded" table: every row is named by a value (a port), in a narrow mono column that never breaks */
.glance caption:not(.visually-hidden) { text-align: left; padding: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--on-command-muted); text-wrap: pretty; }
.glance thead .code { width: 112px; }
.glance thead .term { width: 26%; }
.glance .coded tbody th { font: 600 15px/1.45 var(--font-mono); color: var(--signal); white-space: nowrap; }
.glance .coded tbody .term { font-weight: 700; }
.glance p strong { color: var(--on-command); }
@media (max-width: 600px) {
  .glance { padding: 20px 16px; }
  .glance table { font-size: 14px; }
  .glance th, .glance td { padding-right: 12px; }
  .glance thead .num { width: 26px; }
  .glance thead .code { width: 72px; }
  .glance thead .term { width: 30%; }
  .glance .coded tbody th { font-size: 14px; }
}

/* self-checks on a lesson page (11/24): the first sections after the hero. Native <details>, closed until opened, with the
   sheet text's accent summary and triangle. The triangle is drawn here, so a wrapped question lines up with its own first
   line in every browser, and each row is a full-width target of at least 44px. */
.lesson-page .self-check h2 { line-height: 1.25; }
.check-intro { margin: 10px 0 0; }
.check-list, .check-one { margin: 14px 0 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.check-one { margin-top: 18px; }
.check-list > li + li { border-top: 1px solid var(--line); }
.self-check summary { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 600; color: var(--accent); border-radius: 13px; text-wrap: pretty; }
.self-check summary::-webkit-details-marker { display: none; }
.self-check summary::before { content: ""; flex: none; width: 9px; height: 12px; margin-top: 7px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); forced-color-adjust: none; transition: transform .16s ease; }
.self-check details[open] > summary::before { transform: rotate(90deg); }
@media (hover: hover) { .self-check summary:hover { color: var(--action); } }
.self-check summary:focus-visible { outline-color: var(--action); outline-offset: -3px; }
.self-check details > p { margin: 0 16px 16px 37px; border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; font-weight: 600; text-wrap: pretty; }
.self-check li { text-wrap: pretty; }
.self-check details > ol { margin: 0 16px 16px 37px; padding: 0 0 0 26px; display: grid; gap: 6px; font-weight: 600; }
.self-check ol > li::marker { font-family: var(--font-mono); color: var(--action); }
@media (forced-colors: active) { .self-check summary::before { background: CanvasText; } }

/* cheat sheets (11/20): the /cheat-sheets/ hub, and each sheet as text on the hub and on its lesson page.
   Entries sit two across from 900px, one across on phones; the image keeps its own 4:5 shape beside the title, and the
   text version opens under both at the entry's full width. A wide table scrolls inside its own box, never the page. */
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 22px; align-items: start; }
@media (min-width: 900px) { .sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sheet-entry { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: minmax(88px, 32%) minmax(0, 1fr); gap: 12px 18px; align-items: start; }
.sheet-entry img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--command-deep); }
.sheet-entry h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.sheet-obj { margin: 6px 0 0; font: 500 13px/1.45 var(--font-mono); color: var(--muted); }
.sheet-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.sheet-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; text-decoration: none; }
.sheet-links a:hover { text-decoration: underline; }
.sheet-links svg { width: 18px; height: 18px; flex: none; }
.sheet-entry .sheet-text { grid-column: 1 / -1; margin-top: 0; }
.sheet-text { margin-top: 18px; }
.sheet-text summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 4px 0; }
.sheet-title { margin: 10px 0 0; }
.sheet-text h3, .sheet-text h4 { margin: 18px 0 0; font: 600 13px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sheet-text .table-wrap { overflow-x: auto; margin-top: 6px; }
/* fixed columns, so every group's table lines up with the next one under it */
.sheet-text table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.sheet-text thead th:nth-child(1) { width: 24%; }
.sheet-text thead th:nth-child(2) { width: 30%; }
.sheet-text th, .sheet-text td { text-align: left; vertical-align: top; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); }
.sheet-text th:last-child, .sheet-text td:last-child { padding-right: 0; }
.sheet-text thead th { padding-top: 4px; font: 600 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); }
.sheet-text tbody th { font: 600 15px/1.45 var(--font-mono); color: var(--action); overflow-wrap: anywhere; }
.sheet-text td { overflow-wrap: break-word; }
/* an exam name and its code stay on one line ("Core 1 (220-1201)" never breaks at the hyphen) */
.page-head .nb { white-space: nowrap; }
.sheet-text tbody td:nth-child(2) { font-weight: 700; }
.sheet-text ul { margin: 6px 0 0; padding: 0; list-style: none; }
.sheet-text li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.sheet-text li strong { font-family: var(--font-mono); font-weight: 600; color: var(--action); }
.sheet-note { margin: 16px 0 0; border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; }
.sheet-drill { margin: 12px 0 0; background: var(--sunk); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
@media (max-width: 600px) {
  .sheet-entry { padding: 14px; gap: 12px 14px; }
  .sheet-text table { font-size: 14px; }
  .sheet-text th, .sheet-text td { padding-right: 8px; }
  .sheet-text tbody th { font-size: 14px; }
}
