/* CURVE 35.  Bright and friendly, for ages 14 and up (teens, makers, students, adults): a yellow hero, ink outlines and hard shadows, one colour per lesson.
   A clear, step-by-step assembly kit; never a toy brand's bricks, studs or look.  Few stickers, sitting still; only buttons and lesson tiles lift on hover.
   Inter for the shell (InterD 900 for the big words); Schola for reading in lessons.
   Contrast: ink on every fill here (sun, tangerine, sky, mint, the tints) is over 7:1; white text only on ink. Lesson colours: the script picks ink or white,
   and darkens a colour that neither reaches 4.5:1 on. */

@font-face { font-family: "Schola"; src: url("../fonts/schola-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schola"; src: url("../fonts/schola-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Schola"; src: url("../fonts/schola-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "InterD"; src: url("../fonts/interd-900.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  --sun: #FFD23F;  --sun-soft: #FFF0BF;
  --tang: #FF8A3D; --tang-soft: #FFE6D2;
  --sky: #5AA9FF;  --sky-soft: #DCEBFF;
  --mint: #5BD17A; --mint-soft: #DDF4E2;
  --orange: #E8641B;      /* the camera's front plate */
  --orange-ink: #A8450C;  /* orange for small text */
  --cream: #FFF8EC;
  --paper: #FFFFFF;
  --paper-2: #F5F0E6;
  --paper-3: #FFE6D2;     /* the 3D stage */
  --ink: #17140F;
  --ink-2: #4F4A43;       /* 8:1 on cream */
  --rule: #E3DACB;
  --line: 2.5px solid var(--ink);
  --sh: 5px 5px 0 var(--ink);
  --plate: #E8641B; --plate-ink: #A8450C;
  --read: 38rem;
  --wrap: 76rem;
  --serif: "Schola", "Century Schoolbook", "TeX Gyre Schola", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "InterD", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 900; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.8rem); margin-bottom: 16px; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); margin: 0 0 14px; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
h4 { font-size: 1rem; margin: 18px 0 6px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: 0.25em 0; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px #fff; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
[hidden] { display: none !important; }
strong, b { font-weight: 700; }
figure { margin: 32px 0; }
figcaption { font-size: 0.88rem; color: var(--ink-2); margin-top: 8px; }
img.r { mix-blend-mode: multiply; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; padding: 8px 12px; font-weight: 600; z-index: 50; border: var(--line); }
.skip:focus { top: 12px; }
.quiet { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.tnum { font-variant-numeric: tabular-nums; }
.note { font-size: 0.92rem; color: var(--ink-2); }
.nb { font-size: 0.88rem; color: var(--ink-2); margin: 0; }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.45; max-width: 40rem; color: var(--ink); }
.kicker { font-size: 0.9rem; color: var(--ink-2); margin: 0 0 12px; }
.fine { font-size: 0.85rem; color: var(--ink-2); margin: 18px 0 0; }

/* ---- the marks: a kicker line, a plain tag, stickers */
.kick { font: 800 0.8rem/1 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 12px; }
.tag { display: inline-block; font: 800 0.75rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--ink); border-radius: 8px; padding: 6px 10px; margin: 0 0 14px; }
.stks { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.stks li { margin: 0; }
.stk { display: inline-block; font: 800 0.92rem/1 var(--sans); color: var(--ink); background: #fff; border: var(--line); border-radius: 10px; padding: 8px 12px 9px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); white-space: nowrap; }
.stks .stk:nth-child(2) { transform: rotate(1.5deg); }
.stks .stk:nth-child(3) { transform: rotate(-1deg); }
.stk-w { background: #fff; } .stk-g { background: var(--mint); } .stk-b { background: var(--sky); } .stk-o { background: var(--tang); } .stk-y { background: var(--sun); }

/* ---- buttons: chunky, ink outline, hard shadow; they lift a little on hover (one of the site's two hover lifts) */
.btn { white-space: nowrap; font: 800 0.98rem/1 var(--sans); color: var(--ink); background: #fff; border: var(--line); border-radius: 12px; padding: 12px 20px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.main { background: var(--tang); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.big { padding: 15px 26px; font-size: 1.05rem; }
.btn.small { padding: 8px 14px; font-size: 0.88rem; box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.quiet-btn { border-color: transparent; background: transparent; box-shadow: none; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.2em; padding-left: 8px; padding-right: 8px; }
.quiet-btn:hover { transform: none; box-shadow: none; text-decoration-color: var(--ink); }
.wide-btn { width: 100%; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.85rem; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

/* ---- top bar */
.top { background: var(--cream); border-bottom: var(--line); position: relative; z-index: 20; }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 11px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 900 1.15rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.mark { width: 26px; height: 26px; fill: var(--ink); }
.mark .m-acc { fill: var(--orange); } .mark .m-lens { fill: #9FD3EE; }
.mainnav { margin-right: auto; }
.nav { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; font-weight: 600; }
.nav li { margin: 0; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 8px 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--tang); }
.top-act { display: flex; align-items: center; gap: 10px; }
.top-cta { padding: 10px 16px; }
.basket-btn, .menu-btn, .so-x { background: #fff; border: var(--line); border-radius: 10px; height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; cursor: pointer; color: var(--ink); }
.basket-btn svg, .menu-btn svg, .so-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { display: inline-block; min-width: 1.4em; padding: 2px 5px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 0.75rem/1.2 var(--sans); text-align: center; }
.menu-btn { display: none; }
.nav-more { display: none; list-style: none; margin: 0; padding: 4px 24px 12px; border-top: 1px solid var(--rule); background: var(--cream); }
.nav-more.open { display: block; }
.narrow-only { display: none; }
.nav-more li { margin: 0; }
.nav-more a { display: block; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--rule); font-weight: 600; }
.nav-more a[aria-current="page"] { color: var(--orange-ink); }

/* ---- page frames */
main { display: block; padding: 48px 24px 96px; }
main.is-wide { padding: 0 0 96px; }
.page { max-width: var(--read); margin: 0 auto; }
.is-wide > .page { max-width: calc(var(--read) + 48px); padding: 40px 24px 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pagehead { padding: 52px 0 32px; max-width: 48rem; }
.pagehead h1 { margin-bottom: 12px; }
.pagehead .stks { margin: 12px 0 0; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.after-line { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.after-line a { color: var(--ink); }
.progress-line { font-size: 0.92rem; color: var(--ink-2); }
.sec-head { margin-bottom: 30px; }
.sec-head h2 { margin-bottom: 10px; }
.frame { background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); padding: 18px; }

/* ================================================================ HOME */
.home section { scroll-margin-top: 16px; }
/* hero: yellow, a faint dot grid, the camera in an ink frame */
.hero { background-color: var(--sun); background-image: radial-gradient(rgba(23, 20, 15, 0.13) 1.1px, transparent 1.6px); background-size: 22px 22px; padding: 56px 0 72px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.6rem); line-height: 1.02; margin-bottom: 18px; }
.hl { background: linear-gradient(transparent 64%, var(--tang) 64%, var(--tang) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { font-weight: 600; max-width: 30rem; }
.hero-pic { position: relative; }
.hero-pic .frame { padding: 22px 26px; }
.hero-stk { position: absolute; top: -16px; left: 22px; }
.hero-stk .stk { transform: rotate(-4deg); }

/* problem: ink, one line, the sealed box against the open camera */
.problem { background: var(--ink); color: #fff; padding: 88px 0; }
.problem-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.problem h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.3rem); color: #fff; max-width: 16ch; }
.problem .lead { color: #E9E2D6; }
.vs { display: flex; align-items: center; justify-content: center; gap: 18px; }
.vs-card { flex: 1 1 0; min-width: 0; max-width: 15rem; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--sun); padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.vs-card img, .vs-q { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; margin-bottom: 10px; }
.vs-q { display: flex; align-items: center; justify-content: center; background: #2A2622; border-radius: 10px; color: #8C847A; font: 900 3.4rem/1 var(--display); }
.vs-card strong { font-weight: 800; }
.vs-card span:last-child { font-size: 0.9rem; color: var(--ink-2); }
.vs-x { font: 900 1.3rem var(--display); color: var(--sun); }

/* guide: four real numbers, one colour each */
.guide { padding: 88px 0 80px; }
.bns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 30px 0 0; }
.bns div { border: var(--line); border-radius: 16px; box-shadow: var(--sh); padding: 18px 20px 20px; }
.bns dt { font: 900 clamp(2.4rem, 1.8rem + 1.6vw, 3.2rem)/1 var(--display); letter-spacing: -0.03em; }
.bns dd { margin: 10px 0 0; font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.bn-y { background: var(--sun); } .bn-b { background: var(--sky); } .bn-g { background: var(--mint); } .bn-o { background: var(--tang); }

/* 1-2-3 */
.plan { background: var(--sky-soft); border-top: var(--line); border-bottom: var(--line); padding: 80px 0 88px; }
.steps3 { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.steps3 li { position: relative; margin: 0; border: var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 26px 22px 22px; }
.s-y { background: var(--sun-soft); } .s-w { background: #fff; } .s-p { background: var(--tang-soft); }
.s-n { position: absolute; top: -18px; left: -12px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font: 900 1.3rem/1 var(--display); }
.steps3 img { margin: 0 0 16px; border-radius: 12px; }
.steps3 img.r { mix-blend-mode: normal; }
.steps3 h3 { font-size: 1.2rem; }
.steps3 h3 a { text-decoration: none; }
.steps3 h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.steps3 li:hover h3 a { text-decoration: underline; text-decoration-color: var(--orange); }
.steps3 p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }


/* lessons: one colour each; the tiles lift on hover (the site's other hover lift) */
.learn { padding: 88px 0 80px; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tiles li { margin: 0; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 18px; background: var(--t); color: var(--ink); border: var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.tile:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.tile:hover .tl-t { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 0.18em; }
.tl-n { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 12px; background: var(--c); color: var(--on); border: var(--line); font: 900 1.45rem/1 var(--display); margin-bottom: 6px; }
.tl-t { font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.tl-q { color: var(--ink-2); font-size: 0.95rem; line-height: 1.4; }
.tl-pic { display: block; width: 100%; margin: 8px 0 0; }
.tl-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
/* a lesson's diagram as its card picture (inline SVG from its sims file) */
.tl-fig { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; margin: 0 0 10px; padding: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 11px; overflow: hidden; }
.tl-fig svg { display: block; width: 100%; height: 100%; max-height: 100%; }
.tl-fig svg text { font-family: var(--sans, system-ui, sans-serif); }
.mr-fig { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; margin: 0 0 6px; padding: 6px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.mr-fig svg { display: block; width: 100%; height: 100%; }
.tl-m { margin-top: auto; padding-top: 8px; font-size: 0.84rem; font-weight: 600; color: var(--ink-2); }
.tiles.full .tile { padding: 22px; }
.tiles.full .tl-n { min-width: 56px; height: 56px; font-size: 1.8rem; }
.tiles.full .tl-t { font-size: 1.25rem; }
.learn .ctas { margin-top: 34px; }

/* the maker shelf: a tidy row of four */
.mrow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mrow li { margin: 0; }
.mrow a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 14px 16px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; }
.mrow a:hover .mr-t { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.18em; }
.mr-n { display: inline-block; font: 900 1.2rem/1 var(--display); background: var(--c); color: var(--on); border: 2px solid var(--ink); border-radius: 9px; padding: 5px 8px; }
.mr-t { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.mr-q { color: var(--ink-2); font-size: 0.92rem; line-height: 1.4; }

/* parts: light cards */
.partsec { padding: 8px 0 88px; }
.pts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pts li { margin: 0; }
.pts.mini { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.pt { display: block; height: 100%; background: #fff; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); }
.pt-pic { display: block; background: var(--t); border-bottom: 2px solid var(--ink); padding: 8px; }
.pt-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: multiply; }
.pt-name { display: flex; align-items: baseline; gap: 7px; padding: 9px 11px; font-weight: 800; font-size: 0.92rem; line-height: 1.2; margin: 0; }
.pt-num { font: 700 0.75rem/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
a.pt:hover .pt-name { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.18em; }
.pts.full { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 22px; }
.pts.full .pt { padding-bottom: 14px; scroll-margin-top: 24px; }
.pts.full .pt-name { font-size: 1.08rem; padding: 12px 14px 4px; }
.pts.full .pt p { margin: 0 14px 6px; font-size: 0.93rem; color: var(--ink-2); line-height: 1.45; }
.pts.full .pt .pt-stats { font-size: 0.84rem; font-weight: 600; }
.pts.full .pt .pt-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.pt-links a { color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.pt.here { outline: 4px solid var(--tang); outline-offset: 4px; }
.pts-h { font-size: 1.5rem; margin: 56px 0 18px; }

/* open files: mint, the eight parts in a frame */
.openfiles { background: var(--mint-soft); border-top: var(--line); padding: 80px 0 88px; }
.of-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.of-frame { padding: 16px; }
.of-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; }
.of-grid li { margin: 0; }
.of-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }

/* the last call: a tangerine band, clear */
.final { background: var(--tang); color: var(--ink); border-top: var(--line); padding: 60px 0; }
.home .final, .route-store .final { margin-bottom: -96px; }
.final-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 56px; align-items: center; }
.final h2 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); }
.final-price { font: 900 clamp(3.4rem, 2.4rem + 3vw, 5rem)/1 var(--display); letter-spacing: -0.03em; margin: 6px 0 0; }
.final-list { list-style: none; padding: 0; margin: 0; font-weight: 700; }
.final-list li { padding: 8px 0 8px 28px; position: relative; border-bottom: 2px solid rgba(23, 20, 15, 0.22); margin: 0; }
.final-list li::before { content: ""; position: absolute; left: 2px; top: 0.9em; width: 13px; height: 7px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
.final-act { display: flex; flex-direction: column; gap: 14px; }

/* ================================================================ LESSONS page */
.makers-link { margin-top: 64px; padding-top: 26px; border-top: var(--line); }
.ml-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 18px; }
.ml-head h2 { font-size: 1.6rem; margin: 0; }
.ml-head p { margin: 0; color: var(--ink-2); }
.ml-head a { color: var(--ink); font-weight: 600; }
.teach-line { margin: 44px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.teach-line strong { color: var(--ink); }
.teach-line a { color: var(--ink); font-weight: 600; margin-left: 6px; }

/* ---- the bar that stays at the top (lessons, build guide) */
.chapbar { position: sticky; top: 0; z-index: 15; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--rule); backdrop-filter: blur(6px); }
.chapbar-in { max-width: var(--wrap); margin: 0 auto; padding: 8px 24px; font-size: 0.9rem; }
.cb-row { display: flex; align-items: center; gap: 16px; }
.cb-now { font-weight: 800; white-space: nowrap; color: var(--ink); text-decoration: none; }
a.cb-now:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.cb-strip, .cb-secs { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; position: relative; }
.cb-strip::-webkit-scrollbar, .cb-secs::-webkit-scrollbar { display: none; }
.cb-strip li, .cb-secs li { margin: 0; flex: none; }
.cb-strip a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 32px; padding: 0 8px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.cb-strip a:hover { background: var(--paper-2); color: var(--ink); }
.cb-strip a[aria-current] { background: var(--ink); color: #fff; }
.cb-secs { padding: 4px 0 0; }
.cb-secs a { display: inline-block; padding: 6px 10px 8px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.cb-secs a:hover { color: var(--ink); }
.cb-secs a[aria-current] { color: var(--ink); border-bottom-color: var(--orange); }
.cb-lab { padding: 6px 10px 8px 0; color: var(--ink-2); font-size: 0.78rem; letter-spacing: 0.04em; }
.tabs-sec a { font-size: 0.8rem; letter-spacing: 0.04em; }

/* ---- a lesson: the renderer draws the middle; the shell draws the foot */
.lesson-foot { max-width: var(--wrap); margin: 56px auto 0; padding: 0 24px; }
.kitline { border-top: 2px solid var(--ink); padding-top: 16px; }
.kitline > p { font-weight: 800; margin: 0 0 12px; }
.kitline .prow { grid-template-columns: repeat(auto-fill, minmax(96px, 120px)); }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); }
.pager a { text-decoration: none; max-width: 48%; }
.pager a span { display: block; color: var(--ink-2); font-size: 0.85rem; }
.pager a strong { font-weight: 800; font-size: 1.1rem; }
.pager a:hover strong { text-decoration: underline; text-decoration-color: var(--orange); }
.pager .next { text-align: right; margin-left: auto; }
/* the plain lesson (when the renderer is not there) */
.lhead { background: var(--cream); padding: 40px 0 32px; }
.lhead h1 { max-width: 22ch; }
.lesson { padding-top: 32px; font-family: var(--serif); font-size: 1.12rem; }
.lesson h2 { font-size: 1.5rem; margin-top: 40px; }
.film video { background: #1d2228; aspect-ratio: 16 / 9; width: 100%; }

/* ================================================================ START */
.path { list-style: none; padding: 0; margin: 0; }
.path-step { display: grid; grid-template-columns: 5rem minmax(0, 1.3fr) minmax(0, 0.8fr); gap: 28px; align-items: center; padding: 32px 0; border-top: 1px solid var(--rule); margin: 0; }
.path-step h2 { font-size: 1.6rem; margin-bottom: 8px; }
.path-step .big-n { align-self: start; }
.path-links { display: flex; flex-wrap: wrap; gap: 10px; }
.path-pic { background: #fff; }
.tick { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.tick input { width: 20px; height: 20px; accent-color: var(--ink); }
.path-step.done .big-n { color: var(--ink-2); }

/* ================================================================ BUILD GUIDE */
.guide-page .pagehead { padding-top: 40px; }
.kitbar { color: var(--ink-2); margin: 18px 0 0; }
.kitbar a { color: var(--ink); }
.guidesec { scroll-margin-top: 110px; }
.guidesec > h2 { margin-top: 72px; display: flex; align-items: center; gap: 14px; }
.guidesec > h2 .tag { margin: 0; }
.guidesec > p { max-width: var(--read); color: var(--ink-2); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; padding: 36px 0; border-top: 1px solid var(--rule); scroll-margin-top: 110px; }
.step .label { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.step .label .sn { font: 900 3.6rem/0.85 var(--display); color: var(--orange); letter-spacing: -0.03em; }
.step .label .sec { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-2); font-weight: 800; }
.step .do { font-size: 1.15rem; line-height: 1.55; }
.step .check { color: #1E6B3A; font-size: 0.98rem; display: flex; gap: 8px; }
.step .check .ck { font-weight: 800; }
.step .parts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--ink-2); }
.step .parts li { margin: 0; }
.step .parts li, .step .parts a { display: flex; align-items: center; gap: 6px; }
.step .parts img { width: 40px; height: 30px; object-fit: contain; }
.step-learn { font-size: 0.9rem; color: var(--ink-2); }
.step-learn a { color: var(--ink); }
.step figure { margin: 0; background: #fff; }
.step video { mix-blend-mode: multiply; width: 100%; }
.step.here .label .sec::after { content: " (you are here)"; font-weight: 400; letter-spacing: 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 800; border-bottom: 2px solid var(--ink); }
.tablewrap { overflow-x: auto; margin: 0 0 1em; }
.dots { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-right: 8px; }
.dots i { display: inline-block; border-radius: 50%; border: 1px solid var(--ink-2); }
.dots i.on { background: var(--ink); border-color: var(--ink); }
.whichdot { margin-top: 20px; }
.whichdot caption { text-align: left; font-weight: 800; padding-bottom: 6px; }
.chap { list-style: none; padding: 0; columns: 2; column-gap: 24px; font-size: 0.9rem; }
.chap li { margin: 0; break-inside: avoid; }
.chap button { background: none; border: 0; padding: 5px 0; cursor: pointer; color: var(--ink); font: inherit; text-align: left; display: flex; gap: 10px; }
.chap button:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.chap button[aria-current="true"] { color: var(--orange-ink); font-weight: 600; }
.chap .tm { color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 2.6em; }
dl.facts { display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr; margin: 0 0 1em; }
dl.facts dt, dl.facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); }
dl.facts dt { color: var(--ink-2); font-size: 0.9rem; padding-right: 16px; }
details { margin: 10px 0; }
summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
summary:hover { color: var(--ink); }

/* the basket, sliding over from the right */
.slideover { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(26rem, 100vw); padding: 24px; border: 0; border-left: 1px solid var(--rule); background: #fff; color: var(--ink); box-shadow: -12px 0 40px rgba(23, 20, 15, 0.18); font-family: var(--sans); }
.slideover::backdrop { background: rgba(23, 20, 15, 0.35); }
.slideover[open] { animation: slidein 0.2s ease-out; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.so-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.so-head h2 { margin: 0; font-size: 1.5rem; }
.bl { list-style: none; padding: 0; margin: 0 0 12px; }
.bl li { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.bl .lsub { grid-column: 1 / -1; display: flex; justify-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty button { background: none; border: 0; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.qty button:hover { background: var(--paper-2); }
.qty output { min-width: 1.8em; text-align: center; }
.tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin: 16px 0 4px; }
.msg { margin-top: 12px; padding: 12px 14px; background: var(--paper-2); }
.msg:empty { display: none; }

/* ================================================================ CLASSES, HELP, BUILDS */
.classes-page .tag { margin-top: 8px; }
.search input { width: 100%; font: inherit; padding: 11px 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); }
.trouble { list-style: none; padding: 0; }
.trouble li { padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.trouble .pr { font-weight: 800; margin-bottom: 4px; }
.trouble .lab { font-size: 0.82rem; font-weight: 800; color: var(--ink-2); margin-right: 6px; }
mark { background: #FFE0C7; color: inherit; }
.builds-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.share { background: var(--cream); padding: 24px; }
.share h2, .gallery h2 { font-size: 1.4rem; }
.share form { display: flex; flex-direction: column; gap: 6px; }
.share label { font-weight: 600; font-size: 0.92rem; margin-top: 8px; }
.share input[type=text], .share input:not([type]), .share input[type=url], .share textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.share .btn { align-self: flex-start; margin-top: 12px; }
.kind { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; align-items: center; }
.kind legend { font-weight: 600; font-size: 0.92rem; float: left; margin-right: 6px; }
.kind label { margin: 0; display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }
.posts { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.post, .post-empty { padding: 16px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.post h3 { margin: 4px 0 6px; }
.post-top { margin: 0; display: flex; gap: 6px; }
.ptag { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange-ink); }
.ptag.mine { color: var(--ink-2); }
.post-by { font-size: 0.85rem; color: var(--ink-2); margin: 0; }


/* the lesson strip: each number in its lesson's colour when it is the one open */
.cb-strip a[aria-current] { background: var(--c, var(--ink)); color: var(--on, #fff); box-shadow: inset 0 0 0 2px var(--ink); }
.cb-strip a:hover { background: var(--t, var(--paper-2)); }
.chapbar { background: rgba(255, 248, 236, 0.97); border-bottom: 2px solid var(--ink); }

/* a row of renders with names (the lesson foot, the build guide) */
.prow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px 12px; }
.prow li { margin: 0; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.prow a { display: block; text-decoration: none; color: inherit; }
.prow a:hover span:last-child { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); }
.prow-pic { display: block; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 6px; margin-bottom: 6px; }
.prow-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: multiply; }

/* ================================================================ FILES */
.dlstate { margin-top: 16px; }
.files-page .bns { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 46rem; gap: 14px; margin-top: 22px; }
.files-page .bns div { padding: 12px 14px 14px; box-shadow: 3px 3px 0 var(--ink); border-radius: 12px; }
.files-page .bns dt { font-size: 1.7rem; }
.files-page .bns dd { margin-top: 4px; }
.files { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: var(--line); }
.file { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.file-pic { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 4px; }
.file-pic img { mix-blend-mode: multiply; }
.file h3 { margin: 0 0 4px; font-size: 1.05rem; }
.fmeta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 0.85rem; color: var(--ink-2); margin: 0; }
.srcicon { display: flex; align-items: center; justify-content: center; height: 4.8rem; background: #fff; border: 2px solid var(--ink); border-radius: 10px; font: 800 1.3rem var(--sans); color: var(--orange-ink); }
.makers { margin: 64px 0 56px; padding: 32px; background: var(--sun-soft); border: var(--line); border-radius: 20px; box-shadow: var(--sh); scroll-margin-top: 24px; }
.makers h2 { margin-bottom: 8px; }
.makers .lead { margin-bottom: 22px; }
.files-page .two-up h2 { font-size: 1.4rem; }
.files-page .two-up ul { padding-left: 1.1em; color: var(--ink-2); }
.files-h { margin: 40px 0 12px; font-size: 1.4rem; }
.files-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.files-more .srcicon { height: 3.6rem; }
.dlink { white-space: nowrap; }
/* guides: the PDFs and the whole film (Files and Build pages) */
.guides { margin: 48px 0 32px; padding: 26px 28px 20px; background: #fff; border: var(--line); border-radius: 18px; box-shadow: var(--sh); }
.guides h2 { margin: 0 0 4px; }
.guides .lead { margin: 0 0 14px; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.guide-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.gu-ic { display: flex; align-items: center; justify-content: center; height: 3rem; border: 2px solid var(--ink); border-radius: 9px; background: var(--sun-soft); font: 800 0.78rem/1 var(--sans); }
.gu-t { display: flex; flex-direction: column; gap: 2px; }
.gu-t span { font-size: 0.85rem; color: var(--ink-2); }
.gu-a { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.guides .dlstate:empty { display: none; }
.builds-soon { max-width: 40rem; padding: 24px 26px; background: var(--sun-soft); border: var(--line); border-radius: 18px; box-shadow: var(--sh); font-size: 1.1rem; }
.builds-soon p { margin: 0; }
.tests { margin-top: 32px; border-top: 1px solid var(--rule); padding-top: 14px; }

/* ================================================================ STORE: clean price cards */
.store .pagehead { padding-bottom: 44px; }
.pcards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.pcard { margin: 0; border: var(--line); border-radius: 18px; background: #fff; padding: 26px 24px 24px; display: flex; flex-direction: column; position: relative; scroll-margin-top: 24px; box-shadow: 4px 4px 0 var(--ink); }
.pcard.star { background: var(--sun-soft); box-shadow: 8px 8px 0 var(--ink); }
.pc-flag { position: absolute; top: -18px; right: 18px; margin: 0; }
.pc-flag .stk { transform: rotate(3deg); }
.pcard h2 { font-size: 1.5rem; margin: 0 0 2px; }
.pc-sub { color: var(--ink-2); margin: 0 0 14px; font-size: 0.95rem; }
.pc-price { font: 900 3rem/1 var(--display); letter-spacing: -0.03em; margin: 0 0 18px; }
.pc-price .per { font: 600 0.95rem var(--sans); letter-spacing: 0; color: var(--ink-2); }
.pc-list { list-style: none; padding: 0; margin: 0 0 22px; border-top: 2px solid var(--ink); }
.pc-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); margin: 0; font-size: 0.95rem; line-height: 1.35; }
.pc-list.plain li { display: list-item; list-style: none; padding-left: 24px; position: relative; }
.pc-list.plain li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 11px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.th { flex: none; width: 52px; height: 39px; display: flex; align-items: center; justify-content: center; }
.th img, .th svg { width: 100%; height: 100%; object-fit: contain; }
.pc-act { margin-top: auto; }
.pcard.solo { margin: 44px 0 0; max-width: 30rem; }
.extras { margin: 72px 0 0; scroll-margin-top: 24px; }
.xlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: var(--line); }
.xlist li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.x-t strong { display: block; font-weight: 800; }
.x-t span { color: var(--ink-2); font-size: 0.9rem; }
.x-p { font-weight: 800; font-size: 1.1rem; }
.faq { margin-top: 64px; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--rule); margin: 0; padding: 4px 0; }
.faq summary { color: var(--ink); font-size: 1.08rem; padding: 10px 0; }
.faq details p { color: var(--ink-2); }
.route-store .final { margin-top: 72px; }

/* ================================================================ TEACHERS */
.t3 { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.t3 li { margin: 0; border-top: var(--line); padding-top: 14px; }
.t3 h2 { font-size: 1.3rem; margin-bottom: 6px; }
.t3 p { color: var(--ink-2); margin: 0; }
.t-h { font-size: 1.6rem; }
.tlist { list-style: none; padding: 0; margin: 0; border-top: var(--line); }
.tlist li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.tlist .tl-n { margin: 0; }
.tlist-t strong { display: block; font-weight: 800; }
.tlist-t span { color: var(--ink-2); font-size: 0.92rem; }
.tlist-a { display: flex; gap: 18px; font-weight: 700; white-space: nowrap; }
.tlist-a a { color: var(--ink); }
.t-mk { margin: 28px 0 0; color: var(--ink-2); }
.t-mk a { color: var(--ink); font-weight: 600; }

/* ================================================================ HELP, BUILDS */
.search input { width: 100%; font: inherit; padding: 11px 16px; border: var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.trouble { list-style: none; padding: 0; }
.trouble li { padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.trouble .pr { font-weight: 800; margin-bottom: 4px; }
.trouble .lab { font-size: 0.82rem; font-weight: 800; color: var(--ink-2); margin-right: 6px; }
mark { background: #FFE0C7; color: inherit; }
.builds-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.share { background: #fff; border: var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 24px; }
.share h2, .gallery h2 { font-size: 1.4rem; }
.share form { display: flex; flex-direction: column; gap: 6px; }
.share label { font-weight: 600; font-size: 0.92rem; margin-top: 8px; }
.share input[type=text], .share input:not([type]), .share input[type=url], .share textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.share .btn { align-self: flex-start; margin-top: 12px; }
.kind { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; align-items: center; }
.kind legend { font-weight: 600; font-size: 0.92rem; float: left; margin-right: 6px; }
.kind label { margin: 0; display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }
.posts { list-style: none; padding: 0; margin: 0; border-top: var(--line); }
.post, .post-empty { padding: 16px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.post h3 { margin: 4px 0 6px; }
.post-top { margin: 0; display: flex; gap: 6px; }
.ptag { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange-ink); }
.ptag.mine { color: var(--ink-2); }
.post-by { font-size: 0.85rem; color: var(--ink-2); margin: 0; }

/* ---- footer */
.foot { background: var(--ink); color: #D9D4CC; padding: 44px 0 52px; font-size: 0.9rem; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 20px 64px; }
.foot-brand { flex: 1 1 22rem; }
.foot-big { font: 900 1.6rem/1 var(--display); color: #fff; margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 8px; }
.foot a { color: #fff; }
.foot p { margin: 0 0 6px; }
.foot :focus-visible { outline-color: #fff; box-shadow: none; }

/* ================================================================ narrower */
@media (max-width: 1080px) {
  .pcards { grid-template-columns: 1fr 1fr; }
  .bns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pts.mini { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .more-inline { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-in, .problem-in, .of-in, .two-up, .builds-grid, .final-in { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .hero-in { gap: 40px; }
  .steps3 { grid-template-columns: 1fr; gap: 34px; }
  .steps3 li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 0 18px; align-items: center; }
  .steps3 img { grid-row: 1 / 3; margin: 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .files, .xlist { grid-template-columns: 1fr; }
  .pcards { grid-template-columns: 1fr; }
  .t3 { grid-template-columns: 1fr; gap: 18px; }
  .path-step { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .path-pic { grid-column: 2; }
  .step { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  main { padding: 32px 20px 72px; }
  main.is-wide { padding: 0 0 72px; }
  .home .final, .route-store .final { margin-bottom: -72px; }
  .wrap { padding: 0 20px; }
  .is-wide > .page { padding: 28px 20px 0; }
  .top-in { padding: 10px 14px; gap: 8px; }
  .brand { font-size: 1.02rem; gap: 7px; }
  .mark { width: 22px; height: 22px; }
  .nav { gap: 14px; font-size: 0.9rem; }
  .top-act { gap: 6px; }
  .top-cta { padding: 9px 11px; font-size: 0.88rem; }
  .basket-btn, .menu-btn { height: 38px; min-width: 38px; padding: 0 8px; }
  .pagehead { padding: 36px 0 26px; }
  .stk { font-size: 0.85rem; padding: 7px 10px 8px; }
  .hero .ctas .btn { width: 100%; }
  .frame { box-shadow: 5px 5px 0 var(--ink); border-radius: 18px; }
  .hero-pic .frame { padding: 12px; }
  .problem { padding: 64px 0; }
  .vs { gap: 10px; }
  .vs-card { padding: 10px 10px 12px; box-shadow: 4px 4px 0 var(--sun); }
  .vs-q { font-size: 2.4rem; }
  .vs-card span:last-child { font-size: 0.82rem; }
  .guide, .learn, .plan, .openfiles { padding: 56px 0 64px; }
  .partsec { padding: 0 0 64px; }
  .bns { gap: 14px; }
  .bns div { padding: 14px; box-shadow: 4px 4px 0 var(--ink); }
  .bns dd { font-size: 0.86rem; }
  .steps3 li { grid-template-columns: 1fr; padding: 24px 18px 18px; }
  .steps3 img { grid-row: auto; margin: 0 0 12px; }
  .tiles, .tiles.full { grid-template-columns: 1fr; gap: 14px; }
  .tiles.full .tl-pic { max-width: 13rem; align-self: center; }
  .tiles:not(.full) .tile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: start; padding: 14px; }
  .tiles:not(.full) .tl-n { grid-row: 1 / 3; margin: 0; }
  .tiles:not(.full) .has-fig .tl-n { grid-row: 2 / 4; }
  .tiles .tl-fig { grid-column: 1 / -1; }
  .tiles.full .tl-fig { max-width: none; }
  .mrow .mr-fig { grid-column: 1 / -1; }
  .guide-list, .files-more { grid-template-columns: 1fr; }
  .guides { padding: 20px 16px 14px; }
  .guide-list li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .gu-a { grid-column: 2; justify-content: flex-start; }
  .mrow { grid-template-columns: 1fr; gap: 10px; }
  .mrow a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; }
  .mrow .mr-q { grid-column: 2; }
  .pts.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pts.mini .pt-name { font-size: 0.8rem; padding: 7px 8px; flex-wrap: wrap; gap: 2px 5px; }
  .pts.full { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pts.full .pt-name { font-size: 0.95rem; padding: 10px 10px 4px; }
  .pts.full .pt p { margin: 0 10px 6px; font-size: 0.85rem; }
  .pt-links { flex-direction: column; gap: 4px; }
  .of-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .final { padding: 44px 0; }
  .files-page .bns { grid-template-columns: 1fr 1fr; }
  .file { grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 12px; }
  .makers { padding: 22px 18px; margin: 48px 0 40px; }
  .xlist li { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .xlist li .btn { grid-column: 2 / -1; justify-self: start; }
  .pc-price { font-size: 2.6rem; }
  .tlist li { grid-template-columns: 46px minmax(0, 1fr); gap: 6px 14px; }
  .tlist .tl-n { min-width: 42px; height: 42px; font-size: 1.25rem; grid-row: 1 / 3; }
  .tlist-a { grid-column: 2; }
  .chapbar-in { padding: 6px 12px; }
  .cb-row { gap: 8px; }
  .cb-strip a { min-width: 30px; height: 30px; padding: 0 6px; }
  .chap { columns: 1; }
  dl.facts { grid-template-columns: 7rem 1fr; }
  .pager a strong { font-size: 1rem; }
}
@media (max-width: 420px) {
  .nav li:first-child { display: none; }
  .narrow-only { display: block; }
  .top-in.has-basket .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .tile:hover, .btn:active { transform: none; }
}

/* ================================================================ the best of each version (v7): colour back on Store, Builds, Start, Parts.
   Tones: t-sun, t-tang, t-sky, t-mint, t-pink are the soft fills; ink outline and a hard shadow on every coloured card. */
:root { --pink-soft: #FFE0EC; }
.t-sun { background: var(--sun-soft); } .t-tang { background: var(--tang-soft); } .t-sky { background: var(--sky-soft); } .t-mint { background: var(--mint-soft); } .t-pink { background: var(--pink-soft); }
.pagehead h1 .hl { padding: 0 2px; }

/* ---- two cards side by side at the foot of a page (Start, Parts) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 56px 0 0; }
.duo-card { border: var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 22px 24px 24px; }
.duo-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.duo-card p { color: var(--ink); }
.duo-card .path-links { margin: 0; }

/* ---- Start: three big coloured steps, a round number on the corner, a real tick box */
.meter { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-weight: 800; font-size: 0.92rem; }
.meter-bar { width: 9rem; height: 14px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--mint); border-right: 2px solid var(--ink); transition: width .3s; }
.meter-bar i[style="width:0%"] { border-right: 0; }
.path { display: grid; gap: 34px; }
.path-step { position: relative; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; padding: 34px 32px 30px 40px; border: var(--line); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); }
.path-step .big-n { position: absolute; top: -18px; left: -14px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 900 1.6rem/1 var(--display); border: 3px solid var(--sun); box-shadow: 0 0 0 2.5px var(--ink); }
.path-step.done .big-n { background: var(--mint); color: var(--ink); }
.path-step h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.path-time { display: inline-block; font: 800 0.8rem/1 var(--sans); background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 10px; margin: 0 0 12px; }
.path-links { margin: 0 0 16px; }
.path-pic { background: #fff; border: var(--line); border-radius: 16px; padding: 10px; }
.path-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.tick { padding: 6px 12px 6px 8px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.tick input { width: 22px; height: 22px; accent-color: #1d7a3c; }
.path-step.done .tick { background: var(--mint); }

/* ---- Parts: collectable cards, a coloured band with the number */
.pt-band { display: flex; align-items: center; height: 30px; padding: 0 10px; background: var(--b); color: var(--bo); border-bottom: 2px solid var(--ink); }
.pt-band span { font: 800 0.72rem/1 var(--sans); letter-spacing: 0.04em; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 7px; padding: 3px 6px; font-variant-numeric: tabular-nums; }
.pts.mini .pt-band { height: 12px; padding: 0; }
.pts.mini .pt-band span { display: none; }
.pts.full { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }
.pts.full .pt { box-shadow: 5px 5px 0 var(--ink); border-width: 2.5px; border-radius: 16px; display: flex; flex-direction: column; }
.pts.full .pt .pt-pic img { aspect-ratio: 4 / 3; }
.pt-stats { display: flex; gap: 6px; margin: 4px 14px 10px; padding: 0; }
.pt-stats div { flex: 1 1 0; min-width: 0; border: 2px solid var(--ink); border-radius: 8px; padding: 4px 7px 5px; background: var(--cream); }
.pt-stats dt { font: 800 0.62rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.pt-stats dd { margin: 0; font-weight: 800; font-size: 0.86rem; line-height: 1.25; overflow-wrap: anywhere; }
.pts.full .pt .pt-links { margin: auto 14px 0; padding-top: 4px; flex-direction: column; align-items: flex-start; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border: 2px solid var(--ink); border-radius: 99px; background: var(--t); text-decoration: none; font-weight: 700; font-size: 0.84rem; line-height: 1.2; }
.pill b { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: var(--on); font-size: 0.78rem; }
.pill:hover { text-decoration: underline; text-decoration-color: var(--ink); }

/* ---- Builds: "Show us yours." */
.builds-soon { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; max-width: none; padding: 30px 32px; border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); font-size: 1.05rem; }
.builds-soon h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 10px; }
.builds-soon p { margin: 0 0 16px; }
.builds-soon .path-links { margin: 0; }
.soon-pic { background: #fff; border: var(--line); border-radius: 16px; padding: 12px; transform: rotate(1.5deg); }
.share { background: var(--sun-soft); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); }
.posts { border-top: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 18px; }
.post { border: var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); padding: 16px 18px; background: var(--sky-soft); }
.post:nth-child(3n+2) { background: var(--mint-soft); } .post:nth-child(3n) { background: var(--tang-soft); }
.post-empty { grid-column: 1 / -1; border: 2.5px dashed var(--ink); border-radius: 18px; padding: 32px 24px; text-align: center; background: #fff; }
.post-empty p { margin: 0; }
.ideas { margin: 64px 0 0; }
.ideas > h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.idea-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.idea { margin: 0; border: var(--line); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 14px 16px 18px; display: flex; flex-direction: column; }
.idea-pic { display: block; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 6px; margin-bottom: 12px; }
.idea-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.idea h3 { font-size: 1.12rem; }
.idea p { font-size: 0.93rem; margin: 0 0 10px; }
.idea a { margin-top: auto; font-weight: 700; font-size: 0.92rem; }

/* ---- Store: the electric version, kept clear */
.kstar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--sun-soft); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 10px 10px 0 var(--ink); padding: 36px; scroll-margin-top: 24px; }
.ks-pic { position: relative; }
.ks-pic .frame { padding: 18px 20px; transform: rotate(-1deg); }
.ks-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: multiply; }
.ks-stk { position: absolute; right: 18px; bottom: -16px; }
.ks-stk .stk { transform: rotate(3deg); }
.ks-t .tag { margin-bottom: 10px; }
.kstar h2 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); margin-bottom: 8px; }
.kstar .pc-sub { color: var(--ink); font-size: 1.08rem; margin-bottom: 18px; }
.ks-in { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ks-in li { margin: 0; display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; font-size: 0.86rem; line-height: 1.3; color: var(--ink-2); }
.ks-in strong { display: block; color: var(--ink); font-size: 0.95rem; }
.ks-in .th { width: 46px; height: 35px; }
.kc-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0; }
.kc-buy .pc-price { margin: 0; }
.kits2 { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.kcard { margin: 0; display: flex; flex-direction: column; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); padding: 18px 22px 24px; scroll-margin-top: 24px; }
.kc-pic { background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px; margin-bottom: 18px; }
.kc-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; mix-blend-mode: multiply; }
.kcard h2 { font-size: 1.8rem; margin-bottom: 4px; }
.kcard .pc-sub { color: var(--ink); }
.kc-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.kc-list li { margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 5px 10px; font-size: 0.88rem; font-weight: 600; }
.kcard .kc-buy { margin-top: auto; }
.kcard .pc-price { font-size: 2.6rem; }
.extras { margin: 80px 0 0; }
.extras .lead { margin-bottom: 22px; }
.ex2 { margin: 56px 0 22px; }
.xgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.xcard { margin: 0; display: flex; flex-direction: column; border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 14px 16px 16px; }
.xc-pic { display: flex; align-items: center; justify-content: center; height: 108px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; margin-bottom: 12px; padding: 8px; }
.xc-pic img, .xc-pic svg { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.xc-pic svg { height: 64px; }
.xcard h3 { font-size: 1.08rem; margin-bottom: 4px; }
.xcard > p { font-size: 0.9rem; margin: 0 0 10px; }
.xc-links { display: flex; flex-direction: column; gap: 3px; font-size: 0.84rem; font-weight: 600; }
.xc-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: auto 0 0 !important; padding-top: 10px; border-top: 2px solid var(--ink); }
.xc-buy .tnum { font: 900 1.5rem/1 var(--display); }
.route-store .final { margin-top: 80px; }

@media (max-width: 1080px) {
  .xgrid, .idea-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .kstar, .builds-soon { grid-template-columns: 1fr; }
  .path-step { grid-template-columns: 1fr; padding: 34px 22px 24px; }
  .path-pic { grid-column: auto; max-width: 26rem; }
  .kits2, .duo { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kstar { padding: 20px 16px 24px; border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); gap: 28px; }
  .ks-in { grid-template-columns: 1fr; }
  .kcard { padding: 14px 16px 20px; box-shadow: 6px 6px 0 var(--ink); }
  .xgrid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .xcard { padding: 10px 11px 12px; box-shadow: 4px 4px 0 var(--ink); }
  .xc-pic { height: 70px; }
  .xc-buy { flex-wrap: wrap; }
  .idea-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .idea { padding: 10px 11px 14px; box-shadow: 4px 4px 0 var(--ink); }
  .path-step { box-shadow: 6px 6px 0 var(--ink); border-radius: 18px; }
  .path-step .big-n { left: -6px; width: 44px; height: 44px; font-size: 1.35rem; }
  .builds-soon { padding: 22px 18px; box-shadow: 6px 6px 0 var(--ink); }
  .pts.full { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pt-stats { margin: 4px 10px 10px; flex-wrap: wrap; gap: 4px; }
  .pt-stats div { flex: 1 1 40%; padding: 3px 5px; }
  .pts.full .pt .pt-links { margin: auto 10px 0; }
  .pill { font-size: 0.78rem; }
  .duo { gap: 22px; margin-top: 40px; }
}
@media (max-width: 340px) {
  .xgrid, .idea-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .xcard h3 { font-size: 0.98rem; }
  .xcard > p { font-size: 0.84rem; }
  .xc-links { font-size: 0.78rem; }
  .xc-buy .tnum { font-size: 1.25rem; }
  .idea h3 { font-size: 1rem; }
  .idea p { font-size: 0.85rem; }
}
.pts.mini .pt { box-shadow: 3px 3px 0 var(--ink); }

/* ================================================================ v8: the catalogue.  Every home section is its own plate: a colour field, a layout, a scale.
   Kept from v8: the plates for Store, Start, Open source and Teachers.  (v9 removed the studs, the box badges and the home page's kit grid.) */
:root { --green-plate: #8EDB9E; --forest: #10372B; --forest-2: #1B4A3B; --navy: #1D3F8F; --grey-plate: #E7E3DC; }

/* the nav's Start here: a yellow sticker-button */
.nav a.nav-start { color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 9px; padding: 6px 10px; box-shadow: 2px 2px 0 var(--ink); }
.nav a.nav-start[aria-current="page"] { background: var(--tang); border-bottom: 2px solid var(--ink); }
.nav a.nav-start:hover { background: #FFE07A; }

/* the camera apart */

/* lessons on white, headed by a stripe of the nine colours */
.learn { background: #fff; padding: 88px 0 92px; }
.learn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 40px; margin-bottom: 34px; }
.learn-head .sec-head { margin: 0; }
.learn-head .ctas { margin: 0 0 6px; }
.rainbow { display: flex; gap: 6px; margin: 26px 0 0; }
.rainbow i { flex: 1 1 0; height: 14px; border: 2px solid var(--ink); border-radius: 7px; }

/* a part count on the Start page's inventory */
.inv-n { position: absolute; right: 6px; bottom: 6px; font: 900 0.8rem/1 var(--display); background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 3px 5px; }

/* open source: deep green, a code card */
.opensrc { background: var(--forest); color: #fff; padding: 88px 0; border-top: var(--line); }
.opensrc .lead, .os-plate .lead { color: #E3EFE8; }
.opensrc a:not(.btn), .os-plate a:not(.btn) { color: #fff; text-decoration-color: var(--mint); }
.opensrc .btn, .os-plate .btn, .classroom .btn, .teach-plate .btn { box-shadow: 3px 3px 0 var(--sun); }
.opensrc .btn:hover, .os-plate .btn:hover, .classroom .btn:hover, .teach-plate .btn:hover { box-shadow: 5px 5px 0 var(--sun); }
.code-card { background: #0A241C; color: #E3EFE8; border: 3px solid #fff; border-radius: 18px; box-shadow: 8px 8px 0 var(--mint); overflow: hidden; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.cc-bar { margin: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--forest-2); border-bottom: 2px solid #fff; font-size: 0.9rem; font-weight: 700; }
.cc-bar span { display: inline-flex; gap: 6px; }
.cc-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--tang); }
.cc-bar i + i { background: var(--sun); } .cc-bar i + i + i { background: var(--mint); }
.cc-list { list-style: none; margin: 0; padding: 8px 16px 12px; }
.cc-list li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.25); margin: 0; font-size: 0.9rem; }
.cc-list li:last-child { border-bottom: 0; }
.cc-list strong { display: block; color: #fff; font-family: var(--sans); font-size: 1rem; }
.cc-ic { flex: none; width: 46px; height: 38px; display: grid; place-items: center; border: 2px solid var(--mint); border-radius: 8px; color: var(--mint); font-weight: 800; font-size: 0.85rem; }
.cc-dl { margin: 0; padding: 8px 18px 14px; }
.cc-dl div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.25); }
.cc-dl div:last-child { border-bottom: 0; }
.cc-dl dt { color: #9BF0B1; font-size: 0.85rem; }
.cc-dl dd { margin: 0; color: #fff; font-size: 0.92rem; overflow-wrap: anywhere; }

/* classroom: blue, the mission side */
.classroom { background: var(--navy); color: #fff; padding: 88px 0; border-top: var(--line); }
.classroom h2 { max-width: 20ch; }
.classroom .lead, .teach-plate .lead { color: #E4ECFB; }
.cl-in, .tp-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cl-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cl-grid li { margin: 0; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--sun); padding: 18px 18px 16px; }
.cl-grid b { display: block; font: 900 2.7rem/1 var(--display); letter-spacing: -0.03em; }
.cl-grid span { display: block; margin-top: 6px; font-weight: 600; font-size: 0.92rem; line-height: 1.35; }

/* builds: a pin board */
.board { background: var(--pink-soft); border-top: var(--line); padding: 84px 0 96px; }
.bd-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.pins { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pin { position: relative; margin: 0; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 2.5px solid var(--ink); border-radius: 6px; box-shadow: 5px 5px 0 var(--ink); padding: 26px 16px 20px; min-height: 12rem; }
.pin::before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--tang); border: 2.5px solid var(--ink); }
.pin-a { transform: rotate(-2deg); } .pin-b { transform: rotate(1.5deg); margin-top: 22px; } .pin-c { transform: rotate(-1deg); background: var(--sun-soft); }
.pin-c::before { background: var(--sky); }
.pin strong { font: 900 1.25rem/1.1 var(--display); }
.pin span:last-child { font-size: 0.92rem; color: var(--ink-2); }

/* last call */
.final-win { font-weight: 700; font-size: 1.08rem; max-width: 24rem; margin: 10px 0 0; }
.final-act .btn { justify-content: center; }

/* lessons page, store page, start page, teachers, open source: each opens on its own plate */
.les-plate { background: var(--sun-soft); border-bottom: var(--line); }
.les-plate .pagehead { padding-bottom: 40px; max-width: 52rem; }
.lessons-page > .wrap { padding-top: 44px; }
.store-plate { background-color: var(--sun); background-image: radial-gradient(rgba(23, 20, 15, 0.12) 1.1px, transparent 1.6px); background-size: 22px 22px; border-bottom: var(--line); padding-bottom: 64px; }
.store-plate .pagehead { padding-bottom: 46px; }
.store-plate .lead { font-weight: 600; margin-bottom: 18px; }
.store-plate .stks { margin-top: 0; }
.kstar { position: relative; background: #fff; }
.kcard { position: relative; }
.kits2 { margin-top: 56px; }
.kc-learn { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; font-size: 0.9rem; margin: 0 0 16px; }
.xcard { position: relative; }
.xgrid { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); row-gap: 34px; padding-top: 12px; }
.xc-in { font: 800 0.86rem/1.2 var(--sans); background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 9px; }
.store > .wrap { padding-top: 8px; }

.start-plate { background-color: var(--tang); background-image: radial-gradient(rgba(23, 20, 15, 0.13) 1.1px, transparent 1.6px); background-size: 22px 22px; border-bottom: var(--line); }
.start-plate .pagehead { padding: 52px 0 44px; }
.start-plate .meter-bar i { background: var(--sun); }
.hl-w { background: linear-gradient(transparent 64%, #fff 64%, #fff 90%, transparent 90%); }
.inbox { margin: 48px 0 56px; }
.inbox h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 6px; }
.inbox > p { color: var(--ink-2); }
.inv-grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); gap: 14px; }
.inv-grid li { position: relative; margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); padding: 8px 8px 10px; }
.inv-pic { display: block; position: relative; }
.inv-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: multiply; }
.inv-grid .inv-n { top: 6px; right: 6px; bottom: auto; }
.inv-name { display: block; font-weight: 700; font-size: 0.86rem; line-height: 1.25; margin-top: 4px; }

.teach-plate, .os-plate { color: #fff; border-bottom: var(--line); padding-bottom: 56px; }
.teach-plate { background: var(--navy); }
.os-plate { background: var(--forest); }
.teach-plate .pagehead, .os-plate .pagehead { max-width: none; padding-bottom: 0; }
.teach-plate h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); }
.t-h { margin: 56px 0 26px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.t4 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 12px; }
.t4 li { position: relative; margin: 0; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 22px 18px 18px; }
.t4 h3 { font-size: 1.2rem; }
.t4 p { margin: 0; font-size: 0.95rem; }
.tlist-a { gap: 16px; }
.sets { margin-top: 64px; }
.set-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 22px; }
.set { margin: 0; display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); padding: 20px 20px 18px; }
.set-star { background: var(--sky-soft); }
.set h3 { font-size: 1.12rem; }
.set-for { color: var(--ink-2); font-size: 0.9rem; margin: 0 0 8px; }
.set-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 12px; }
.set-price .tnum { font: 900 2rem/1 var(--display); letter-spacing: -0.02em; }
.set-price .per { font-weight: 700; font-size: 0.88rem; color: var(--ink-2); }
.set .pc-list { width: 100%; margin-bottom: 14px; font-size: 0.9rem; }
.set .btn { margin-top: auto; }

/* numbered loops (open source, builds) */
.loop { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: none; }
.loop li { position: relative; margin: 0; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); padding: 34px 18px 18px; }
.loop .s-n { position: absolute; top: -20px; left: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); border: 2.5px solid var(--ink); display: grid; place-items: center; font: 900 1.3rem/1 var(--display); }
.loop li:nth-child(2) .s-n { background: var(--tang); } .loop li:nth-child(3) .s-n { background: var(--sky); } .loop li:nth-child(4) .s-n { background: var(--mint); }
.loop h3 { font-size: 1.12rem; }
.loop p { margin: 0; font-size: 0.93rem; }
.loop-b { margin: 18px 0 0; }
.ospage .makers { margin-top: 64px; }
.featured { margin: 56px 0 48px; }
.featured h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.fr-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fr-slot { margin: 0; display: flex; flex-direction: column; gap: 6px; border: 2.5px dashed var(--ink); border-radius: 16px; padding: 20px; background: #fff; }
.fr-slot:first-child { background: var(--sun-soft); }
.fr-slot strong { font: 900 1.2rem/1.15 var(--display); }
.fr-slot span { font-size: 0.93rem; color: var(--ink-2); }
.fr-slot a { margin-top: auto; padding-top: 6px; font-weight: 700; }
.builds .pagehead { padding-bottom: 40px; }

/* the lesson foot: back to the kit */
.kit-loop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 18px 0 0; font-weight: 700; }

/* footer */
.foot-in { gap: 28px 56px; }
.foot-col { flex: 0 0 auto; min-width: 9rem; }
.foot-h { font: 800 0.76rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun) !important; margin: 4px 0 14px !important; }
.foot-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px !important; }
.foot-badges { gap: 4px 0; }
.foot-badges span { font-weight: 700; font-size: 0.9rem; }
.foot-badges span + span::before { content: "\00B7"; margin: 0 8px; }

@media (max-width: 1180px) {
  .wide-only { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { gap: 18px; }
}
@media (max-width: 1080px) {
  .tiers { grid-template-columns: 1fr 1fr; }
  .tier-star { grid-column: 1 / -1; }
  .pins { grid-template-columns: 1fr 1fr 1fr; }
  .bd-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .cl-in, .tp-in, .bd-in { grid-template-columns: 1fr; gap: 36px; }
  .plan .steps3 li + li::before { display: none; }
  .plan .steps3 li { display: block; }
  .plan .steps3 img { max-width: 24rem; }
  .fr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-start { text-align: center; }
  .guide, .eco, .learn, .partsec, .opensrc, .classroom, .board { padding: 60px 0 64px; }
  .plan { padding: 52px 0 56px; }
  .plan-page { padding: 34px 18px 26px; box-shadow: 6px 6px 0 var(--ink); border-radius: 18px; }
  .plan .steps3 { gap: 36px; }
  .s-need { left: 70px; top: 14px; }
  .on-plate { padding: 18px 16px 14px; box-shadow: 4px 4px 0 var(--ink); }
  .tiers { grid-template-columns: 1fr; gap: 30px; }
  .tier { box-shadow: 5px 5px 0 var(--ink); padding: 22px 18px 20px; }
  .tier-price { font-size: 2.5rem; }
  .eco-h3 { font-size: 1.3rem; margin-top: 48px; }
  .addons, .t4 { grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .addon { padding: 14px 11px 12px; box-shadow: 4px 4px 0 var(--ink); }
  .addon p { font-size: 0.85rem; }
  .inv { padding: 22px 14px 20px; box-shadow: 5px 5px 0 var(--ink); }
  .cl-grid { gap: 12px; }
  .cl-grid li { padding: 14px 12px; box-shadow: 4px 4px 0 var(--sun); }
  .cl-grid b { font-size: 2.1rem; }
  .pins { grid-template-columns: 1fr; gap: 26px; }
  .pin { min-height: 0; }
  .pin-b { margin-top: 0; }
  .loop { grid-template-columns: 1fr; gap: 30px; }
  .cc-dl div { grid-template-columns: 1fr; gap: 2px; }
  .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .t4 li { padding: 20px 12px 14px; box-shadow: 4px 4px 0 var(--ink); }
  .t4 h3 { font-size: 1.02rem; }
  .t4 p { font-size: 0.86rem; }
  .final-act .btn { width: 100%; }
}
@media (max-width: 340px) {
  .addons, .t4 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .learn .tiles:not(.full) .tl-fig { display: none; }
  .learn .tiles:not(.full) .has-fig .tl-n { grid-row: 1 / 3; }
  .ad-pic { padding: 3px; }
}
.final-stake { font-size: 0.95rem; margin: 6px 0 0; max-width: 24rem; }
@media (max-width: 860px) { .plan .steps3 { grid-template-columns: minmax(0, 1fr); } .plan .steps3 img { width: 100%; } }

/* ================================================================ v9: the refinement.  Calm like v5/v6, the colour and the big camera of v3/v4.
   Home: hero (3D camera) > problem > four numbers > 3 steps > nine lessons > the camera viewer > one kit card > three links > last call. */

/* hero: two facts as plain text with a dot (not buttons), the camera in 3D in the ink frame */
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; font: 800 0.95rem/1.2 var(--sans); color: var(--ink); }
.facts li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.facts li + li::before { background: var(--orange); }
.hero .ctas { margin-top: 30px; }
.h3d { position: relative; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; }
.h3d-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22px 26px; transition: opacity 0.4s ease; }
.h3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 0.4s ease; }
.h3d.h3d-ready .h3d-canvas { opacity: 1; }
.h3d.h3d-ready .h3d-still { opacity: 0; }

/* the four numbers: plain bold cards */
.guide { background: var(--cream); padding: 84px 0 76px; }
.bns { margin-top: 34px; }
.guide-open { margin: 26px 0 0; font-weight: 700; }

/* lessons: nine compact cards, three across */
.learn { padding: 76px 0 80px; }
.learn-head .lead { margin: 0; }
.lrow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lrow li { margin: 0; }
.lr { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 14px 16px; background: var(--t); color: var(--ink); border: var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.lr:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.lr:hover .lr-t { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 0.18em; }
.lr-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--c); color: var(--on); border: var(--line); font: 900 1.3rem/1 var(--display); }
.lr-tx { min-width: 0; }
.lr-t { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.lr-q { display: block; margin-top: 3px; color: var(--ink-2); font-size: 0.9rem; line-height: 1.35; }

/* the camera viewer: full width, most of the screen; a slider and stage buttons under it */
.x3 { background: var(--paper-3); border-top: var(--line); border-bottom: var(--line); padding: 40px 0 34px; }
.x3-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 32px; }
.x3-head h2 { margin: 0; }
.x3-head .kick { color: var(--orange-ink); }
.x3-how { margin: 0 0 4px; font-weight: 700; color: var(--ink-2); }
.x3-stage { position: relative; height: clamp(360px, 64vh, 820px); margin: 8px 0 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.x3-stage.x3-grab { cursor: grabbing; }
.x3-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.x3-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.x3.x3-ready .x3-still { visibility: hidden; }
.x3-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 40px; align-items: center; }
.x3-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.x3-go { font: 700 0.92rem/1 var(--sans); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 9px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.x3-go b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.75rem; }
.x3-go[aria-pressed="true"] { background: var(--ink); color: #fff; }
.x3-go[aria-pressed="true"] b { background: var(--sun); color: var(--ink); }
.x3-slide { display: flex; align-items: center; gap: 10px; }
.x3-turn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 50%; cursor: pointer; color: var(--ink); }
.x3-turn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.x3-range { flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; accent-color: var(--orange); cursor: pointer; }
.x3-caps { grid-column: 1 / -1; min-height: 3.2em; }
.x3-cap { margin: 0; font-size: 1.02rem; }
.x3-cap strong { font-weight: 800; margin-right: 4px; }
.x3.x3-static .x3-stage { cursor: default; }
.x3.x3-static .x3-slide, .x3.x3-static .x3-steps, .x3.x3-static .x3-how { display: none; }
.x3.x3-static .x3-cap[hidden] { display: block; }
.x3.x3-static .x3-cap { margin: 0 0 6px; }

/* one card for the kit */
.kitcta { padding: 84px 0 76px; }
.kc-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; background: var(--sun-soft); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); padding: 30px 40px 30px 30px; }
.kc-img { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 14px; }
.kc-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: normal; }
.kc-txt h2 { margin-bottom: 10px; }
.kc-txt .lead { margin: 0; }

/* open source, builds, teachers: one line each */
.more3 { padding: 0 0 84px; }
.m3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.m3 li { margin: 0; }
.m3 a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px 18px 24px; background: #fff; border: var(--line); border-left-width: 10px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.m3-g a { border-left-color: var(--mint); } .m3-p a { border-left-color: var(--tang); } .m3-b a { border-left-color: var(--sky); }
.m3 strong { font-size: 1.1rem; font-weight: 800; }
.m3 strong::after { content: " \2192"; }
.m3 span { color: var(--ink-2); font-size: 0.95rem; line-height: 1.4; }
.m3 a:hover strong { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.18em; }

/* last call: two columns */
.final-in { grid-template-columns: minmax(0, 1fr) auto; }
.final-act { flex-direction: row; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .lrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x3-bar { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .kc-card { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .m3 { grid-template-columns: 1fr; gap: 12px; }
  .final-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lrow { grid-template-columns: 1fr; gap: 10px; }
  .lr { padding: 12px 14px; }
  .learn-head .ctas { width: 100%; }
  .h3d-still { padding: 12px; }
  .x3 { padding: 32px 0 26px; }
  .x3-stage { height: clamp(300px, 56vh, 520px); }
  .x3-go { padding: 8px 11px; font-size: 0.86rem; }
  .kitcta { padding: 56px 0 52px; }
  .kc-card { box-shadow: 5px 5px 0 var(--ink); border-radius: 18px; padding: 16px; }
  .kc-txt .btn { width: 100%; }
  .more3 { padding-bottom: 56px; }
  .final-act { flex-direction: column; }
  .final-act .btn { width: 100%; }
}

/* ---------------------------------------------------------------- v10 */
/* home: facts, four steps with one picture style, compact lesson titles */
.guide h2, .plan h2 { margin: 0; }
.steps4 { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.steps4 li { position: relative; margin: 0; background: #fff; border: var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 16px 16px 20px; display: flex; flex-direction: column; }
.steps4 img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); margin: 0 0 14px; }
.steps4 img.r { mix-blend-mode: normal; }
.steps4 h3 { font-size: 1.15rem; margin: 0 0 4px; }
.steps4 h3 a { text-decoration: none; }
.steps4 h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.steps4 li:hover h3 a { text-decoration: underline; text-decoration-color: var(--orange); }
.steps4 p { color: var(--ink-2); margin: 0; font-size: 0.95rem; line-height: 1.4; }
.learn-head h2 { margin: 0; }
.lrow-t .lr { align-items: center; padding: 10px 14px; }
.lrow-t .lr-n { width: 38px; height: 38px; font-size: 1.15rem; }
@media (max-width: 1080px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps4 { grid-template-columns: minmax(0, 1fr); gap: 22px; } .lrow-t { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .lrow-t .lr { padding: 8px 10px; gap: 10px; } .lrow-t .lr-t { font-size: 0.95rem; } .lrow-t .lr-n { width: 32px; height: 32px; font-size: 1rem; } }

/* the Lessons page: a filter, both shelves as cards, teacher links in teacher mode, the final roll */
.lf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 26px; }
.lf { display: flex; flex-wrap: wrap; gap: 8px; }
.lf button { font: 700 0.95rem/1 var(--sans); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 9px 14px; cursor: pointer; }
.lf button span { font-weight: 600; color: var(--ink-2); margin-left: 3px; }
.lf button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lf button[aria-pressed="true"] span { color: #fff; }
.tswitch, .lp-switch { display: inline-flex; align-items: center; gap: 10px; font: 700 0.95rem/1 var(--sans); color: var(--ink); background: none; border: 0; padding: 6px 2px; cursor: pointer; }
.tswitch .sw, .lp-switch .lp-sw { position: relative; flex: none; width: 44px; height: 26px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); }
.tswitch .sw i, .lp-switch .lp-sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform 0.15s ease; }
.tswitch[aria-checked="true"] .sw, .lp-switch[aria-checked="true"] .lp-sw { background: var(--mint); }
.tswitch[aria-checked="true"] .sw i, .lp-switch[aria-checked="true"] .lp-sw i { transform: translateX(18px); }
.lg-h { font-size: 1.5rem; margin: 46px 0 18px; }
.lcards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lcards li { margin: 0; }
.lc { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--t); border: var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); padding: 16px 18px 18px; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.lc:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.lc-fig { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 11px; overflow: hidden; margin: 0 0 12px; }
.lc-fig svg { display: block; width: 100%; height: 100%; }
.lc-fig svg text { font-family: var(--sans, system-ui, sans-serif); }
.lc-top { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.lc-n { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 10px; background: var(--c); color: var(--on); border: 2px solid var(--ink); font: 900 1.15rem/1 var(--display); }
.lc-k { font: 800 0.75rem/1 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.lc-seen { margin-left: auto; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); }
.lc h3 { font-size: 1.3rem; line-height: 1.15; margin: 2px 0 4px; }
.lc h3 a { text-decoration: none; }
.lc h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.lc:hover h3 a { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 0.18em; }
.lc-q { margin: 0 0 10px; color: var(--ink); font-size: 0.98rem; line-height: 1.4; font-style: italic; }
.lc-do { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); }
.lc-do strong { color: var(--ink); }
.lc-time { margin: auto 0 0; padding-top: 8px; font-size: 0.84rem; font-weight: 700; color: var(--ink-2); }
.lc-teach { display: none; gap: 14px; margin: 8px 0 0; position: relative; z-index: 1; font-weight: 700; font-size: 0.9rem; }
.is-teacher .lc-teach { display: flex; }
.froll { background: var(--ink); color: #fff; margin-top: 70px; padding: 70px 0 80px; }
.froll h2 { color: #fff; margin: 0 0 8px; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); }
.froll .lead { color: #fff; }
.froll a { color: inherit; }
.fr-load { max-width: 46rem; margin: 18px 0 26px; color: #E9E3D8; }
.fr-load strong { color: var(--sun); }
.fr-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 26px; counter-reset: none; }
.fr-list li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid #4F4A43; }
.fr-n { flex: none; min-width: 3.4em; padding: 4px 6px; border-radius: 6px; background: var(--sun); color: var(--ink); font: 900 0.95rem/1.1 var(--display); text-align: center; }
.fr-t { flex: 1; min-width: 0; font-size: 0.95rem; line-height: 1.4; color: #E9E3D8; }
.fr-t strong { display: block; color: #fff; font-size: 1rem; }
.fr-l { flex: none; align-self: center; font: 700 0.78rem/1.2 var(--sans); padding: 4px 9px; border-radius: 99px; background: var(--t); color: var(--ink) !important; text-decoration: none; border: 2px solid #fff; white-space: nowrap; }
a.fr-l:hover { text-decoration: underline; }
.fr-all { background: #fff; }
.fr-grade { margin-top: 40px; background: #fff; color: var(--ink); border-radius: 18px; padding: 24px 26px; box-shadow: 6px 6px 0 var(--sun); }
.fr-grade h3 { font-size: 1.4rem; margin: 0 0 6px; }
.fr-grade p { margin: 0 0 14px; }
.fr-rub { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.fr-rub th, .fr-rub td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--rule); }
.fr-rub thead th { font: 800 0.8rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.fr-rub tbody th { font-weight: 800; width: 26%; }
.fr-note { margin: 14px 0 0 !important; font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 1080px) { .lcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .fr-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .lcards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lf button { padding: 8px 11px; font-size: 0.88rem; }
  .fr-grade { padding: 18px 14px; }
  .fr-rub, .fr-rub tbody, .fr-rub tr, .fr-rub th, .fr-rub td { display: block; width: auto !important; }
  .fr-rub thead { display: none; }
  .fr-rub tr { padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .fr-rub th, .fr-rub td { border: 0; padding: 2px 0; }
  .fr-rub td:not([colspan])::before { font-weight: 800; margin-right: 6px; }
  .fr-rub td:nth-of-type(1):not([colspan])::before { content: "0:"; }
  .fr-rub td:nth-of-type(2)::before { content: "1:"; }
  .fr-rub td:nth-of-type(3)::before { content: "2:"; }
}
@media (prefers-reduced-motion: reduce) { .lc, .tswitch .sw i, .lp-switch .lp-sw i { transition: none; } .lc:hover { transform: none; } }

/* parts: one small lesson chip; store: film packs drawn as icons */
.pt-links .pill { padding: 3px 10px; }
.xc-pic svg.pack { height: 66px; width: auto; max-width: 100%; mix-blend-mode: normal; }
.les-plate .pagehead { padding-bottom: 0; }
.les-plate .lf-bar { padding-bottom: 28px; }
.lessons-page > .wrap { padding-top: 10px; }
main.route-lessons { padding-bottom: 0; }
.froll { margin-bottom: 0; }

/* ---- v11: footer legal lines, the home strip with Programs, the Programs page, the licence, Contact, order by email */
.foot-co { color: #fff; max-width: 31rem; }
.foot-legal { max-width: var(--wrap); margin: 30px auto 0; padding: 0 24px; font-size: 0.84rem; color: #D9D4CC; }
.foot-legal::before { content: ""; display: block; border-top: 1px solid #4F4A43; margin-bottom: 18px; }
.foot-legal p { margin: 0 0 6px; }
.m3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m3-y a { border-left-color: var(--sun); }
@media (max-width: 1080px) { .m3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .m3 { grid-template-columns: 1fr; } }
.order-note { margin: 10px 0 0; text-align: center; }

.pg-plate { background: var(--sky-soft); border-bottom: var(--line); }
.pg-plate .pagehead { max-width: 52rem; padding-bottom: 40px; }
.pg-free { margin: 18px 0 0; padding: 12px 16px; background: #fff; border: var(--line); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); max-width: 44rem; }
.pg-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 34px; }
.pg { margin: 0; border: var(--line); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 26px 28px 24px; }
.pg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 8px; }
.pg-head h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.pg-when { margin: 0; font-weight: 800; color: var(--ink-2); }
.pg-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px 40px; }
.pg-body h3 { font: 800 0.8rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 18px 0 8px; }
.pg-body p { margin: 0; }
.pg-body ul { margin: 0; padding-left: 1.1em; }
.pg-body li { margin: 0 0 4px; }
.pg-plan { margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 4px 14px; }
.pg-plan div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.pg-plan div:last-child { border-bottom: 0; }
.pg-plan dt { font-weight: 800; }
.pg-plan dd { margin: 0; }
.pg-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 22px 0 0; padding-top: 16px; border-top: 2px dashed rgba(23, 20, 15, 0.35); }
.pg-kits { font-weight: 700; }
.pg-p { font: 900 1.15rem/1.2 var(--display); }
.pg-buy .btn { margin-left: auto; }
.pg.here, .pg:focus { outline: 4px solid var(--tang); outline-offset: 4px; }
.pg-mini { list-style: none; padding: 0; margin: 22px 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pg-mini li { margin: 0; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
.pg-mini a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none; color: var(--ink); height: 100%; }
.pg-mini strong { font-size: 1.05rem; }
.pg-mini span { color: var(--ink-2); font-size: 0.9rem; }
.pg-mini a:hover strong { text-decoration: underline; text-decoration-color: var(--orange); }
@media (max-width: 860px) {
  .pg-body { grid-template-columns: 1fr; }
  .pg-mini { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pg { padding: 20px 16px 18px; box-shadow: 4px 4px 0 var(--ink); }
  .pg-plan div { grid-template-columns: 1fr; gap: 2px; }
  .pg-buy .btn { margin-left: 0; }
  .pg-mini { grid-template-columns: 1fr; }
}

.lic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lic-card { border: var(--line); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 20px 20px 16px; }
.lic-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.lic-card ul { margin: 0 0 8px; padding-left: 1.1em; }
.lic-card p { margin: 0 0 8px; }
.lic-credit { font: 800 1.05rem/1.35 var(--sans); background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; }
@media (max-width: 860px) { .lic-grid { grid-template-columns: 1fr; } }

.contact { margin-top: 48px; padding: 22px 24px; background: #fff; border: var(--line); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); }
.contact h2 { margin-top: 0; }
.ct-list { margin: 8px 0 0; }
.ct-list div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.ct-list dt { font-weight: 800; overflow-wrap: anywhere; }
.ct-list dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .ct-list div { grid-template-columns: 1fr; } .contact { padding: 18px 14px; } }
.kick-mint { color: var(--mint); } .kick-sun { color: var(--sun); }      /* kickers on the dark plates (Open files, For teachers): AA on forest and navy */

/* ===================================================================================================================
   v2.16: the interactive build guide, the parts table, the glossary, the facts, cross-links, three ways in, wholesale
   =================================================================================================================== */
.st-lab { display: block; font: 800 0.74rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 4px; }
.xchips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.xchips li { margin: 0; }
.xchips a { display: inline-block; font: 600 0.84rem/1.2 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 10px; text-decoration: none; }
.xchips a:hover { background: var(--sun-soft); }
.xc-term a { border-style: dashed; }
.xc-fact a { background: var(--sky-soft); }
.xc-check a { background: var(--mint-soft); }
.xc-offer a { background: var(--tang-soft); }
.xdl { margin: 8px 0 0; }
.xrow { display: grid; grid-template-columns: 7.5rem 1fr; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.xrow dt { font: 800 0.78rem/1.6 var(--sans); color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
.xrow dd { margin: 0; }
.xrow .xchips { margin: 0; }

/* related, at the end of a page */
.related { border-top: 2px solid var(--ink); background: var(--paper-2); padding: 28px 0 36px; margin-top: 48px; }
.related h2 { font-size: 1.15rem; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 10px; }
.related li { margin: 0; }
.related a { display: block; height: 100%; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.3; }
.related a:hover { box-shadow: 3px 3px 0 var(--ink); }
.rel-k { display: block; font: 800 0.7rem/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.route-lesson .related { margin-top: 0; }

/* glossary words in running text */
.glw { position: relative; display: inline; }
a.gl { color: inherit; text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--orange-ink); }
a.gl:hover { text-decoration-style: solid; }
.gl-tip { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: max-content; max-width: min(19rem, 78vw); background: var(--ink); color: #fff;
  font: 400 0.86rem/1.4 var(--sans); padding: 9px 12px; border-radius: 8px; box-shadow: 3px 3px 0 var(--orange); text-align: left; white-space: normal; }
.glw:hover .gl-tip, .gl:focus-visible + .gl-tip, .gl:focus + .gl-tip { display: block; }
.glw.glw-off .gl-tip { display: none; }

/* the build guide: rail */
.rail { border: var(--line); border-radius: 16px; background: #fff; padding: 14px 16px 12px; margin: 0 0 22px; box-shadow: 3px 3px 0 var(--ink); }
.rail-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rail-n { margin: 0; font: 800 0.95rem/1.3 var(--sans); }
.rail-keys { margin: 0; font-size: 0.82rem; color: var(--ink-2); }
.rail-secs { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 10px; }
.rail-h { margin: 0 0 4px; font: 800 0.72rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.rail-steps { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; }
.rail-steps li { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rail-steps a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border: 2px solid var(--ink); border-radius: 9px; font: 800 0.9rem/1 var(--sans); color: var(--ink); text-decoration: none; background: #fff; }
.rail-steps a:hover { background: var(--sun-soft); }
.rail-steps a[aria-current="step"] { background: var(--ink); color: #fff; }
.rail-steps input { width: 20px; height: 20px; margin: 0; accent-color: #1F7A3F; cursor: pointer; }
.rail-steps label { position: absolute; }

/* the build guide: one step */
.stepper { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 28px; align-items: start; scroll-margin-top: 80px; }
.st-stage-col { position: sticky; top: 84px; }
.st3 { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3); border: var(--line); border-radius: 18px; overflow: hidden; touch-action: pan-y; cursor: grab; }
.st3.x3-grab { cursor: grabbing; }
.st3 .st3-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity 0.3s; }
.st3.st3-ready .st3-still { opacity: 0; }
.st3 canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st3-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.st3-cap { flex: 1; margin: 0; font-size: 0.88rem; color: var(--ink-2); text-align: center; }
.st-text h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin: 4px 0 10px; }
.st-eye { margin: 0; font: 700 0.9rem/1 var(--sans); color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.st-eye .tag { margin: 0; }
.st-do { font-size: 1.15rem; line-height: 1.5; margin: 0 0 14px; }
.st-ok, .st-mis { border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.st-ok { background: var(--mint-soft); }
.st-mis { background: var(--sun-soft); }
.st-ok p, .st-mis p { margin: 0; }
.st-mis p + p { margin-top: 4px; }
.st-fix { font-weight: 800; }
.st-sub { font: 800 0.74rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin: 16px 0 6px; }
.st-parts { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.st-parts li { margin: 0; }
.st-parts a { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px 3px 4px; background: #fff; color: var(--ink); text-decoration: none; font: 600 0.9rem/1 var(--sans); }
.st-parts a:hover { background: var(--sun-soft); }
.st-parts img { width: 40px; height: 30px; object-fit: contain; mix-blend-mode: multiply; }
.st-none { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 12px; }
.st-les, .st-words { margin: 12px 0; }
.st-les a { font-weight: 700; }
.st-done { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-weight: 700; }
.st-done input { width: 22px; height: 22px; accent-color: #1F7A3F; margin: 0; }
.st-pn { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0 18px; }
.st-media { border-top: 1px solid var(--rule); padding-top: 14px; }
.st-film { margin: 0 0 10px; }
.st-film video { width: 100%; height: auto; aspect-ratio: 4 / 3; background: #1d2228; border-radius: 12px; }
.st-media-row { display: flex; flex-wrap: wrap; gap: 10px; }
.st-narr audio { width: 100%; margin: 6px 0; }
.st-narr p { font-size: 0.95rem; color: var(--ink-2); }
.st-short { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.st-short .qr { width: 104px; height: 104px; flex: none; border: 2px solid var(--ink); border-radius: 8px; }
.st-short p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.st-short a { font-weight: 800; }
.st-vlinks { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; }

/* the build guide: the whole film, in a dark band */
.theatre { background: var(--ink); color: #fff; padding: 40px 0 44px; margin-top: 44px; scroll-margin-top: 70px; }
.theatre h2 { color: #fff; margin: 0 0 4px; }
.th-head p { color: #E9E4DA; margin: 0 0 18px; }
.th-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.th-film { margin: 0; }
.th-film video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; display: block; }
.th-chap { columns: 1; max-height: 28rem; overflow-y: auto; margin: 0; padding-right: 6px; }
.th-chap button { color: #fff; }
.th-chap .tm { color: #CFC8BC; }
.th-chap button[aria-current="true"] { color: var(--sun); }
.theatre :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--ink); }

/* which steps need which parts */
.deps { margin: 44px 0 30px; }
.deps-t { font-size: 0.82rem; }
.deps-t th, .deps-t td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--rule); }
.deps-t th[scope="row"] { text-align: left; white-space: nowrap; padding-right: 10px; }
.deps-t thead th { font: 800 0.72rem/1 var(--sans); }
.deps-t thead a { color: var(--ink); text-decoration: none; }
.deps-t thead a:hover { text-decoration: underline; }
.deps-t th[scope="row"] a { color: var(--ink); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.dot-f, .dot-u { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.dot-f { background: var(--ink); }
.dot-u { border: 2px solid var(--ink-2); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink); vertical-align: -2px; margin-right: 6px; }
.deps-t .sw { margin-right: 0; }
.dsec-filmin, .dsec-filmout { background: var(--sky-soft); }
.dsec-photos { background: var(--mint-soft); }
.dsec-thehole { background: var(--paper-2); }

/* parts: the table and the small parts, each card's links */
.pt-more { margin: 10px 0 0; font-size: 0.9rem; }
.pt-more summary { font-size: 0.86rem; }
.ptable { margin: 40px 0 24px; scroll-margin-top: 80px; }
table.sortable th button { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; text-align: left; }
table.sortable th button:hover { text-decoration: underline; }
.sort-i::after { content: "\2195"; color: var(--ink-2); font-weight: 400; }
th[aria-sort="ascending"] .sort-i::after { content: "\2191"; color: var(--ink); }
th[aria-sort="descending"] .sort-i::after { content: "\2193"; color: var(--ink); }
table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 18px; }
table.sortable thead th:nth-child(4), table.sortable thead th:nth-child(5) { text-align: right; padding-right: 18px; }
table.sortable td a, table.sortable th a { font-weight: 600; }
.mparts { margin: 36px 0 0; }
.mp-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 14px; }
.mp-list li { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; margin: 0; }
.mp-list h3 { margin: 0 0 4px; font-size: 1.05rem; }
.mp-k { font: 600 0.78rem/1 var(--sans); color: var(--ink-2); }
.mp-list p { margin: 0; font-size: 0.92rem; }
.parts-after { margin-top: 28px; }
.here { outline: 3px solid var(--orange); outline-offset: 4px; }

/* glossary and facts */
.az { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; }
.az li { margin: 0; }
.terms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.term { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 16px 18px; margin: 0; scroll-margin-top: 90px; }
.term h2 { font-size: 1.3rem; margin: 0 0 6px; }
.t-says { font: 600 0.85rem/1 var(--sans); color: var(--ink-2); }
.term > p { margin: 0 0 4px; }
.checks { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checks > li { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 18px; margin: 0; scroll-margin-top: 90px; }
.checks h3 { margin: 0 0 2px; font-size: 1.15rem; }
.ck-q { margin: 0 0 6px; color: var(--ink-2); font-style: italic; }
.ck-h { margin: 0 0 6px; font-weight: 800; }
.checks p { margin: 0 0 6px; font-size: 0.95rem; }
.factlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.factlist > li { border: 2px solid var(--ink); border-radius: 12px; background: #fff; padding: 12px 16px; margin: 0; scroll-margin-top: 90px; }
.fl-say { font: 900 1.35rem/1.15 var(--display); margin: 0 0 4px; }
.fl-s { margin: 0 0 6px; }
.fl-by { margin: 6px 0 0; font-size: 0.92rem; }

/* three ways in, wholesale, the price list */
.ways { list-style: none; padding: 0; margin: 4px 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.way { margin: 0; background: #fff; border: var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 3px 3px 0 var(--ink); display: flex; flex-direction: column; }
.way-h { font-size: 1.2rem; margin: 0 0 6px; }
.way p { margin: 0 0 10px; font-size: 0.96rem; }
.way .way-a { margin-top: auto; margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.w-free { background: var(--mint-soft); }
.w-kit { background: var(--sun-soft); }
.w-whole { background: var(--sky-soft); }
.whole { margin: 44px 0 10px; scroll-margin-top: 80px; border: var(--line); border-radius: 18px; background: #fff; padding: 22px 24px; }
.whole h2 { margin-top: 0; }
.wh-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.wh-terms div { border-top: 2px solid var(--ink); padding-top: 8px; }
.wh-terms dt { font: 800 0.74rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.wh-terms dd { margin: 4px 0 0; font-weight: 600; }
.wh-sets caption { text-align: left; font-weight: 800; padding-bottom: 6px; }
.wh-sets .xchips { margin: 0; }
.pg-offers { margin: 4px 0 10px; }
.plist { margin: 40px 0 10px; }
.plist .xchips { margin-top: 6px; }
.plist td .btn { white-space: nowrap; }
.m3-line { margin: 18px 0 0; font-weight: 600; }
.lconn { border: 2px solid var(--ink); border-radius: 14px; background: #fff; padding: 16px 20px; margin: 0 0 22px; }
.lconn h2 { font-size: 1.1rem; margin: 0 0 4px; }
tr.here, li.here { outline-offset: 2px; }

@media (max-width: 1080px) {
  .th-grid { grid-template-columns: minmax(0, 1fr); }
  .th-chap { columns: 2; max-height: none; }
}
@media (max-width: 860px) {
  .stepper { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .st-stage-col { position: static; }
  .ways, .terms, .checks, .factlist { grid-template-columns: minmax(0, 1fr); }
  .wh-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rail { padding: 12px; }
  .rail-steps { flex-wrap: wrap; }
  .xrow { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .th-chap { columns: 1; }
  .st-short .qr { width: 88px; height: 88px; }
  .whole { padding: 18px 16px; }
  .deps-t { font-size: 0.76rem; }
}
@media (prefers-reduced-motion: reduce) { .st3 .st3-still { transition: none; } }
@media (max-width: 600px) {
  .wh-terms { grid-template-columns: minmax(0, 1fr); }
  .wh-sets thead, .plist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wh-sets tr, .plist tr { display: block; border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .wh-sets th, .wh-sets td, .plist th, .plist td { display: block; border: 0; padding: 2px 0; }
  .wh-sets th[scope="row"], .plist th[scope="row"] { font-size: 1rem; }
}
