/* LevelUp Training. Brand colours from the 2026-09 logo set. */
:root {
  --orange: #F28328; --pink: #D7325A; --ink: #1E212B; --muted: #5d6270;
  --line: #e4e6ec; --bg: #f7f7f5; --card: #ffffff; --ok: #2f8f4e; --soft: #fff4ea;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); }
a { color: var(--pink); }
header.top { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: #fff;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.top img { height: 34px; display: block; }
header.top .sp { flex: 1; }
header.top nav a { color: var(--ink); text-decoration: none; margin-left: 14px; font-size: 14px; }
header.top nav a:hover { color: var(--pink); }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 19px; margin: 26px 0 10px; }
.muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 18px; }
.bar { height: 8px; background: #eceef2; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--pink)); }
.btn { display: inline-block; background: var(--orange); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 18px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: #e07116; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.done { background: var(--ok); }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #eef0f4; color: var(--muted); }
.tag.hidden { background: #fde8ec; color: var(--pink); }
.chapter { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.chapter h3 { margin: 0; padding: 12px 16px; font-size: 16px; background: #fafafa; border-bottom: 1px solid var(--line); }
.lessons { list-style: none; margin: 0; padding: 0; }
.lessons li { border-bottom: 1px solid var(--line); }
.lessons li:last-child { border-bottom: 0; }
.lessons a, .lessons .locked { display: flex; gap: 10px; align-items: center; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.lessons a:hover { background: var(--soft); }
.lessons .locked { color: #a3a7b1; }
.lessons .cur { background: var(--soft); font-weight: 600; }
.ico { width: 22px; text-align: center; flex: none; }
.ico.done { color: var(--ok); }
.kind { margin-left: auto; font-size: 12px; color: var(--muted); }
.layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.side { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; }
.side .chapter h3 { font-size: 13px; padding: 8px 12px; }
.side .lessons a, .side .lessons .locked { padding: 7px 12px; font-size: 14px; }
.lesson-body { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-width: 0; }
.lesson-body img, .lesson-body iframe { max-width: 100%; height: auto; }
.lesson-body table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.lesson-body td, .lesson-body th { border: 1px solid var(--line); padding: 6px 8px; }
video { width: 100%; max-height: 72vh; background: #000; border-radius: 10px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.q { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.q .prompt { font-weight: 600; margin-bottom: 8px; }
.q label { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; cursor: pointer; }
.q.right { border-color: var(--ok); background: #f1faf4; }
.q.wrong { border-color: var(--pink); background: #fdf1f4; }
.q .expl { margin-top: 8px; font-size: 14px; color: var(--muted); }
.notice { padding: 12px 16px; border-radius: 10px; margin: 14px 0; background: var(--soft); border: 1px solid #f7d2b0; }
.notice.ok { background: #f1faf4; border-color: #b9e0c6; }
.notice.bad { background: #fdf1f4; border-color: #f2bccb; }
textarea, input[type=text], input[type=password] { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; }
table.grid { border-collapse: collapse; width: 100%; background: #fff; font-size: 14px; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.grid th { background: #fafafa; }
.center { max-width: 440px; margin: 10vh auto; text-align: center; }
.center img { height: 60px; margin-bottom: 18px; }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  header.top nav a { margin-left: 8px; }
  .lesson-body { padding: 16px; }
}
@media print {
  header.top, .noprint { display: none !important; }
  body { background: #fff; }
}
.q label p, .q .prompt p { margin: 0; }
.q label input { margin-top: 5px; flex: none; }

/* ---------------------------------------------------------------- owner editing screen */
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.flash { margin-top: 0; }
form.inline { display: inline; margin: 0; }
.mini { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; line-height: 1.4; display: inline-block; }
.mini:hover { border-color: var(--orange); color: var(--orange); }
.mini.strong { background: var(--soft); border-color: #f7d2b0; font-weight: 600; }
.mini.danger { color: var(--pink); border-color: #f2bccb; }
.mini.danger:hover { background: #fdf1f4; }
.mini.on { background: var(--ink); color: #fff; }
.mini:disabled { opacity: .4; cursor: default; }
.file-btn { cursor: pointer; }
select, input[type=number] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
label.check { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 400 !important; font-size: 15px !important; }
label.check.big { font-weight: 600 !important; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.two > label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.row-wrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.panel h2 { margin: 0; font-size: 17px; }
details.panel > summary { cursor: pointer; font-weight: 600; }
details.panel[open] > summary { margin-bottom: 12px; }
.add-row { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.add-row input[type=text] { flex: 1; min-width: 200px; }
.add-row.foot { margin: 0; padding: 10px 16px; background: #fafafa; border-top: 1px solid var(--line); }
.edit-list td { vertical-align: middle; }
.chapter.edit .ch-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px 8px 0; background: #fafafa;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chapter.edit .ch-head h3 { border: 0; background: none; padding: 4px 16px; }
.chapter.edit .ch-head .sp { flex: 1; }
.chapter.edit .row { display: flex; gap: 8px; align-items: center; padding: 7px 16px; }
.chapter.edit .row a.grow { flex: 1; padding: 0; color: var(--ink); }
.chapter.edit .row a.grow:hover { color: var(--pink); background: none; }
.chapter.edit li.is-draft .row a.grow { color: var(--muted); }
.chapter.edit li:target { background: var(--soft); }
details.pop { display: inline-block; position: relative; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop[open] > form { position: absolute; right: 0; top: 30px; z-index: 3; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; width: 380px; margin: 0; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.rte { border: 1px solid var(--line); border-radius: 10px; }
.rte-bar { border-radius: 10px 10px 0 0; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #fafafa; border-bottom: 1px solid var(--line);
  position: sticky; top: 55px; z-index: 2; }
.rte-bar button { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid transparent; background: none; border-radius: 6px; cursor: pointer; min-width: 30px; }
.rte-bar button:hover { background: #fff; border-color: var(--line); }
.rte-bar button.on { background: var(--ink); color: #fff; }
.rte-bar button:disabled { opacity: .35; }
.rte-bar .gap { width: 1px; background: var(--line); margin: 2px 4px; }
.rte-bar .sp { flex: 1; }
.rte-area { min-height: 260px; padding: 16px 18px; outline: none; }
.rte-area img, .rte-area iframe { max-width: 100%; height: auto; }
.rte-area table { border-collapse: collapse; }
.rte-area td, .rte-area th { border: 1px solid var(--line); padding: 6px 8px; }
.rte-code { border: 0 !important; border-radius: 0 !important; font: 13px/1.5 ui-monospace, Menlo, monospace !important; }
.field { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 38px; background: #fff; outline: none; }
.field:focus { border-color: var(--orange); }
.field:empty::before { content: attr(data-ph); color: #a3a7b1; }
.field p { margin: 0; }
.qcard { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; background: #fcfcfb; }
.qhead { display: flex; gap: 6px; align-items: center; }
.qhead .sp { flex: 1; }
.q-prompt { font-weight: 600; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choice { display: flex; gap: 8px; align-items: center; }
.choice .field { flex: 1; }
.right-tick { display: flex; gap: 4px; align-items: center; font-size: 13px; color: var(--ok); white-space: nowrap; cursor: pointer; }
.files-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.files-list li { display: flex; gap: 8px; align-items: center; }
.files-list input { flex: 1; }
.savebar { position: sticky; bottom: 0; background: rgba(247,247,245,.95); padding: 12px 0; display: flex; gap: 14px; align-items: center;
  border-top: 1px solid var(--line); z-index: 4; }
.danger-zone { margin-top: 26px; display: flex; gap: 10px; align-items: center; }
.lesson-edit h1 { margin-bottom: 12px; }
@media (max-width: 800px) {
  .two { grid-template-columns: 1fr; }
  details.pop[open] > form { width: 86vw; }
  .rte-bar { top: 0; }
}
.qcard > button.mini { align-self: flex-start; }
/* ---------------------------------------------------------------- staff progress */
.tag.ok { background: #e6f5ea; color: var(--ok); }
.small-bar { height: 6px; margin: 4px 0; min-width: 90px; }
.progress-grid td { min-width: 120px; }
.ch-title { font-size: 14px; margin: 16px 0 6px; color: var(--muted); }
.lesson-grid td { padding: 6px 10px; }
.lesson-grid .tick { width: 34px; text-align: center; font-weight: 700; }
.lesson-grid tr.is-done .tick { color: var(--ok); }
.lesson-grid tr.not-done .tick { color: var(--pink); }
.lesson-grid tr.not-done td:nth-child(2) { color: var(--muted); }
details.panel > summary a { font-weight: 400; }

/* ---- parents' maths site (SITE_MODE=parents), 22 Nov 2026 ---- */
footer.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 18px 16px 40px; }
.narrow { max-width: 560px; margin: 0 auto; }
.hero h1 { font-size: 30px; line-height: 1.2; }
.hero ul { padding-left: 20px; margin: 10px 0 18px; }
.form label.f { display: block; font-weight: 600; margin: 14px 0 4px; }
.form input[type=email], .form input[type=text], .form select { width: 100%; font-size: 17px;
  padding: 11px 12px; border: 1px solid #b9bdc7; border-radius: 8px; background: #fff; }
.form .tick { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 15px; }
.form .tick input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form .btn { width: 100%; font-size: 17px; padding: 13px; margin-top: 6px; }
.err { background: #fde8ec; color: #8a1630; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.hp { position: absolute; left: -9999px; }
.price { font-size: 34px; font-weight: 700; }
.price s { font-size: 20px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.sets { list-style: none; padding: 0; margin: 0; }
.sets li a { display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line); }
.sets li:last-child a { border-bottom: 0; }
.sets li a:hover { background: var(--soft); }
.box { width: 26px; height: 26px; border: 2px solid #b9bdc7; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-weight: 700; color: #fff; }
.box.on { background: var(--ok); border-color: var(--ok); }
.qlist { list-style: none; padding: 0; margin: 0; }
.qlist > li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.qlist .qt { font-weight: 600; }
.qlist video { width: 100%; max-width: 720px; margin-top: 10px; border-radius: 8px; background: #000; }
.soon { color: var(--muted); font-size: 14px; margin-top: 6px; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 700; margin-right: 8px; }
.trybox { background: var(--soft); border: 1px solid #f6c89e; border-radius: 12px; padding: 16px; margin: 18px 0; }
.trybox img { max-width: 100%; height: auto; display: block; margin: 8px 0; background: #fff; }
.trybox input[type=text] { font-size: 18px; padding: 10px 12px; border: 1px solid #b9bdc7; border-radius: 8px; width: 220px; max-width: 100%; }
.ok-msg { color: var(--ok); font-weight: 700; }
.bad-msg { color: #8a1630; font-weight: 700; }
table.plain { border-collapse: collapse; width: 100%; background: #fff; font-size: 14px; }
table.plain th, table.plain td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
@media (max-width: 700px) { header.top nav a { margin-left: 8px; } .hero h1 { font-size: 25px; } }
.setbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.howto { background: var(--soft); border-radius: 10px; padding: 10px 14px; }
.qcards { list-style: none; padding: 0; margin: 16px 0; }
.qcard { background: #fff; border: 1px solid var(--line); border-left: 5px solid #d5d8df; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px; scroll-margin-top: 70px; }
.qcard.right { border-left-color: var(--ok); }
.qcard.wrong { border-left-color: #C22E55; }
.qcard img { max-width: 100%; max-height: 320px; width: auto; height: auto; display: block; margin: 8px 0; }
.qcard video { width: 100%; max-width: 720px; margin-top: 10px; border-radius: 8px; background: #000; }
.qhead { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.qlabel { font-weight: 700; color: var(--orange); }
.qtitle { font-weight: 600; }
.pill { font-size: 13px; padding: 2px 10px; border-radius: 99px; margin-left: auto; }
.pill.ok { background: #e3f3e8; color: var(--ok); } .pill.bad { background: #fde8ec; color: #8a1630; }
.ansform { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-top: 8px; }
.ansform label { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.ansform input { font-size: 18px; padding: 9px 12px; border: 1px solid #b9bdc7; border-radius: 8px; width: 170px; max-width: 100%; color: var(--ink); }
.selfmark { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.answer { background: #f3f8f4; border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.anyway summary { cursor: pointer; color: var(--muted); margin-top: 8px; }
.nextq { margin: 10px 0 0; }
.toprow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wrongbar { background: #fde8ec; border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.wrongbar a { margin-left: 8px; }
.redo { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.speed { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 14px; color: var(--muted); }
.speed button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 12px; font-size: 14px; cursor: pointer; color: var(--ink); }
.speed button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.wrongq { margin: 10px 0; padding: 0 16px 0 36px; }

/* Bigger, easier text for children and parents (Kydon, 22 Nov 2026: "bigger font"). */
body.parents { font-size: 19px; line-height: 1.6; }
body.parents h1 { font-size: 32px; }
body.parents h2 { font-size: 23px; }
body.parents .muted, body.parents .howto, body.parents .setbar { font-size: 18px; }
body.parents .qcard { padding: 18px 20px; }
body.parents .qcard p { font-size: 21px; line-height: 1.6; margin: 10px 0; }
body.parents .qhead { font-size: 21px; }
body.parents .ansform label { font-size: 17px; }
body.parents .ansform input { font-size: 22px; padding: 11px 14px; width: 200px; }
body.parents .btn { font-size: 18px; padding: 12px 20px; }
body.parents .ok-msg, body.parents .bad-msg { font-size: 21px; }
body.parents .pill { font-size: 15px; }
body.parents .speed button { font-size: 16px; padding: 6px 14px; }
body.parents .sets li a { font-size: 19px; }
body.parents header.top nav a { font-size: 16px; }
@media (max-width: 700px) { body.parents .qcard p { font-size: 19px; } body.parents h1 { font-size: 26px; } }
