/*
Theme Name: Learn Computer Basics
Description: The site for the Learn Computer Basics practice desktop: a home page, the privacy page, a help page and the help guides under /learn/ and the teaching pages under /teach/.
Version: 2.5.18
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: learn-computer-basics
*/

/* 2.5.0 (2026-11-05): the home page redesign of website/edtech-top20-2026-11-02/LCB-REDESIGN-PLAN.html, Kit's calls
   of 2026-11-05: one light look for everyone (no dark colour scheme), one sans-serif font for everything, the plan's
   type sizes, 12px buttons, alternating section colours. Notes: notes/2026-11-05-site-redesign.md. */

/* ---- The font. Served from this theme, never from another host. SIL Open Font License, assets/fonts/OFL.txt. ---- */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-VF.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens. This file is the one home of the web palette (guideline U2). ---------- */
:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --tint: #eef5f6;
  --text: #1d2321;
  --muted: #4a5552;
  --rule: #d9d5c8;
  --teal: #0e4c5a;
  --teal-deep: #0a3c47;
  --teal-ink: #ffffff;
  --gold: #c9a227;
  --gold-soft: #f6ecc8;
  --link: #0e5a6b;
  --focus: #0e4c5a;
  --pending-bg: #f1efe8;
  --pending-edge: #8a8676;

  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* 2.5.0: no serif face any more (J.R., 2026-10-11: "No serif fonts for these techie projects"). The name stays
     because the LCB Classroom plugin's headings use var(--serif); it now gives them the same sans font. */
  --serif: var(--sans);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --page: 1120px;
  --measure: 64ch;
  --border: 2px solid var(--rule);
  --radius: 12px;
  --shadow-pic: 0 18px 40px -24px rgba(14, 76, 90, 0.45), 0 4px 12px -6px rgba(14, 76, 90, 0.18);
}

/* ---- Base ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--pending-edge) var(--bg); caret-color: var(--teal); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.5;
}
img, video { max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-soft); color: var(--text); }

h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(2.375rem, 4.2vw, 3.25rem); margin: 0 0 var(--s3); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 var(--s2); }
h3 { font-size: clamp(1.3125rem, 1.8vw, 1.5rem); margin: 0 0 var(--s1); }
p, ul, ol { margin: 0 0 var(--s2); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--s3); }
.narrow { max-width: calc(var(--measure) + 2 * var(--s3)); }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 40ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: var(--s2); top: -100px; background: var(--surface); color: var(--text); padding: var(--s1) var(--s2); z-index: 30; display: inline-flex; align-items: center; min-height: 48px; }
.skip-link:focus { top: var(--s2); }

/* ---- Header bar ------------------------------------------------------------------- */
.bar { position: relative; z-index: 20; background: var(--teal); color: var(--teal-ink); }
.bar-inner {
  max-width: var(--page); margin: 0 auto; padding: var(--s2) var(--s3);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2);
}
.bar a { color: var(--teal-ink); }
.bar :focus-visible { outline-color: var(--teal-ink); }
/* 2.2.4: the consent card stays light and rings its own buttons in --cb-focus, but gives links no focus style, so the
   global rule above would put a ring of the wrong colour on the card's Privacy Policy link. Use the consent bar's own
   ring there (#2b6d59, 6.11:1 on the white card). The vendored consent files are not edited. */
.cb-root a:focus-visible { outline: 2px solid var(--cb-focus, #2b6d59); outline-offset: 2px; }
/* 2.4.1: the consent card's sticky button row rose by the card's padding and covered the bottom of the "Privacy Policy"
   line (Foreman F4 problem 3). Pinning it to the card's real bottom edge puts the row back under the link. */
.cb-root[data-cb-layout="card"] .cb-actions { bottom: calc(-1 * var(--cb-pad)); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.125rem; line-height: 1.2; text-decoration: none; min-height: 48px; }
.brand img { border-radius: 8px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }
.site-nav a, .site-nav .nav-current { display: inline-flex; align-items: center; min-height: 48px; font-size: 1.0625rem; }
.site-nav a[aria-current="page"] { text-decoration-thickness: 3px; }
.site-nav .nav-current { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.nav-class { display: inline-flex; }
.nav-class a, .nav-class .nav-current, .nav-start { white-space: nowrap; }
/* Class pages keep the 2.4.4 ringed Help button; public pages show Help as a plain link (plan section 5). */
.bar:not(.bar-public) .help-link { padding: 0 var(--s2); border: 2px solid var(--teal-ink); border-radius: 999px; font-weight: 700; text-decoration: none; }
.bar:not(.bar-public) .help-link:hover, .bar:not(.bar-public) .help-link[aria-current="page"] { background: var(--teal-ink); color: var(--teal); }
.menu-toggle { display: none; }
/*
 * 2.5.6 (Kit 2026-11-16): signed in, "My account" is the header's main button and opens a small menu (dashboard,
 * Account details, Sign out). On class pages Help turns back into a plain link beside it.
 */
.acct { position: relative; display: inline-flex; }
.bar.has-acct { z-index: 40; } /* the open menu sits above the class dashboard's sticky bar (z-index 30), below its drawer (1000) */
.acct-toggle { gap: 8px; white-space: nowrap; cursor: pointer; border: 0; }
.acct-caret { flex: none; transition: transform 0.15s ease; }
.acct.is-open .acct-caret { transform: rotate(180deg); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: flex; flex-direction: column; min-width: 15rem;
  padding: 6px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 10px 24px -12px rgba(16, 38, 45, 0.35); }
.acct-menu[hidden] { display: none; }
.bar.has-acct [data-lcb-class-link] { display: none; } /* 0.4.40 (Kit: no repeats): the menu's first item is the dashboard */
.acct.is-left .acct-menu { left: 0; right: auto; } /* when the button sits at the left edge (class pages on a phone) */
.acct-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* keeps the hover across the gap */
.bar .acct-menu a, .acct-out {
  display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 var(--s2); border: 0; border-radius: 8px;
  background: none; color: var(--text); font-family: inherit; font-size: 1.0625rem; font-weight: 400; line-height: 1.2;
  text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
/* 2.5.6 (Kit 2026-11-16: "make it simple and clean"): hover is a light grey row, the current page is bold, no colour shift or bar. */
.bar .acct-menu a:hover, .acct-out:hover { background: #f2f2ef; color: var(--text); }
.bar .acct-menu a[aria-current="page"] { font-weight: 700; }
.bar .acct-menu a.acct-danger { color: #a3261b; } /* Delete account, a free learner only */
.bar .acct-menu a.acct-danger:hover { background: #fbeceb; color: #8a1c14; }
.acct-out { margin-top: 4px; border-top: 1px solid var(--rule); border-radius: 0 0 6px 6px; }
.acct-out:disabled { cursor: progress; color: var(--muted); }
.acct-msg { margin: 6px 0 2px; padding: 8px var(--s2); border-radius: 8px; background: #fbeceb; color: #8a1c14; font-size: 0.9375rem; line-height: 1.35; white-space: normal; max-width: 15rem; }
.bar .acct-menu :focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* The button: the same white fill on hover and while open (only the arrow turns); a thin ring for the keyboard. */
.button.acct-toggle:hover, .acct.is-open .button.acct-toggle { background: var(--teal-ink); }
.bar .acct-toggle:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.bar.has-acct:not(.bar-public) .help-link { padding: 0; border: 0; border-radius: 0; font-weight: inherit; text-decoration: underline; }
.bar.has-acct:not(.bar-public) .help-link:hover, .bar.has-acct:not(.bar-public) .help-link[aria-current="page"] { background: none; color: var(--teal-ink); }

/* ---- Buttons. 12px corners (plan 6.3). Primary filled teal, secondary outlined. ------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--teal); color: var(--teal-ink);
  font-family: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.2; white-space: nowrap;
  border-radius: var(--radius); text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
/* The hover colour is for this theme's own buttons only. The LCB Classroom plugin's quiet and danger buttons keep
   their own colours (review 2026-11-05: a dark hover behind the quiet button's teal words left them unreadable). */
.button:not([class*="lcb-button-"]):hover { background: var(--teal-deep); }
.button-secondary { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.button-secondary:hover { color: var(--teal-ink); }
.button-on-bar { min-height: 48px; padding: 0 20px; font-size: 1.0625rem; background: var(--teal-ink); color: var(--teal); }
.bar a.button-on-bar { color: var(--teal); }
.button.button-on-bar:hover { background: var(--tint); }
.button.is-waiting { cursor: not-allowed; }
.button.is-waiting:hover { background: var(--teal); }
.text-link { font-weight: 700; min-height: 48px; display: inline-flex; align-items: center; }
.cta-alt { margin: var(--s2) 0 0; font-size: 1rem; }

/* ---- Hero --------------------------------------------------------------------------- */
/*
 * 2.5.6 (Kit 2026-11-16: "make the image a background ... make the hero section 100svh"): the photo of people learning
 * fills the hero, at least one screen tall (100vh first for older browsers, then 100svh, which leaves room for a phone's
 * address bar). A dark teal band behind the words keeps them readable (home-walk.cjs measures each line of words against
 * the lightest pixel behind it; it must stay at 4.5:1 or more). The picture box is fixed to the hero, so nothing moves.
 */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh; padding: var(--s6) 0; background: #10262d; color: #fff; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { z-index: -2; }
.hero-bg img { max-width: none; object-fit: cover; object-position: 66% 40%; }
.hero-scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 32, 38, 0.95) 0%, rgba(8, 32, 38, 0.9) 36%, rgba(8, 32, 38, 0.62) 52%, rgba(8, 32, 38, 0.12) 74%, rgba(8, 32, 38, 0) 100%); }
.hero-inner { width: 100%; }
.hero-text { max-width: 34rem; }
.hero h1 { color: #fff; }
.hero .lede, .hero .hero-note { color: #e3eeec; }
.hero a:not(.button) { color: #fff; }
.hero :focus-visible { outline-color: #fff; }
/* On the photo: the main door is white with teal words, the second door is outlined in white. */
.hero .button { background: #fff; color: var(--teal); }
.hero .button:not([class*="lcb-button-"]):hover { background: var(--tint); }
.hero .button-secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.hero .button-secondary:not([class*="lcb-button-"]):hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
@media (min-width: 960px) {
  .hero h1 { font-size: clamp(2.5rem, 3.6vw, 3.25rem); }
}
.hero .lede { margin-bottom: var(--s4); max-width: 34ch; }
.cta-doors { gap: var(--s2); }
.hero-note { margin: var(--s3) 0 0; color: var(--muted); font-size: 1.125rem; }

/* A real lesson, in a laptop. */
.lesson-demo { box-sizing: border-box; max-width: 760px; margin: 0 auto var(--s5); padding: 0 4%; } /* room for the laptop base */
.laptop-screen { padding: 10px; border-radius: 16px 16px 6px 6px; background: #17262c; box-shadow: 0 30px 60px -30px rgba(14, 76, 90, 0.6), 0 12px 24px -16px rgba(14, 76, 90, 0.35); }
.screen-crop { overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; background: #0a4a62; }
.hero-video { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 0 0; }
.laptop-base { height: 14px; margin: 0 -4%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#d9e1df, #aebbb8); position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #9aa8a5; }
.hero-caption { display: flex; justify-content: flex-end; margin-top: var(--s2); }
.loop-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 var(--s2);
  border: 2px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.loop-toggle[hidden] { display: none; }
.loop-toggle:hover { border-color: var(--teal); }
.loop-icon { width: 14px; height: 14px; display: inline-block; background: linear-gradient(90deg, var(--teal) 0 35%, transparent 35% 65%, var(--teal) 65%); }
.loop-toggle.is-paused .loop-icon { background: var(--teal); clip-path: polygon(10% 0, 100% 50%, 10% 100%); }

/* ---- Facts strip -------------------------------------------------------------------- */
.facts { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts-row { list-style: none; margin: 0 auto; padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); }
.fact { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 700; font-size: 1.125rem; }
@media (min-width: 1000px) { .facts-row { flex-wrap: nowrap; } }
.fact-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); position: relative; }
.fact-mark::after { content: ""; position: absolute; left: 8px; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.fact-thumb { flex: none; }
.fact-thumb img { display: block; width: 60px; height: auto; border-radius: 4px; border: 1px solid var(--rule); box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.35); }

/* ---- Bands -------------------------------------------------------------------------- */
.band { padding: var(--s7) 0; }
.band-white { background: var(--surface); }
.band-tint { background: var(--tint); }
.section-lede { color: var(--muted); max-width: 56ch; margin-bottom: var(--s5); font-size: 1.25rem; }

/* How each lesson works: four steps, each with its own picture. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s5); } }
.step { counter-increment: step; }
.step-pic img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #0d4558; border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: var(--shadow-pic); margin-bottom: var(--s3); }
.step h3 { display: flex; align-items: center; gap: 14px; }
.step h3::before { content: counter(step); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--teal-ink); font-size: 1.125rem; }
.step p { color: var(--muted); max-width: 46ch; margin: 0; }

/* Why it works: three rows, picture and words swapping sides. */
.rows { display: grid; gap: var(--s6); }
.row { display: grid; grid-template-columns: 1fr; gap: var(--s4); align-items: center; }
@media (min-width: 900px) {
  .rows { gap: var(--s7); }
  .row { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .row-flip .row-pic { order: 2; }
}
.row-pic { margin: 0; }
.row-pic img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--rule); box-shadow: var(--shadow-pic); }
.row-figure figcaption { margin-top: var(--s2); color: var(--muted); font-size: 1rem; }
.row-text p { color: var(--muted); max-width: 44ch; }
.row-text h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-bottom: var(--s2); }

/* What you will learn: one unit open at a time. A list of units beside the open one on wide screens, an accordion
   on phones. Without JavaScript every unit is open, one after another. */
.units-picker { display: grid; gap: var(--s3); }
.unit-name { margin: 0; font-size: inherit; }
.unit-button {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; text-align: left;
  min-height: 64px; padding: 12px var(--s3); border: 2px solid var(--rule); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-family: inherit; cursor: pointer;
}
.unit-num { flex-basis: 100%; color: var(--muted); font-size: 1rem; font-weight: 700; }
.unit-title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.unit-tag { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--text); font-size: 1rem; font-weight: 700; }
.unit-button[aria-expanded="true"] { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
.unit-button:hover { border-color: var(--teal); }
.unit-panel { display: grid; grid-template-columns: 1fr; gap: var(--s4); align-items: start; margin-top: var(--s2); padding: var(--s4); border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); }
.unit-panel[hidden] { display: none; }
.unit-pic img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--rule); }
.unit-pic-icon { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(160deg, #0a5066 0%, #0a4a62 50%, #0a4560 100%); }
.unit-pic-icon img { width: 112px; height: auto; border-radius: 12px; }
.skills { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.skills li { padding: 12px 0 12px 32px; position: relative; border-top: 1px solid var(--rule); }
.skills li:first-child { border-top: 0; padding-top: 0; }
.skills li::before { content: ""; position: absolute; left: 0; top: calc(12px + 0.75em - 7px); width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.skills li:first-child::before { top: calc(0.75em - 7px); }
.units-picker.is-ready { gap: var(--s1); }
.units-picker.is-ready .unit-panel { margin-top: var(--s1); }
@media (min-width: 960px) {
  .units-picker.is-ready { grid-template-columns: 300px minmax(0, 1fr); grid-auto-rows: min-content; column-gap: var(--s5); row-gap: var(--s1); align-items: start; }
  .units-picker.is-ready .unit-item { display: contents; }
  .units-picker.is-ready .unit-name { grid-column: 1; }
  .units-picker.is-ready .unit-panel { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); padding: var(--s4); }
  .units-picker:not(.is-ready) .unit-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
@media (max-width: 959px) {
  .units-picker.is-ready .unit-button::after { content: ""; flex: none; margin-left: auto; width: 12px; height: 12px; border-right: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(45deg); }
  .units-picker.is-ready .unit-button[aria-expanded="true"]::after { transform: rotate(-135deg); }
}

/* The photo band. The line sits above the photo, never over a face. */
.people { padding: var(--s7) 0 0; background: var(--bg); }
.people-line { max-width: 24ch; margin-bottom: var(--s4); }
.people-pic img { display: block; width: 100%; height: auto; }

/* For organizations. */
.org-top { display: grid; grid-template-columns: 1fr; gap: var(--s4); align-items: center; margin-bottom: var(--s5); }
.org-lede { color: var(--muted); max-width: 46ch; font-size: 1.25rem; margin: 0; }
.org-photo img { display: block; width: 100%; border-radius: 16px; box-shadow: var(--shadow-pic); }
.org-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: start; }
@media (min-width: 960px) {
  .org-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); margin-bottom: var(--s6); }
  .org-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); }
  /* 2.5.8 (Kit 2026-11-16, no narrow box against the left edge): with no dashboard picture beside it, the list uses the
     full width as cards two to a row, and an odd last card takes its whole row. */
  .org-grid-solo { grid-template-columns: minmax(0, 1fr); }
  .org-grid-solo .org-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); border: 0; background: none; }
  .org-grid-solo .org-points li { align-content: start; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
  .org-grid-solo .org-points li:first-child { border-top: 1px solid var(--rule); }
  .org-grid-solo .org-points li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.org-dash { margin: 0; }
.org-dash img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: var(--shadow-pic); }
.org-dash figcaption { margin-top: var(--s2); color: var(--muted); font-size: 1rem; }
.org-side .cta-row { margin-top: var(--s4); }
.org-note { margin: var(--s3) 0 0; font-size: 1rem; color: var(--muted); }
.org-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.org-points li { display: grid; gap: 4px; padding: var(--s3); border-top: 1px solid var(--rule); }
.org-points li:first-child { border-top: 0; }
.org-points span { color: var(--muted); font-size: 1.0625rem; line-height: 1.5; }

/* Pricing: the three approved cards. */
.plans { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--s3); align-items: stretch; }
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(5, auto); gap: var(--s4); }
  .plans > .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .plans > .plan .plan-cta { margin-top: 0; justify-self: start; align-self: end; }
}
.plan { display: flex; flex-direction: column; padding: var(--s4) var(--s3); border: 1px solid var(--rule); border-top: 3px solid var(--rule); border-radius: var(--radius); background: var(--bg); }
.plan-main { border-color: var(--teal); border-top-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.plan h3 { font-size: 1.125rem; margin: 0 0 var(--s2); }
.plan-price { margin: 0 0 var(--s1); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-amount { font-weight: 700; font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; color: var(--text); }
.plan-unit { flex-basis: 100%; color: var(--muted); font-size: 1rem; }
.plan-for { margin: 0 0 var(--s3); color: var(--muted); }
/* 2.5.12 (A123, Kit 2026-11-18): "Need more? Contact us." sits just above the A whole location buttons. The line and
   the buttons share one wrapper, so the card keeps the five rows the three cards line up on. */
.plan-more { margin: 0 0 var(--s2); color: var(--muted); }
.plan-end { margin-top: auto; display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .plans > .plan .plan-end { margin-top: 0; align-self: end; }
}
.plan-list { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: 0; }
.plan-list li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--rule); }
.plan-list li::before { content: ""; position: absolute; left: 0; top: calc(10px + 0.75em - 7px); width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.plan-cta { margin-top: auto; align-self: flex-start; }
/* 2.5.4: while buying is open, Buy now and Request a quote share the card's button row. */
.plan-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.plans-note { margin: var(--s3) 0 0; color: var(--muted); font-size: 1rem; }
/* 2.5.11 (A122): the Just you card (2.5.6) became one text link under the three cards, shown only while one person
   can buy the full course. */
.plans-solo { margin: var(--s3) 0 0; font-size: 1.0625rem; }
.plans-solo a { font-weight: 700; }

/* Questions, on the home page and the help page: one answer open at a time. */
.faq-wrap { max-width: 880px; }
.qa { border-bottom: 1px solid var(--rule); scroll-margin-top: var(--s3); }
.faq .qa:first-child { border-top: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 64px; padding: var(--s2) var(--s1) var(--s2) 0;
  font-weight: 700; font-size: 1.1875rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--rule);
  background:
    linear-gradient(var(--teal), var(--teal)) center / 14px 2.5px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 2.5px 14px no-repeat;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-color 0.2s;
}
.qa summary:hover::after { border-color: var(--teal); }
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--gold-soft); border-color: var(--gold); }
.qa summary:focus-visible { outline-offset: 4px; }
.qa-answer { padding: 0 var(--s5) var(--s3) 0; color: var(--text); }
.qa-answer p { margin-bottom: var(--s2); max-width: 60ch; }
.qa-answer p:last-child { margin-bottom: 0; }

/* Start learning in three steps. */
.get-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: center; }
@media (min-width: 960px) { .get-grid { grid-template-columns: 6fr 5fr; gap: var(--s6); } }
.get-steps { list-style: none; counter-reset: gs; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.get-steps li { counter-increment: gs; position: relative; padding: var(--s2) var(--s3) var(--s2) calc(var(--s3) + 44px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--rule); }
.get-steps li::before { content: counter(gs); position: absolute; left: var(--s2); top: var(--s2); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--text); font-weight: 700; }
.get-help { margin: var(--s3) 0 0; }
.get-help a { display: inline-flex; align-items: center; min-height: 48px; }

.install { margin: 0; padding: var(--s4); border-radius: 16px; background: #0a2731; box-shadow: 0 30px 60px -30px rgba(14, 76, 90, 0.6); }
.install figcaption { margin-top: var(--s2); color: #c9d6d3; font-size: 1rem; }
.install-frame { border-radius: var(--radius); overflow: hidden; background: #e9eeec; color: #10262d; }
.install-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #d5dedb; }
.install-dots { display: inline-flex; gap: 6px; }
.install-dots i { width: 10px; height: 10px; border-radius: 50%; background: #9fb0ab; }
.install-url { flex: 1; display: grid; min-width: 0; padding: 5px 14px; border-radius: 999px; background: #f7f9f8; font-size: 0.875rem; color: #33484f; }
.url { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url-a { opacity: 0; } /* the still frame, shown under reduced motion, is the last scene */
.install-puzzle { flex: none; color: #33484f; border-radius: 6px; padding: 3px; box-sizing: content-box; }
.install-stage { position: relative; height: 250px; }
.scene { position: absolute; margin: 0; }
.scene p { margin: 0; }
.scene-1, .scene-2, .scene-3 { opacity: 0; }
.scene-card { inset: 0; display: grid; align-content: center; justify-items: center; gap: 10px; padding: var(--s3); text-align: center; }
.scene-card img { border-radius: var(--radius); }
.scene-name { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.scene-kicker { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0e4c5a; }
.scene-press { position: relative; }
.scene-card .scene-press { display: inline-block; margin-top: 6px; }
.scene-btn { display: inline-block; padding: 9px 20px; border-radius: 10px; background: #0e4c5a; color: #fff; font-weight: 700; font-size: 1rem; }
.scene-menu { top: 8px; right: 10px; width: min(290px, calc(100% - 20px)); padding: 12px 14px 14px; border-radius: 10px; background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45); }
.scene-menu-title { font-size: 0.875rem; font-weight: 700; color: #5b6f6b; margin-bottom: 8px; }
.scene-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: #eef3f1; font-size: 0.95rem; font-weight: 600; }
.scene-row img { border-radius: 5px; flex: none; }
.scene-row span:first-of-type { flex: 1; min-width: 0; }
.scene-pin { flex: none; padding: 2px 10px; border-radius: 999px; background: #f6ecc8; font-size: 0.875rem; }
.scene-field { display: block; width: min(240px, 100%); padding: 8px 14px; border: 1px solid #9fb0ab; border-radius: 8px; background: #fff; color: #33484f; font-size: 1rem; text-align: left; }
.scene-field.is-code { letter-spacing: 0.25em; font-variant-numeric: tabular-nums; text-align: center; }
/* Each scene carries its own pointer, placed on the thing it presses, so it lands there at every width. */
.scene-pointer { position: absolute; left: 58%; top: 50%; z-index: 3; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
@media (prefers-reduced-motion: no-preference) {
  .scene { animation: lcb-scene 16s linear infinite backwards; }
  .scene-pointer { animation: lcb-point 16s cubic-bezier(0.45, 0, 0.2, 1) infinite backwards; }
  .scene-btn { animation: lcb-press 16s linear infinite backwards; }
  .scene-row { animation: lcb-pick 16s linear infinite backwards; }
  .scene-2, .scene-2 .scene-pointer, .scene-2 .scene-btn { animation-delay: 4s; }
  .scene-3, .scene-3 .scene-pointer, .scene-3 .scene-row, .scene-3 .scene-btn { animation-delay: 8s; }
  .scene-4, .scene-4 .scene-pointer, .scene-4 .scene-btn { animation-delay: 12s; }
  .url-a { animation: lcb-url-a 16s linear infinite; }
  .url-b { animation: lcb-url-b 16s linear infinite; }
  .install-puzzle { animation: lcb-puzzle 16s linear infinite; }
}
@keyframes lcb-scene { 0% { opacity: 0; } 2%, 22% { opacity: 1; } 24.5%, 100% { opacity: 0; } }
@keyframes lcb-point { 0%, 3% { transform: translate(54px, 40px); } 10%, 100% { transform: none; } }
@keyframes lcb-press { 0%, 13% { transform: none; } 15% { transform: scale(0.94); } 18%, 100% { transform: none; } }
@keyframes lcb-pick { 0%, 13% { background: #eef3f1; } 15%, 24% { background: #cfe3ea; } 25%, 100% { background: #eef3f1; } }
@keyframes lcb-url-a { 0%, 72% { opacity: 1; } 75%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lcb-url-b { 0%, 72% { opacity: 0; } 75%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lcb-puzzle { 0%, 50% { background: transparent; } 52%, 72% { background: #f7f9f8; } 74.5%, 100% { background: transparent; } }

/* Pending card (kept for any page that still uses it). */
.pending { display: inline-flex; flex-direction: column; gap: 4px; margin: 0; padding: var(--s2) var(--s3); background: var(--pending-bg); border: 2px dashed var(--pending-edge); border-radius: var(--radius); }
.pending-title { font-weight: 700; }
.pending-note { font-size: 1rem; color: var(--muted); }

/* ---- Inner pages ------------------------------------------------------------------ */
.page-main { padding: var(--s6) 0 var(--s7); }
.page-main h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.prose h2 { margin-top: var(--s5); padding-top: var(--s3); border-top: var(--border); font-size: 1.6rem; }
.prose h3 { margin-top: var(--s4); font-size: 1.2rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s1); }
.prose :target { background: var(--pending-bg); outline: 2px solid var(--pending-edge); outline-offset: 4px; }

/* Help: questions grouped. */
.help-page .lede { margin-bottom: var(--s5); max-width: 46ch; }
.help-group { margin-bottom: var(--s5); }
.help-group h2 { font-size: 1.35rem; margin-bottom: var(--s2); padding-bottom: var(--s1); border-bottom: 2px solid var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa-answer { animation: qa-in 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
}
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.help-contact { margin-top: var(--s5); padding: var(--s4); border-radius: var(--radius); background: var(--pending-bg); border: 1px solid var(--rule); }
.help-contact h2 { font-size: 1.35rem; }
.help-contact p { margin: 0; }
.help-contact a { overflow-wrap: anywhere; } /* the long address must not push a narrow phone sideways */

/* Privacy: the approved words, with a side list of their own headings. */
.privacy-layout { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 1000px) { .privacy-layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s6); } } /* 2.5.8: the page's own edges, as the header (was max-width 1040px, 24px in from each side) */
.privacy-toc { display: none; }
@media (min-width: 1000px) {
  .privacy-toc { display: block; position: sticky; top: var(--s4); align-self: start; padding-top: 12px; }
}
.toc-title { font-weight: 700; font-size: 1rem; margin-bottom: var(--s1); }
.privacy-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
.privacy-toc a { display: block; padding: 6px 0 6px var(--s2); margin-left: -2px; border-left: 2px solid transparent; font-size: 1rem; color: var(--muted); text-decoration: none; }
.privacy-toc a:hover { color: var(--text); border-left-color: var(--teal); }
.privacy-prose { max-width: 68ch; }
.privacy-prose > p:first-of-type { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--pending-bg); color: var(--muted); font-size: 1rem; }
.privacy-prose h2 { scroll-margin-top: var(--s3); }
.privacy-prose h3 { font-size: 1.2rem; }
.privacy-prose ul { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.privacy-prose ul li { padding: var(--s2) var(--s3); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); margin: 0; }

/* ---- Footer ----------------------------------------------------------------------- */
.site-foot { padding: var(--s4) 0; color: var(--muted); font-size: 1rem; border-top: 1px solid var(--rule); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); }
.foot-name { margin: 0; font-weight: 700; color: var(--text); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 48px; }

/* ---- Header on narrower screens: the name, Class sign-in and Menu (plan section 5). ---- */
@media (max-width: 1080px) {
  .bar-public.has-menu .bar-inner { flex-wrap: nowrap; }
  .bar-public.has-menu .site-nav { flex-wrap: nowrap; gap: var(--s2); }
  .bar-public.has-menu .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; min-width: 48px; padding: 0 12px; border: 2px solid var(--teal-ink); border-radius: var(--radius);
    background: transparent; color: var(--teal-ink); font-family: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer;
  }
  .bar-public.has-menu.menu-open .menu-toggle { background: var(--teal-ink); color: var(--teal); }
  .bar-public.has-menu .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--s3) var(--s2);
    background: var(--teal); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.5);
  }
  .bar-public.has-menu.menu-open .nav-links { display: flex; }
  .bar-public.has-menu .nav-links a { min-height: 56px; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 1.125rem; }
}

/* Phones held sideways and other short wide screens (review of c8db50348): the photo takes the right half and the
   words sit on the solid band at the left, so they never cross the bright half of the photo or the student's face. */
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .hero { background: #082026; }
  .hero-bg, .hero-scrim { left: 50%; width: 50%; }
  .hero-bg img { object-position: 70% 25%; }
  .hero-scrim { background: linear-gradient(90deg, #082026 0%, rgba(8, 32, 38, 0.6) 18%, rgba(8, 32, 38, 0) 45%); }
  .hero-text { max-width: calc(50vw - 40px); }
  .hero h1 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); }
  .hero .lede { font-size: 1rem; margin-bottom: var(--s3); }
  .hero .cta-doors .button { width: 100%; }
}
@media (max-aspect-ratio: 1/1) {
  /* Phones and tablets held upright: a screen taller than wide can show only one face of a wide photo, so the photo
     fills the top of the hero (both faces show) and fades into the dark band the words sit on. The hero is still at
     least one screen tall. */
  .hero { align-items: flex-start; background: #082026;
    padding: calc(min(44vh, 460px) - 48px) 0 var(--s5); padding-top: calc(min(44svh, 460px) - 48px); }
  .hero-bg, .hero-scrim { bottom: auto; height: min(44vh, 460px); height: min(44svh, 460px); }
  .hero-bg img { object-position: 72% 30%; }
  .hero-scrim { background: linear-gradient(180deg, rgba(8, 32, 38, 0) 0%, rgba(8, 32, 38, 0) 50%, rgba(8, 32, 38, 0.8) 80%, #082026 100%); }
}

/* ---- Small screens ---------------------------------------------------------------- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .wrap, .bar-inner { padding-left: var(--s2); padding-right: var(--s2); }
  .band { padding: var(--s6) 0; }
  .people { padding-top: var(--s6); }
  .hero h1 { font-size: clamp(1.875rem, 8.4vw, 2.25rem); }
  .hero .lede { font-size: 1.0625rem; margin-bottom: var(--s3); }
  .bar-inner { padding-top: var(--s1); padding-bottom: var(--s1); gap: var(--s1); }
  .brand { font-size: 1rem; gap: 8px; flex: 1 1 auto; min-width: 0; }
  .brand img { width: 36px; height: 36px; }
  .site-nav a, .site-nav .nav-current { font-size: 1rem; }
  .bar-public .nav-start { display: none; }
  .bar-public.has-acct .nav-class { display: none; } /* the menu carries the dashboard link */
  .acct-toggle { padding: 0 10px; gap: 4px; font-size: 1rem; }
  .acct-caret { width: 12px; height: 12px; }
  .has-acct .brand { font-size: 0.9375rem; } /* keeps the name to two lines beside My account */
  .bar:not(.bar-public) .site-nav { gap: 0 10px; }
  .bar:not(.bar-public) .help-link { padding: 0 12px; }
  .button { min-height: 52px; width: 100%; }
  .button-on-bar { width: auto; }
  .cta-doors .button { width: 100%; }
  .hero-note { margin-top: var(--s2); font-size: 1rem; }
  .laptop-screen { padding: 6px; border-radius: 12px 12px 4px 4px; }
  /* Phone: the loop shows the top left of the lesson, where the step and the target are. */
  .screen-crop { aspect-ratio: 16 / 11; }
  .hero-video { width: 150%; height: auto; aspect-ratio: 16 / 10; }
  .facts-row { padding-top: var(--s2); padding-bottom: var(--s2); gap: 12px var(--s3); justify-content: flex-start; }
  .fact { font-size: 1rem; }
  .section-lede, .org-lede { font-size: 1.125rem; margin-bottom: var(--s4); }
  .unit-panel { padding: var(--s3); }
  .org-points li { padding: var(--s2) var(--s3); }
  .plan { padding: var(--s3) var(--s2); }
  .plan-cta { align-self: stretch; }
  .plan-actions .button { flex: 1 1 100%; }
  .install { padding: var(--s2); }
  .install-stage { height: 230px; }
  .qa-answer { padding-right: 0; }
}
@media (max-width: 400px) {
  .acct-caret { display: none; } /* room for the site's name on two lines */
}
@media (max-width: 420px) {
  .bar-public.has-menu .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar-public.has-menu .menu-toggle { padding: 0; width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* 2.5.5 (A113): the Online add-on tag on Units 5 and 6, quieter than Free. */
.unit-tag-addon { background: var(--surface); border: 1px solid var(--rule); font-weight: 600; }

/* 2.5.9: state standards, /standards/ and /standards/<state>/. One container with the header's edges (the 2.5.8 rule):
   the state list is a grid of cards across the full width; a state page is a side list of its headings beside the
   standards, which read as one column of cards. */
.std-page h1 { margin-bottom: var(--s2); }
.std-lede { font-size: 1.25rem; color: var(--muted); max-width: 60ch; margin: 0 0 var(--s4); }
.std-crumb { margin: 0 0 var(--s1); font-size: 1rem; }
/* 2.5.10: one wide row per state, the whole card is the link, an arrow on the right (was a narrow 320px box). */
.std-states { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s3); max-width: 880px; }
.std-state-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: var(--radius); background: var(--surface); transition: box-shadow .15s ease, border-color .15s ease; }
.std-state-card:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(16, 60, 70, .10); }
.std-state-card:has(.std-state-link:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.std-state-card h2 { font-size: 1.5rem; margin: 0 0 var(--s1); }
.std-state-link { color: var(--teal); text-decoration: none; }
.std-state-link:focus-visible { outline: none; }
@supports not selector(:has(*)) { .std-state-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; } }
.std-state-card:hover .std-state-link { text-decoration: underline; }
.std-state-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.std-state-card p { margin: 0 0 6px; max-width: 62ch; }
.std-state-card p:last-child { margin-bottom: 0; }
.std-state-go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--tint); color: var(--teal); font-size: 1.5rem; line-height: 1; transition: transform .15s ease; }
.std-state-card:hover .std-state-go { transform: translateX(3px); }
@media (max-width: 600px) { .std-state-card { grid-template-columns: 1fr; padding: var(--s3); } .std-state-go { display: none; } }
@media (prefers-reduced-motion: reduce) { .std-state-card, .std-state-go { transition: none; } .std-state-card:hover .std-state-go { transform: none; } }
.std-checked { color: var(--muted); font-size: 1rem; }
.std-more { color: var(--muted); }
.std-more a, .std-sources a { overflow-wrap: anywhere; }
.std-facts { padding: var(--s3); border-radius: var(--radius); background: var(--tint); margin-bottom: var(--s5); }
.std-facts > p { margin: 0 0 var(--s2); max-width: 75ch; }
.std-key { margin: 0; display: grid; gap: var(--s2); }
@media (min-width: 900px) { .std-key { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } }
.std-key div { display: grid; gap: 6px; align-content: start; }
.std-key dd { margin: 0; font-size: 1rem; }
.std-level { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.std-level-practice { background: var(--teal); color: var(--teal-ink); }
.std-level-start { background: var(--surface); color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.std-layout { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
.std-toc { display: none; }
@media (min-width: 1000px) {
  .std-layout { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s6); }
  .std-toc { display: block; position: sticky; top: var(--s4); align-self: start; max-height: calc(100vh - var(--s5)); overflow: auto; }
}
.std-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
.std-toc ol ol { border-left: 0; margin-left: var(--s2); }
.std-toc a { display: block; padding: 6px 0 6px var(--s2); margin-left: -2px; border-left: 2px solid transparent; font-size: 1rem; color: var(--muted); text-decoration: none; }
.std-toc ol ol a { font-size: 0.9375rem; padding-top: 4px; padding-bottom: 4px; }
.std-toc a:hover { color: var(--text); border-left-color: var(--teal); }
.std-section { margin-bottom: var(--s6); scroll-margin-top: var(--s3); }
.std-intro { max-width: 70ch; }
.std-group { margin-top: var(--s5); scroll-margin-top: var(--s3); }
.std-source { color: var(--muted); font-size: 1rem; max-width: 75ch; }
.std-rows { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s3); }
.std-row { padding: var(--s3); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.std-code { margin: 0 0 var(--s1); font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.std-page-link { font-weight: 400; font-size: 1rem; margin-left: var(--s1); }
.std-text { margin: 0 0 var(--s2); padding: 0 0 0 var(--s2); border-left: 3px solid var(--gold); }
.std-text p { margin: 0; font-size: 1.125rem; }
.std-how { margin: 0 0 var(--s2); max-width: 75ch; }
.std-how .std-level { margin-right: 6px; }
.std-lessons { margin: 0; padding: 0 0 0 var(--s3); display: grid; gap: 4px; font-size: 1rem; color: var(--muted); }
.std-free { display: inline-block; padding: 0 10px; border-radius: 999px; background: var(--gold-soft); color: var(--text); font-size: 0.875rem; font-weight: 700; }
.std-sources { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.std-sources li { display: grid; gap: 2px; padding: var(--s2) var(--s3); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.std-sources span { color: var(--muted); font-size: 1rem; }
.std-end { padding: var(--s4); border-radius: var(--radius); background: var(--tint); }
.std-end p { max-width: 65ch; }
@media (max-width: 599px) {
  .std-row, .std-facts, .std-end { padding: var(--s2); }
  .std-lessons { padding-left: var(--s2); }
}
/* The home page's link to the standards, under the organization's buttons. */
.org-standards { margin: var(--s2) 0 0; font-size: 1rem; }
.std-key-note { margin: var(--s2) 0 0; font-size: 1rem; }

/* ---- 2.5.16: the help pages under /learn/ and /guides/ (page-learn.php). ---- */
.learn-main { padding-top: var(--s4); }
.learn-crumbs ol { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 1rem; color: var(--muted); }
.learn-crumbs li { display: inline-flex; align-items: center; }
.learn-crumbs li + li::before { content: "\203A"; margin: 0 10px; color: var(--pending-edge); }
.learn-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.learn-crumbs [aria-current] { color: var(--text); }
.learn-prose { font-size: 1.125rem; line-height: 1.6; }
.learn-prose h1 { margin-bottom: var(--s3); }
.learn-prose h2, .learn-prose h3 { scroll-margin-top: var(--s3); }
.learn-prose ol { padding-left: 1.4em; }
.learn-prose ol li { margin-bottom: var(--s1); padding-left: 4px; }
.learn-prose code { font-size: 0.95em; background: var(--pending-bg); padding: 1px 6px; border-radius: 4px; }
.learn-cta { margin: var(--s4) 0; }
.learn-table { overflow-x: auto; margin: 0 0 var(--s3); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.learn-table table { border-collapse: collapse; width: 100%; font-size: 1.0625rem; }
.learn-table th, .learn-table td { text-align: left; vertical-align: top; padding: 12px var(--s2); border-bottom: 1px solid var(--rule); }
.learn-table thead th { background: var(--tint); }
.learn-table tbody tr:last-child td { border-bottom: 0; }
.learn-example { margin: 0 0 var(--s3); padding: var(--s3); border: 2px dashed var(--pending-edge); border-radius: var(--radius); background: var(--pending-bg); }
.learn-example p { margin: 0 0 var(--s1); }
.learn-example p:last-child { margin-bottom: 0; }
.learn-example-tag { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-size: 0.9375rem; font-weight: 700; }
.learn-marker { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: 6px; border-radius: 50%; background: var(--teal); color: var(--teal-ink); font-size: 0.85em; font-weight: 700; }
.learn-related { margin: var(--s5) 0 0; padding: var(--s3); border-radius: var(--radius); background: var(--tint); }
.learn-prose .learn-related h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 1.35rem; }
.learn-related ul { margin: 0; padding-left: 1.2em; }
.learn-related li:last-child { margin-bottom: 0; }
.learn-pager { margin: var(--s4) 0 0; padding-top: var(--s3); border-top: var(--border); font-size: 1.0625rem; }
.learn-pager p { margin: 0 0 var(--s1); }
.learn-jump { padding: var(--s2) var(--s3); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); }
.learn-sources { margin-top: var(--s4); font-size: 1rem; color: var(--muted); overflow-wrap: anywhere; }
.learn-independent { margin: var(--s5) 0 0; padding-top: var(--s2); border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); max-width: var(--measure); }
.learn-try { margin: 0 0 var(--s3); }
.learn-prose hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s4) 0; }
@media (max-width: 600px) {
  .learn-prose { font-size: 1.0625rem; }
  .learn-related { padding: var(--s2); }
  .learn-cta .button { width: 100%; justify-content: center; }
}

/* ---- 2.5.17: Wave 3, the /teach/ pages and printable handouts. ---- */
.learn-box { margin: 0 0 var(--s3); padding: var(--s3); border: 1px solid var(--rule); border-left: 6px solid var(--teal); border-radius: var(--radius); background: var(--surface); }
.learn-box p { margin: 0 0 var(--s1); }
.learn-box p:last-child { margin-bottom: 0; }
.learn-checked { display: inline-block; padding: var(--s1) var(--s2); border-radius: var(--radius); background: var(--gold-soft); }
.learn-toc { margin: 0 0 var(--s4); padding: var(--s2) var(--s3); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.learn-toc .toc-title { margin: 0 0 var(--s1); font-weight: 700; }
.learn-toc ol { margin: 0; padding-left: 1.4em; }
.learn-toc li { margin-bottom: 8px; }
.learn-toc a { line-height: 1.5; }
@media print {
  .learn-printable .bar, .learn-printable .site-foot, .learn-printable .skip-link, .learn-printable .learn-crumbs,
  .learn-printable .learn-cta, .learn-printable .learn-pager, .learn-printable .learn-related,
  .learn-printable .cb-root, .learn-printable .learn-independent { display: none !important; }
  .learn-printable, .learn-printable .page-main { background: #fff; padding: 0; }
  .learn-printable .wrap { max-width: none; padding: 0; }
  .learn-printable .learn-prose { font-size: 10pt; line-height: 1.28; }
  .learn-printable h1 { font-size: 16pt; margin-bottom: 4pt; }
  .learn-printable .learn-prose h2 { font-size: 12pt; margin: 6pt 0 2pt; padding-top: 0; border-top: 0; }
  .learn-printable p, .learn-printable ol, .learn-printable ul { margin-bottom: 3pt; }
  .learn-printable li { margin-bottom: 1pt; }
  .learn-printable .learn-box { padding: 4pt 6pt; margin-bottom: 4pt; break-inside: avoid; }
  .learn-printable a { color: inherit; text-decoration: none; }
  .learn-printable .learn-table { border-radius: 0; margin-bottom: 4pt; }
  .learn-printable .learn-table table { font-size: 10pt; }
  .learn-printable .learn-table th, .learn-printable .learn-table td { padding: 2pt 6pt; }
  .learn-printable hr { border: 0; border-top: 1px solid #999; margin: 4pt 0; }
  @page { size: letter; margin: 0.4in; }
}
