/* ===========================================================================
   This file no longer owns any colour.
   ===========================================================================
   Every value below is an alias onto @broadgroup/design, which is loaded ahead
   of this file by lib/html.js (the compiled src/portal.css entry). One palette
   now drives the whole portal: a button rendered by a React island and a button
   rendered by an Express template read the SAME custom property, instead of two
   hex values being kept in step by hand.

   There is no dark-mode block here any more, and there should never be one
   again. The design tokens redefine themselves for dark -- by OS preference,
   with the [data-theme="light"|"dark"] override the portal already used -- so
   aliasing them once is correct in both themes.

   Two renames were forced, and they matter:
     --muted  -> --text-muted   (here it is a TEXT colour; in the design system
                                 --muted is a SURFACE, so a server-rendered
                                 `bg-muted` would have come out as body text)
     --accent -> --action       (here it is the blue action colour; there
                                 --accent is the amber highlight and --primary
                                 is the action colour)

   The second value in each var() is a fallback used only if the front end has
   not been built -- the portal must still render if public/app/ is missing.
   See ~/CLAUDE.md: a literal hex in app code is a bug unless it is in ~/design.
   ========================================================================== */
:root {
  --bg: var(--background, #f6f7f9);
  --surface: var(--card, #ffffff);
  --text: var(--foreground, #1b2330);
  --text-muted: var(--muted-foreground, #5b6575);
  --line: var(--border, #dde2ea);
  --action: var(--primary, #1f5fbf);
  --action-text: var(--primary-foreground, #ffffff);
  --open: var(--warning, #b45309);
  --open-bg: var(--warning-subtle, #fff4e5);
  --done: var(--success, #15803d);
  --done-bg: var(--success-subtle, #ecfdf3);
  --claude-bg: var(--info-subtle, #eef4ff);
  --error: var(--destructive, #b42318);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--action); }
/* THE container. The header, the footer and the page content all use it, so
   the wordmark lines up with the first line of content -- and with itself on
   every other page (Roger, 22 Nov 2026: "fix the header alignment on all other
   pages make them all like the home page").

   1120px with 32px of padding is the home page's own content container, and
   the approved mock-up does the same thing: one .wrap rule serving .top .wrap
   and the content both. Prose constrains itself inside this (see .prose); a
   sign-in card uses .narrow. */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.sub { color: var(--text-muted); }
main { padding: 24px 16px 64px; }
h1 { font-size: 1.8rem; margin: 0 0 4px; }
.muted, .meta { color: var(--text-muted); }
.lead { font-size: 1.05rem; }
.hero { padding: 48px 0; }
.button, button { display: inline-block; background: var(--action); color: var(--action-text); border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0 20px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--text-muted); border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--text); border-color: var(--action); font-weight: 600; }
/* The admin menu as a sidebar down the left (Roger, 22 Nov 2026), replacing
   the horizontal strip -- flat, then grouped, both of which read as a wall.
   Sections are <details>, so a browser gives us the open/close and the
   keyboard handling with no script, and the one holding the current page is
   rendered already open.

   minmax(0, 1fr) on the content column, and min-width: 0 on the content
   itself: without both, a wide table inside stretches the grid instead of
   scrolling in its own .table wrapper, and the whole page gains a sideways
   scrollbar. Radii are literal here to match the rest of this file (.card is
   12px, .pill 999px); every colour is a token. */
.admin-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 26px; align-items: start; }
.admin-main { min-width: 0; }
.admin-side { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: 14px; }
.admin-side a { display: block; padding: 5px 9px; border-radius: 6px; text-decoration: none; color: var(--text-muted); font-size: .94rem; }
.admin-side a:hover { background: var(--line); color: var(--text); }
.admin-side a[aria-current="page"] { background: var(--line); color: var(--text); font-weight: 600; }
.admin-side summary { cursor: pointer; list-style: none; padding: 7px 9px 3px; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.admin-side summary::-webkit-details-marker { display: none; }
.admin-side summary::before { content: "\25B8"; display: inline-block; width: 1.1em; }
.admin-side details[open] > summary::before { content: "\25BE"; }
.admin-side summary:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 6px; }
.admin-side .nav-items { display: flex; flex-direction: column; gap: 1px; padding-left: 10px; }
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; gap: 14px; }
  .admin-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
}

.pill { background: var(--open); color: var(--surface); border-radius: 999px; padding: 0 7px; font-size: .8rem; font-weight: 700; }
.sortbar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
select, input, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
textarea, .stack input { width: 100%; }
.q { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--done); border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; }
.q.open { border-left-color: var(--open); }
.q header { display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--text-muted); }
.q .status { font-weight: 700; color: var(--done); }
.q.open .status { color: var(--open); }
.q h2 { font-size: 1.15rem; margin: 6px 0 8px; }
.q .detail p:first-child { margin-top: 0; }
.label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); margin-bottom: 2px; }
.proposal, .answer { border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.proposal { background: var(--open-bg); }
.answer { background: var(--done-bg); }
.proposal p, .answer p { margin: 4px 0; }
.answer-form, .comments form { display: grid; gap: 6px; margin-top: 10px; }
.answer-form button, .comments form button { justify-self: start; }
.comments { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
.comments h3 { font-size: .95rem; margin: 4px 0; }
.comments ol { list-style: none; padding: 0; margin: 0; }
.comment { padding: 8px 10px; border-radius: 8px; margin: 6px 0; border: 1px solid var(--line); }
.comment.claude { background: var(--claude-bg); }
.comment .meta { font-size: .82rem; }
.comments label { font-size: .9rem; color: var(--text-muted); }
.log { list-style: none; padding: 0; }
.log li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.log h2 { font-size: 1.05rem; margin: 2px 0 6px; }
/* A reading width. The container is 1120px, and 1120px of running text is
   roughly 150 characters a line -- about twice what is comfortable. The legal
   pages are the ones this protects. */
.prose { max-width: 74ch; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 20px; overflow-wrap: anywhere; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; margin: 12px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; text-align: left; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.narrow { max-width: 420px; margin: 40px auto; }
.stack { display: grid; gap: 8px; }
.stack button { margin-top: 8px; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 40px; }
.stack .pw-toggle, .pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); margin: 0; padding: 6px; background: none; border: 0; color: var(--muted, currentColor); display: flex; align-items: center; cursor: pointer; }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle .slash { display: none; }
.pw-toggle.on .slash { display: block; }
/* Sign-in page. The three ways off it were one line of small print separated by
   dots, and people missed them (Roger, 22 Nov 2026: make them "a little more
   obvious"). Two changes: the recovery link now sits with the password it
   recovers, where you look when it fails; and the two ways to get an account
   are rows you can see and hit, each saying who it is for, because "create an
   account" and "register with a company code" do not tell you which one
   applies to you. Colours are tokens, so this follows the design system. */
/* The recovery link sits ON the password label's line, not on a row of its own:
   same place to look when the password has just failed, one row less tall
   (Roger, 22 Nov 2026, still scrolling on /login). */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row a { font-size: 14px; }
.alt-ways { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.alt-head { margin: 0 0 4px; font-weight: 600; color: var(--text); }
.alt-way { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); text-decoration: none; }
.alt-way:hover, .alt-way:focus-visible { border-color: var(--action); }
.alt-way b { display: block; color: var(--action); }
.alt-way span { display: block; margin-top: 2px; font-size: 14px; color: var(--text-muted); }
.alt-way > div { flex: 1; }
/* The arrow carries the "this goes somewhere" cue, as the home-page tiles
   do. The row border is only 1.2:1 against the card, so the affordance
   cannot rest on it -- bold action-coloured text plus this arrow do the
   work, both well past 4.5:1. */
.alt-way i { font-style: normal; color: var(--action); }

.error { color: var(--error); font-weight: 600; }
@media (max-width: 600px) { h1 { font-size: 1.5rem; } .q { padding: 14px; } }

/* ---- Training site ---- */
.top .wrap { flex-wrap: wrap; height: auto; min-height: 56px; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-left: auto; }
nav.main a { text-decoration: none; color: var(--text-muted); }
nav.main a[aria-current="page"] { color: var(--text); font-weight: 600; }
.wide { max-width: 1120px; }
main.wrap:has(.wide):not(.full) { max-width: 1120px; }
.button.secondary, button.secondary { background: transparent; color: var(--action); border: 1px solid var(--action); }
button.link { background: none; color: var(--action); padding: 0; font-weight: 400; text-decoration: underline; }
button.link.danger { color: var(--error); }
button[disabled] { opacity: .5; cursor: not-allowed; }
.inline { display: inline; }
/* A link-styled submit that follows a .stack form -- "Email me a new code"
   under Sign in on /2fa -- takes a line of its own. Inline, it shares the
   line box that ends the form above and ends up touching the button. */
.stack + form.inline { display: block; margin-top: 10px; }
/* "Cancel and sign out" on the two-step pages: a line of its own below the
   card's last paragraph. It used to be a form inside a <p>, which is not
   allowed -- the parser broke the form out and the paragraph's `small`
   never reached the button. The form carries both classes itself now. */
.cancel-out { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin: 8px 0; }
.row label { display: grid; gap: 2px; font-size: .9rem; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: auto; margin-top: 4px; }
.small { font-size: .88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.flash { background: var(--done-bg); border-radius: 8px; padding: 8px 12px; }
.notice { background: var(--open-bg); border-radius: 8px; padding: 8px 12px; }
.notice.ok { background: var(--done-bg); }
.crumbs { margin: 0; font-size: .9rem; }
.card { margin-bottom: 16px; }
.card h2, .card h3 { margin-top: 0; }
.narrow-left { max-width: 520px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
/* Form on the left, the list it adds to on the right (Roger, 22 Nov 2026).
   Not .grid2: that splits evenly, and these two halves do not deserve equal
   width -- the inputs gain nothing from it and the table always wants more.
   minmax(0, 1fr) rather than 1fr so the .table wrapper inside can still
   scroll instead of forcing the whole grid wider than the page. The markup
   puts the form first, so the single-column fallback keeps it on top. */
.split-form { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 20px; align-items: start; }
.split-form > .card { margin: 0; }
@media (max-width: 900px) { .split-form { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.score strong { display: block; font-size: 2rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 1px 9px; background: var(--line); color: var(--text); vertical-align: middle; }
.badge.active { background: var(--done-bg); color: var(--done); }
.badge.expired, .badge.draft { background: var(--open-bg); color: var(--open); }
.badge.revoked { background: var(--error); color: var(--surface); }
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.bar span { display: block; height: 100%; background: var(--done); }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
th { font-size: .85rem; color: var(--text-muted); }
td.actions a { margin-right: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.filters a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; color: var(--text); background: var(--surface); }
.filters a[aria-current="page"] { border-color: var(--action); font-weight: 600; }
.module h2 { font-size: 1.15rem; margin: 20px 0 8px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.course { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.course:hover { border-color: var(--action); }
.course.soon { opacity: .65; }
.lessons { list-style: none; padding: 0; }
.lesson { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.lesson .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: 700; }
.lesson.done .tick { background: var(--done); color: var(--surface); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 3px 0; color: var(--text-muted); }
.checklist li.ok { color: var(--text); }
.checklist li.ok span { color: var(--done); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 600; }
.verify .badge { font-size: 1rem; padding: 3px 14px; }
.practical { border-left: 5px solid var(--action); }
.task-text p { margin: 6px 0; }
.player { position: relative; margin-bottom: 16px; }
.player video { width: 100%; background: #000; border-radius: 10px; display: block; }
/* Watermark: name, email and company repeated faintly over protected content. */
.protected { position: relative; }
.wm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; gap: 40px; opacity: .09; transform: rotate(-12deg); user-select: none; }
.wm span { font-size: .9rem; white-space: nowrap; color: var(--text); }
.player .wm { opacity: .14; }
.player .wm span { color: #fff; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px; margin-bottom: 16px; }
.guide:empty { display: none; }
.exam fieldset.q { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin: 0 0 14px; padding: 12px 16px; }
.exam legend { font-weight: 700; padding: 0 4px; }
.exam .opt, .exam .order { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.exam .opt input { width: auto; }
.exam input[type="text"], .exam input:not([type]) { width: 100%; max-width: 360px; }
.timer { position: sticky; top: 0; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; display: inline-block; }
.timer.low { border-color: var(--error); color: var(--error); }
.mail pre { white-space: pre-wrap; font: inherit; font-size: .9rem; }
.review details { margin: 6px 0; }
/* Printing course material gives a blank page; certificates are the shareable item. */
@media print { .protected, .practical, .guide { display: none !important; } }

/* ---- Certification road map ---- */
.rm-intro { margin: 16px 0 10px; max-width: 360px; }
.roadmap { display: grid; grid-template-columns: minmax(140px, .8fr) repeat(3, minmax(0, 1fr)) minmax(170px, 1fr); gap: 10px; align-items: stretch; margin-bottom: 8px; }
.rm-head { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); grid-row: 1; }
.rm-head:not(:first-child)::after { content: " →"; }
.rm-head:last-child::after { content: ""; }
.rm-path { grid-column: 1; display: flex; align-items: center; padding: 8px 10px; border-left: 4px solid var(--action); background: var(--surface); border-radius: 8px; }
.rm-cell { display: grid; gap: 6px; align-content: start; }
.rm-expert { display: flex; }
.rm-expert .rm-card { width: 100%; justify-content: center; border-width: 2px; border-color: var(--action); }
.rm-card { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-decoration: none; color: var(--text); }
.rm-card:hover { border-color: var(--action); }
.rm-card.soon { border-style: dashed; }
.rm-code { font-size: .75rem; font-weight: 800; letter-spacing: .05em; color: var(--action); }
.rm-name { font-weight: 600; line-height: 1.25; }
.rm-card .badge { justify-self: start; margin-top: 2px; }
.rm-card.st-held { border-color: var(--done); background: var(--done-bg); }
.rm-card.st-doing { border-color: var(--action); }
.rm-card.st-locked { opacity: .6; }
.badge.st-held { background: var(--done-bg); color: var(--done); }
.badge.st-doing { background: var(--doing-bg); color: var(--doing-text); }
.badge.st-available { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.badge.st-locked { background: var(--line); color: var(--text-muted); }
.rm-legend .badge { margin-right: 6px; }
.checklist ul { list-style: none; padding-left: 20px; }
/* Phones: each path becomes its own block, levels labelled inline. */
@media (max-width: 760px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap > * { grid-row: auto !important; grid-column: auto !important; }
  .rm-head { display: none; }
  .rm-path { margin-top: 10px; }
  .rm-cell::before { content: attr(data-level); font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
  .rm-expert { margin-top: 10px; }
}

/* ---- Brand: "Orbit" logo, Sora wordmark, Manrope tagline (fonts self-hosted, SIL OFL) ---- */
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }
/* The wordmark and the orbit chart. --brand-ink is the design system's own
   masthead ink and already inverts for dark, so the logo follows the theme with
   no second set of values here. The "off" greys are states of the orbit chart
   rather than brand colours, so they map onto the neutral tokens. */
:root {
  --ink: var(--brand-ink, #0E2A47);
  --brand-accent: var(--accent, #F5A524);
  --logo-ink: var(--brand-ink, #0E2A47);
  --logo-eye: var(--card, #FFFFFF);
  --logo-ring-op: .18;
  --node-off: var(--muted, #E6EAF0);
  --node-off-line: var(--border, #C9D1DC);
  --node-off-text: var(--muted-foreground, #8795A6);
  --link-off: var(--border, #D7DEE7);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.wordmark { font-family: "Sora", system-ui, sans-serif; font-weight: 600; letter-spacing: -.02em; font-size: 1.15rem; line-height: 1; white-space: nowrap; }
.logo-ink { fill: var(--logo-ink); }
.logo-eye { fill: var(--logo-eye); }
.logo-ring { stroke: var(--logo-ink); stroke-opacity: var(--logo-ring-op); }
.logo-spokes { stroke: var(--logo-ink); }
h1, h2, .rm-name, .orbit-name { font-family: "Sora", system-ui, sans-serif; font-weight: 600; letter-spacing: -.01em; }
.tagline { font-family: "Manrope", system-ui, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .32em; font-size: .75rem; color: #4F6275; }

/* ---- Personal certification orbit (Profile › Certifications) ---- */
.orbit-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.orbit { display: block; width: 100%; max-width: 880px; height: auto; margin: 0 auto; }
.orbit-ring { fill: none; stroke: var(--logo-ink); stroke-opacity: var(--logo-ring-op); stroke-width: 2; }
.orbit-expert { fill: none; stroke: var(--node-off-line); stroke-width: 5; stroke-dasharray: 10 9; }
.orbit-expert.on { stroke: var(--brand-accent); stroke-width: 7; stroke-dasharray: none; }
/* The ERP Practitioner ring, inside the Associates. Dashed and thinner than
   the Expert line: it is the first step, not the last. Tokens only. */
.orbit-practitioner { fill: none; stroke: var(--action); stroke-opacity: .4; stroke-width: 3; stroke-dasharray: 6 7; }
.orbit-practitioner.on { stroke: var(--action); stroke-width: 4; stroke-dasharray: none; }
/* The hub is PAINT, not ink. var(--ink) inverts to white in dark mode, which
   turned this into a white disc carrying white text -- the same inversion as
   the badges, the footer and the earned nodes. The two literal hexes went with
   it: they were the navy-surface pair, which the design system now names. */
.orbit-core { fill: var(--brand-surface); }
.orbit-name { fill: var(--brand-surface-foreground, #fff); text-anchor: middle; }
.orbit-tag { fill: var(--brand-surface-muted, #b9c8d8); text-anchor: middle; font-family: "Manrope", system-ui, sans-serif; font-weight: 700; font-size: 9px; letter-spacing: .18em; }
.orbit-node text { text-anchor: middle; font-family: "Manrope", system-ui, sans-serif; pointer-events: none; }
.orbit-node text.code { font-weight: 700; }
.orbit-node.off circle { fill: var(--node-off); stroke: var(--node-off-line); stroke-width: 2; }
.orbit-node.off text { fill: var(--node-off-text); }
/* An EARNED certification.
 *
 * Two things were wrong here, and they are the same bug in two places.
 *
 * The ring was var(--surface) -- the page's own card colour, so white on a
 * white page. It separated the node from the ring line behind it but said
 * nothing: "earned" was carried by the dark fill alone. It is now var(--earned),
 * a colour that exists to mean exactly this (see ~/design tokens.css).
 *
 * The fill was var(--ink), which is WORDMARK ink: it inverts to white in dark
 * mode. A white circle with the #FFFFFF label below made every earned node
 * invisible in dark mode -- the same inversion that blanked the badges and the
 * footer. --brand-surface is paint, stays navy in both themes, and --earned is
 * light in both so it reads against it either way. */
.orbit-node.on circle { fill: var(--brand-surface); stroke: var(--earned); stroke-width: 3.5; }
.orbit-node.on text { fill: var(--brand-surface-foreground, #fff); }
.orbit-node.on.accent circle { fill: var(--brand-accent); stroke: var(--earned); }
/* Expert is gold-filled. --accent-foreground is the token for text ON accent,
   and it is dark in both themes, which is what gold needs. */
.orbit-node.on.accent text { fill: var(--accent-foreground, #0e2a47); }
/* ERP Practitioner sits in a gap on the Associate ring but is a tier below it,
   so its bubble is outlined rather than filled like an Associate's. */
/* The ERP Practitioner capsule: a thick round-capped arc on its own ring, with
   its name set along the curve. cap-edge is the wider stroke underneath, which
   is what gives the capsule its outline. */
/* It is the starting point, so it carries the action colour even before it is
   earned, rather than sitting grey with everything else. Outlined when not yet
   earned and filled once it is, which keeps the chart's "filled = earned"
   language intact while still letting it stand out. */
.orbit-capsule .cap-edge { fill: none; stroke: var(--action); stroke-width: 26; stroke-linecap: round; }
.orbit-capsule .cap-fill { fill: none; stroke: var(--surface); stroke-width: 20; stroke-linecap: round; }
.orbit-capsule .cap-guide { fill: none; stroke: none; }
.orbit-capsule .cap-label { fill: var(--action); font-family: "Manrope", system-ui, sans-serif; font-weight: 700; font-size: 9px; letter-spacing: .06em; pointer-events: none; }
.orbit-capsule.on .cap-fill { stroke: var(--action); }
.orbit-capsule.on .cap-label { fill: var(--action-text); }

/* The three capsules travel clockwise around their ring as one group.
   transform-box is set so the rotation uses the inline transform-origin (the
   orbit's centre, written by lib/orbit.js) rather than the element's own
   bounding box.

   Two labels per capsule, one on each direction of the arc, swap so the name is
   never upside down: a single label would be inverted for half of every
   revolution. The swap offsets are tied to the FIRST capsule's start angle
   (298.5deg) -- it passes 0deg at 17.08% of a turn and 180deg at 67.08% -- so
   they must be recomputed if that angle changes. The other two capsules reuse
   these keyframes at their own phase, through a negative animation-delay that
   lib/orbit.js writes inline from their spacing and this duration; change the
   72s here and it must change there. The 0.01% steps make each swap instant
   rather than a cross-fade through two visible labels.

   With motion turned off none of this runs, and the inline opacity lib/orbit.js
   writes leaves each capsule on whichever of its two labels is upright where it
   stands. */
@keyframes orbit-cap-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-cap-upper { 0%, 17.08% { opacity: 1; } 17.09%, 67.07% { opacity: 0; } 67.08%, 100% { opacity: 1; } }
@keyframes orbit-cap-lower { 0%, 17.08% { opacity: 0; } 17.09%, 67.07% { opacity: 1; } 67.08%, 100% { opacity: 0; } }
.orbit-capsule { transform-box: view-box; }
.orbit-capsule .cap-label-alt { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .orbit-capsule { animation: orbit-cap-spin 72s linear infinite; }
  .orbit-capsule .cap-label { animation: orbit-cap-upper 72s linear infinite; }
  .orbit-capsule .cap-label-alt { animation: orbit-cap-lower 72s linear infinite; }
  /* It is a link: hold it still when someone goes to read or click it. */
  .orbit-capsule:hover, .orbit-capsule:focus-within,
  .orbit-capsule:hover .cap-label, .orbit-capsule:focus-within .cap-label,
  .orbit-capsule:hover .cap-label-alt, .orbit-capsule:focus-within .cap-label-alt { animation-play-state: paused; }
}
.orbit-node.doing circle { fill: var(--surface); stroke: var(--doing); stroke-width: 4; }
.orbit-node.doing text { fill: var(--text); }
.orbit-node:hover circle, .orbit-node:focus circle { stroke: var(--action); stroke-width: 4; }
.orbit-node:focus { outline: none; }
/* Pointing at a bubble (public/orbit.js): it and the certifications still needed for it stay bright, the rest fade. */
.orbit-node { transition: opacity .15s; }
.orbit.tracing .orbit-node:not(.is-target):not(.is-need) { opacity: .25; }
.orbit.tracing .orbit-node.is-need circle { stroke: var(--doing); stroke-width: 5; }
.orbit.tracing .orbit-node.is-target circle { stroke: var(--action); stroke-width: 5; }
/* The same two states for the capsule, which is built from paths, not a circle. */
.orbit.tracing .orbit-capsule.is-need .cap-edge { stroke: var(--doing); stroke-width: 30; }
.orbit.tracing .orbit-capsule.is-need .cap-label { fill: var(--doing); }
.orbit.tracing .orbit-capsule.is-need.on .cap-fill { stroke: var(--doing); }
.orbit.tracing .orbit-capsule.is-need.on .cap-label { fill: var(--action-text); }
.orbit.tracing .orbit-capsule.is-target .cap-edge { stroke: var(--action); stroke-width: 30; }
@media (prefers-reduced-motion: reduce) { .orbit-node { transition: none; } }
.orbit-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .88rem; color: var(--text-muted); }
.orbit-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.orbit-legend .k-on { background: var(--brand-surface); border: 3px solid var(--earned); } .orbit-legend .k-doing { border: 3px solid var(--doing); }
.orbit-legend .k-off { background: var(--node-off); border: 2px solid var(--node-off-line); }
.orbit-legend .k-exp { border: 3px dashed var(--node-off-line); }
.level-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.level-counts .card { margin: 0; text-align: center; }
.level-counts strong { display: block; font-size: 1.5rem; font-family: "Sora", system-ui, sans-serif; }
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 18px; }
.subnav a { padding: 8px 12px; text-decoration: none; color: var(--text-muted); border-bottom: 3px solid transparent; }
.subnav a[aria-current="page"] { color: var(--text); border-color: var(--action); font-weight: 600; }

/* ---- Road map poster: levels as rows, paths as columns ---- */
/* --pm-track is set inline from the number of paths on show, so the level rows
   and the full-width Practitioner/Expert bands always end on the same column.
   The literal below is the four-path default, used if the variable is absent. */
.pmap { display: grid; grid-template-columns: var(--pm-track, 130px minmax(0, 2fr) repeat(3, minmax(0, 1fr))); column-gap: 14px; row-gap: 0; margin: 26px 0 10px; }
.pm-corner { grid-column: 1; }
/* Column titles: no boxes, just the module codes over the path name, with a navy rule. */
.pm-path { display: grid; align-content: end; gap: 2px; padding: 0 4px 12px; border-bottom: 3px solid var(--ink); text-align: center; }
.pm-path-codes { font-family: "Sora", system-ui, sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; color: var(--text); }
.pm-path-name { font-size: .8rem; color: var(--text-muted); line-height: 1.3; }
/* Each level is a band with breathing room; alternate bands are shaded so rows read across. */
.pm-band { padding: 18px 0; }
.pmap > .pm-band:nth-child(n) { border-bottom: 1px solid var(--line); }
.pm-level { grid-column: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.pm-level strong { font-family: "Sora", system-ui, sans-serif; font-weight: 600; }
.pm-cell { display: grid; gap: 10px; align-content: start; }
.pm-cell.pm-fspm > .pm-card:only-child { grid-column: 1 / -1; }
.pm-cell.pm-fspm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pm-span { grid-column: 2 / -1; display: flex; justify-content: center; align-items: center; }
.pm-none { display: block; }
.pm-card { display: grid; gap: 3px; align-content: center; min-height: 74px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.pm-card:hover { box-shadow: 0 2px 12px rgba(14, 42, 71, .14); }
.pm-card .rm-name { font-size: .95rem; line-height: 1.3; }
.pm-card.st-held { border-color: var(--done); background: var(--done-bg); }
.pm-card.st-doing { border-width: 4px; border-color: var(--doing); }
.pm-card.st-locked { opacity: .6; }

/* ---- Tracing the path to a certification (public/pathtrace.js) ----
 *
 * Pointing at a card lights the certifications on the way to it and fades the
 * rest (Roger, 24 Nov 2026). The path is in each card's data-needs; the script
 * only sets .tracing on the grid and .is-target / .is-need on the cards.
 *
 * SPECIFICITY, because these have to beat the state colours above:
 * `.pmap.tracing .pm-card` is (0,3,0), so it wins over `.pm-card.st-locked`
 * (0,2,0) and over `body.a2z .pm-card` (0,2,1) -- three classes beat two,
 * whatever the type selector. The two highlight rules are (0,4,0) and beat
 * `.pm-card.st-held`'s background in turn, which is the point: while tracing,
 * the path is what the colour means. */
.pmap.tracing .pm-card { opacity: .3; }
.pmap.tracing .pm-card.is-target { opacity: 1; border-color: var(--action); outline: 3px solid var(--action); outline-offset: 2px; }
.pmap.tracing .pm-card.is-need { opacity: 1; border-color: var(--action); background: var(--claude-bg); }
.pm-help { margin-top: 10px; }

/* A fade is a colour change, not motion, but it is still animation to someone
   who has asked for less of it. */
@media (prefers-reduced-motion: no-preference) {
  .pm-card { transition: opacity .12s ease, background-color .12s ease; }
}
.pm-expert { width: 100%; border-color: var(--brand-accent); justify-items: center; text-align: center; }
.pm-practitioner { width: 100%; border-color: var(--action); justify-items: center; text-align: center; }
@media (max-width: 900px) {
  .pmap { grid-template-columns: 1fr; }
  .pmap > * { grid-column: 1 !important; }
  .pm-corner, .pm-path { display: none; }
  .pm-level { flex-direction: row; justify-content: flex-start; padding: 16px 0 8px; border-bottom: 0 !important; }
  .pm-band { padding: 6px 0; }
  .pm-cell:empty, .pm-cell:has(> .pm-none) { display: none; }
  .pm-cell::before { content: attr(data-path); font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
  .pm-cell.pm-fspm { grid-template-columns: 1fr 1fr; }
  .pm-cell.pm-fspm::before { grid-column: 1 / -1; }
}

/* ---- Level badges (ERP <Level> with stars) ---- */
.course-head { display: flex; align-items: center; gap: 14px; }
.course-head h1 { margin: 0; }
.level-counts .card { display: grid; justify-items: center; gap: 4px; }
.level-counts .not-yet .badge-hex { filter: grayscale(1); opacity: .45; }

/* ---- Courses by level ---- */
.course-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 16px; }
.course-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--text); }
.course-item:hover { border-color: var(--action); }
.course-item.st-held { border-color: var(--done); background: var(--done-bg); }
.course-item.st-doing { border-color: var(--doing); }
.course-item.st-locked .badge-hex { filter: grayscale(1); opacity: .5; }
.course-item .badge-hex { flex: none; }
.flush { margin: 0; }

/* ---- Courses › level tab: big badge left, list right ---- */
.level-view { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 28px; align-items: start; margin-top: 18px; }
.level-side { display: grid; justify-items: center; text-align: center; gap: 4px; position: sticky; top: 12px; }
.level-side h2 { margin: 8px 0 0; }
.level-side p { margin: 0; }
.level-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.level-row { display: flex; align-items: baseline; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--ink); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.level-row:hover { border-color: var(--action); }
.level-row .rm-code { min-width: 4.5em; }
.level-row.st-held { border-left-color: var(--done); background: var(--done-bg); }
.level-row.st-doing { border-left-color: var(--doing); }
.level-row.st-locked { border-left-color: var(--line); color: var(--text-muted); }
@media (max-width: 700px) { .level-view { grid-template-columns: 1fr; } .level-side { position: static; } .level-side .badge-hex { width: 140px; height: auto; } }

/* Header lines up with wide pages; "The levels" cards sit four across. */
/* Three across, for the home page's programme cards (Roger, 22 Nov 2026).
   minmax(0, 1fr) so a long word cannot push the row wider than its container. */
/* The tagline in two colours and bold, as the mock-up drew it (Roger, 22 Nov
   2026): the range in the action colour, what it is in wordmark ink, the dash
   between them quiet. Both are the portal's own token names, which map onto
   the design system -- so this reverses on dark without a second rule, where
   --ink becomes white and --action the lighter blue.

   Ink is used for TEXT here, which is what it is for. It must never end up on
   a button or a link. */
.brand-tagline .tag-range { color: var(--action); font-weight: 700; }
.brand-tagline .tag-what { color: var(--ink); font-weight: 700; }
.brand-tagline .tag-dash { color: var(--text-muted); font-weight: 400; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid4 .card { margin: 0; }


/* Two-step sign-in recovery codes */
ul.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .4rem 1.5rem; font-size: 1.1rem; }

/* ---- Level colours for the certification orbit: one per ring, matched in the key and the level cards ---- */
:root {
  --ring-associate: var(--level-associate, #3B82C4);
  --ring-analyst: var(--level-analyst, #1E9E8F);
  --ring-lead: var(--level-lead, #7A5BB5);
  --ring-expert: var(--level-expert, #F5A524);
  --lvl-associate-text: var(--level-associate-text, #2563A0);
  --lvl-analyst-text: var(--level-analyst-text, #137A6E);
  --lvl-lead-text: var(--level-lead-text, #64479C);
  --lvl-expert-text: var(--level-expert-text, #8F5B00);
}
.orbit-ring.ring-associate { stroke: var(--ring-associate); }
.orbit-ring.ring-analyst { stroke: var(--ring-analyst); }
.orbit-ring.ring-lead { stroke: var(--ring-lead); }
.orbit-ring[class*="ring-"] { stroke-opacity: .75; stroke-width: 3; }
.orbit-expert { stroke: var(--ring-expert); stroke-opacity: .75; }
.orbit-levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 6px 0 2px; font-family: "Sora", system-ui, sans-serif; font-weight: 600; }
.orbit-levels .lvl i { display: inline-block; width: 26px; height: 0; border-top: 4px solid; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
/* Foundation sits before the orbit rather than on a ring, so it takes the
   existing muted/border tokens rather than a new brand hue: a new colour
   value belongs in the shared design system, reviewed once, not invented
   here. Its key marker is dotted, which reads as "the gate before the map". */
.lvl-foundation { color: var(--text-muted); } .lvl-foundation i { border-top-style: dotted; border-color: var(--line); }
.lvl-associate { color: var(--lvl-associate-text); } .lvl-associate i { border-color: var(--ring-associate); }
.lvl-analyst { color: var(--lvl-analyst-text); } .lvl-analyst i { border-color: var(--ring-analyst); }
.lvl-lead { color: var(--lvl-lead-text); } .lvl-lead i { border-color: var(--ring-lead); }
.lvl-expert { color: var(--lvl-expert-text); } .lvl-expert i { border-top-style: dashed; border-color: var(--ring-expert); }
.orbit-help { text-align: center; margin-top: 4px; }
.level-counts .lvl-card { border-top: 5px solid; }
.level-counts .lvl-card.lvl-foundation { border-top-color: var(--line); border-top-style: dotted; }
.level-counts .lvl-card.lvl-associate { border-top-color: var(--ring-associate); }
.level-counts .lvl-card.lvl-analyst { border-top-color: var(--ring-analyst); }
.level-counts .lvl-card.lvl-lead { border-top-color: var(--ring-lead); }
.level-counts .lvl-card.lvl-expert { border-top-color: var(--ring-expert); }
.level-counts .lvl-card .label { color: inherit; }

/* "In progress" colour (Roger: not gold, which is Expert). Coral from the designer's palette. */
/* --doing and --doing-text are now design-system tokens under those exact
   names, so the rules below read them directly -- aliasing a name onto itself
   is a cycle, and the only one that needs a local name is the subtle fill. */
:root {
  --doing-bg: var(--doing-subtle, #FFEDE8);
}

/* ---- Site footer (every page). The page fills the window so the footer sits at the bottom of short pages. ---- */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
/* The footer is a brand SURFACE, not brand ink: --brand-ink inverts to white
   for a dark masthead, and using it here turned the whole footer white with
   white text on it. --brand-surface stays navy in both themes. */
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand > div { display: grid; gap: 4px; }

/* THE 2 IN A2Z IS ALWAYS ORANGE (Roger, 22 Nov 2026). Global, not inside the
   public-page theme, because the name appears on the signed-in pages too and
   the rule is "in all locations". The span is written by brand.a2zHtml(), so
   the markup and the colour cannot drift apart.

   It beats the surrounding wordmark colour without needing specificity: those
   rules colour .wordmark and reach the span only by inheritance, which any
   direct match outranks. */
.two { color: var(--a2z-orange, #FF921C); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-copy { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 16px; font-size: .85rem; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---- Certification journey (Courses). Routes through the catalogue, grouped
   by path rather than by job role (Roger, 13 Nov 2026). Level tokens are the
   ones the orbit legend already defines; no new colour values here. ---- */
.journeys { margin: 34px 0 10px; }
.jny-paths { display: grid; gap: 14px; }
.jny-path { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.jny-path-name { margin: 0 0 10px; font-size: 1.02rem; }
.jny-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jny-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.jny-arrow, .jny-and { display: flex; align-items: center; color: var(--text-muted); font-weight: 700; }
.jny-arrow { font-size: 1.1rem; }
.jny-card { display: grid; align-content: center; gap: 2px; min-width: 132px; flex: 0 1 auto;
  background: var(--surface); color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.jny-card:hover, .jny-card:focus-visible { box-shadow: 0 2px 12px rgba(14, 42, 71, .14); }
.jny-card .rm-name { font-size: .92rem; line-height: 1.25; }
.jny-lvl { font-family: "Manrope", system-ui, sans-serif; font-weight: 700; font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
/* The level stripe. Foundation is dotted, matching the orbit's key, because it
   is the gate before the map rather than a tier on it. */
.jny-card.lvl-foundation { color: var(--text); border-top-style: dotted; border-top-color: var(--action); }
.jny-card.lvl-associate { color: var(--text); border-top-color: var(--ring-associate); }
.jny-card.lvl-analyst { color: var(--text); border-top-color: var(--ring-analyst); }
.jny-card.lvl-lead { color: var(--text); border-top-color: var(--ring-lead); }
.jny-card.lvl-expert { color: var(--text); border-top-color: var(--ring-expert); }
.jny-card.jny-many { border-style: dashed; border-top-style: solid; }
/* Personal progress, in the same language the road map uses. */
.jny-card.st-held { border-color: var(--done); border-top-color: var(--done); background: var(--done-bg); }
.jny-card.st-doing { border-color: var(--doing); border-top-color: var(--doing); }
.jny-card.st-locked { opacity: .6; }
/* "Where the paths meet" is not a fifth path: it is the one certification no
   path owns, so it spans the grid and sits apart from the four. */
.jny-path.jny-meet { background: var(--bg); border-style: dashed; }
.jny-path.jny-meet > p { margin-bottom: 0; }
@media (min-width: 900px) { .jny-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jny-path.jny-meet { grid-column: 1 / -1; } }

/* Profile › Module progress: title and percentage on one line, bar beneath. */
.modprog > li { list-style: none; margin: 0 0 14px; }
.modprog .enr-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.modprog .enr-line strong { font-variant-numeric: tabular-nums; }

/* Exam result › Where you went wrong.
   Tokens only: this file's surface token is --surface, and my first version
   used var(--card, #fff), which does not exist here -- so the fallback won and
   the cards stayed bright white in dark mode (Roger, 14 Nov 2026). Same for the
   tick and cross, which were literal hex: --done and --error already carry
   light- and dark-mode values. */
.exam-review { padding-left: 0; }
.exam-review > .rev { list-style: none; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.exam-review .rev-q { font-weight: 600; margin: 0 0 10px; }
.exam-review .rev-a { margin: 4px 0; display: flex; gap: 10px; align-items: baseline; }
.exam-review .rev-label { flex: 0 0 7.5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.exam-review .rev-a.wrong::before { content: "✗"; color: var(--error); font-weight: 700; }
.exam-review .rev-a.right::before { content: "✓"; color: var(--done); font-weight: 700; }
.exam-review .rev-where { margin: 10px 0 0; }

/* ---- Floating dock: Ask (chat) bottom-left, Feedback bottom-right ---------
   Roger, 14 Nov 2026. Fixed, above the page but below a modal. The two sit on
   opposite sides so neither covers the other, and both clear the mobile
   viewport's bottom inset. The label hides on narrow screens, leaving the icon. */
.dock { position: fixed; inset: auto 0 0 0; pointer-events: none; z-index: 60; }
.dock-btn {
  position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .95rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: .92rem;
  box-shadow: 0 2px 10px rgb(0 0 0 / 18%); cursor: pointer; pointer-events: auto;
  text-decoration: none;
}
.dock-btn:hover { border-color: var(--action); }
.dock-btn:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.dock-chat { left: 18px; }
.dock-fb { right: 18px; }
.dock-btn > span[aria-hidden] { font-size: 1.05rem; line-height: 1; }
@media (max-width: 560px) { .dock-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* The feedback dialog. A native <dialog>, so Escape and focus trapping are the
   browser's job rather than ours.

   pointer-events MUST be restored here. The dialog is rendered inside .dock,
   which sets pointer-events: none so the empty strip across the bottom of the
   viewport cannot swallow clicks on the page. pointer-events INHERITS, and
   promotion to the top layer does not break inheritance, so without this line
   the whole modal is click-through: the <select> will not open, the textarea
   cannot be clicked into and Send does nothing. .dock-btn and .dock-panel each
   restore it the same way. (Roger, 15 Nov 2026: "the drop down does not work".) */
.fbdlg {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--text); padding: 1.25rem; max-width: 30rem; width: calc(100vw - 2rem);
  pointer-events: auto;
}
.fbdlg::backdrop { background: rgb(0 0 0 / 45%); }
.fbdlg h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.fbdlg label { display: block; margin: .8rem 0 .25rem; font-weight: 600; font-size: .9rem; }
.fbdlg select, .fbdlg textarea {
  width: 100%; padding: .5rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit;
}
.fbrow { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }

/* The chat panel the ChatDock island opens, anchored to its launcher. */
.dock-panel {
  position: fixed; left: 18px; bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  width: min(27rem, calc(100vw - 2rem)); max-height: min(34rem, calc(100vh - 7rem));
  display: flex; flex-direction: column; pointer-events: auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 28px rgb(0 0 0 / 24%); z-index: 61;
}
.dock-panel-head { padding: .9rem 1rem .4rem; border-bottom: 1px solid var(--line); }
.dock-panel-head p { margin: .3rem 0 .5rem; }
.dock-panel-body { overflow: auto; padding: .75rem 1rem; flex: 1 1 auto; }
.dock-panel-foot { margin: 0; padding: .5rem 1rem .75rem; border-top: 1px solid var(--line); }
.dock-slot { display: contents; }

/* ---- Theme toggle -------------------------------------------------------
   Sits in the header beside the nav. Rendered hidden by the server and
   revealed by script, because without JavaScript it cannot do anything and
   should not pretend otherwise -- the design system's media query still
   follows the device in that case. */

/* Contact us (Roger, 22 Nov 2026): the topic picker and the FAQ accordion.
   .narrow is 420px, which is right for a sign-in card and too tight for an
   answer, so this page widens it and nothing else. <details> keeps the list
   readable without a line of JavaScript. */
.contact { max-width: 640px; }

/* The support address, bolder where it sits (Roger, 24 Nov 2026). This was a
   panel of its own for a few minutes; the panel is gone and the weight is all
   that is left, which is what was wanted.

   Weight only -- no colour. /contact is served with body.a2z for a visitor
   and without it for a signed-in learner, and each theme already colours its
   own content links. Restating a colour here would mean getting it right
   twice for no gain. */
.email-strong { font-weight: 700; }

/* THE PRICING BLOCK above the course list on /erpcourses, and the figure
   beside the enrol action on a course page (Roger, 24 Nov 2026).

   Two paths side by side, because there are exactly two ways to buy: one
   person pays for one course, or a company is quoted. They collapse to a
   stack below 760px -- two cards of prose side by side on a phone is two
   narrow columns, and the figure is the thing that has to stay readable.

   Styled for BOTH themes. /erpcourses is served with body.a2z for a visitor
   and without it for a signed-in learner, so the base rules stand on the
   portal palette and the a2z rules restate them on the public one. Tokens
   only, no literal colours (CLAUDE.md).

   The figure is never painted with --a2z-brand: that token is a fill at
   2.64:1 on white and must never be letters -- test/a2z-theme.test.js
   enforces it. It uses the ink colour, which is what a number should be. */
.pricing { margin: 0 0 26px; }
.pricing-paths { display: grid; gap: 14px; }
@media (min-width: 760px) { .pricing-paths { grid-template-columns: 1fr 1fr; } }
.pricing-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px;
}
.pricing-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.pricing-card p { margin: 0 0 10px; }
.pricing-card p:last-child { margin-bottom: 0; }
.pricing-figure { font-size: 1.6rem; font-weight: 700; line-height: 1.15; color: var(--text); }
.pricing-figure span { font-size: .85rem; font-weight: 400; color: var(--text-muted); white-space: nowrap; }
/* Beside the enrol action the figure is one line in a card that already has a
   heading, so it does not need to shout as loudly. */
.pricing-figure.inline { font-size: 1.3rem; margin-bottom: 6px; }
.pricing-levels { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.pricing-levels li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .92rem; border-bottom: 1px solid var(--line); padding-bottom: 3px;
}
.pricing-levels li:last-child { border-bottom: 0; }
.pricing-levels li b { white-space: nowrap; }
/* "per course" rides with the figure, quieter than it, so the row reads as
   one price rather than two things. */
.pricing-levels li b i { font-style: normal; font-weight: 400; font-size: .8rem; color: var(--text-muted); }
.pricing-note { font-size: .88rem; color: var(--text-muted); margin: 0 0 10px; }
body.a2z .pricing-levels li b i, body.a2z .pricing-note { color: var(--a2z-muted); }

body.a2z .pricing-card {
  background: var(--a2z-bg); border: 1.5px solid var(--a2z-line); border-radius: 24px;
}
body.a2z .pricing-figure { color: var(--a2z-ink); }
body.a2z .pricing-figure span { color: var(--a2z-muted); }
body.a2z .pricing-levels li { border-bottom-color: var(--a2z-line); }
.contact-pick { margin: 18px 0 26px; }
.contact-pick select { width: 100%; }
.contact h2 { margin-top: 24px; }
.faq-item { border-top: 1px solid var(--line); padding: 12px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item summary:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.faq-item p { margin: 10px 0 0; color: var(--text-muted); }

/* The company enquiry form (Roger, 3 Dec 2026): the fields that replaced the
   mailto: on /contact?topic=company.

   Two columns from 600px, because the five short fields read as a form at that
   width and as a very long list below it. The email address and the optional
   message span both columns -- an address wrapping mid-domain in a half-width
   box is the one field people mistype.

   No colours of its own: the inputs are already themed for the portal and for
   body.a2z further down this file, and the page is served in both. */
.enquiry { display: grid; gap: 14px; }
.enquiry .field { display: grid; gap: 4px; align-content: start; }
.enquiry .field label { font-size: .9rem; font-weight: 600; }
.enquiry .field .hint { margin: 0; }
.enquiry input, .enquiry textarea { width: 100%; }
.enquiry button { justify-self: start; }
@media (min-width: 600px) {
  .enquiry.cols { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .enquiry.cols > .wide, .enquiry.cols > button, .enquiry.cols > .hp { grid-column: 1 / -1; }
}
/* The honeypot. Off-screen rather than display:none or hidden: a bot that
   fills forms skips what a browser would not render, and the point is that it
   does fill this one. It stays out of the tab order via tabindex="-1" and out
   of a screen reader via aria-hidden, both set on the markup. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* R&A — the build-and-release tab of the Admin area, at /admin/rna.
 *
 * Every colour here is one of the aliases declared at the top of this file,
 * which are themselves @broadgroup/design tokens: no hex values, so the panel
 * follows light and dark with the rest of the portal. The tab strip, cards,
 * buttons and tables are the ones /admin already uses; what is added below is
 * only what the panel needs that nothing else did -- the stat row, the status
 * tones, the log boxes and the two-column form rows. */

.rna-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0 0 16px; }
.rna-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.rna-stat strong { font-size: 1.6rem; line-height: 1; }
.rna-stat span { font-size: .8rem; color: var(--text-muted); }
.rna-stat:hover { border-color: var(--action); }

/* The three status tones. `good` and `bad` are also used as plain text
   classes, so both the pill and the bare word are covered. */
.pill.good { background: var(--done); }
.pill.bad { background: var(--error); }
.pill.warn { background: var(--open); }
.good { color: var(--done); }
.bad { color: var(--error); }
.warn { color: var(--open); }

.rna-table { font-size: .92rem; }
.rna-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); border-bottom: 1px solid var(--line); padding: 6px 10px 6px 0; }
.rna-table td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.rna-table tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }

/* Action cells hold several one-button forms, which are inline-block so they
   sit in a row and wrap together rather than stacking one per line. */
.rna-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rna-actions form { margin: 0; }
.rna-actions .button, .rna-actions button { font-size: .85rem; padding: 6px 10px; }

.rna-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.rna-dl dt { color: var(--text-muted); font-size: .85rem; }
.rna-dl dd { margin: 0; }

/* Build logs and diffs: the one place in the portal where monospace and a
   scrollbar are the right answer, because the content is the agent's own
   output and reflowing it would change what it says. */
.rna-pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; line-height: 1.45;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: 8px 0; }
.rna-log-box { max-height: 60vh; overflow-y: auto; }
.rna-log { list-style: none; padding: 0; margin: 0; }
.rna-log li { padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.rna-log li:last-child { border-bottom: 0; }
.rna-files { list-style: none; padding: 0; margin: 6px 0; max-height: 220px; overflow-y: auto; }
.rna-files li { padding: 2px 0; }

.rna-findings { list-style: none; padding: 0; margin: 0; }
.rna-findings li { padding: 7px 0 7px 10px; border-left: 3px solid var(--line); margin-bottom: 6px; font-size: .92rem; }
.rna-findings li.bad { border-left-color: var(--error); }
.rna-findings li.warn { border-left-color: var(--open); }

.rna-seo { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.rna-seo > summary { cursor: pointer; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rna-seo > summary:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.rna-draft { background: var(--claude-bg); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.rna-draft h4 { margin: 0 0 6px; }

.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.inline-check { display: flex; gap: 8px; align-items: baseline; }
.inline-check input { width: auto; }

/* The four things a company enquiry has to tell us (contact page, company topic). */
/* No colour set: it inherits the card's body text. var(--ink) is WORDMARK ink
   and inverts to white in dark mode -- see the note at .hub above. */
.contact-fields { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.35rem; }

/* Full-width pages (admin). TWO caps have to come off, which is why lifting
   one did nothing: lib/ui.js layout() wraps the body in <div class="wide">
   (1100px), and that sits inside <main class="wrap"> (920px). The inner one is
   the binding constraint.
   Plain classes and a child selector, deliberately: the earlier version used
   :has(), and a browser that does not support :has() throws the whole rule
   away rather than just that part of it. */
/* main.wrap.full, not .wrap.full: the 1100px rule above is main.wrap:has(.wide),
   specificity (0,2,1), and a bare .wrap.full is only (0,2,0) -- so it lost, and
   every admin page stayed at 1100px. The :not(.full) above now excludes these
   pages outright; matching its specificity here is belt and braces. */
main.wrap.full { max-width: none; padding: 0 12px; }
main.wrap.full > .wide { max-width: none; }

/* The header and footer are siblings of <main>, so they cannot be reached from
   main.wrap.full -- hence the flag on <body>. Without this the content runs to
   the window edge while the header stays a centred 1100px, which reads as a
   broken page rather than a wide one. */
/* The chrome keeps its container even on a full-width page: the admin tables
   span the viewport, the header and footer do not. Letting it span is what put
   the wordmark 90px adrift of every other page. */

/* Billing's tables are all label-plus-figures: the row labels should not wrap,
   and figures read better right-aligned under their heading. */
.billing .table { margin: 10px 0 18px; }
/* table-layout: fixed divides the width evenly across the columns. Without it
   the browser sizes each column to its content -- four short money figures --
   and the table, though technically 100% wide, LOOKS narrow because every
   figure hugs the right of its own narrow column. The label column takes 22%
   and the rest share what is left. */
.billing table { table-layout: fixed; width: 100%; }
.billing table th[scope="row"] { width: 22%; padding-right: 18px; color: var(--text); font-size: 1rem; }
.billing table th[scope="col"]:not(:first-child), .billing table td { text-align: right; }
.billing table th[scope="col"]:first-child { text-align: left; }
.billing table td, .billing table th { overflow-wrap: anywhere; }
.billing h2 { margin-top: 26px; }
.billing form.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.billing form.inline input { width: 9ch; }

/* ---- the teacher's class pages (5 Dec 2026) --------------------------------
   Signed-in pages, so these are PORTAL styles and sit above the public theme:
   lib/ui.js sets body.a2z only when there is no user, and the theme section
   below is scoped to it. A rule for a teacher's page put down there would
   never match. */

/* The roster's action column: buttons in a row, not stretching the table. */
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; }
.row-actions .link + form { margin-left: .5rem; }

/* An unclaimed code is a row with no child in it yet, dimmed because a teacher
   scanning the roster wants to see who HAS registered. */
tr.unclaimed td { opacity: .72; }

/* The two course links a school copies out of the dashboard. */
table.links th { text-align: left; white-space: nowrap; padding-right: 1rem; font-weight: 600; }
table.links td { overflow-wrap: anywhere; }

/* The sheet of codes a teacher prints and cuts up: a wide grid so thirty fit
   on one page, each one boxed on a dashed line to cut along. */
.code-sheet { list-style: none; margin: .8rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.code-sheet li { border: 1px dashed var(--line); border-radius: 6px; padding: .45rem; text-align: center; }
.code-sheet .code { font-size: 1.05rem; letter-spacing: .06em; }

/* ---- /admin/registrations (5 Dec 2026) -------------------------------------
   One collapsible block per organisation, company or school, with its people
   inside. Admin is a signed-in area, so these are portal styles and sit above
   the public theme, which is scoped to body.a2z. */
.reg-group { border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  margin: 8px 0; }
.reg-group > summary { cursor: pointer; padding: 10px 12px; display: flex; flex-wrap: wrap;
  align-items: baseline; gap: 10px; }
.reg-group > summary:hover { background: var(--claude-bg); }
.reg-group[open] > summary { border-bottom: 1px solid var(--line); }
.reg-name { font-weight: 600; }
/* The meta line is pushed to the end so the names stay in one column and the
   eye can run down them -- which is what this page is for. */
.reg-meta { margin-left: auto; }
.reg-body { padding: 10px 12px; }
.reg-people { margin-top: 6px; }

/* The schools check's verdict. A miss is a flag for a human, never a refusal,
   so it is amber and not red: nothing here is an error. */
.reg-badge { font-size: .74rem; padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--line); white-space: nowrap; }
.reg-badge.ok { background: var(--done-bg); color: var(--done); border-color: var(--done); }
.reg-badge.flag { background: var(--open-bg); color: var(--open); border-color: var(--open); }
.notice.warn { background: var(--open-bg); color: var(--open); }

/* The school's own details, as label/value pairs rather than a table: it is
   one record, not a list of them. */
.reg-detail { display: grid; grid-template-columns: minmax(10rem, auto) 1fr; gap: 4px 14px;
  margin: 0 0 10px; }
.reg-detail dt { font-size: .82rem; color: var(--text-muted); }
.reg-detail dd { margin: 0; font-size: .9rem; }
@media (max-width: 620px) {
  .reg-detail { grid-template-columns: 1fr; gap: 0 0; }
  .reg-detail dd { margin-bottom: 8px; }
  .reg-meta { margin-left: 0; }
}

/* ---- the overview tiles are links now (5 Dec 2026) ------------------------
   .card.score was a <div>; it is an <a> so each tile opens the list behind it.
   An anchor brings its own colour and underline, so those are reset, and it
   gets a hover state because a tile that navigates should look like it does. */
a.card.score { text-decoration: none; color: inherit; display: block; transition: border-color .12s, background .12s; }
a.card.score:hover, a.card.score:focus-visible { border-color: var(--action); background: var(--claude-bg); }
a.card.score:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

/* ---- /schools reuses the home page's numbered steps (5 Dec 2026) ---------
   Scoped to .prog, NOT to body.a2z. body.a2z-home also matches body.a2z, so an
   unscoped `body.a2z .steps` would have the same specificity as the home
   page's own rule and, sitting later in the file, would win -- turning the
   home page's three columns into this layout. .prog exists only on a
   programme page, so the two cannot collide. */
body.a2z .prog .steps { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 24px; }
body.a2z .prog .step { border-top: 3px solid var(--a2z-ink); padding-top: 16px; }
body.a2z .prog .step .n { font-size: 14px; font-weight: 600; color: var(--a2z-muted); }
body.a2z .prog .step h3 { font-size: 20px; margin: 8px 0 6px; letter-spacing: -.01em; }
body.a2z .prog .step p { margin: 0; color: var(--a2z-muted); }
/* Two up once there is room for it; .prog is 680px, so four across would be
   four narrow columns of wrapped words. */
@media (min-width: 620px) {
  body.a2z .prog .steps { grid-template-columns: 1fr 1fr; gap: 26px 32px; }
}

/* The two course cards stay identical: the lesson list collapses inside each
   one, and .offer already supplies the card. */
body.a2z .offer > .faq-item { border-bottom: 0; margin-top: 4px; }
body.a2z .offer > .faq-item .lesson-list { margin: 10px 0 2px; }

/* ===========================================================================
   TrainingA2Z public-page theme (approved mockup 1, Roger 22 Nov 2026)
   Source of truth: traininga2z-mockup1.html, palette "a".

   Everything is scoped to body.a2z so it cannot reach the learner, company or
   admin pages, which keep the existing portal styling. body.a2z-home adds the
   full-bleed marketing layout on the home page only.

   Colours come from --a2z-* in the design system (see tokens.css). No hex
   values here: the contrast rule lives with the tokens, and a literal here
   would be a second place to keep in step by hand.
   =========================================================================== */

@font-face {
  font-family: "Lexend";
  /* Google serves Lexend as ONE variable file for 300-700, so the range is
     declared rather than five separate faces. */
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/lexend-latin-variable.woff2") format("woff2");
}

body.a2z {
  font-family: var(--font-brand, "Lexend", system-ui, sans-serif);
  background: var(--a2z-bg);
  color: var(--a2z-ink);
}
body.a2z h1, body.a2z h2, body.a2z h3, body.a2z h4,
body.a2z .wordmark, body.a2z .tagline {
  font-family: var(--font-brand, "Lexend", system-ui, sans-serif);
}
/* The orbit chart and level badges keep their own faces: they are drawn
   artwork with measured letter-spacing, not page copy. */

/* =========================================================================
   SITE CHROME -- the header and the footer, defined ONCE for every page
   (Roger, 22 Nov 2026: "lets make sure the headers and footers are the same
   style for all pages" -- "which they are currently not").

   They were not: the signed-out pages had the approved TrainingA2Z chrome and
   the signed-in pages still had the old portal chrome. A 72px header in Lexend
   against a 56px one in Sora, and a light footer with an ink wordmark against a
   dark navy one with a white wordmark.

   These rules are deliberately NOT scoped to body.a2z. The chrome is the same
   whether or not you are signed in; only the page content differs. Keeping one
   definition is also what stops the white-on-white class of bug: there is no
   longer a second set of footer colours waiting to win on specificity.
   ========================================================================= */

/* -- the wordmark and the logo, identical in the header and the footer -- */
.top, .site-footer { font-family: var(--font-brand, "Lexend", system-ui, sans-serif); }
.wordmark { font-family: var(--font-brand, "Lexend", system-ui, sans-serif); font-weight: 700; letter-spacing: -.01em; }
.top .wordmark { font-size: 20px; }
.site-footer .wordmark { font-size: 17px; color: var(--a2z-ink); }
.top .logo-ink, .site-footer .logo-ink { fill: var(--a2z-ink); }
.top .logo-eye, .site-footer .logo-eye { fill: var(--a2z-bg); }
.top .logo-ring, .site-footer .logo-ring { stroke: var(--a2z-ink); stroke-opacity: .18; }
.top .logo-spokes, .site-footer .logo-spokes { stroke: var(--a2z-ink); }

/* -- the chrome takes its container from the .wrap rule above, like the
      mock-up does, so there is nothing to keep in step here -- */

/* -- header -- */
.top { background: var(--a2z-bg); border-bottom: 1px solid var(--a2z-line); }
/* min-height, not height: .top .wrap is also flex-wrap: wrap, and the
   signed-in nav has more links than the public one. A fixed height would make
   a wrapped row overflow the header instead of growing it. */
.top .wrap { min-height: 72px; }
.top nav { display: flex; gap: 28px; align-items: center; font-size: 15px; color: var(--a2z-muted); }
.top nav a, .top nav button.link {
  color: var(--a2z-muted); text-decoration: none;
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.top nav a:hover, .top nav button.link:hover { color: var(--a2z-ink); }
/* The page you are on, for the signed-in nav, which marks it with aria-current. */
.top nav a[aria-current="page"] { color: var(--a2z-ink); font-weight: 600; }
.top nav form.inline { display: inline-flex; margin: 0; }
.top nav a.talk {
  color: var(--a2z-on-brand); background: var(--a2z-brand);
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
}
.top nav a.talk:hover { color: var(--a2z-on-brand); }

/* -- footer -- */
.site-footer {
  background: var(--a2z-bg); border-top: 1px solid var(--a2z-line);
  color: var(--a2z-muted); margin-top: 56px; padding: 36px 0 28px;
}
.site-footer .tagline { color: var(--a2z-muted); font-size: .68rem; }
.site-footer a, .foot-links a { color: var(--a2z-muted); text-decoration: none; }
.site-footer a:hover, .foot-links a:hover, .foot-links a:focus-visible { color: var(--a2z-ink); text-decoration: underline; }
.foot-copy { color: var(--a2z-muted); border-top: 1px solid var(--a2z-line); }

/* ---- shared pieces: buttons, cards, inputs on every public page ---- */
/* The pill is for the real action on the page, so it must not swallow
   `button.link` -- a submit button that is meant to READ as a link ("Email me
   a new code" on /2fa, "Cancel and sign out"). `button.link` (0,1,1) and
   `body.a2z button[type="submit"]` (0,1,1) have the SAME specificity, so
   source order decided it and this rule, being later, won: the link came out
   as a second brand pill 51px tall inside an inline form whose line box is
   19px, overflowing 16px each way and colliding with the Sign in button above
   it. `:not(.link)` is the fix at the source -- the chrome had already worked
   around the same over-reach once, in `.top nav button.link`. */
body.a2z .button:not(.link), body.a2z button[type="submit"]:not(.link) {
  font-family: inherit; border-radius: 999px; padding: 14px 24px;
  font-size: 15px; font-weight: 600; border: 0;
  background: var(--a2z-brand); color: var(--a2z-on-brand);
}
/* And the link keeps the link treatment on the public pages: action-coloured,
   underlined, no box. Scoped to body.a2z so it beats nothing it should not. */
body.a2z button.link {
  background: none; color: var(--a2z-accent-text); border: 0; padding: 0;
  font: inherit; font-weight: 400; text-decoration: underline; cursor: pointer;
}
body.a2z .button.secondary, body.a2z .button[class*="secondary"] {
  background: var(--a2z-alt); color: var(--a2z-ink); border: 1.5px solid var(--a2z-line);
}
body.a2z .card { background: var(--a2z-bg); border: 1.5px solid var(--a2z-line); border-radius: 24px; }
/* Content links only. Unscoped, `body.a2z a` is (0,1,2) -- exactly the same
   specificity as the chrome's `.top nav a` -- so source order decided it and
   the header and footer links came out a different colour on the public pages
   than on the signed-in ones. The chrome owns its own links. */
body.a2z main a { color: var(--a2z-accent-text); }
body.a2z .muted, body.a2z .small.muted, body.a2z p.lead { color: var(--a2z-muted); }

/* The two programme pages, /communitycourses and /workcourses. The home page
   advertises the three ranges; these are where two of them land. Kept to the
   existing public-page vocabulary -- no new colours.

   The ticks are accent-text rather than brand: brand on white is 2.64:1, which
   is acceptable for the decorative bullets on the home cards, but these sit
   beside the only real content on the page. Accent-text is 12.85:1. */
body.a2z .prog { max-width: 680px; }
body.a2z .prog-who { letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
body.a2z .prog-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
body.a2z .prog-points li { display: flex; gap: 10px; }
body.a2z .prog-points li::before { content: '\2713'; color: var(--a2z-accent-text); font-weight: 700; }
body.a2z .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* The three cards on /communitycourses (Roger, 24 Nov 2026): Kids, Teens and
   Adults, each with its own Register and start learning button.

   One column, not a grid. .prog is capped at 680px and each card carries a
   title, a line of copy and a button, so side by side they would be three
   narrow columns of wrapped text on a laptop and unreadable on a phone. A
   stack also keeps the reading order the same as the DOM order for anyone on
   a screen reader or a keyboard.

   Colours come from the a2z tokens, never literal values (CLAUDE.md), and the
   border matches body.a2z .card so these read as the same family of surface
   as the rest of the public pages. */
body.a2z .offers { display: grid; gap: 14px; margin-top: 26px; }
body.a2z .offer {
  background: var(--a2z-bg); border: 1.5px solid var(--a2z-line);
  border-radius: 24px; padding: 22px 24px;
}
body.a2z .offer h2 { margin: 0 0 6px; font-size: 1.15rem; }
body.a2z .offer .offer-line { margin: 0 0 16px; color: var(--a2z-muted); }
/* The button is the last thing in the card, so it owns no top margin of its
   own -- the paragraph above it sets the gap. */
body.a2z .offer .button { margin: 0; }
/* Below the one breakpoint the padding comes in, so a 320px phone keeps the
   copy off the border. */
@media (max-width: 420px) {
  body.a2z .offer { padding: 18px 16px; border-radius: 18px; }
  body.a2z .offer .button { display: block; text-align: center; }
}

/* The sign-in page on one screen (Roger, 22 Nov 2026: "on this page I dont want
   to scroll"). It came to roughly 800px against about 660px of laptop viewport,
   and nearly all of the excess was frame rather than anything to read:

     footer   56px margin-top, 36/28 padding, a logo and a copyright  ~214px
     main     24px top, 64px bottom                                     88px
     card     40px top and bottom margin                                80px

   So the frame is trimmed and the content is only rearranged, not cut. The card
   widens to 560px because two columns inside 420px would make those rows TALLER
   than leaving them stacked -- the headings wrap. Below 600px they stack again,
   where a phone scrolls anyway and the pairing would only squeeze them. */
body.a2z.auth main { padding: 12px 16px 16px; }
/* Wider again (Roger, 22 Nov 2026: "I stil lhave to scroll on see the footer -
   on the login page - lets make the box a bit wider"). Width buys height back:
   at 700px each account option's heading and description fit one line apiece,
   and the note under the form stops wrapping to two. */
body.a2z.auth .narrow { max-width: 700px; margin: 12px auto; }
body.a2z.auth .card { padding: 20px 24px; }
body.a2z.auth h1 { font-size: 1.5rem; }
body.a2z.auth .stack { gap: 6px; }
body.a2z.auth .alt-ways { grid-template-columns: 1fr 1fr; margin-top: 14px; padding-top: 12px; }
body.a2z.auth .alt-head { grid-column: 1 / -1; }
body.a2z.auth .site-footer { margin-top: 12px; padding: 12px 0; }

/* Centred, because they address the reader rather than labelling a field
   (Roger, 22 Nov 2026). */
body.a2z.auth .alt-head,
body.a2z.auth .session-note { text-align: center; }

/* A form of several short fields pairs up on a wider screen and stacks on a
   narrow one, which is where the extra card width pays for itself: /register
   has five fields, and paired they cost three rows instead of five. Mobile
   keeps one column -- two columns of 150px would wrap every label to three
   lines and end up taller than stacking. */
body.a2z.auth .stack.grid-2 { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
body.a2z.auth .stack.grid-2 > .field { display: grid; gap: 4px; align-content: start; }
body.a2z.auth .stack.grid-2 > .wide,
body.a2z.auth .stack.grid-2 > button { grid-column: 1 / -1; }
body.a2z.auth .stack.grid-2 > button { margin-top: 4px; }
@media (max-width: 600px) {
  body.a2z.auth .stack.grid-2 { grid-template-columns: 1fr; }
  body.a2z.auth .narrow { margin: 8px auto; }
  body.a2z.auth .card { padding: 16px; }
}
body.a2z.auth .site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
/* The wordmark stays; the drawn mark, the tagline and the copyright line go.
   Terms and Privacy are still in the links, which is what has to remain. */
body.a2z.auth .foot-brand .logo-mark,
body.a2z.auth .site-footer .tagline,
body.a2z.auth .foot-copy { display: none; }
@media (max-width: 600px) {
  body.a2z.auth .alt-ways { grid-template-columns: 1fr; }
}
body.a2z input, body.a2z select, body.a2z textarea {
  font-family: inherit; background: var(--a2z-bg); color: var(--a2z-ink);
  border: 1.5px solid var(--a2z-line); border-radius: 12px;
}

/* =========================== the home page =============================== */
/* Full bleed: the alternating bands have to reach both edges, so the wrap's
   own max-width and padding come off and each section centres its own inner
   container instead. */
body.a2z-home main.wrap { max-width: none; padding: 0; }
body.a2z-home .a2z-in { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

body.a2z-home section { margin: 0; }
body.a2z-home h1 { font-size: 64px; line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 16px 0 20px; }
body.a2z-home h1 mark {
  color: var(--a2z-hl-ink); padding: 0 4px; white-space: nowrap;
  background: linear-gradient(transparent 62%, var(--a2z-hl) 62% 90%, transparent 90%);
}
body.a2z-home h1 .h1-top { display: block; font-size: 14px; line-height: 1.4; letter-spacing: .04em; margin-bottom: 10px; font-weight: 600; }
body.a2z-home h2 { font-size: 48px; line-height: 1.05; letter-spacing: -.03em; margin: 10px 0 0; font-weight: 700; }
body.a2z-home .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--a2z-muted); }
body.a2z-home .eyebrow .dot { color: var(--a2z-orange); padding: 0 4px; }

/* hero */
body.a2z-home .a2z-hero .a2z-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
body.a2z-home .a2z-hero p.body { font-size: 16.5px; line-height: 1.65; color: var(--a2z-muted); max-width: 500px; margin: 0; }
body.a2z-home .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

body.a2z-home .tiles { display: grid; gap: 14px; }
body.a2z-home .tile {
  border-radius: 22px; padding: 22px 24px; display: grid;
  grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end;
  transition: transform .2s; text-decoration: none;
}
body.a2z-home .tile:hover { transform: translateX(-6px); }
body.a2z-home .tile small { grid-column: 1/-1; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
body.a2z-home .tile b { font-size: 21px; letter-spacing: -.01em; }
body.a2z-home .tile span { font-size: 14px; opacity: .85; line-height: 1.45; }
body.a2z-home .tile i { font-style: normal; font-size: 22px; grid-row: 2 / span 2; grid-column: 2; align-self: center; }
/* The staircase runs SMALL to BIG (Roger, 22 Nov 2026: "instead of big to
   small make small to big"). The indent is on the first tile and comes off by
   the third, so the stack widens downwards and the solid blue Professional
   tile is the widest -- which is also where the weight should be. */
/* One colour block per position, painting the hero tile AND the programme card
   beneath it (Roger, 22 Nov 2026: "lets make the colours match the boxes at the
   top of the page"). They share the positional class t1..t3, so the two rows
   cannot drift apart -- changing a colour here changes both.

   This reverses the earlier all-white treatment on purpose: with the two
   instructions side by side, Roger chose the tile colours, which does mean the
   ERP card is brand at rest again.

   Legibility checked on each: pale carries 14.22:1 / 5.79:1 / 11.28:1, and
   brand carries 5.90:1 with the dimmed .85 lines at 4.57:1. */
body.a2z-home .tile.t1, body.a2z-home .cards .card.t1 {
  background: var(--a2z-alt); color: var(--a2z-ink); border: 1.5px solid var(--a2z-line);
}
body.a2z-home .tile.t2, body.a2z-home .cards .card.t2 {
  background: var(--a2z-bg); color: var(--a2z-ink); border: 1.5px solid var(--a2z-brand);
}
body.a2z-home .tile.t3, body.a2z-home .cards .card.t3 {
  background: var(--a2z-brand); color: var(--a2z-on-brand); border-color: transparent;
}
/* The staircase is the tiles' own, not a colour. */
body.a2z-home .tile.t1 { margin-left: 56px; }
body.a2z-home .tile.t2 { margin-left: 28px; }
/* On the solid card everything inside has to follow the background. */
body.a2z-home .cards .card.t3 .who, body.a2z-home .cards .card.t3 p { color: inherit; opacity: .85; }
body.a2z-home .cards .card.t3 li::before { color: inherit; }
body.a2z-home .cards .card.t3 .go { color: inherit; border-color: color-mix(in srgb, currentColor 25%, transparent); }

/* A to Z band */
body.a2z-home .a2z-band { background: var(--a2z-alt); border-block: 1px solid var(--a2z-line); }
body.a2z-home .a2z-band .a2z-in { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding-top: 26px; padding-bottom: 26px; }
body.a2z-home .a2z-band .end { font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
/* The Z is ink, the same as the A (Roger, 22 Nov 2026). It is kept as an
   explicit rule rather than deleted so that the next person reading this sees
   the Z is deliberately NOT the accent, and does not "restore" it. */
body.a2z-home .a2z-band .end.z { color: var(--a2z-ink); }
body.a2z-home .a2z-band ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
body.a2z-home .a2z-band ol::before {
  content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--a2z-brand) 0 8px, transparent 8px 14px);
}
body.a2z-home .a2z-band li { position: relative; text-align: center; padding-top: 28px; font-size: 14px; color: var(--a2z-muted); }
/* The step markers: an orange dot inside the blue ring (Roger, 22 Nov 2026 --
   they were the page background, so they read as white). Decoration only; the
   words under each dot carry the meaning, which is why the accent is allowed
   here at all. */
body.a2z-home .a2z-band li::before {
  content: ''; position: absolute; top: 2px; left: 50%; width: 16px; height: 16px;
  margin-left: -8px; border-radius: 50%; background: var(--a2z-orange); border: 3px solid var(--a2z-brand);
}
/* One line per step: the category name alone (Roger, 22 Nov 2026 -- the
   product names came off, since the tiles below already carry them). With
   nothing else in the step it takes the strong treatment rather than the small
   label one, which would leave the band's only text whispering. */
body.a2z-home .a2z-band li b { display: block; color: var(--a2z-ink); font-size: 15px; }

/* statement */
body.a2z-home .a2z-statement .a2z-in { padding-top: 96px; padding-bottom: 80px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
body.a2z-home .a2z-statement p { font-size: 17px; line-height: 1.7; color: var(--a2z-muted); margin: 0; }
body.a2z-home .a2z-statement p b { color: var(--a2z-ink); font-weight: 600; }

/* programmes */
/* The two middle sections swapped places (Roger, 22 Nov 2026: "lets switch the
   location of 'Multiple programmes. One method.' and What hands-on actually
   means. section so the boxes are on a white background").

   The tint stayed with the SLOT rather than travelling with the section, so the
   page keeps its alternating rhythm -- white, pale, white, pale, white, dark --
   and the programme boxes now sit on white. Note that the middle card is itself
   --a2z-bg, so on white it reads as a brand-bordered outline: exactly how the
   matching tile reads in the hero, which is also white. */
body.a2z-home .a2z-how { background: var(--a2z-alt); border-block: 1px solid var(--a2z-line); }
body.a2z-home .a2z-programmes .a2z-in { padding-top: 80px; padding-bottom: 88px; }
body.a2z-home .a2z-programmes .intro { display: flex; justify-content: space-between; gap: 24px; align-items: end; flex-wrap: wrap; }
body.a2z-home .a2z-programmes .intro p { max-width: 420px; color: var(--a2z-muted); line-height: 1.6; margin: 0; }
/* Equal columns (Roger, 22 Nov 2026). The mockup gave the ERP card 1.25fr so
   it could carry the big "21"; equal thirds read as one set of three rather
   than two cards and a feature. align-items: stretch already matched their
   heights, so the boxes are now the same size in both directions. */
body.a2z-home .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
body.a2z-home .cards .card { padding: 26px; display: flex; flex-direction: column; }
body.a2z-home .cards .who { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--a2z-muted); }
body.a2z-home .cards h3 { font-size: 23px; margin: 10px 0 10px; letter-spacing: -.015em; }
body.a2z-home .cards p { color: var(--a2z-muted); line-height: 1.6; font-size: 15px; margin: 0 0 16px; }
body.a2z-home .cards ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 14.5px; }
body.a2z-home .cards li { display: flex; gap: 10px; }
body.a2z-home .cards li::before { content: '\2713'; color: var(--a2z-brand); font-weight: 700; }
body.a2z-home .cards .go { margin-top: auto; font-weight: 600; color: var(--a2z-accent-text); border-top: 1px solid var(--a2z-line); padding-top: 16px; display: flex; justify-content: space-between; text-decoration: none; }
body.a2z-home .cards .big { font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 4px 0 2px; }
body.a2z-home .cards .big + small { display: block; font-size: 14px; opacity: .85; margin-bottom: 16px; }

/* And they behave the same way on hover (Roger: "make them funtion the same
   way eg on mouse over"). The tiles' hover is not a colour change at all -- it
   is a 6px slide -- so the cards slide too. :focus-within as well, because each
   card's action is a link and a keyboard should get the same answer. */
body.a2z-home .cards .card { transition: transform .18s ease; }
body.a2z-home .cards .card:hover,
body.a2z-home .cards .card:focus-within { transform: translateX(-6px); }


/* how it works */
body.a2z-home .a2z-how .a2z-in { padding-top: 88px; padding-bottom: 88px; }
body.a2z-home .a2z-how p.sub { color: var(--a2z-muted); margin: 12px 0 0; }
body.a2z-home .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 44px; }
body.a2z-home .step { border-top: 3px solid var(--a2z-ink); padding-top: 18px; }
body.a2z-home .step:nth-child(2) { border-color: var(--a2z-brand); }
body.a2z-home .step:nth-child(3) { border-color: var(--a2z-orange); }
body.a2z-home .step .n { font-size: 15px; font-weight: 600; color: var(--a2z-muted); }
body.a2z-home .step h4 { font-size: 22px; margin: 10px 0 8px; letter-spacing: -.01em; }
body.a2z-home .step p { color: var(--a2z-muted); line-height: 1.6; font-size: 15px; margin: 0; }

/* CTA */
body.a2z-home .a2z-cta { background: var(--a2z-cta-bg); color: var(--a2z-cta-ink); }
body.a2z-home .a2z-cta .a2z-in { padding-top: 80px; padding-bottom: 80px; text-align: center; }
body.a2z-home .a2z-cta h2 { color: inherit; }
body.a2z-home .a2z-cta p { opacity: .85; max-width: 520px; margin: 16px auto 0; line-height: 1.6; font-size: 17px; }
body.a2z-home .a2z-cta .btns { justify-content: center; }
body.a2z-home .a2z-cta .button { background: var(--a2z-brand); color: var(--a2z-on-brand); }
body.a2z-home .a2z-cta .button.secondary { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .4); }

/* motion: hero items fade up on load, staggered */
body.a2z-home .rise { animation: a2z-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
body.a2z-home .rise:nth-child(2) { animation-delay: .07s; }
body.a2z-home .rise:nth-child(3) { animation-delay: .14s; }
body.a2z-home .rise:nth-child(4) { animation-delay: .21s; }
body.a2z-home .rise:nth-child(5) { animation-delay: .28s; }
@keyframes a2z-rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  body.a2z-home .rise { animation: none; }
  /* The slide is motion, so it goes entirely rather than just losing its
     easing -- for the tiles as well, which never honoured this. */
  body.a2z-home .tile, body.a2z-home .cards .card { transition: none; }
  body.a2z-home .tile:hover, body.a2z-home .cards .card:hover,
  body.a2z-home .cards .card:focus-within { transform: none; }
}

/* ---- the one breakpoint, 880px ---- */
@media (max-width: 880px) {
  body.a2z-home .a2z-in, .wrap { padding: 0 20px; }
  /* SIGN IN IS NEVER HIDDEN ON A PHONE (Roger, 24 Nov 2026: "a returning
     learner can't find login").

     This line used to be `body.a2z .top nav a:not(.talk) { display: none }`.
     It took BOTH "Sign in" and "Verify a certificate" off every page narrower
     than 880px and left only the "Talk to us" CTA. There is no menu on these
     pages to hide them into, so the rule did not move those two links -- it
     deleted them, and the only remaining door for a returning learner was the
     footer.

     Scope, so this is not fixed in the wrong place: lib/ui.js sets
     bodyClass 'a2z' only when there is no req.user, so `body.a2z` is the
     SIGNED-OUT header and only ever holds these three items. The signed-in
     nav carries up to six and is not selected here; it wraps on nav.main's
     own `flex-wrap: wrap` and was never affected.

     Three items fit one row at a tighter gap and size. Narrower than that the
     header grows a second row instead of overflowing, which .top .wrap
     already allows -- it is flex-wrap: wrap with min-height, not height. No
     menu, so nothing needs JavaScript and nothing can collapse shut. */
  body.a2z .top nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; font-size: 14px; }
  body.a2z .top nav a.talk { padding: 9px 15px; }
  body.a2z .top .wrap { row-gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  body.a2z-home .a2z-hero .a2z-in, body.a2z-home .a2z-statement .a2z-in { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  body.a2z-home h1 { font-size: 44px; }
  body.a2z-home h2 { font-size: 34px; }
  body.a2z-home .tile.t1, body.a2z-home .tile.t2 { margin-left: 0; }
  /* THE BAND ON A PHONE: A, THE DOTS AND Z DOWN THE MIDDLE (Roger, 24 Nov 2026:
     "can we get A , dots and Z to the center and the words can go on either
     side of the dots . community courses on the right on the first dots, the
     next got left on the next dot and 3 one right of the dot").

     It was display: none on the letters, so the one place the band is read most
     lost the thing the band is FOR -- the A-to-Z device the whole brand is
     named after. The first fix hung a rail down the left edge. This puts the
     rail on the page's centre line with the names alternating off it, so the A
     and the Z read as the two ends of one journey instead of as labels stuck
     on a list.

     ONE CENTRE LINE, THREE WAYS OF SITTING ON IT. .a2z-in is a single column
     here, so the ol, the A and the Z all span the same content width and 50%
     resolves to the same x for all three:
       - the rail: left: 50% with margin-left: -1px on a 2px line.
       - each dot: left: 50% with margin-left: -8px on a 16px box. The global
         border-box at line 42 means that 16px already includes the 3px ring,
         so -8px is genuinely half of it, not half of the fill.
       - the letters: text-align: center across the full width. They are grid
         items, so the inline spans are blockified and fill the column -- which
         is what makes text-align bite on them at all. At 28px they are wider
         than a dot and overflow evenly either side; nothing clips them, and it
         is the centre that aligns, not the edges.

     THE WORDS ALTERNATE BY POSITION, NOT BY CONTENT. nth-child(even) flips to
     the left, so the order Roger asked for -- right, left, right -- falls out
     of where a step sits in the list. A fourth category would land on the left
     without anyone editing this.

     IT IS PADDING, NOT A TWO-COLUMN GRID, on purpose. Percentage padding
     resolves against the li's own inline size, so calc(50% + 12px) starts the
     text 12px clear of the centre and leaves it half the width minus that
     gutter. A grid would have been tidier to read, but a bare text node beside
     the <b> -- which is exactly what this list held until the product names
     came off -- becomes an anonymous grid item and auto-places into a second
     row. Padding does not care what is inside the li.

     The dot is centred on the li's full height rather than pinned near its top,
     so it stays on the middle of a name that wraps to two lines, which
     "Community courses" does on a narrow phone.

     The size stays 28px, as on the desktop: --a2z-ink was chosen for these
     letters BECAUSE a 28px letter is text rather than decoration, and shrinking
     them here would quietly reopen that contrast decision. */
  body.a2z-home .a2z-band .a2z-in { grid-template-columns: 1fr; gap: 12px; }
  body.a2z-home .a2z-band .end { text-align: center; }
  body.a2z-home .a2z-band ol { grid-template-columns: 1fr; gap: 14px; }
  body.a2z-home .a2z-band ol::before {
    left: 50%; right: auto; margin-left: -1px; top: 0; bottom: 0; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--a2z-brand) 0 8px, transparent 8px 14px);
  }
  body.a2z-home .a2z-band li { padding: 0 0 0 calc(50% + 12px); text-align: left; }
  body.a2z-home .a2z-band li:nth-child(even) { padding: 0 calc(50% + 12px) 0 0; text-align: right; }
  body.a2z-home .a2z-band li::before { left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
  body.a2z-home .cards, body.a2z-home .steps { grid-template-columns: 1fr; }
}

/* Small phones, where the three signed-out header links are tight on one row.
   Estimated, not measured: there is no browser on this box to measure in
   (CLAUDE.md -- a headless Chromium OOM takes the tmux session with it). So
   the nav above is built to look deliberate EITHER WAY. If the row does not
   fit, flex-wrap drops the "Talk to us" CTA onto its own right-aligned line
   under the two text links, which is a tidy header rather than a broken one.
   This tier only buys enough width that a common 360px phone keeps all three
   on one line. Nothing here hides anything, so a wrong guess about the
   widths costs neatness, never the login link. */
@media (max-width: 420px) {
  body.a2z .top nav { gap: 10px; font-size: 13px; }
  body.a2z .top nav a.talk { padding: 8px 13px; }
}

/* ---- CyberSafe Schools, the public programme page (5 Dec 2026) ------------
   Scoped to body.a2z like everything else in this section, and using --a2z-*
   only: no hex here, per the banner above and ~/CLAUDE.md. It reuses
   .prog/.offers/.offer from the other two programme pages; these are the few
   pieces those did not already have. */

/* The lesson list inside a course card. Numbered, because the lessons are
   taken in order, and tightened because there are eight in a card that also
   carries a paragraph. */
body.a2z .lesson-list { margin: .6rem 0 0; padding-left: 1.4rem; }
body.a2z .lesson-list li { margin: .18rem 0; font-size: .92rem; line-height: 1.45; }

/* The "nothing to pay" panel: tinted so it reads as an aside rather than
   another step in the argument. */
body.a2z .sch-note { background: var(--a2z-alt); border: 1px solid var(--a2z-line);
  border-radius: 10px; padding: 18px 20px; margin: 22px 0; }
body.a2z .sch-note h2 { margin-top: 0; }

/* The "why" list carries sentences, not labels, so it needs more room between
   items than .prog-points gives its one-liners. */
body.a2z .sch-why li { margin: .45rem 0; }
