/* Lessonsmith design: green and chalk-yellow, Bricolage Grotesque headings,
   Source Sans 3 body text, IBM Plex Mono labels. */
:root {
  --bg: #F3FAF6;
  --surface: #FFFFFF;
  --ink: #10211C;
  --muted: #4E625C;
  --line: #D4E4DD;
  --accent: #137A5E;
  --accent-ink: #FFFFFF;
  --soft: #E1F4EB;
  --mint: #2DBE8F;
  --deep: #0E4D3E;
  --chalk: #F4C842;
  --chalk-ink: #1B1A12;
  --gold-text: #B8870F;
  --danger: #B3261E;
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1613; --surface: #15221E; --ink: #E7EFEC; --muted: #97A9A3; --line: #283A35;
    --accent: #5CC4A6; --accent-ink: #08201A; --soft: #1A2F28; --mint: #3FD3A2; --deep: #0A2E25; --chalk: #E8C95A; --chalk-ink: #1B1A12; --gold-text: #F0C94A; --danger: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1613; --surface: #15221E; --ink: #E7EFEC; --muted: #97A9A3; --line: #283A35;
  --accent: #5CC4A6; --accent-ink: #08201A; --soft: #1A2F28; --mint: #3FD3A2; --deep: #0A2E25; --chalk: #E8C95A; --chalk-ink: #1B1A12; --gold-text: #F0C94A; --danger: #FF8A80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.55;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
header.top { background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 64px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; line-height: 1; }
.tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.usage { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .03em; }

/* ---------- buttons ---------- */
button, .btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 12px;
  cursor: pointer; font-weight: 600; font-size: .9rem; line-height: 1.2; text-decoration: none; display: inline-block; color: var(--ink);
}
button:hover:not(:disabled), .btn:hover { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:hover:not(:disabled), .btn.primary:hover { filter: brightness(1.07); }
button.big, .btn.big { padding: 12px 18px; font-size: 1rem; }
button.small { padding: 6px 10px; font-size: .84rem; }
button.warn { color: var(--danger); }
button.link { border: 0; background: none; padding: 0; color: var(--muted); font-weight: 400; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- forms ---------- */
form.stack, .stack { display: flex; flex-direction: column; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.lbl, legend {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); padding: 0; margin-bottom: 6px; display: block; font-weight: 500;
}
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; line-height: 1.3; font-weight: 400;
}
textarea { resize: vertical; min-height: 84px; }
.hint, .fine { font-size: .84rem; color: var(--muted); font-weight: 400; margin: 0; }
.error { color: var(--danger); min-height: 1.2em; margin: 0; }
.notice {
  border: 1px solid var(--line); border-left: 4px solid var(--chalk); border-radius: 6px;
  padding: 8px 12px; font-size: .92rem; background: var(--surface); margin: 0;
}

/* ---------- cards and marketing pages ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-width: 0; }
.card h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 4px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); }
.card.featured { border: 2px solid var(--accent); }
.cards.pricing { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; }
.cards.pricing .card { display: flex; flex-direction: column; position: relative; }
.card .flag.corner { position: absolute; top: -11px; left: 16px; }
.card p.price { color: var(--ink); }
.cards.pricing { padding-top: 12px; }
.cards.pricing .card ul { flex: 1; }
.cards.pricing .card button { align-self: flex-start; }
.plan-choice { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hero { padding: 64px 0 36px; text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.08; letter-spacing: -.02em; margin: 14px auto 16px; max-width: 820px; text-wrap: balance;
}
.hero-tag { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #F4C842; margin: 14px 0 0; letter-spacing: .01em; }
.hero p.lead { color: var(--muted); font-size: 1.2rem; max-width: 640px; margin: 0 auto 26px; }
.flag {
  display: inline-block; background: var(--chalk); color: var(--chalk-ink); font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
}
section.block { padding: 30px 0; }
section.block > h2 { font-family: var(--font-display); font-weight: 700; text-align: center; font-size: 1.7rem; margin: 0 0 22px; }
.price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin: 6px 0; }
.price small { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 400; }
.card ul { padding-left: 20px; color: var(--muted); margin: 10px 0 16px; }
footer { color: var(--muted); text-align: center; padding: 40px 16px; font-size: .9rem; }
dialog {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  padding: 24px; width: min(420px, calc(100vw - 32px));
}
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog h2 { font-family: var(--font-display); margin: 0; }

/* ---------- header menu (Trust & safety) ---------- */
details.menu { position: relative; }
details.menu summary {
  list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 8px; color: var(--accent); font-weight: 600;
}
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary::after { content: " ▾"; font-size: .8em; }
details.menu[open] summary { background: var(--soft); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(560px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgb(0 0 0 / .12);
  padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
}
.menu-panel a:not(.btn) { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:not(.btn):hover { color: var(--accent); }
.menu-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.menu-foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; color: var(--muted); font-weight: 600; font-size: .92rem;
}
@media (max-width: 560px) { .menu-panel { grid-template-columns: 1fr; right: -90px; } }

/* ---------- tool carousel (home page) ---------- */
.tools-showcase {
  background: var(--soft); padding: 52px 0 40px; margin: 8px 0 24px;
  border-block: 1px solid var(--line);
}
.showcase-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.showcase-head h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.1; letter-spacing: -.02em; margin: 12px 0 10px; max-width: 760px;
}
/* Chalk-underlined highlight in the brand green. */
.showcase-head .hl { color: var(--accent); background: linear-gradient(transparent 68%, var(--chalk) 68%, var(--chalk) 90%, transparent 90%); }
.showcase-head .lead { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 640px; }
.carousel-controls { display: flex; gap: 10px; }
.stat-strip {
  order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0;
}
.stat-strip li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px;
  color: var(--muted); font-size: .92rem;
}
.stat-strip b { font-family: var(--font-display); color: var(--accent); font-size: 1.15rem; margin-right: 4px; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 12px; padding: 0; font-size: 1.3rem; line-height: 1;
  background: var(--surface); border: 1px solid var(--line);
}
.carousel-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  list-style: none; margin: 0; padding: 6px 4px 14px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.tool-card { flex: 0 0 clamp(250px, 30%, 300px); scroll-snap-align: start; }
.tool-card a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  border-top: 5px solid var(--accent); transition: transform .15s ease, border-color .15s ease;
}
.tool-card a:hover, .tool-card a:focus-visible { transform: translateY(-3px); border-color: var(--accent); }
.tool-preview { position: relative; height: 170px; padding: 46px 16px 0; overflow: hidden; }
.tone-g { background: #E3EEEA; }
.tone-y { background: #FDF4D6; }
.tone-b { background: #E3EEF8; }
.tone-o { background: #FBE6DE; }
.tone-p { background: #EEE8F5; }
/* A lined exercise-book page with a margin rule. */
.paper {
  background: #fff; color: #12201D; border-radius: 6px 6px 0 0; height: 100%;
  padding: 10px 12px 10px 26px; font-size: .78rem; line-height: 1.65;
  border: 1px solid #D3DDD9; border-bottom: 0; position: relative;
}
.paper::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; border-left: 2px solid #F2B8A8; }
.paper b { display: block; font-family: var(--font-display); font-size: .9rem; margin-bottom: 4px; }
.paper i { display: block; font-style: normal; color: #34453F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #DCE8F2; }
.tool-tag {
  position: absolute; left: 14px; top: 12px; background: var(--chalk); color: var(--chalk-ink);
  border-radius: 999px; padding: 4px 11px; font-size: .78rem; font-weight: 600;
}
.tool-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tool-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0 0 6px; }
.tool-body p { color: var(--muted); margin: 0 0 14px; flex: 1; }
.tool-cta { align-self: flex-start; color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--chalk); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin: 6px 0 18px; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .2s ease, background .2s ease; }
.carousel-dots span.on { width: 26px; background: var(--accent); }
@media (max-width: 700px) { .carousel-controls { display: none; } .tool-card { flex-basis: 80%; } }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- trust centre ---------- */
.trust-hero { text-align: center; padding: 48px 0 24px; }
.trust-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); margin: 10px 0; letter-spacing: -.02em; }
.trust-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 28px; }
.trust-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; background: var(--surface); font-weight: 600; }
.trust-section { scroll-margin-top: 16px; margin-bottom: 18px; }
.trust-section h2 { margin-top: 0; }
/* Text inside cards (Trust, legal, admin guidance) runs the full width of the card rather than a narrow column. */
.card.doc p, .card.doc ul, .card.doc ol, .card.doc blockquote { max-width: none; }
.trust-section details { border-top: 1px solid var(--line); padding: 10px 0; }
.trust-section summary { cursor: pointer; font-weight: 600; }

/* ---------- builder ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 20px 40px; }
@media (min-width: 900px) {
  .app { grid-template-columns: 400px minmax(0, 1fr); align-items: start; }
  .brief { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; min-width: 0; }
.brief form { gap: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.type { position: relative; display: block; cursor: pointer; min-width: 0; font-weight: 400; }
.type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tb { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; height: 100%; background: var(--surface); }
.tb b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.tb span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.type input:checked + .tb { border-color: var(--accent); background: var(--soft); box-shadow: 0 0 0 1px var(--accent); }
.type input:focus-visible + .tb { outline: 2px solid var(--chalk); outline-offset: 2px; }
.field { display: block; min-width: 0; font-weight: 400; }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1 1 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; display: inline-block; font-weight: 400; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: .88rem; background: var(--surface); }
.chip input:checked + span { border-color: var(--accent); background: var(--soft); }
.chip input:checked + span::before { content: "\2713\00a0"; color: var(--accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.chip input:disabled + span { opacity: .55; }
.chip .x2 { margin-left: 4px; background: var(--chalk); color: var(--chalk-ink); border-radius: 999px; padding: 1px 7px; font-size: .74rem; font-weight: 600; }
.chip input:disabled { cursor: not-allowed; }
details.more summary { cursor: pointer; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
details.more[open] summary { margin-bottom: 8px; }
#go { width: 100%; padding: 12px 16px; font-size: 1rem; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 14px; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 8px 10px; color: var(--muted); margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.bar .grow { flex: 1 1 auto; }
.meta { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .03em; min-width: 0; }
.status { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); min-height: 1.4em; margin: 0 0 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.busy .dot { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .busy .dot { animation: none; } }
#flag { margin-bottom: 10px; }
#editor { min-height: 60vh; font-family: var(--font-mono); font-size: .86rem; line-height: 1.5; }

.revise { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.revise .row2 { align-items: stretch; }
.revise input { flex: 1 1 auto; }
.revise button { flex: 0 0 auto; }

.item { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .t { min-width: 0; flex: 1 1 200px; }
.item .t b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.item .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 10px 0; }

/* ---------- rendered resource ---------- */
.doc { min-width: 0; overflow-wrap: anywhere; }
.doc h1 { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 12px; text-wrap: balance; }
.doc h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 26px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line); text-wrap: balance; }
.doc h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 18px 0 6px; }
.doc h4 { font-weight: 600; margin: 14px 0 4px; }
.doc p { margin: 0 0 10px; max-width: 72ch; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 1.3em; max-width: 72ch; }
.doc li { margin: 2px 0; }
.doc blockquote { margin: 0 0 12px; padding: 6px 12px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 6px 6px 0; }
.doc blockquote p:last-child { margin: 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.doc code { font-family: var(--font-mono); font-size: .88em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.doc input[type=checkbox] { margin-right: 4px; }
.tw { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--line); min-width: 90px; }
.doc th { background: var(--soft); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; }
.doc tr:last-child td { border-bottom: 0; }

/* Visual layout: callout boxes and diagrams. */
.doc .callout {
  --c-line: #17604E; --c-fill: #E3EEEA;
  border-left: 5px solid var(--c-line); background: var(--c-fill); color: #12201D;
  border-radius: 0 8px 8px 0; padding: 10px 14px; margin: 0 0 14px; max-width: 72ch;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.doc .callout-tip { --c-line: #B8901A; --c-fill: #FDF4D6; }
.doc .callout-task { --c-line: #3B82C4; --c-fill: #E3EEF8; }
.doc .callout-warn { --c-line: #D9663F; --c-fill: #FBE6DE; }
.doc .callout-example { --c-line: #7A5BA8; --c-fill: #EEE8F5; }
.doc .callout-title { font-family: var(--font-display); font-weight: 600; margin: 0 0 4px; }
.doc .callout > :last-child { margin-bottom: 0; }
.doc .callout code { background: rgb(255 255 255 / .6); }
/* Diagrams are drawn for a white page, so they keep a white card in dark mode too. */
.doc figure.diagram {
  margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.doc figure.diagram svg { display: block; width: 100%; height: auto; }
.doc .diagram-missing { color: var(--muted); font-style: italic; }
.doc pre { background: var(--soft); border-radius: 6px; padding: 10px; overflow-x: auto; }
.doc pre code { background: none; padding: 0; }

/* ---------- admin dashboard ---------- */
.admin { padding-bottom: 24px; }
.admin .card { margin-bottom: 16px; }
.admin h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 10px; }
.admin-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 24px 0 12px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 2px; margin: 0 !important; }
.kpi b { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); }
.admin-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.admin-table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.admin-table th, .admin-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.admin-table td:first-child { color: var(--muted); }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tip { border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 8px 8px 0; padding: 8px 12px; }
.tip-warn { border-color: #D9663F; }
.tip-ok { border-color: var(--accent); }

/* Legal pages reuse .doc inside a card. */
main.legal { max-width: 800px; margin: 24px auto; }

@media print {
  header.top, .brief, .tabs, .bar, .status, .revise, footer, #banner { display: none !important; }
  body { background: #fff; color: #000; }
  .app { display: block; padding: 0; }
  .panel { border: 0; padding: 0; }
}

/* ---------- feature rows with illustrations (home page) ---------- */
.features { display: grid; gap: 56px; margin-top: 56px; }
.feature { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.15; letter-spacing: -.015em; margin: 6px 0 14px; text-wrap: balance;
}
.feature-text > p { color: var(--muted); font-size: 1.1rem; margin: 0 0 14px; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0; }
.e-green { color: var(--accent); }
.e-gold { color: #8A6408; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 999px;
  background: var(--chalk); color: var(--chalk-ink); font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
/* Illustration panels: fixed light colours so the mock-ups read the same in dark mode. */
.feature-art {
  position: relative; border-radius: 22px; padding: 28px; min-height: 360px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; color: #12201D;
}
.art-green { background: linear-gradient(135deg, #CFE5DC, #E3EEEA); }
.art-gold { background: linear-gradient(135deg, #F7E3A1, #FDF4D6); }
.art-deep { background: linear-gradient(135deg, #17604E, #2C7D68); }
.art-soft { background: linear-gradient(135deg, #E3EEF8, #EAF4EF); }
.mock {
  background: #FFFFFF; border: 1px solid #D3DDD9; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(18, 32, 29, .12); font-size: .88rem; position: relative;
}
.mock b { font-family: var(--font-display); font-weight: 600; }
.mock p { margin: 0; }
/* Personalised: worksheet with a gap-fill card over it. */
.sheet { width: 82%; padding: 0; overflow: hidden; }
.sheet-head { background: #17604E; color: #fff; padding: 10px 14px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sheet-head span { font-family: var(--font-mono); font-size: .7rem; opacity: .85; align-self: center; }
.sheet-body { padding: 12px 14px; display: grid; gap: 10px; }
.sheet-box { background: #FDF4D6; border-left: 4px solid #F0C94A; border-radius: 6px; padding: 8px 10px; }
.sheet-box b { display: block; margin-bottom: 2px; }
.sheet-box i, .sheet-lines i { display: block; font-style: normal; color: #34453F; font-size: .8rem; }
.sheet-lines i { height: 14px; border-bottom: 1px solid #DCE8F2; }
.float { margin: -70px 0 0 auto; width: 74%; border: 2px solid #17604E; }
.gap { background: #FFFFFF; }
.gap > b { display: block; margin-bottom: 6px; color: #17604E; }
.gap-text { background: #F2F6F4; border-radius: 8px; padding: 8px 10px; line-height: 1.6; }
.bank { margin-top: 8px !important; color: #17604E; font-weight: 600; font-size: .8rem; }
.bank span { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #34453F; margin-right: 6px; }
.levels { display: flex; gap: 8px; flex-wrap: wrap; }
.lv { border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: .8rem; background: #fff; border: 1px solid #D3DDD9; }
.lv1::before { content: "● "; color: #5CC4A6; }
.lv2::before { content: "● "; color: #F0C94A; }
.lv3::before { content: "● "; color: #E07A5F; }
/* Curriculum: objectives picker. */
.align { display: grid; gap: 10px; }
.align-top { display: flex; align-items: center; gap: 10px; border: 1px solid #D3DDD9; border-radius: 10px; padding: 10px 12px; }
.align-top .sq { width: 22px; height: 22px; border-radius: 5px; background: #17604E; flex: none; }
.align-top b { font-size: 1rem; }
.align-selects { display: flex; flex-wrap: wrap; gap: 6px; }
.align-selects span { border: 1px solid #D3DDD9; border-radius: 6px; padding: 5px 24px 5px 8px; font-size: .78rem; position: relative; }
.align-selects span::after { content: "▾"; position: absolute; right: 8px; color: #34453F; }
.align-count { font-family: var(--font-mono); font-size: .72rem !important; letter-spacing: .05em; color: #34453F; text-transform: uppercase; }
.obj { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; border: 1px solid #E3EEEA; border-radius: 8px; padding: 8px 10px; font-size: .82rem; }
.obj b { font-family: var(--font-mono); font-size: .74rem; color: #17604E; margin-right: 4px; }
.chk { flex: none; width: 22px; height: 22px; border-radius: 6px; background: #17604E; color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
/* Your own documents: sources and a reading card. */
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.src { background: #fff; border-radius: 14px; padding: 16px 8px 12px; display: grid; justify-items: center; gap: 8px; font-weight: 600; font-size: .82rem; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.src svg { width: 40px; height: 40px; fill: none; stroke: #17604E; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reading { display: grid; gap: 4px; }
.reading > b { font-size: .95rem; margin-bottom: 4px; }
.ok { color: #12201D; }
.ok::first-letter { color: #17604E; font-weight: 700; }
.bar-track { height: 8px; background: #E3EEEA; border-radius: 999px; margin: 10px 0 8px; overflow: hidden; }
.bar-track span { display: block; height: 100%; width: 82%; background: #17604E; border-radius: 999px; animation: fill 2.6s ease-in-out infinite alternate; }
@keyframes fill { from { width: 35%; } to { width: 92%; } }
@media (prefers-reduced-motion: reduce) { .bar-track span { animation: none; } }
.reading-title { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.reading-sub { text-align: center; color: #34453F; font-size: .8rem; }
/* Quality: meters and checklist. */
.quality { display: grid; gap: 10px; width: 88%; }
.quality > b { font-size: 1.05rem; }
.q-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 10px; align-items: center; font-size: .8rem; }
.q-row em { font-style: normal; font-family: var(--font-mono); font-size: .72rem; color: #17604E; }
.meter { height: 9px; background: #E3EEEA; border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, #5CC4A6, #17604E); border-radius: 999px; }
.q-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: .8rem; }
.stamp { display: flex; gap: 10px; align-items: center; width: auto; max-width: 70%; margin-top: -34px; background: #FDF4D6; border-color: #F0C94A; }
.stamp > span { font-size: 1.6rem; }
.stamp small { display: block; color: #34453F; font-size: .76rem; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip .feature-text { order: 0; }
  .feature-art { min-height: 0; padding: 20px 16px; }
  .sheet, .quality { width: 100%; }
  .float { width: 92%; margin-top: -40px; }
  .q-row { grid-template-columns: 90px 1fr auto; }
  .q-list { grid-template-columns: 1fr; }
  .stamp { max-width: 100%; margin-top: 0; }
}

/* ---------- site footer ---------- */
footer.site-foot {
  background: #17604E; color: #E7EFEC; text-align: left; padding: 52px 0 28px; margin-top: 40px;
  border-radius: 24px 24px 0 0;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer.site-foot { background: #10302A; } }
:root[data-theme="dark"] footer.site-foot { background: #10302A; }
.site-foot a { color: #E7EFEC; text-decoration: none; }
.site-foot a:hover { color: #F0C94A; text-decoration: underline; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.foot-cols nav { display: grid; gap: 10px; align-content: start; }
.foot-cols h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #FFFFFF; margin: 0 0 6px; }
.foot-note { color: #B9D3CA; font-size: .88rem; margin: 34px 0 0; }
.foot-reg { color: #B9D3CA; font-size: .88rem; margin: 14px 0 0; text-align: right; }
@media (max-width: 700px) { .foot-reg { text-align: left; } }
.foot-bar {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 18px; padding-top: 20px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #FFFFFF !important; }
.foot-id { display: grid; gap: 2px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0 44px; }
.foot-social[hidden], .foot-social a[hidden] { display: none; }
.foot-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #FFFFFF; color: #17604E !important; transition: transform .15s ease, background .15s ease; }
.foot-social a:hover { transform: translateY(-2px); background: #F4C842; text-decoration: none; }
.foot-social svg { width: 20px; height: 20px; }
/* Phone: a round icon like the others; on hover or keyboard focus it slides open to show the number. */
.foot-social a.foot-phone { width: auto; min-width: 38px; height: 38px; padding: 0 9px; gap: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: flex-start; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; transition: background .15s ease, padding .3s ease, gap .3s ease, transform .15s ease; }
.foot-social a.foot-phone svg { flex: none; }
.foot-social a.foot-phone [data-phone-text] { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; transition: max-width .35s ease, opacity .25s ease; }
.foot-social a.foot-phone:hover, .foot-social a.foot-phone:focus-visible { padding: 0 14px 0 9px; gap: 8px; }
.foot-social a.foot-phone:hover [data-phone-text], .foot-social a.foot-phone:focus-visible [data-phone-text] { max-width: 9em; opacity: 1; }
.foot-social a.foot-phone:focus-visible { outline: 3px solid #F4C842; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .foot-social a.foot-phone, .foot-social a.foot-phone [data-phone-text] { transition: none; } }
.foot-social a.foot-phone[hidden] { display: none; }
.foot-tag { margin: 0 0 0 44px; color: #F4C842; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .92rem; }
@media (max-width: 820px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-cols { grid-template-columns: 1fr; } footer.site-foot { border-radius: 18px 18px 0 0; } }

/* ---------- "build from your own material" (builder) ---------- */
.own { border: 1px dashed var(--accent) !important; border-radius: 10px; padding: 12px !important; background: var(--soft); display: grid; gap: 8px; }
.own legend { padding: 0 6px; background: var(--soft); border-radius: 4px; }
.own-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.upload-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.upload-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.own-file { margin: 0; font-size: .88rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.own .error:empty { display: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Two-tone logo name: "Lesson" in green, "smith" in gold. */
.brand .brand-name { color: var(--accent); }
.brand .smith { color: var(--gold-text); }
.foot-brand .smith { color: #F0C94A; }

/* ---------- slide decks (builder) ---------- */
.deck-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.make-slides {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  background: var(--soft); border: 1px dashed var(--accent); border-radius: 10px; padding: 10px 12px; margin: 4px 0 12px; font-size: .92rem;
}
.deck { display: grid; gap: 18px; }
/* Fixed colours so slides look the same as the PowerPoint in light and dark mode. */
.slide-frame {
  container-type: inline-size; aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: #FFFFFF; color: #12201D; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 18px rgba(18, 32, 29, .08); padding: 5.5cqw 6cqw 8cqw 7cqw;
  border-left: 1.4cqw solid #17604E;
}
.slide-frame h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 5.2cqw; line-height: 1.12; margin: 0 0 1.6cqw;
  letter-spacing: -.01em;
}
.slide-frame h3::after { content: ""; display: block; width: 8cqw; height: .55cqw; background: #F0C94A; margin-top: 1.6cqw; border-radius: 1cqw; }
.slide-body { display: grid; gap: 3cqw; font-size: 3.4cqw; line-height: 1.32; }
.slide-body.has-art { grid-template-columns: 1fr 1.1fr; align-items: center; }
.slide-body ul, .slide-body ol { margin: 0; padding-left: 3.4cqw; display: grid; gap: 1.4cqw; }
.slide-body ul li::marker { color: #17604E; }
.slide-body ol li::marker { color: #17604E; font-weight: 700; }
.slide-body b { color: #17604E; }
.art { margin: 0; }
.art svg { width: 100%; height: auto; max-height: 30cqw; display: block; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqw; margin-top: 2cqw; }
.opts div { background: #E3EEEA; border: 1px solid #D3DDD9; border-radius: 1.2cqw; padding: 1.4cqw 1.8cqw; }
.opts div:nth-child(even) { background: #FDF4D6; }
.slide-foot {
  position: absolute; left: 7cqw; right: 4cqw; bottom: 2.6cqw; display: flex; justify-content: space-between; align-items: center;
  font-size: 1.9cqw; color: #34453F;
}
.slide-foot .tag { background: #F0C94A; color: #12201D; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: .5cqw 1.8cqw; font-size: 1.6cqw; }
.k-title .slide-frame { background: #17604E; color: #FFFFFF; border-left: 0; display: flex; flex-direction: column; justify-content: center; padding-left: 7cqw; }
.k-title h3 { font-size: 7cqw; color: #FFFFFF; }
.k-title p { color: #DDEBE6; font-size: 3.2cqw; margin: 0; }
.k-title .slide-foot { color: #F0C94A; }
.notes { margin-top: 6px; font-size: .9rem; }
.notes summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.notes p { margin: 6px 0 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.deck-after { margin-top: 6px; }
@media print {
  .deck-bar, .make-slides, .notes summary { display: none !important; }
  .slide { break-inside: avoid; page-break-inside: avoid; }
  .slide-frame { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =====================================================================
   Lively theme: brighter greens, gold highlights, gentle motion.
   ===================================================================== */
body {
  background:
    radial-gradient(900px 500px at 100% -10%, color-mix(in srgb, var(--chalk) 22%, transparent), transparent 70%),
    radial-gradient(800px 520px at -10% 30%, color-mix(in srgb, var(--mint) 16%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
header.top { position: relative; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); }
header.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--mint) 55%, var(--chalk));
}
button.primary, .btn.primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--mint)));
  border-color: transparent; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent);
}
button.cta, .btn.cta {
  background: linear-gradient(135deg, #FFD95E, var(--chalk)); color: #1B1A12; border: 0; font-weight: 700;
  box-shadow: 0 6px 18px rgb(244 200 66 / .45);
}
button.cta:hover, .btn.cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #FFFFFF; border: 2px solid rgb(255 255 255 / .55); }
.btn.ghost:hover { border-color: #FFFFFF; background: rgb(255 255 255 / .08); }
button, .btn { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease; }

/* Section headings get a gold highlighter and a short lead line. */
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--chalk) 75%, transparent) 62%, color-mix(in srgb, var(--chalk) 75%, transparent) 92%, transparent 92%); padding: 0 .08em; }
section.block > h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: -.015em; margin-bottom: 10px; }
.section-lead { text-align: center; color: var(--muted); font-size: 1.1rem; margin: 0 auto 22px; max-width: 640px; }
section.block > h2 + .cards { margin-top: 18px; }

/* ---------- hero: a bright green panel within the page width ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: 22px; border-radius: 28px; padding: 64px 24px 52px; color: #FFFFFF;
  background:
    radial-gradient(420px 260px at 88% 12%, rgb(244 200 66 / .38), transparent 70%),
    radial-gradient(520px 320px at 8% 100%, rgb(45 190 143 / .45), transparent 70%),
    linear-gradient(135deg, #0E4D3E, #137A5E 55%, #1A9271);
  box-shadow: 0 24px 60px rgb(14 77 62 / .25);
}
.hero::before, .hero::after {
  content: "✦"; position: absolute; color: var(--chalk); opacity: .85; font-size: 34px; top: 34px; left: 7%;
  animation: twinkle 3.2s ease-in-out infinite;
}
.hero::after { content: "✧"; top: auto; bottom: 46px; left: auto; right: 9%; font-size: 44px; animation-delay: 1.4s; }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.8) rotate(20deg); } }
.hero h1 { color: #FFFFFF; }
.hero h1 .hl { color: #FFFFFF; background: linear-gradient(transparent 64%, rgb(244 200 66 / .85) 64%, rgb(244 200 66 / .85) 90%, transparent 90%); }
.hero p.lead { color: #DDF1E9; }
.hero .fine { color: #BFE3D5; }
.hero .flag { background: rgb(255 255 255 / .16); color: #FFFFFF; border: 1px solid rgb(255 255 255 / .3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-chips { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 720px; }
.hero-chips li { background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 600; }

/* ---------- colourful cards ---------- */
.card { border-radius: 14px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
section.block .cards > .card { border-top: 4px solid var(--accent); }
section.block .cards > .card:nth-child(4n+2) { border-top-color: var(--chalk); }
section.block .cards > .card:nth-child(4n+3) { border-top-color: var(--mint); }
section.block .cards > .card:nth-child(4n+4) { border-top-color: #1A9271; }
section.block .cards > .card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(16 33 28 / .10); }
.cards.pricing .card { border-top-width: 4px; }
.card.featured { border: 2px solid var(--accent) !important; background: linear-gradient(180deg, var(--soft), var(--surface) 45%); box-shadow: 0 16px 36px rgb(19 122 94 / .16); }
.feature-card { display: block; text-decoration: none; color: var(--ink); }
.feature-card .fi {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.45rem; margin-bottom: 10px;
  background: var(--soft);
}
.feature-cards .feature-card:nth-child(4n+2) .fi { background: color-mix(in srgb, var(--chalk) 28%, var(--surface)); }
.feature-cards .feature-card:nth-child(4n+3) .fi { background: color-mix(in srgb, var(--mint) 22%, var(--surface)); }
.feature-cards .feature-card:nth-child(4n+4) .fi { background: color-mix(in srgb, #3B82C4 16%, var(--surface)); }
.feature-card:hover h3 { color: var(--accent); }
.tools-showcase { background: linear-gradient(180deg, var(--soft), color-mix(in srgb, var(--chalk) 10%, var(--bg))); }
.trust-band { background: linear-gradient(135deg, color-mix(in srgb, var(--soft) 70%, transparent), transparent); border-radius: 24px; padding-inline: 16px !important; }

/* ---------- builder: wider, brighter ---------- */
.wrap.wide { max-width: 1680px; padding-inline: clamp(16px, 2.4vw, 36px); }
@media (min-width: 900px) { .app { grid-template-columns: 420px minmax(0, 1fr); gap: 24px; } }
@media (min-width: 1400px) { .app { grid-template-columns: 470px minmax(0, 1fr); } }
.builder .panel {
  border-radius: 18px; padding: 20px; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgb(16 33 28 / .06);
}
.builder .panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--mint) 60%, var(--chalk));
}
.builder .brief { overflow-x: hidden; }
@media (min-width: 900px) { .builder .brief { overflow-y: auto; } }
/* The builder stays hidden until app.js has filled it in (tools, notes, banners), so it
   doesn't jump about while loading. After 4 seconds it shows whatever happens. */
.tw:focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; }
body.builder:not(.ready) .app { animation: builder-reveal 0s 4s both; }
@keyframes builder-reveal { from { visibility: hidden; } to { visibility: visible; } }
/* Builder on phones and small tablets: the essentials first, the extras behind one button, Generate always in reach. */
.brief-more-toggle, .go-sum { display: none; }
@media (max-width: 899px) {
  .builder .brief { overflow: clip; }
  body.builder { --float-reserve: 118px; }
  .brief-more-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; text-align: left;
    border-radius: 16px; border: 2px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; cursor: pointer; }
  .brief-more-toggle:hover { border-color: var(--accent); }
  .brief-more-toggle:focus-visible { outline: 4px solid var(--chalk); outline-offset: 3px; }
  .brief-more-text { display: grid; gap: 2px; min-width: 0; }
  .brief-more-text b { color: var(--deep); font-size: 1.05rem; }
  .brief-more-text b::after { content: " ▾"; color: var(--accent); }
  .brief-more.open .brief-more-text b::after { content: " ▴"; }
  .brief-more-text small { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
  .brief-more-tag { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); font-size: .8rem; font-weight: 700; }
  .brief-more:not(.open) .brief-more-body { display: none; }
  .brief-more.open .brief-more-body { margin-top: 12px; }
  .go-bar { position: sticky; bottom: 0; z-index: 5; margin: 0 -20px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); gap: 6px;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgb(14 77 62 / .08); }
  .go-sum { display: block; margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; text-align: center; }
  .go-bar #go, .go-bar #stop { min-height: 52px; font-size: 1.05rem; }
  /* The resource toolbar: buttons big enough to tap. */
  .builder .bar button { min-height: 44px; }
  .builder .tabs .tab { min-height: 44px; }
}
@media (max-width: 560px) {
  /* Header: logo, allowance, Home and account on one row. */
  body.builder header.top .wrap { flex-wrap: nowrap; }
  body.builder header.top .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.builder header.top .nav { flex-wrap: nowrap; gap: 6px; min-width: 0; }
  body.builder .usage { min-width: 0; font-size: .78rem; line-height: 1.25; padding: 4px 10px; }
  body.builder .nav-home { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
}
.builder legend, .builder .lbl { color: var(--accent); font-weight: 600; }
.builder legend::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--chalk); margin-right: 7px; vertical-align: 1px; }
.builder .types { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.builder .tb { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: start; border-radius: 12px; padding: 10px 11px; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.builder .tb .ti { grid-row: span 2; font-style: normal; font-size: 1.2rem; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); }
.builder .type:hover .tb { border-color: var(--accent); transform: translateY(-1px); }
.builder .type input:checked + .tb { background: linear-gradient(135deg, var(--soft), color-mix(in srgb, var(--chalk) 16%, var(--surface))); }
.builder .type input:checked + .tb .ti { background: var(--chalk); }
.builder .chip span { padding: 6px 13px; }
.builder .chip input:checked + span { background: color-mix(in srgb, var(--chalk) 30%, var(--surface)); border-color: var(--chalk); color: var(--ink); }
.builder .chip input:checked + span::before { color: var(--accent); }
.builder #go {
  background: linear-gradient(135deg, #FFD95E, var(--chalk)); color: #1B1A12; border: 0; font-weight: 700; font-size: 1.05rem;
  padding: 14px 16px; border-radius: 12px; box-shadow: 0 8px 20px rgb(244 200 66 / .4);
}
.builder #go:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); }
.builder .tab { font-weight: 700; font-size: 1rem; }
.builder .tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--chalk); }
.builder .doc { font-size: 1.04rem; }
.builder .doc p, .builder .doc ul, .builder .doc ol { max-width: 90ch; }
.builder .doc h1 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.builder .doc h2 { border-bottom: 2px solid var(--soft); }
.builder .doc h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--chalk); margin-right: 8px; vertical-align: 1px; }
.builder .doc table th { background: var(--soft); }
.builder #outPanel { min-height: 70vh; }
.builder .deck { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.builder .usage { background: var(--soft); color: var(--accent); border-radius: 999px; padding: 5px 12px; font-weight: 500; }
@media (max-width: 899px) { .builder .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- school plan with licence picker (pricing) ---------- */
.school-plan {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; margin-top: 26px;
  border-radius: 24px; padding: 30px; color: #FFFFFF;
  background:
    radial-gradient(420px 260px at 95% 0%, rgb(244 200 66 / .32), transparent 70%),
    linear-gradient(135deg, #0E4D3E, #137A5E 60%, #1A9271);
  box-shadow: 0 22px 50px rgb(14 77 62 / .22); scroll-margin-top: 16px;
}
.school-info h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 10px 0 6px; letter-spacing: -.015em; }
.school-info .flag { background: var(--chalk); color: #1B1A12; }
.school-lead { color: #DDF1E9; font-size: 1.08rem; margin: 0 0 16px; max-width: 560px; }
.school-lead b { color: #FFFFFF; }
.school-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.school-list li { position: relative; padding-left: 30px; color: #DDF1E9; line-height: 1.4; }
.school-list li b { color: #FFFFFF; font-weight: 600; }
.school-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 999px;
  background: var(--chalk); color: #1B1A12; font-size: .74rem; font-weight: 700; display: grid; place-items: center;
}
.school-list li.soon::before { content: "★"; background: rgb(255 255 255 / .18); color: #FFE08A; }
.school-list li.soon::after {
  content: "Coming soon"; margin-left: 8px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; padding: 1px 8px; white-space: nowrap;
}
.school-quote { color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 14px 34px rgb(0 0 0 / .18); position: sticky; top: 16px; }
.school-quote .lbl { color: var(--accent); }
.lic-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.lic { padding: 10px 6px; border-radius: 10px; font-size: 1rem; font-weight: 700; }
.lic[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.lic-custom { margin-bottom: 12px; }
.quote-price { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1.05; color: var(--ink); margin-top: 4px; }
.quote-price small { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--muted); }
.quote-sub { color: var(--muted); margin: 6px 0 10px; min-height: 1.5em; }
.quote-facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.school-quote .quote-facts { padding: 0; }
.quote-facts li:empty { display: none; }
.quote-facts li { background: var(--soft); color: var(--accent); border-radius: 999px; padding: 4px 11px; font-size: .86rem; font-weight: 600; }
.quote-facts li + li { background: color-mix(in srgb, var(--chalk) 30%, var(--surface)); color: var(--ink); }
.school-quote #qGo { width: 100%; }
.school-quote .fine { margin-top: 10px; }
@media (max-width: 860px) {
  .school-plan { grid-template-columns: 1fr; padding: 22px 18px; }
  .school-quote { position: static; }
}
/* Phones: the school plan opens short; buttons show the full list and the price calculator. */
.school-toggle { display: none; }
@media (max-width: 700px) {
  .school-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
  .school-plan .btn.school-toggle { background: #FFFFFF; color: var(--deep); border: 2px solid #FFFFFF; font-weight: 700; }
  .school-plan .cta.school-toggle { width: 100%; }
  .school-toggle:focus-visible { outline: 4px solid var(--chalk); outline-offset: 3px; }
  .school-plan.compact-incl .school-incl, .school-plan.compact-quote .school-quote { display: none; }
  .school-plan:not(.compact-incl) .btn.school-toggle { margin-bottom: 14px; }
  .school-quote .lic-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .school-quote .lic, .cards.pricing .card > button { min-height: 48px; }
}

/* ---------- school admin page and school branding ---------- */
.school-admin { padding-block: 22px 48px; }
.school-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.school-head h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 8px 0 4px; letter-spacing: -.015em; }
.school-head img { max-height: 64px; max-width: 220px; background: #fff; border-radius: 10px; padding: 6px 10px; border: 1px solid var(--line); }
.school-admin .panel { margin-bottom: 18px; }
.school-admin .panel h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 4px 0 10px; }
.school-admin .admin-grid { gap: 18px; }
.add-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.add-row .inline { display: inline-flex; align-items: center; gap: 8px; }
.add-row .inline select { width: auto; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.bar-row .bar-track { height: 12px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar-row .bar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--accent)); border-radius: 999px; }
.bar-val { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); white-space: nowrap; }
.status-pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; background: color-mix(in srgb, var(--chalk) 30%, var(--surface)); }
.status-pill.on { background: var(--soft); color: var(--accent); }
.school-admin .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.logo-box { display: grid; place-items: center; min-height: 96px; border: 1px dashed var(--line); border-radius: 12px; background: #FFFFFF; margin: 8px 0; padding: 10px; }
.logo-box img { max-height: 80px; max-width: 100%; }
.school-brand { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.school-brand img { max-height: 48px; max-width: 200px; }
.sso-buttons { display: grid; gap: 8px; margin: 4px 0 2px; }
.pupil-signin { border: 2px solid #F4C842; border-radius: 16px; padding: 10px 14px; background: #FFFBEA; margin-top: 8px; }
.pupil-signin summary { font-weight: 700; cursor: pointer; min-height: 32px; }
.new-flag { display: inline-block; background: #F4C842; color: #0E4D3E; font-weight: 700; font-size: .75rem; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.sso-btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; font-weight: 600; text-decoration: none; }
.sso-btn svg { width: 18px; height: 18px; flex: none; }
.launch-offer { text-align: center; margin: -6px auto 18px; padding: 10px 18px; width: fit-content; max-width: 100%; border-radius: 999px; background: color-mix(in srgb, var(--chalk) 30%, var(--surface)); border: 1px solid color-mix(in srgb, var(--chalk) 60%, transparent); }
.launch-offer[hidden] { display: none; }
.adult-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; cursor: pointer; }
.adult-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.adult-check[hidden] { display: none; }
.adult-dialog { max-width: 440px; }
.adult-dialog h2 { margin: 0; font-family: var(--font-display); }
.adult-dialog p { margin: 0; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; margin: 6px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
@media print { .school-brand { display: flex !important; } }

/* ---------- "Partner with us" (nav link and page) ---------- */
.nav-partner {
  text-decoration: none; font-weight: 700; color: #1B1A12 !important; padding: 7px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #FFD95E, var(--chalk)); box-shadow: 0 3px 10px rgb(244 200 66 / .35);
}
.nav-partner:hover { filter: brightness(1.05); }
.partner-hero { margin-bottom: 8px; }
.partner-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.partner-card .fi { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; font-size: 1.5rem; background: var(--soft); margin-bottom: 10px; }
.partner-card p { margin-bottom: 12px; }
.partner-card .ticks { font-size: .94rem; }
.emanations {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; margin: 24px 0; padding: 32px;
  border-radius: 24px; background: linear-gradient(135deg, #FFFFFF, #F3ECFA 55%, #E6F6F5); border: 1px solid var(--line);
  color: #10211C; scroll-margin-top: 16px;
}
.em-logo {
  display: flex; align-items: center; gap: 14px; text-decoration: none; background: #FFFFFF; border-radius: 18px; padding: 20px 22px;
  box-shadow: 0 12px 30px rgb(16 33 28 / .10); transition: transform .15s ease, box-shadow .15s ease;
}
.em-logo:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgb(16 33 28 / .16); }
.em-logo img { width: 52px; height: auto; flex: none; }
.em-logo b { display: block; font-family: var(--font-display); font-size: 1.55rem; letter-spacing: .06em; color: #2C8F90; line-height: 1; }
.em-logo small { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: #7A5BA8; margin-top: 6px; }
.em-text h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0; }
.em-text p { color: #3E524C; margin: 0 0 10px; }
.em-list { margin: 0 0 18px; padding-left: 20px; color: #3E524C; display: grid; gap: 4px; }
.emanations .btn.ghost { color: #10211C; border-color: #B9C9C3; }
.emanations .btn.ghost:hover { border-color: #10211C; background: rgb(0 0 0 / .03); }
.partner-form { max-width: 820px; margin: 0 auto; }
@media (max-width: 760px) { .emanations { grid-template-columns: 1fr; padding: 22px 18px; } .em-logo { justify-content: center; } }


/* =====================================================================
   More colour: a playful secondary palette used for accents only, so the
   green and gold brand stays in charge.
   ===================================================================== */
:root { --coral: #FF7A59; --sky: #3BA7E8; --violet: #8B6CF0; --pink: #F25C9A; }
body {
  background:
    radial-gradient(700px 420px at 105% 8%, color-mix(in srgb, var(--chalk) 24%, transparent), transparent 70%),
    radial-gradient(640px 460px at -8% 26%, color-mix(in srgb, var(--mint) 18%, transparent), transparent 70%),
    radial-gradient(620px 420px at 100% 62%, color-mix(in srgb, var(--sky) 12%, transparent), transparent 70%),
    radial-gradient(560px 420px at 0% 88%, color-mix(in srgb, var(--violet) 10%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
header.top::after { background: linear-gradient(90deg, var(--accent), var(--mint) 30%, var(--sky) 55%, var(--violet) 75%, var(--chalk)); }

/* Cards cycle through the palette on their top edge. */
section.block .cards > .card { border-top-color: var(--accent); }
section.block .cards > .card:nth-child(5n+2) { border-top-color: var(--chalk); }
section.block .cards > .card:nth-child(5n+3) { border-top-color: var(--sky); }
section.block .cards > .card:nth-child(5n+4) { border-top-color: var(--coral); }
section.block .cards > .card:nth-child(5n+5) { border-top-color: var(--violet); }
.feature-cards .feature-card:nth-child(5n+1) .fi { background: color-mix(in srgb, var(--mint) 22%, var(--surface)); }
.feature-cards .feature-card:nth-child(5n+2) .fi { background: color-mix(in srgb, var(--chalk) 32%, var(--surface)); }
.feature-cards .feature-card:nth-child(5n+3) .fi { background: color-mix(in srgb, var(--sky) 20%, var(--surface)); }
.feature-cards .feature-card:nth-child(5n+4) .fi { background: color-mix(in srgb, var(--coral) 20%, var(--surface)); }
.feature-cards .feature-card:nth-child(5n+5) .fi { background: color-mix(in srgb, var(--violet) 18%, var(--surface)); }
.feature-cards .feature-card:nth-child(5n+3):hover h3 { color: #1E7BB8; }
.feature-cards .feature-card:nth-child(5n+4):hover h3 { color: #D4512F; }
.feature-cards .feature-card:nth-child(5n+5):hover h3 { color: #6A4FD0; }

/* Stat strip: each number in its own colour. */

/* Tool carousel cards: coloured top edge matching the preview tint. */
.tool-card a:has(.tone-y) { border-top-color: var(--chalk); }
.tool-card a:has(.tone-b) { border-top-color: var(--sky); }
.tool-card a:has(.tone-o) { border-top-color: var(--coral); }
.tool-card a:has(.tone-p) { border-top-color: var(--violet); }
.tools-showcase {
  background:
    radial-gradient(520px 260px at 90% 0%, color-mix(in srgb, var(--sky) 16%, transparent), transparent 70%),
    radial-gradient(520px 260px at 0% 100%, color-mix(in srgb, var(--coral) 12%, transparent), transparent 70%),
    linear-gradient(180deg, var(--soft), color-mix(in srgb, var(--chalk) 10%, var(--bg)));
}

/* Feature rows: each eyebrow and illustration panel gets its own colour. */
.features .feature:nth-child(2) .eyebrow { color: #D4512F; }
.features .feature:nth-child(3) .eyebrow { color: #1E7BB8; }
.features .feature:nth-child(4) .eyebrow { color: #6A4FD0; }
.features .feature:nth-child(2) .feature-art { background: linear-gradient(135deg, #FFE0C7, #FDF4D6); }
.features .feature:nth-child(4) .feature-art { background: linear-gradient(135deg, #E9E1FF, #E3F1FB); }
.features .feature:nth-child(2) .ticks li::before { background: #FFB59E; }
.features .feature:nth-child(3) .ticks li::before { background: #9ED3F5; }
.features .feature:nth-child(4) .ticks li::before { background: #CDBEFA; }

/* Safety band and pricing: soft multicolour washes. */
.trust-band { background: linear-gradient(135deg, color-mix(in srgb, var(--sky) 12%, transparent), color-mix(in srgb, var(--mint) 12%, transparent) 60%, color-mix(in srgb, var(--violet) 8%, transparent)); }
.cards.pricing .card:nth-child(1) { border-top-color: var(--sky); }
.cards.pricing .card:nth-child(2) { border-top-color: var(--coral); }

/* ---------- About Lessonsmith (bottom of home page) ---------- */
.brand-story {
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: start; margin: 36px 0 12px;
  padding: 24px 26px; border-radius: 24px; border: 1px solid var(--line);
  background:
    radial-gradient(360px 200px at 100% 0%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%),
    radial-gradient(360px 200px at 0% 100%, color-mix(in srgb, var(--mint) 18%, transparent), transparent 70%),
    var(--surface);
}
.bs-logo { width: 120px; height: 120px; border-radius: 22px; display: block; box-shadow: 0 10px 24px rgb(14 77 62 / .22); }
.bs-eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.bs-text h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 4px 0 6px; }
.bs-text p { color: var(--muted); font-size: .95rem; margin: 0 0 6px; max-width: 72ch; }
@media (max-width: 560px) {
  .brand-story { grid-template-columns: 1fr; text-align: center; padding: 20px 16px; }
  .bs-logo { margin: 0 auto; width: 100px; height: 100px; }
}

/* Builder: the same playful accents on tool tiles and panel strips. */
.builder .panel::before { background: linear-gradient(90deg, var(--accent), var(--mint) 30%, var(--sky) 55%, var(--violet) 78%, var(--chalk)); }
.builder .type:nth-child(5n+1) .tb .ti { background: color-mix(in srgb, var(--mint) 22%, var(--surface)); }
.builder .type:nth-child(5n+2) .tb .ti { background: color-mix(in srgb, var(--chalk) 32%, var(--surface)); }
.builder .type:nth-child(5n+3) .tb .ti { background: color-mix(in srgb, var(--sky) 20%, var(--surface)); }
.builder .type:nth-child(5n+4) .tb .ti { background: color-mix(in srgb, var(--coral) 20%, var(--surface)); }
.builder .type:nth-child(5n+5) .tb .ti { background: color-mix(in srgb, var(--violet) 18%, var(--surface)); }
.builder .type input:checked + .tb .ti { background: var(--chalk); }
.builder .doc h2:nth-of-type(5n+2)::before { background: var(--sky); }
.builder .doc h2:nth-of-type(5n+3)::before { background: var(--coral); }
.builder .doc h2:nth-of-type(5n+4)::before { background: var(--violet); }
.builder .doc h2:nth-of-type(5n+5)::before { background: var(--mint); }

/* About band: logo beside text that spans the full width. */
.brand-story .bs-text p { max-width: none; }
.bs-text h2#about-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.bs-lead { font-size: 1.08rem !important; color: var(--ink) !important; }
.bs-pillars { list-style: none; padding: 0; margin: 14px 0 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .bs-pillars { grid-template-columns: 1fr; } }
.bs-pillars li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; color: var(--muted); font-size: .92rem; line-height: 1.45; text-align: left; }
.bs-pillars span { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.bs-pillars b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }

/* ---------- signed-in badge and account menu (builder) ---------- */
details.account { position: relative; }
details.account summary { list-style: none; cursor: pointer; border-radius: 999px; }
details.account summary::-webkit-details-marker { display: none; }
details.account summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: #FFFFFF;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--chalk) 70%, transparent);
  transition: transform .15s ease;
}
details.account summary:hover .avatar { transform: scale(1.06); }
.avatar.big { width: 48px; height: 48px; font-size: 1.15rem; box-shadow: none; flex: none; }
.account-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: min(300px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  box-shadow: 0 18px 40px rgb(0 0 0 / .14); display: grid; gap: 2px;
}
.account-head { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-head b { display: block; font-family: var(--font-display); overflow-wrap: anywhere; }
.account-head span:not(.avatar) { display: block; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.account-head .acc-plan { color: var(--accent); font-weight: 600; margin-top: 2px; }
.account-panel a, .account-panel button {
  display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.account-panel a:hover, .account-panel button:hover { background: var(--soft); }
.account-panel a[hidden] { display: none !important; }
/* The header's blur makes its own layer; lift it so menus open above the page. */
header.top { z-index: 40; }

/* ---------- staff training studio (school admin) ---------- */
.cpd-studio {
  background:
    radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%),
    radial-gradient(420px 220px at 0% 100%, color-mix(in srgb, var(--chalk) 18%, transparent), transparent 70%),
    var(--surface);
}
.cpd-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.cpd-head > div { flex: 1 1 420px; }
.cpd-head h2 { margin: 8px 0 6px !important; font-size: 1.4rem !important; }
.cpd-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cpd-badges li { border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .86rem; background: var(--surface); border: 1px solid var(--line); }
.cpd-badges li:nth-child(1) { border-color: var(--chalk); }
.cpd-badges li:nth-child(2) { border-color: var(--coral); }
.cpd-badges li:nth-child(3) { border-color: var(--sky); }
.cpd-badges li:nth-child(4) { border-color: var(--violet); }
.cpd-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cpd-form .cpd-wide { grid-column: span 2; }
.cpd-go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cpd-form .error:empty { display: none; }
.cpd-done { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
@media (max-width: 900px) { .cpd-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cpd-form { grid-template-columns: 1fr; } .cpd-form .cpd-wide { grid-column: auto; } }

/* ---------- "CPDs that stick" leadership showcase (home page) ---------- */
.cpd-showcase { margin-top: 72px; }
.cpd-intro { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.cpd-eyebrow { display: inline-block; margin: 0 0 10px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(90deg, #FFE0C7, #E9E1FF); color: #6A4FD0; font-weight: 700; font-size: .9rem; }
.cpd-intro h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 14px; }
.cpd-lead { color: var(--muted); font-size: 1.15rem; margin: 0; }
.cpd-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 28px; border-radius: 28px; background: linear-gradient(135deg, #FFF1E6, #EEE8FF 55%, #E3F1FB); color: #12201D; }
.cpd-hero img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 18px 40px rgba(18, 32, 29, .16); }
.cpd-hero h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; margin: 0 0 16px; }
.cpd-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.cpd-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; }
.cpd-steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--coral, #FF7A59); }
.cpd-steps b { font-family: var(--font-display); }
.cpd-steps span { color: #34453F; font-size: .95rem; }
.cpd-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cpd-cta .btn:not(.primary) { background: #fff; color: #12201D; border-color: #D3DDD9; }
.cpd-techniques { margin-top: 34px; text-align: center; }
.cpd-techniques h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 12px; }
.cpd-sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; }
.cpd-sources .src { padding: 6px 14px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: #12201D; }
.src.s1 { background: #CFE5DC; } .src.s2 { background: #F7E3A1; } .src.s3 { background: #DCEFFB; } .src.s4 { background: #FFD6C9; }
.cpd-chips { list-style: none; padding: 0; margin: 0 auto; max-width: 920px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cpd-chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; font-weight: 600; }
.cpd-chips li:nth-child(4n+1) { border-color: #FFB59E; }
.cpd-chips li:nth-child(4n+2) { border-color: #9ED3F5; }
.cpd-chips li:nth-child(4n+3) { border-color: #CDBEFA; }
.cpd-chips li:nth-child(4n) { border-color: #9FD8C3; }
.cpd-audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.aud { padding: 20px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.aud span { font-size: 1.8rem; }
.aud h3 { font-family: var(--font-display); margin: 6px 0; font-size: 1.2rem; }
.aud p { margin: 0; color: var(--muted); }
.cpd-note { text-align: center; margin-top: 18px; }
@media (max-width: 900px) {
  .cpd-hero { grid-template-columns: 1fr; padding: 18px; gap: 22px; }
  .cpd-audiences { grid-template-columns: 1fr; }
}
.cpd-sub { margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.src.s5 { background: #E9E1FF; } .src.s6 { background: #FFE6A8; }

/* ---------- contrast and scale pass (all pages) ----------
   Darker ink and greys on light backgrounds, slightly larger text, icons and graphics. */
html { font-size: 106.25%; }
:root {
  --bg: #F6FBF8; --ink: #07120E; --muted: #2F423B; --line: #B9D0C6;
  --accent: #0B6A4F; --soft: #DCF0E6; --deep: #0A4436; --gold-text: #8A6408; --danger: #9E1F18;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0A1310; --ink: #F2F7F5; --muted: #B5C6C0; --line: #33504A; --accent: #6FD4B6; }
}
:root[data-theme="dark"] { --bg: #0A1310; --ink: #F2F7F5; --muted: #B5C6C0; --line: #33504A; --accent: #6FD4B6; }
.hint, .fine { font-size: .9rem; }
.card h3 { font-size: 1.2rem; }
.tb b { font-size: 1rem; }
.tb span { font-size: .86rem; }
.brand svg { width: 44px; height: 44px; }
.brand-name { font-size: 1.55rem; }
.builder .tb { column-gap: 11px; }
.builder .tb .ti { width: 42px; height: 42px; font-size: 1.5rem; border-radius: 12px; }
.tool-preview { height: 196px; }
.feature-art { min-height: 400px; }
.mock { font-size: .95rem; }
.feature-text > p { font-size: 1.15rem; }
.aud span { font-size: 2.4rem; }
.cpd-steps li { grid-template-columns: 40px 1fr; }
.cpd-steps li::before { width: 40px; height: 40px; font-size: 1.05rem; }
.cpd-chips li { font-size: .98rem; padding: 8px 16px; }
.feature-card .fi { width: 56px; height: 56px; font-size: 1.85rem; border-radius: 14px; }
.partner-card .fi { width: 58px; height: 58px; font-size: 1.8rem; }

/* CPD showcase: calmer palette to match the rest of the page, and feature rows for the formats. */
.cpd-eyebrow { background: var(--soft); color: var(--accent); border: 1px solid var(--line); }
.cpd-hero { background: linear-gradient(135deg, #E3EEF8, #EAF4EF); border: 1px solid #CFE0D8; }
.cpd-steps li::before { background: #0B6A4F; }
.cpd-steps li:nth-child(even)::before { background: #F4C842; color: #1B1A12; }
.cpd-sources .src { background: #DCF0E6; border: 1px solid #B9D0C6; }
.cpd-sources .src:nth-child(even) { background: #FDF4D6; border-color: #EAD48C; }
.cpd-chips li, .cpd-chips li:nth-child(n) { border-color: var(--line); }
.cpd-chips li:hover { border-color: var(--accent); color: var(--accent); }
.cpd-features { margin-top: 48px; }
.cpd-art { padding: 32px; min-height: 420px; }
.cpd-art img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 14px 32px rgba(18, 32, 29, .14); background: #FFFFFF; }
.cpd-badge { position: relative; }
@media (max-width: 900px) { .cpd-art { min-height: 0; padding: 20px 16px; } }
.cpd-features .feature > * { min-width: 0; }

/* Techniques: two rows of running pills, kept within the page width. */
.pill-marquee {
  display: grid; gap: 10px; overflow: hidden; margin: 6px auto 0; max-width: 1100px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pill-row { display: flex; width: max-content; animation: pill-run 60s linear infinite; }
.pill-row.reverse { animation-direction: reverse; animation-duration: 68s; }
.pill-marquee:hover .pill-row, .pill-marquee:focus-within .pill-row { animation-play-state: paused; }
.pill-row .cpd-chips { flex-wrap: nowrap; max-width: none; margin: 0; padding-right: 8px; }
.pill-row .cpd-chips li { white-space: nowrap; }
@keyframes pill-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .pill-row { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .pill-row .cpd-chips { flex-wrap: wrap; justify-content: center; }
  .pill-row .cpd-chips[aria-hidden] { display: none; }
}

/* Leaders see only their school's name and the staff training studio. */
.leader-view #page > :not(.school-head):not(#cpdPanel) { display: none; }
.leader-view #headLogo { display: none; }
.cpd-seats { margin-top: 30px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px 28px; align-items: center; }
.cpd-seats h3 { grid-column: 1 / -1; font-family: var(--font-display); font-size: 1.4rem; margin: 0; }
.cpd-seats p { margin: 0; color: var(--muted); }
.seat-scale { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seat-scale li { text-align: center; padding: 12px 8px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.seat-scale b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); }
.seat-scale span { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .cpd-seats { grid-template-columns: 1fr; } }
.acts select { width: auto; min-width: 150px; padding: 6px 30px 6px 10px; }
@media (max-width: 600px) {
  .seat-scale { gap: 6px; }
  .seat-scale li { padding: 10px 4px; }
  .seat-scale b { font-size: 1.25rem; white-space: nowrap; }
  .seat-scale span { font-size: .78rem; }
}

/* Slides: text scales with how much is on the slide; time badge and activity timings. */
.slide-frame { display: flex; flex-direction: column; }
.slide-frame .slide-body { flex: 1; align-content: center; }
.d-xl .slide-body { font-size: 4.9cqw; line-height: 1.25; }
.d-lg .slide-body { font-size: 4.1cqw; line-height: 1.28; }
.d-md .slide-body { font-size: 3.4cqw; align-content: start; }
.d-xl .slide-body ul, .d-xl .slide-body ol { gap: 2.2cqw; }
.d-lg .slide-body ul, .d-lg .slide-body ol { gap: 1.8cqw; }
.time-badge { position: absolute; top: 4cqw; right: 4cqw; background: #F0C94A; color: #12201D; font-weight: 700; font-size: 2.1cqw; border-radius: 999px; padding: .7cqw 2cqw; }
.slide-frame:has(.time-badge) h3 { padding-right: 15cqw; }
.timing { margin: 2cqw 0 0; padding: 1.3cqw 2cqw; background: #FDF4D6; border: 1px solid #F0C94A; border-radius: 1.2cqw; color: #17604E; font-weight: 700; font-size: 2.4cqw; }
.timing b { color: #12201D; }
.opts div { font-size: .92em; }

/* --fit is set by slides.js to shrink text that would overflow the frame. */
.slide-frame h3 { font-size: calc(5.2cqw * max(var(--fit, 1), .75)); }
.k-title h3 { font-size: calc(7cqw * max(var(--fit, 1), .7)); }
.slide-body, .d-md .slide-body { font-size: calc(3.4cqw * var(--fit, 1)); }
.d-xl .slide-body { font-size: calc(4.9cqw * var(--fit, 1)); }
.d-lg .slide-body { font-size: calc(4.1cqw * var(--fit, 1)); }
.timing { font-size: calc(2.4cqw * max(var(--fit, 1), .8)); }
.slide-body ul, .slide-body ol { gap: calc(1.4cqw * var(--fit, 1)); }
.notes p { font-size: .95rem; line-height: 1.5; }

/* The slide card, not the frame, is the size container, so the frame's own
   padding (in cqw) scales with the slide instead of the browser window. */
.slide { container-type: inline-size; }
.slide-frame { container-type: normal; }
.notes ul { margin: 6px 0 0; padding: 10px 12px 10px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 4px; font-size: .95rem; }
.slide-frame .slide-body { min-height: 0; overflow: hidden; }
.slide-foot { gap: 2cqw; }
.slide-foot .timing { margin: 0; flex: 1; text-align: center; padding: .6cqw 1.8cqw; border-radius: 999px; font-size: 1.8cqw; background: #FDF4D6; border: 1px solid #F0C94A; color: #17604E; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-frame a { color: #1E6FB8; text-decoration: underline; text-underline-offset: .15em; }
.art svg { max-height: 36cqw; }

/* ---------- AI Labs advert (home page) ---------- */
.nav-labs { font-weight: 700; }
.labs-ad-icon { flex: none; width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 24px rgb(14 77 62 / .25); }
.labs-mission-card { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; padding: 12px 14px; }
.labs-mission-card span { color: var(--muted); font-size: .95rem; }
.labs-ad-points { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.labs-ad-points li { background: var(--soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; color: var(--muted); font-size: .95rem; }
.labs-ad-points b { color: var(--ink); font-size: 1rem; }
.labs-ad-price { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 18px; }
.labs-ad-price .card { display: flex; gap: 14px; align-items: center; position: relative; margin: 0; }
.labs-ad-price .card img { flex: none; border-radius: 14px; }
.labs-ad-price h3 { margin: 0; }
.labs-ad-price .price { margin: 2px 0; font-size: 1.6rem; }
@media (max-width: 760px) {
  .labs-ad-points { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Latest update banner (home page) ---------- */
.update-ribbon { padding: 36px 0 8px; }
.update-banner { position: relative; display: block; text-decoration: none; color: var(--ink); }
.update-label {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-display);
  font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.8rem); letter-spacing: -.01em;
}
.update-new {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-ink);
  background: linear-gradient(110deg, #F4C842 0%, #FFE9A3 45%, #F4C842 60%); background-size: 250% 100%;
  border-radius: 999px; padding: 6px 12px; animation: update-shimmer 2.8s linear infinite;
}
.update-arrow { color: var(--accent); transition: transform .25s ease; }
.update-banner:hover .update-arrow, .update-banner:focus-visible .update-arrow { transform: translateX(6px); }
.update-frame {
  position: relative; display: block; overflow: hidden; border-radius: 28px;
  box-shadow: 0 24px 60px rgb(14 77 62 / .28); transition: transform .3s ease, box-shadow .3s ease;
}
.update-banner:hover .update-frame, .update-banner:focus-visible .update-frame { transform: translateY(-4px) scale(1.005); box-shadow: 0 30px 70px rgb(14 77 62 / .36); }
.update-frame img { display: block; width: 100%; height: auto; }
/* A gold ribbon wrapping the top-right corner, over the nickname badge. */
.corner-ribbon { position: absolute; top: 0; right: 0; width: 38%; aspect-ratio: 1; overflow: hidden; pointer-events: none; }
.corner-ribbon span {
  position: absolute; top: 22%; right: -24%; width: 125%; transform: rotate(45deg); text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(.72rem, 1.55vw, 1.2rem); color: #1B1A12;
  padding: clamp(6px, 1vw, 12px) 0; letter-spacing: .02em; white-space: nowrap;
  background: linear-gradient(110deg, #E0A91F 0%, #FFE38A 35%, #F4C842 50%, #FFE38A 65%, #E0A91F 100%); background-size: 250% 100%;
  box-shadow: 0 6px 16px rgb(0 0 0 / .3); animation: update-shimmer 3.2s linear infinite;
  border-top: 2px solid rgb(255 255 255 / .6); border-bottom: 2px solid #B8870F;
}
.corner-ribbon em { font-style: normal; }
/* Sparkles rising from the banner up towards the AI Labs title. */
.update-sparkles { position: absolute; inset: 0; pointer-events: none; }
.update-sparkles i {
  position: absolute; left: var(--x); bottom: -20px; width: var(--s); height: var(--s); opacity: 0;
  background: #F4C842; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 6px rgb(255 226 120 / .9)); animation: update-rise 4.2s ease-in var(--d) infinite;
}
.update-cta {
  position: absolute; left: 3%; bottom: 6%; display: inline-flex; gap: 8px; align-items: center;
  background: #FFFFFF; color: var(--deep); font-family: var(--font-display); font-weight: 700; font-size: clamp(.9rem, 1.6vw, 1.2rem);
  border-radius: 999px; padding: 10px 20px; box-shadow: 0 10px 26px rgb(0 0 0 / .25); transition: transform .25s ease;
}
.update-banner:hover .update-cta { transform: translateX(4px); }
@keyframes update-shimmer { to { background-position: -250% 0; } }
@keyframes update-rise {
  0% { transform: translateY(0) scale(.4) rotate(0); opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: .9; }
  100% { transform: translateY(calc(-1 * var(--rise, 650px))) scale(1.1) rotate(180deg); opacity: 0; }
}
.nav-labs { position: relative; }
.nav-labs::after { content: "✦"; position: absolute; top: -8px; right: -10px; color: var(--chalk); font-size: .8rem; animation: update-twinkle 1.6s ease-in-out infinite; }
@keyframes update-twinkle { 50% { opacity: .2; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) {
  .update-new, .corner-ribbon span, .update-sparkles i, .nav-labs::after { animation: none; }
  .update-sparkles { display: none; }
}

/* ---------- AI Labs page ---------- */
.labs-page-main { padding-bottom: 40px; }
.labs-page-hero { display: flex; gap: 20px; align-items: center; margin: 32px 0 20px; }
.labs-page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; margin: 4px 0 0; }
.labs-page-hero .labs-ad-icon { width: 96px; height: 96px; }
.labs-video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--deep);
  box-shadow: 0 24px 60px rgb(14 77 62 / .3); border: 4px solid var(--chalk);
}
.labs-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Press-play cover: the video host loads only when someone presses play. */
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; margin: 0; padding: 24px;
  display: grid; place-content: center; justify-items: center; gap: 12px; cursor: pointer; color: #fff; text-align: center;
  background: radial-gradient(circle at 18% 22%, rgb(244 200 66 / .28), transparent 40%), radial-gradient(circle at 82% 78%, rgb(45 190 143 / .35), transparent 45%), linear-gradient(135deg, #0B2A22, #0E4D3E 55%, #137A5E);
  font: inherit;
}
.video-play-icon {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; padding-left: 8px;
  background: var(--chalk); color: #0E4D3E; font-size: 2.6rem; box-shadow: 0 12px 30px rgb(0 0 0 / .3); transition: transform .15s;
}
.video-play-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.9rem); line-height: 1.2; }
.video-play-note { color: #DDF3EA; font-size: 1rem; max-width: 520px; }
.video-play:hover .video-play-icon { transform: scale(1.06); }
.video-play:focus-visible { outline: 4px solid var(--chalk); outline-offset: -8px; }
@media (max-width: 700px) {
  .video-play { gap: 6px; padding: 12px; }
  .video-play-icon { width: 60px; height: 60px; font-size: 1.6rem; padding-left: 5px; }
  .video-play-text { font-size: 1.05rem; }
  .video-play-note { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .video-play-icon { transition: none; } .video-play:hover .video-play-icon { transform: none; } }
.labs-video-offer { text-align: center; font-size: 1.1rem; margin: 14px 0 0; }
.labs-page-lead { text-align: center; max-width: 820px; margin: 0 auto; }
.labs-missions-big { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.labs-missions-big .labs-mission-card { padding: 18px; }
.labs-missions-big .labs-mission-card > b { font-size: 1.15rem; }
.labs-steps-big { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.labs-steps-big li { display: grid; justify-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; font-weight: 600; text-align: center; }
.labs-steps-big b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); }
.labs-safe { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.labs-safe .card { margin: 0; }
.labs-school-offer {
  position: relative; overflow: hidden; display: flex; gap: 24px; align-items: center; justify-content: space-between;
  background: radial-gradient(500px 300px at 90% 0%, rgb(244 200 66 / .4), transparent 70%), linear-gradient(135deg, var(--deep), var(--accent));
  color: #FFFFFF; border-radius: 28px; padding: clamp(24px, 4vw, 44px); border: 4px solid var(--chalk); margin-bottom: 18px;
}
.labs-school-offer img { flex: none; border-radius: 32px; box-shadow: 0 14px 34px rgb(0 0 0 / .3); }
.labs-offer-kicker { font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--chalk); margin: 0; font-size: .85rem; }
.labs-school-offer h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.1; margin: 8px 0 12px; }
.labs-school-offer h3 span { color: var(--chalk); }
.labs-school-offer p { max-width: 680px; }
.labs-school-offer .btn:not(.cta) { background: transparent; color: #FFFFFF; border: 2px solid rgb(255 255 255 / .6); }
.labs-offer-ribbon {
  position: absolute; top: 22px; right: -46px; transform: rotate(45deg); width: 190px; text-align: center; padding: 6px 0;
  background: linear-gradient(110deg, #E0A91F, #FFE38A 50%, #E0A91F); color: #1B1A12; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem;
}
.labs-offer-or { text-align: center; color: var(--muted); font-size: 1.05rem; }
.labs-offer-buy { text-align: center; }
@media (max-width: 760px) {
  .labs-page-hero { flex-direction: column; align-items: flex-start; }
  .labs-missions-big, .labs-safe { grid-template-columns: minmax(0, 1fr); }
  .labs-steps-big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .labs-school-offer { flex-direction: column; align-items: flex-start; }
  .labs-school-offer img { width: 100px; height: 100px; }
  .update-cta { position: static; margin: 10px; }
  .update-sparkles i { --rise: 300px; }
  .corner-ribbon { width: 46%; }
  .corner-ribbon em { display: none; }
}

/* Home: free coding experiments (Blocks, Python turtle, Python) */
.ex-home-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.ex-home-pick a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 20px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgb(14 77 62 / .06); }
.ex-home-pick a:hover, .ex-home-pick a:focus-visible { border-color: var(--accent); background: var(--soft); }
.ex-home-pick span { grid-row: span 2; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 2rem; background: var(--soft); }
.ex-home-pick b { font-family: var(--font-display); font-size: 1.3rem; color: var(--deep); }
.ex-home-pick small { font-size: .98rem; color: var(--muted); }
@media (max-width: 860px) { .ex-home-pick { grid-template-columns: minmax(0, 1fr); } }
/* The Revision Forge card (home and Experiments): a small, calm advert. */
.rv-ad { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 0 0 18px; padding: 20px 24px; border-radius: 24px; color: #FFFFFF; text-decoration: none;
  background: radial-gradient(320px 200px at 95% 0%, rgb(244 200 66 / .3), transparent 70%), radial-gradient(360px 220px at 0% 100%, rgb(45 190 143 / .35), transparent 70%), linear-gradient(135deg, var(--deep), var(--accent)); box-shadow: 0 10px 26px rgb(14 77 62 / .18); }
.rv-ad:hover, .rv-ad:focus-visible { filter: brightness(1.05); }
.rv-ad:focus-visible { outline: 4px solid var(--chalk); outline-offset: 3px; }
.rv-ad-icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 2.4rem; background: rgb(255 255 255 / .14); border: 2px solid rgb(255 255 255 / .3); }
.rv-ad-text { display: grid; gap: 4px; }
.rv-ad-flag { justify-self: start; background: var(--chalk); color: var(--chalk-ink); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: .85rem; }
.rv-ad-text b { font-family: var(--font-display); font-size: 1.45rem; }
.rv-ad-text small { color: #DDF3EA; font-size: 1rem; line-height: 1.45; }
.rv-ad-go { background: var(--chalk); color: var(--chalk-ink); border-radius: 14px; padding: 12px 18px; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .rv-ad { grid-template-columns: auto minmax(0, 1fr); } .rv-ad-go { grid-column: 1 / -1; justify-self: start; } .rv-ad-icon { width: 56px; height: 56px; font-size: 1.9rem; } }

/* Partner page: R&D, the SEND Suite trial (approved AI Labs style, see CLAUDE.md) */
.rdp { scroll-margin-top: 80px; }
.rdp-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 28px; color: #FFFFFF; margin-bottom: 26px;
  background: radial-gradient(420px 260px at 92% 8%, rgb(244 200 66 / .32), transparent 70%), radial-gradient(520px 320px at 6% 100%, rgb(45 190 143 / .42), transparent 70%), linear-gradient(135deg, var(--deep), var(--accent)); }
.rdp-hero .flag { background: var(--chalk); color: var(--chalk-ink); }
.rdp-hero h2 { color: #FFFFFF; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 12px 0 10px; }
.rdp-hero p { color: #DDF3EA; font-size: 1.12rem; line-height: 1.55; margin: 0 0 10px; max-width: 760px; }
.rdp-hero a { color: var(--chalk); font-weight: 700; }
.rdp-note { background: rgb(255 255 255 / .12); border-radius: 14px; padding: 10px 14px; }
.rdp-hero-coins { display: flex; justify-content: center; align-items: center; gap: 4px; }
.rdp-hero-coins svg { filter: drop-shadow(0 10px 18px rgb(0 0 0 / .3)); }
.rdp-sub { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 34px 0 14px; }
.rdp-num { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.2rem; }
.rdp-lead { font-size: 1.08rem; margin: 0 0 14px; }
.rdp-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rdp-tools article { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 8px 22px rgb(14 77 62 / .06); border-top: 6px solid var(--accent); }
.rdp-tools span { font-size: 2.2rem; }
.rdp-tools h4 { font-family: var(--font-display); font-size: 1.3rem; margin: 8px 0 6px; }
.rdp-tools p { margin: 0; line-height: 1.55; }
.rdp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rdp-gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 22px rgb(14 77 62 / .06); }
.rdp-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 860; object-fit: cover; object-position: top; }
.rdp-gallery figcaption { padding: 10px 14px; font-weight: 700; }
.rdp-coins { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rdp-coins p { font-size: 1.08rem; }
.rdp-coin-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 12px 0; }
.rdp-coin-row figure { margin: 0; display: grid; justify-items: center; gap: 6px; text-align: center; background: var(--soft); border-radius: 18px; padding: 12px 6px; }
.rdp-coin-row figcaption { display: grid; font-size: .88rem; }
.rdp-coin-row b { font-family: var(--font-display); font-size: 1.05rem; color: var(--deep); }
.rdp-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rdp-ticks li { background: var(--bg); border-radius: 14px; padding: 12px 14px; line-height: 1.5; }
.rdp-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rdp-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; position: relative; line-height: 1.5; }
.rdp-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--chalk); color: var(--chalk-ink); font-weight: 700; margin-bottom: 8px; }
.rdp-forms { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 26px; }
.rdp-form h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0; }
.rdp-pick { border: 0; padding: 0; margin: 0; }
.rdp-pick legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.rdp-pick > div { display: flex; flex-wrap: wrap; gap: 8px; }
.rdp-chip { display: inline-flex; position: relative; }
.rdp-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rdp-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; background: var(--surface); }
.rdp-chip input:checked + span { border-color: var(--deep); background: var(--soft); box-shadow: inset 0 0 0 1px var(--deep); }
.rdp-chip input:checked + span::before { content: "✓"; color: var(--accent); font-weight: 700; }
.rdp-chip input:focus-visible + span { outline: 3px solid var(--chalk); outline-offset: 2px; }
.rdp-agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.rdp-agree input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.rdp-done, .rdp-issued { background: var(--soft); border-radius: 18px; padding: 16px 18px; }
.rdp-done h4, .rdp-issued h4 { margin: 0 0 8px; font-size: 1.15rem; }
.rdp-keys { display: flex; flex-wrap: wrap; gap: 10px; }
.rdp-keys span { background: var(--surface); border: 2px dashed var(--chalk); border-radius: 12px; padding: 8px 12px; }
.rdp-keys b { font-family: var(--font-mono); display: block; font-size: 1.05rem; word-break: break-all; }
.rdp-issued ul { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.rdp-issued li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--surface); border-radius: 12px; padding: 8px 12px; }
.rdp-code { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--deep); }
@media (max-width: 1100px) {
  .rdp-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rdp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rdp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rdp-coins, .rdp-forms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .rdp-hero { grid-template-columns: minmax(0, 1fr); }
  .rdp-hero-coins svg { width: 84px; height: 84px; }
  .rdp-tools, .rdp-gallery, .rdp-steps { grid-template-columns: minmax(0, 1fr); }
}

/* Admin: SEND Suite trials */
.rd-alert { display: block; margin: 0 0 16px; padding: 14px 18px; border-radius: 16px; background: var(--chalk); color: var(--chalk-ink); font-weight: 700; font-size: 1.05rem; text-decoration: none; box-shadow: 0 6px 18px rgb(14 77 62 / .12); }
.rd-alert:hover { filter: brightness(1.04); }
#rdCard { scroll-margin-top: 80px; }
.rd-admin-test { margin-top: 18px; border-top: 2px dashed var(--line); padding-top: 14px; }
.rd-admin-test h3 { margin: 0 0 6px; font-family: var(--font-display); }
.rd-admin-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 10px 0; }
.rd-admin-row select { width: auto; min-height: 40px; }
.rd-admin-coins { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.rd-admin-coins li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--soft); border-radius: 12px; padding: 8px 12px; }
.rd-admin-coins code { font-weight: 600; font-size: 1rem; }

/* Home: Experiments and innovation video, with room to breathe before "Learn to code" */
.innov { margin-top: 56px; text-align: center; }
.innov .section-lead { margin-inline: auto; max-width: 760px; }
.innov-frame { max-width: 1040px; margin: 28px auto 0; }
.innov-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 0; }
.innov + .ex-home { margin-top: 64px; }
@media (max-width: 700px) { .innov { margin-top: 36px; } .innov-frame { margin-top: 18px; border-width: 3px; border-radius: 18px; } .innov + .ex-home { margin-top: 40px; } }
.video-alt { text-align: center; margin: 12px 0 0; font-size: .98rem; }
.video-alt a { color: var(--accent); font-weight: 600; }

/* Partner page: the SEND Suite demo video, as wide as the banner above it */
.rdp-demo { margin: 0 0 28px; }
.rdp-demo h4 { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0 0 14px; text-align: center; color: var(--deep); }
.rdp-demo .labs-video-frame { width: 100%; }
@media (max-width: 700px) { .rdp-demo .labs-video-frame { border-width: 3px; border-radius: 18px; } }

/* Partner page: published research (the Smith Coins preprint) */
.research-card {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 40px);
  box-shadow: 0 18px 44px rgb(14 77 62 / .12);
}
.research-cover {
  position: relative; display: block; padding: 0; margin: 0; border: 4px solid var(--chalk); border-radius: 14px; overflow: hidden;
  background: #FFFFFF; cursor: pointer; box-shadow: 0 16px 34px rgb(14 77 62 / .25); transition: transform .15s;
}
.research-cover img { display: block; width: 100%; height: auto; }
.research-cover:hover { transform: translateY(-3px); }
.research-cover:focus-visible { outline: 4px solid var(--chalk); outline-offset: 4px; }
.research-cover-tag {
  position: absolute; right: 10px; bottom: 10px; background: var(--deep); color: #FFFFFF; font-weight: 700;
  border-radius: 999px; padding: 6px 14px; font-size: .95rem;
}
.research-flag { background: var(--chalk); color: var(--chalk-ink); }
.research-text h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; margin: 12px 0 8px; }
.research-text > p { font-size: 1.08rem; line-height: 1.6; margin: 0 0 14px; }
.research-by { color: var(--muted); }
.research-by a, .research-facts a, .research-cite a { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.research-facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.research-facts li { background: var(--soft); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }
.research-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.research-cite { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
.research-cite summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.research-cite p { font-size: .98rem; overflow-wrap: anywhere; margin: 0 0 10px; }
.research-cite .hint { margin-left: 10px; }
.research-cite button { margin-bottom: 12px; }
.paper-reader { width: min(1100px, calc(100vw - 32px)); height: calc(100vh - 48px); max-height: none; padding: 0; border-radius: 20px; overflow: hidden; display: none; }
.paper-reader[open] { display: flex; flex-direction: column; }
.paper-reader-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--deep); border-bottom: 4px solid var(--chalk); }
.paper-reader-bar h2 { color: #FFFFFF; font-size: 1.15rem; margin: 0 auto 0 0; }
.paper-reader iframe { flex: 1; width: 100%; border: 0; background: #F3F3F3; }
@media (max-width: 760px) {
  .research-card { grid-template-columns: minmax(0, 1fr); }
  .research-cover { max-width: 240px; margin: 0 auto; }
  .research-actions .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .research-cover { transition: none; } .research-cover:hover { transform: none; } }

/* Partner page: licensing Smith Coins */
.lic-head { background: linear-gradient(135deg, #0B2A22, #0E4D3E 55%, #137A5E); color: #FFFFFF; border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.lic-flag { background: var(--chalk); color: var(--chalk-ink); }
.lic-head h2 { font-family: var(--font-display); color: #FFFFFF; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 12px 0 10px; }
.lic-head p { color: #DDF3EA; font-size: 1.12rem; line-height: 1.55; margin: 0; max-width: 820px; }
.lic-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lic-options article { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 14px 34px rgb(14 77 62 / .1); }
.lic-options article.lic-main { border: 3px solid var(--chalk); }
.lic-icon { font-size: 2rem; }
.lic-options h4 { font-family: var(--font-display); font-size: 1.4rem; margin: 8px 0 4px; }
.lic-for { color: var(--muted); margin: 0 0 10px; }
.lic-options ul { padding-left: 20px; margin: 0 0 18px; line-height: 1.5; flex: 1; }
.lic-options li { margin-bottom: 6px; }
.lic-options .btn { align-self: flex-start; min-height: 44px; }
.lic-steps { list-style: none; counter-reset: lic; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lic-steps li { counter-increment: lic; background: var(--soft); border-radius: 20px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.lic-steps li::before { content: counter(lic); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--chalk); color: var(--chalk-ink); font-weight: 700; font-family: var(--font-display); }
.lic-steps b { font-size: 1.08rem; }
.lic-note { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--chalk); border-radius: 18px; padding: 18px 22px; }
.lic-note h4 { margin: 0 0 8px; font-size: 1.15rem; }
.lic-note ul { margin: 0; padding-left: 20px; line-height: 1.55; }
.lic-note li { margin-bottom: 6px; }
.lic-note a { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .lic-options, .lic-steps { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 600px) and (max-width: 900px) { .lic-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lic-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.lic-org { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: 0 10px 26px rgb(14 77 62 / .08); }
.lic-org h4 { font-family: var(--font-display); font-size: 1.2rem; margin: 10px 0 4px; overflow-wrap: anywhere; }
.lic-org h4 a { color: var(--ink); text-decoration: none; }
.lic-org h4 a:hover { text-decoration: underline; }
.lic-org p { margin: 0; color: var(--muted); }
.lic-ref { font-family: var(--font-mono); font-size: .92rem; margin-top: 6px !important; }
.lic-badge { display: inline-block; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .9rem; background: var(--soft); color: var(--deep); }
.lic-badge.lic-commercial { background: var(--chalk); color: var(--chalk-ink); }
.lic-empty { grid-column: 1 / -1; background: var(--soft); border-radius: 20px; padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.lic-empty p { margin: 0; max-width: 640px; }
.lic-check { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px 24px; align-items: center; background: var(--surface); border: 2px dashed var(--mint); border-radius: 20px; padding: 20px 22px; }
.lic-check h4 { margin: 0 0 6px; font-size: 1.15rem; }
.lic-check p { margin: 0; }
.lic-check-form { display: flex; gap: 10px; }
.lic-check-form input { flex: 1; min-width: 0; min-height: 44px; font-family: var(--font-mono); text-transform: uppercase; }
.lic-check-result { grid-column: 1 / -1; font-size: 1.02rem; overflow-wrap: anywhere; }
.lic-check-result:empty { display: none; }
.lic-check-result.ok { color: var(--deep); }
.lic-check-result.warn { color: var(--gold-text); }
.lic-check-result.bad { color: var(--danger); }
@media (max-width: 760px) { .lic-check { grid-template-columns: minmax(0, 1fr); } }
.research-head { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; margin: 0 auto 18px; max-width: 1000px; text-align: center; }
.research-text h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.2; margin: 12px 0 8px; }

/* About us */
.about-lead { font-size: 1.15rem; line-height: 1.6; max-width: 860px; margin: 0 0 20px; }
.about-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.about-grid article { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 22px; padding: 22px; box-shadow: 0 12px 30px rgb(14 77 62 / .08); }
.about-grid article span { font-size: 1.9rem; }
.about-grid h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 8px 0 6px; }
.about-grid p { margin: 0; line-height: 1.5; }
.founder-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 18px 44px rgb(14 77 62 / .12); }
.founder-side { align-self: start; text-align: center; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 22px 16px; border-radius: 20px; color: #FFFFFF;
  background: radial-gradient(circle at 20% 15%, rgb(244 200 66 / .3), transparent 45%), radial-gradient(circle at 85% 90%, rgb(45 190 143 / .35), transparent 50%), linear-gradient(135deg, #0B2A22, #0E4D3E 55%, #137A5E); }
.founder-avatar { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--chalk); color: #0E4D3E; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; border: 4px solid #FFFFFF; box-shadow: 0 10px 24px rgb(0 0 0 / .25); }
img.founder-avatar { width: 150px; height: 150px; display: block; object-fit: cover; object-position: center top; padding: 0; }
.founder-side h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 6px 0 0; color: #FFFFFF; }
.founder-role { margin: 0; color: #DDF3EA; }
.founder-tags { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.founder-tags li { background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .3); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }
.founder-orcid { color: var(--chalk); font-weight: 700; }
/* A personal credential under the founder's details, linked to its public check page. */
.founder-cred { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 14px 8px 8px; border-radius: 16px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .28); color: #FFFFFF; text-decoration: none; text-align: left; max-width: 100%; }
.founder-cred:hover { background: rgb(255 255 255 / .18); color: #FFFFFF; }
.founder-cred:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }
.founder-cred img { flex: none; width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #FFFFFF; padding: 3px; }
.founder-cred span { display: grid; gap: 2px; min-width: 0; }
.founder-cred b { font-size: .95rem; }
.founder-cred small { color: #DDF3EA; font-size: .8rem; }
.founder-lead { font-size: 1.12rem; line-height: 1.6; margin-top: 0; }
.founder-path { list-style: none; counter-reset: fp; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.founder-path li { counter-increment: fp; display: grid; gap: 4px; padding: 12px 16px 12px 58px; position: relative; background: var(--soft); border-radius: 16px; }
.founder-path li::before { content: counter(fp); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--chalk); color: var(--chalk-ink); font-weight: 700; font-family: var(--font-display); }
.founder-path b { font-size: 1.04rem; }
.founder-path span { color: var(--muted); line-height: 1.5; }
.founder-quote { margin: 18px 0 0; padding: 14px 20px; border-left: 6px solid var(--chalk); background: var(--bg); border-radius: 0 16px 16px 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; }
.about-stats { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.about-stats li { background: var(--deep); color: #FFFFFF; border-radius: 20px; padding: 18px; text-align: center; display: grid; gap: 4px; }
.about-stats b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--chalk); line-height: 1; }
.about-stats span { color: #DDF3EA; }
.about-papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-paper { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; color: var(--ink); text-decoration: none; box-shadow: 0 10px 26px rgb(14 77 62 / .08); }
.about-paper:hover, .about-paper:focus-visible { border-color: var(--accent); }
.about-paper img { width: 100%; height: auto; border: 3px solid var(--chalk); border-radius: 10px; }
.about-paper span { line-height: 1.5; color: var(--muted); }
.about-paper b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.about-cta { text-align: center; margin: 40px 0 20px; }
.about-cta h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.about-cta .hero-actions { justify-content: center; }
@media (max-width: 900px) { .about-grid, .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .about-papers { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .founder-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-paper { grid-template-columns: 80px minmax(0, 1fr); } }

/* Trial coin types: three across, so six coins sit evenly. */
.rdp-coin-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .rdp-coin-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bs-founder { background: var(--soft); border-left: 5px solid var(--chalk); border-radius: 14px; padding: 12px 16px; }
.bs-founder a { color: var(--accent); font-weight: 700; }

.check-row { display: flex; gap: 8px; align-items: center; }
/* A glowing Revision Forge class token: shared by the home page, Experiments and the teacher page. */
.rv-token-art { position: relative; width: 210px; aspect-ratio: 1.6; border-radius: 22px; display: grid; place-content: center; justify-items: center; gap: 2px; overflow: hidden; color: #1B1A12;
  background: radial-gradient(120% 90% at 20% 15%, #FFF6C9 0%, #F4C842 45%, #D9A514 100%); border: 3px solid #FFF1B0;
  box-shadow: 0 0 0 4px rgb(244 200 66 / .35), 0 0 34px rgb(244 200 66 / .85), 0 14px 30px rgb(14 77 62 / .3); animation: rv-token-glow 3s ease-in-out infinite; }
.rv-token-art::before { content: ""; position: absolute; inset: 10px; border: 2px dashed rgb(14 77 62 / .35); border-radius: 14px; }
.rv-token-art b { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: .12em; color: #0E4D3E; }
.rv-token-art small { font-family: var(--font-mono); font-weight: 700; letter-spacing: .14em; font-size: .72rem; color: #0E4D3E; }
.rv-token-art i { font-style: normal; font-family: var(--font-mono); font-size: .9rem; font-weight: 700; color: #0E4D3E; }
.rv-token-shine { position: absolute; inset: -40% auto -40% -60%; width: 40%; transform: rotate(20deg); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .75), transparent); animation: rv-token-shine 3.6s ease-in-out infinite; }
@keyframes rv-token-glow { 50% { box-shadow: 0 0 0 7px rgb(244 200 66 / .22), 0 0 52px rgb(244 200 66 / 1), 0 14px 30px rgb(14 77 62 / .3); } }
@keyframes rv-token-shine { 0%, 40% { left: -60%; } 80%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .rv-token-art, .rv-token-shine { animation: none; } .rv-token-shine { display: none; } }
.a11y-calm .rv-token-art, .a11y-calm .rv-token-shine { animation: none; }
.rv-token-feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.rv-token-feature h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 8px; color: var(--deep); }
.rv-token-feature ul { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.rv-token-feature .rv-token-art { width: 260px; }
@media (max-width: 760px) { .rv-token-feature { grid-template-columns: minmax(0, 1fr); justify-items: center; } .rv-token-feature .rv-token-art { width: 230px; } }

/* ---------- Home page: short intro, cards, then plans ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-nav .nav-ex { padding: 8px 10px; font-weight: 600; text-decoration: none; border-radius: 8px; }
.home-nav .nav-ex:hover { background: var(--soft); }
.home-nav details.menu summary { min-height: 44px; display: inline-flex; align-items: center; }
.home-nav button, .home-nav .nav-ex { min-height: 44px; }
.menu-more .menu-panel a:not(.btn) { display: flex; gap: 8px; }
details.menu summary:focus-visible, .home-main a:focus-visible, .home-main button:focus-visible, .device-note-x:focus-visible { outline: 4px solid var(--chalk); outline-offset: 3px; }

.device-note { display: none; }
.home-main { display: grid; gap: 28px; padding-top: 34px; padding-bottom: 20px; }
.home-main h2 { font-family: var(--font-display); letter-spacing: -.01em; }

/* 1. The glowing teacher tools card. */
.home-glow { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 40px 44px; border-radius: 28px; color: #FFFFFF; border: 3px solid rgb(244 200 66 / .7);
  background: radial-gradient(420px 260px at 92% 8%, rgb(244 200 66 / .38), transparent 70%), radial-gradient(480px 300px at 0% 100%, rgb(45 190 143 / .4), transparent 70%), linear-gradient(135deg, #0E4D3E, #137A5E);
  box-shadow: 0 0 0 6px rgb(244 200 66 / .14), 0 24px 60px rgb(14 77 62 / .32); animation: home-glow 3.6s ease-in-out infinite; }
@keyframes home-glow { 50% { box-shadow: 0 0 0 9px rgb(244 200 66 / .2), 0 0 46px rgb(244 200 66 / .55), 0 24px 60px rgb(14 77 62 / .32); } }
.home-glow .update-sparkles i { --rise: 360px; }
.home-glow-text { position: relative; z-index: 1; }
.home-glow-flag { display: inline-block; background: var(--chalk); color: var(--chalk-ink); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .92rem; }
.home-glow h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.08; margin: 14px 0 10px; color: #FFFFFF; }
.home-glow h2 .hl { color: #FFFFFF; background: linear-gradient(transparent 64%, rgb(244 200 66 / .85) 64%, rgb(244 200 66 / .85) 90%, transparent 90%); }
.home-glow p { color: #DDF3EA; font-size: 1.1rem; margin: 0 0 16px; max-width: 560px; }
.home-glow-tools { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.home-glow-tools a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: #FFFFFF; text-decoration: none; font-weight: 600;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .3); }
.home-glow-tools a:hover { background: rgb(255 255 255 / .22); }
.home-glow-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-glow-more { background: transparent; color: #FFFFFF; border: 2px solid rgb(255 255 255 / .6); }
.home-glow-more:hover { background: rgb(255 255 255 / .12); }
.home-glow-art { position: relative; z-index: 1; height: 260px; }
.hg-sheet { position: absolute; width: 74%; padding: 16px 18px; border-radius: 18px; background: #FFFFFF; color: var(--deep); display: grid; gap: 6px;
  box-shadow: 0 16px 36px rgb(0 0 0 / .25); border-top: 6px solid var(--mint); }
.hg-sheet b { font-family: var(--font-display); font-size: 1.15rem; }
.hg-sheet i { font-style: normal; color: #4A6A60; font-size: .95rem; }
.hg-s1 { top: 0; left: 0; transform: rotate(-4deg); }
.hg-s2 { top: 84px; left: 22%; transform: rotate(2deg); border-top-color: var(--chalk); }
.hg-s3 { top: 168px; left: 8%; transform: rotate(-1deg); border-top-color: var(--accent); }

/* 2. Revision Forge reuses .rv-ad; 3–4. White cards. */
.home-rv { margin: 0; }
.home-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 30px; box-shadow: 0 10px 30px rgb(14 77 62 / .08); }
.home-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.home-card-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 2.1rem; background: var(--soft); }
.home-card-flag { margin: 0; font-weight: 700; color: var(--accent); font-size: .95rem; }
.home-card h2 { margin: 2px 0 0; font-size: clamp(1.5rem, 2.8vw, 2rem); color: var(--deep); }
.home-card-go { min-height: 44px; display: inline-flex; align-items: center; }
.home-card .ex-home-pick { margin: 20px 0 0; }
.home-send { background: linear-gradient(135deg, var(--soft), var(--surface) 70%); }
.home-send-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.home-send-grid a { display: grid; gap: 6px; padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.home-send-grid a:hover { border-color: var(--accent); }
.home-send-grid b { font-family: var(--font-display); font-size: 1.3rem; color: var(--deep); }
.home-send-grid small { color: var(--muted); font-size: 1rem; line-height: 1.45; }
.home-send-grid span { color: var(--accent); font-weight: 700; }

/* 5. More to explore. */
.home-more h2 { text-align: center; font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 8px 0 16px; }
.home-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-tile { display: grid; align-content: start; gap: 4px; padding: 20px; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgb(14 77 62 / .06); }
.home-tile:hover { border-color: var(--accent); background: var(--soft); }
.home-tile > span { font-size: 1.8rem; }
.home-tile b { font-family: var(--font-display); font-size: 1.25rem; color: var(--deep); }
.home-tile small { color: var(--muted); font-size: .98rem; }

/* Teacher tools and CPD glimpses (laptops and tablets). */
.home-upload { margin-top: 36px; }
.all-tools { margin-top: 24px; }
.all-tools summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; color: var(--accent); background: var(--surface); border: 2px solid var(--line); }
.all-tools[open] summary { margin-bottom: 16px; }
.plans-pointer { text-align: center; font-size: 1.1rem; margin: 24px auto 0; max-width: 720px; }
.plans-pointer a { font-weight: 700; }
.plans-note { margin: 44px 0 0; padding: 30px 32px; border-radius: 24px; background: var(--soft); border: 1px solid var(--line); }
.plans-note h2 { font-family: var(--font-display); text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 18px; }
.plans-note ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plans-note li { background: var(--surface); border-radius: 18px; padding: 18px; line-height: 1.5; }
.plans-note li span { display: block; font-size: 1.8rem; margin-bottom: 4px; }
.home-signin { max-width: 760px; margin: 18px auto 30px; text-align: center; }

@media (max-width: 900px) {
  .home-glow { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
  .home-glow-art { display: none; }
  .home-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-note ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  /* Phones: the intro, the cards and the plans. Deeper sections open only when linked to. */
  .desk-only:not(:target) { display: none; }
  .device-note:not([hidden]) { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; padding: 10px 12px 10px 16px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); font-size: .95rem; }
  .device-note-x { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; }
  .home-main { gap: 20px; padding-top: 20px; }
  .home-glow { padding: 26px 20px; border-radius: 24px; }
  .home-glow p { font-size: 1rem; }
  .home-card { padding: 22px 18px; }
  .home-card-head { grid-template-columns: auto minmax(0, 1fr); }
  .home-card-go { grid-column: 1 / -1; justify-self: start; }
  .home-card-icon { width: 52px; height: 52px; font-size: 1.7rem; }
  .home-send-grid { grid-template-columns: minmax(0, 1fr); }
  .plans-note { margin-top: 28px; padding: 22px 18px; }
  /* Header: the menus open as a full-width panel under the header. */
  header.top .wrap { position: relative; }
  .home-nav { width: 100%; justify-content: flex-start; gap: 6px; }
  .home-nav details.menu { position: static; }
  .home-nav .menu-panel { left: 16px; right: 16px; width: auto; grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .home-glow { animation: none; } .home-glow .update-sparkles { display: none; } }
.a11y-calm .home-glow { animation: none; }
.a11y-calm .home-glow .update-sparkles { display: none; }
.all-tools { text-align: center; }
.all-tools .cards { text-align: left; }
@media (max-width: 700px) {
  .hero .hero-chips { display: none; }
  .home-card .ex-home-pick { gap: 10px; margin-top: 16px; }
  .home-card .ex-home-pick a { padding: 12px 14px; }
  .home-card .ex-home-pick span { width: 48px; height: 48px; font-size: 1.6rem; }
  .home-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-tile { padding: 16px; }
}

/* AI Labs card: the same size as the teacher tools card above it, light, with the gold AI Labs glow. */
.home-labs { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center;
  padding: 40px 44px; border-radius: 28px; color: var(--ink); border: 3px solid var(--chalk);
  background: radial-gradient(420px 260px at 100% 0%, rgb(244 200 66 / .22), transparent 70%), radial-gradient(480px 320px at 0% 100%, rgb(45 190 143 / .18), transparent 70%), linear-gradient(135deg, #FFFFFF, #F3FAF6);
  box-shadow: 0 0 0 6px rgb(244 200 66 / .14), 0 24px 60px rgb(14 77 62 / .16); }
.home-labs-text { display: grid; gap: 4px; justify-items: start; }
.home-labs-flag { display: inline-flex; gap: 8px; align-items: center; background: var(--chalk); color: var(--chalk-ink); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .92rem; }
.home-labs h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.08; margin: 14px 0 10px; color: var(--deep); }
.home-labs h2 .hl { background: linear-gradient(transparent 64%, rgb(244 200 66 / .75) 64%, rgb(244 200 66 / .75) 90%, transparent 90%); }
.home-labs p { color: var(--muted); font-size: 1.1rem; margin: 0 0 16px; max-width: 560px; }
.home-labs-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.home-labs-points li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); font-weight: 600; font-size: .98rem; color: var(--deep); }
.home-labs-points .ico { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.home-labs-go { background: var(--deep); color: #FFFFFF; border-color: var(--deep); display: inline-flex; gap: 8px; align-items: center; }
.home-labs-go:hover { filter: brightness(1.1); }
.home-labs-more { background: #FFFFFF; color: var(--deep); border: 2px solid var(--deep); }
.home-labs-art { display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgb(14 77 62 / .22); transform: rotate(1.2deg); transition: transform .3s ease; }
.home-labs-art:hover { transform: rotate(0deg) scale(1.01); }
.home-labs-art img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .home-labs-art { transition: none; transform: none; } }
@media (max-width: 900px) {
  .home-labs { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
  .home-labs-art { order: -1; transform: none; }
}
@media (max-width: 700px) {
  .home-labs { padding: 22px 18px; border-radius: 24px; gap: 20px; }
  .home-labs p { font-size: 1rem; }
  .home-labs-points { grid-template-columns: minmax(0, 1fr); }
}

/* The SEND Suite: a calm, symbol-supported card for special schools, kept apart from the teacher tools. */
.home-suite { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 32px 34px; border-radius: 32px;
  background: radial-gradient(360px 220px at 100% 0%, rgb(244 200 66 / .16), transparent 70%), linear-gradient(160deg, #F3FAF6, #E1F4EB);
  border: 3px dashed #2DBE8F; color: #12312A; line-height: 1.6; letter-spacing: .01em; }
.home-suite-flag { display: inline-flex; gap: 8px; align-items: center; margin: 0; padding: 6px 14px; border-radius: 999px; background: #FFFFFF; border: 2px solid #137A5E; color: #0E4D3E; font-weight: 700; }
.home-suite h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 12px 0 6px; color: #0E4D3E; }
.home-suite-lead { font-size: 1.12rem; margin: 0 0 14px; max-width: 560px; }
.home-suite-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-suite-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: #FFFFFF; font-size: .98rem; }
.home-suite-list li span { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: #E1F4EB; }
.home-suite-list li b { color: #0E4D3E; font-size: 1.05rem; }
.home-suite-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; background: rgb(255 255 255 / .7); border-left: 6px solid #F4C842; font-weight: 600; }
.home-suite-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-suite-go { background: #0E4D3E; color: #FFFFFF; border-color: #0E4D3E; min-height: 48px; display: inline-flex; align-items: center; }
.home-suite-open { background: #FFFFFF; color: #0E4D3E; border: 2px solid #137A5E; min-height: 48px; display: inline-flex; align-items: center; }
.home-suite a:focus-visible { outline: 4px solid #F4C842; outline-offset: 3px; }
.home-suite-art { display: grid; gap: 16px; }
.ns-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 16px; border-radius: 24px; background: #FFFFFF; box-shadow: 0 10px 26px rgb(14 77 62 / .1); }
.ns-card { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border-radius: 18px; border: 3px solid #137A5E; }
.ns-card small { font-family: var(--font-mono); font-weight: 700; letter-spacing: .12em; color: #0E4D3E; }
.ns-card span { font-size: 2.6rem; line-height: 1; }
.ns-card b { font-size: 1.15rem; color: #0E4D3E; }
.ns-now { background: #E1F4EB; }
.ns-next { border-color: #F4C842; background: #FFF8DF; }
.ns-arrow { font-size: 1.8rem; color: #137A5E; }
.ns-chart { padding: 14px 16px; border-radius: 24px; background: #FFFFFF; color: #0E4D3E; box-shadow: 0 10px 26px rgb(14 77 62 / .1); }
.ns-chart small { font-weight: 700; }
.ns-chart svg { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .home-labs, .home-suite { grid-template-columns: minmax(0, 1fr); }
  .home-send-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .home-labs { padding: 16px; gap: 16px; border-radius: 24px; }
  .home-suite { padding: 24px 18px; border-radius: 26px; }
  .home-suite-list { grid-template-columns: minmax(0, 1fr); }
  .ns-chart { display: none; }
}

/* Home on phones and tablets: the task first, three routes, and one header menu. */
.quick-make, .journeys, .menu-phone, .hero .lead-short { display: none; }
.quick-make h2, .journeys h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 14px; color: var(--deep); }
.quick-make-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick-make-grid a { display: grid; gap: 2px; align-content: start; padding: 16px; border-radius: 20px; background: var(--surface); border: 2px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgb(14 77 62 / .06); }
.quick-make-grid a:hover, .quick-make-grid a:focus-visible { border-color: var(--accent); background: var(--soft); }
.quick-make-grid span { width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); }
.quick-make-grid .ico { width: 26px; height: 26px; color: var(--accent); }
.quick-make-grid b { font-family: var(--font-display); font-size: 1.2rem; color: var(--deep); }
.quick-make-grid small { color: var(--muted); font-size: .95rem; line-height: 1.35; }
.quick-make-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 700; color: var(--accent); }
.journeys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.journey { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgb(14 77 62 / .08); }
.journey-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.journey-icon .ico { width: 26px; height: 26px; color: #FFFFFF; }
.journey h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 4px 0 0; color: var(--deep); }
.journey p { margin: 0; color: var(--muted); }
.journey .journey-go { min-height: 48px; display: inline-flex; align-items: center; margin-top: 4px; background: var(--deep); color: #FFFFFF; border-color: var(--deep); font-weight: 700; }
.journey .journey-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.journey-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.menu-phone summary { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; }
details.menu-phone summary::after { content: none; }
.menu-burger { display: inline-block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.menu-phone .menu-panel a:not(.btn) { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 0; }
.menu-phone .menu-panel .ico { color: var(--accent); }
.menu-phone .menu-foot button, .menu-phone .menu-foot .btn { min-height: 44px; }
.journey a:focus-visible, .menu-phone a:focus-visible, .menu-phone button:focus-visible { outline: 4px solid var(--chalk); outline-offset: 3px; }
@media (max-width: 1023px) { .journeys { display: block; } }
@media (min-width: 701px) and (max-width: 1023px) {
  /* Tablets: three across where phones stack, with the icon above the words. */
  .home-card .ex-home-pick, .home-send-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-card .ex-home-pick a { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .home-card .ex-home-pick span { grid-row: auto; }
}
@media (max-width: 700px) {
  .quick-make { display: block; }
  /* Hero: the short promise, and one action (the quick starts below lead to every tool). */
  .hero .lead-long, .hero .hero-tools { display: none; }
  .hero .lead-short { display: inline; }
  /* The quick starts above replace the teacher tools card; the full tour stays a tap away. */
  .home-glow { display: none; }
  .home-labs-art, .home-labs-points, .home-suite-list, .home-suite-art { display: none; }
  .journeys-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .journey { padding: 18px; }
  /* Header: the logo, one main action and a Menu button, on a single row. */
  header.top .wrap { flex-wrap: nowrap; }
  .home-nav { width: auto; flex-wrap: nowrap; justify-content: flex-end; }
  header.top .wrap > .brand { flex: none; }
  header.top .home-nav > :is(.nav-ex, details.menu:not(.menu-phone), .nav-login, #homeOut) { display: none; }
  header.top .home-nav > :is(button, .btn) { white-space: nowrap; }
  .menu-phone { display: block; }
  .menu-phone .menu-panel { max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-width: 480px) and (max-width: 700px) { .home-nav .menu-phone .menu-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) {
  /* Small phones: a smaller logo, and the Menu button shows its icon (the word stays for screen readers). */
  header.top .brand { gap: 8px; }
  header.top .brand svg { width: 34px; height: 34px; }
  header.top .brand-name { font-size: 1.2rem; }
  .home-nav .menu-phone summary { width: 48px; justify-content: center; padding: 0; }
  .menu-phone-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) { header.top .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* Home: what's built into every teacher tool. */
.tools-built { margin-top: 30px; }
.tools-built h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 12px; color: var(--deep); }
.tools-built ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tools-built a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; height: 100%; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.tools-built a:hover, .tools-built a:focus-visible { border-color: var(--accent); background: var(--soft); }
.tools-built a:focus-visible { outline: 4px solid var(--chalk); outline-offset: 3px; }
.tools-built span { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--soft); }
.tools-built b { font-family: var(--font-display); color: var(--deep); }
.tools-built small { color: var(--muted); }
.build-tip { margin-top: 8px; }
.nav-home { font-weight: 700; }
@media (max-width: 1000px) { .tools-built ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools-built ul { grid-template-columns: minmax(0, 1fr); } }

/* Two-step sign-in: the code step in the sign-in dialog. */
.mfa-step { display: grid; gap: 10px; }
.mfa-step .mfa-code { font-family: var(--font-mono); font-size: 1.5rem; letter-spacing: .25em; text-align: center; min-height: 52px; }
.mfa-step .mfa-help { font-size: .92rem; color: var(--muted); margin: 0; }

/* School admin: safety and data protection setup. */
.safety-panel { border: 2px solid var(--line); }
.safety-panel.todo { border-color: var(--chalk); box-shadow: 0 0 0 4px rgb(244 200 66 / .18); }
.safety-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.safety-head h2 { margin: 6px 0 4px; }
.safety-form { display: grid; gap: 18px; margin-top: 14px; }
.safety-form fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 0; min-width: 0; }
.safety-form legend { font-weight: 700; display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.safety-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .95rem; }
.safety-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.safety-row label { display: grid; gap: 4px; font-weight: 600; }
.safety-row input { font: inherit; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.safety-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.safety-choice, .safety-check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin: 6px 0; }
.safety-choice { align-items: center; margin: 0; }
.safety-check input, .safety-choice input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.safety-log { margin-top: 14px; }
.safety-log summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 700px) { .safety-row { grid-template-columns: minmax(0, 1fr); } }

/* Owner admin: platform safety settings. */
.ps-card { border: 2px solid var(--accent); }
.ps-card.paused { border-color: var(--danger); box-shadow: 0 0 0 4px rgb(179 38 30 / .15); }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 10px 0; }
.ps-grid fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 0; min-width: 0; }
.ps-grid legend { font-weight: 700; padding: 0 6px; }
.ps-check { display: flex; gap: 8px; align-items: flex-start; min-height: 40px; padding: 6px 0; }
.ps-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.ps-pause { background: #FFF1EF; border-radius: 10px; padding: 8px; margin-top: 6px; }
.ps-num { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 44px; }
.ps-num input { width: 5em; font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); }
.ps-log { margin-top: 12px; }
.ps-log summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .ps-grid { grid-template-columns: minmax(0, 1fr); } }

/* Line icons (public/icons.svg): the same size and weight everywhere, in the text colour. */
.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; stroke-width: 2; overflow: visible; }
.hero-chips li, .home-glow-tools a, .home-glow-flag, .rv-ad-flag, .rv-ad-go, .menu-foot span { display: inline-flex; gap: 7px; align-items: center; }
.hero-chips .ico { color: var(--chalk); }
.home-glow-tools .ico { color: var(--chalk); }
.hg-sheet b { display: flex; gap: 8px; align-items: center; }
.hg-sheet .ico { color: var(--accent); }
.rv-ad-icon .ico { width: 38px; height: 38px; color: var(--chalk); }
.home-card-icon .ico { width: 32px; height: 32px; color: var(--accent); }
.ex-home-pick span .ico { width: 30px; height: 30px; color: var(--accent); }
.home-suite-list li span .ico { width: 24px; height: 24px; color: var(--accent); }
.home-suite-flag .ico, .home-suite-note .ico { color: var(--accent); }
.home-suite-note { display: flex; gap: 8px; align-items: flex-start; }
.home-tile > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--soft); color: var(--accent); margin-bottom: 8px; }
.home-tile > span .ico { width: 28px; height: 28px; }
.menu-panel a:not(.btn) { display: flex; gap: 10px; align-items: center; }
.menu-panel a .ico { color: var(--accent); }
.home-nav .nav-ex { display: inline-flex; gap: 6px; align-items: center; }
.home-nav .nav-ex .ico { color: var(--accent); }
@media (max-width: 560px) {
  .rv-ad { grid-template-columns: minmax(0, 1fr); }
  .rv-ad-icon { width: 52px; height: 52px; }
  .rv-ad-icon .ico { width: 28px; height: 28px; }
}

/* Icons everywhere (public/icons.js). Buttons and links line the icon up with the word. */
:is(button, .btn, a, summary, .chip span, .flag, .tag, label):has(> .ico) { gap: .4em; }
button > .ico, .btn > .ico { vertical-align: -0.22em; }
.has-ico-solo { line-height: 1; }
/* Pupil pages: bigger, bolder icons. An icon on its own sits in a soft tile, like a picture card. */
[data-audience="pupil"] .ico { width: 1.3em; height: 1.3em; stroke-width: 2.5; }
[data-audience="pupil"] .ico.ico-solo { width: 1.15em; height: 1.15em; padding: .16em; box-sizing: content-box; border-radius: .32em;
  background: var(--soft); color: var(--deep); stroke-width: 2.4; }
[data-audience="pupil"] :is(.cta, .primary, .lab-c1, .lab-c2, .lab-c3) .ico.ico-solo,
[data-audience="pupil"] :is(.lab-hero, .labs-hero, .rv-hero, .lab-top, .rv-ad) .ico.ico-solo { background: rgb(255 255 255 / .16); color: currentColor; }
@media (forced-colors: active) { .ico { color: CanvasText; } [data-audience="pupil"] .ico.ico-solo { background: Canvas; border: 1px solid CanvasText; } }

/* Schools card: short groups; new things in gold; AI Labs with rising sparkles. */
.school-group { margin: 14px 0 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk); }
.school-list li.is-new, .school-list li.is-sparkle { background: rgb(244 200 66 / .12); border: 1px solid rgb(244 200 66 / .55); border-radius: 12px; padding: 8px 10px 8px 40px; }
.school-list li.is-new::before, .school-list li.is-sparkle::before { left: 10px; top: 9px; }
.school-list li.is-new b, .school-list li.is-sparkle b { color: var(--chalk); }
.school-full { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / .1); color: #DDF1E9; }
.school-full b { color: #FFFFFF; }
.is-sparkle { overflow: hidden; }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; bottom: -6px; width: 6px; height: 6px; background: var(--chalk); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: sparkle-rise 3.2s ease-in infinite; }
.sparkles i:nth-child(1) { left: 12%; animation-delay: 0s; }
.sparkles i:nth-child(2) { left: 34%; animation-delay: .7s; width: 4px; height: 4px; }
.sparkles i:nth-child(3) { left: 55%; animation-delay: 1.4s; }
.sparkles i:nth-child(4) { left: 74%; animation-delay: 2.1s; width: 5px; height: 5px; }
.sparkles i:nth-child(5) { left: 90%; animation-delay: 2.7s; width: 4px; height: 4px; }
@keyframes sparkle-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-46px) scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sparkles { display: none; } }

/* Free things in the schools card: the same soft gold box as the planning packs, with white text. */
.school-list li.gold-dust { background: rgb(244 200 66 / .12); border: 1px solid rgb(244 200 66 / .55); border-radius: 12px; padding: 8px 10px 8px 40px; color: #FFFFFF; }
.school-list li.gold-dust::before { left: 10px; top: 9px; }
.school-list li.gold-dust b { color: var(--chalk); }
.free-flag { display: inline-block; background: #0E4D3E; color: #F4C842; border: 1px solid #F4C842; font-weight: 700; font-size: .72rem; border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
/* The full version: bright and easy to spot. */
.school-full { background: linear-gradient(120deg, #F4C842, #FFE08A); color: #0E4D3E; font-size: 1.05rem; font-weight: 600; box-shadow: 0 8px 24px rgb(244 200 66 / .35); border: 2px solid #FFF3C4; }
.school-full b { color: #0E4D3E; font-weight: 800; }
/* Add-ons on the quote card. */
.quote-addons { border: 2px solid #F4C842; border-radius: 14px; padding: 10px 12px; margin: 12px 0; background: #FFFBEA; }
.quote-addons legend { font-weight: 700; color: #0E4D3E; padding: 0 6px; }
.quote-addons label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 6px 0; text-align: left; }
.quote-addons input { width: 22px; height: 22px; flex: none; accent-color: #137A5E; margin-top: 2px; }
.addon-price { color: #137A5E; }
.quote-addons small { color: var(--muted); }

/* ---------- AI pictures (builder dialog, resources, slides, Revision Forge) ---------- */
.pic-dialog { width: min(640px, calc(100vw - 32px)); border-radius: 24px; padding: 26px; max-height: calc(100dvh - 32px); overflow: auto; }
.pic-dialog .stack > label { font-weight: 600; }
.pic-dialog textarea, .pic-dialog input[type=text], .pic-dialog select { width: 100%; min-height: 44px; }
.pic-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pic-row label { display: block; font-weight: 600; margin-bottom: 4px; }
.pic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pic-actions button, .pic-actions .btn { min-height: 44px; display: inline-flex; align-items: center; }
#picStatus.bad { color: var(--danger); font-weight: 600; }
.pic-preview { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: var(--soft); }
.pic-result img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--surface); }
.pic-report { display: grid; gap: 6px; }
.ai-pic-tag { display: inline-block; margin: 0; padding: 2px 10px; border-radius: 999px; background: var(--chalk); color: var(--chalk-ink); font-size: .85rem; font-weight: 700; }
.doc figure.ai-pic, figure.ai-pic { margin: 18px 0; text-align: center; }
figure.ai-pic img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 16px; box-shadow: 0 6px 24px rgb(14 77 62 / .12); }
figure.ai-pic figcaption { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.slide-body figure.ai-pic { margin: 0; align-self: center; }
.slide-body figure.ai-pic img { max-height: 340px; width: auto; }
@media (max-width: 560px) { .pic-row { grid-template-columns: 1fr; } .pic-dialog { padding: 18px; } }
@media print { .ai-pic-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.pics-card h3 { margin-top: 22px; }
.lib-form { display: grid; gap: 10px; }
.lib-form label, .lib-approve label { display: grid; gap: 4px; font-weight: 600; }
.lib-form textarea, .lib-form select, .lib-approve input, .lib-approve select { width: 100%; min-height: 44px; }
.lib-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.lib-row button { min-height: 44px; }
.lib-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--soft); }
.lib-preview img { width: 100%; height: auto; border-radius: 14px; background: var(--surface); }
.lib-approve { display: grid; gap: 10px; align-content: start; }
.lib-approve p { margin: 0; }
.pics-thumb { width: 96px; height: auto; border-radius: 8px; display: block; }
.pics-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 700px) { .lib-row, .lib-preview { grid-template-columns: 1fr; } }
.pic-preview .ai-pic-tag { justify-self: start; }
.pics-check { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .pics-check button { min-height: 44px; }
.lib-review { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--soft); }
.lib-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 12px 0; }
.lib-card { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 16px; background: var(--surface); border: 2px solid transparent; }
.lib-card img { width: 100%; height: auto; border-radius: 10px; }
.lib-card label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.lib-card .lib-tick { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.lib-card .lib-tick input { width: 22px; height: 22px; }
.lib-card input[type=text] { min-height: 44px; width: 100%; }
.lib-card.added { border-color: var(--mint); }
.lib-card.added::after { content: "Added ✓"; font-weight: 700; color: var(--deep); }
.lib-card.failed { background: #fff6f5; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lib-actions button { min-height: 44px; }
.pic-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 999px; background: var(--soft); }
.pic-tabs button { min-height: 44px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; }
.pic-tabs button[aria-selected=true] { background: var(--surface); color: var(--deep); box-shadow: 0 2px 8px rgb(14 77 62 / .12); }
.pic-lib { display: grid; gap: 10px; }
.pic-lib input[type=search] { width: 100%; min-height: 44px; }
.pic-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: min(420px, 50vh); overflow: auto; padding: 2px; }
.pic-lib-item { display: grid; gap: 6px; padding: 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); text-align: left; font-size: .85rem; line-height: 1.3; }
.pic-lib-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--soft); }
.pic-lib-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pic-lib-item.chosen { border-color: var(--chalk); box-shadow: 0 0 0 3px var(--chalk); }
.bank-subjects { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.bank-subjects legend { font-weight: 700; padding: 0 6px; }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 12px; }
.bank-subject { display: flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 500; }
.bank-subject input { width: 20px; height: 20px; }
#bankProgress { margin-top: 12px; }
.lib-form .bank-subject { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.bank-subjects legend .link { font-weight: 600; min-height: 32px; }
/* The owner's picture library: a grid of small previews, a page at a time */
.gal-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; align-items: end; margin: 8px 0 14px; }
.gal-filters label { display: grid; gap: 4px; font-weight: 600; }
.gal-filters select, .gal-filters input[type=search] { min-height: 44px; width: 100%; }
.gal-filters .gal-hidden { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gal-card { margin: 0; display: grid; grid-template-rows: auto 1fr; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 16px rgb(14 77 62 / .06); overflow: hidden; }
.gal-card.is-hidden { opacity: .55; border-style: dashed; }
.gal-open { display: block; background: var(--soft); }
.gal-open img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gal-card figcaption { display: grid; gap: 6px; padding: 10px 12px 12px; font-size: .9rem; }
.gal-tag { font-size: .78rem; font-weight: 700; color: var(--deep); }
.gal-alt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gal-card .pics-actions button { min-height: 40px; }
.gal-more { text-align: center; margin-top: 12px; }
.gal-more button { min-height: 44px; min-width: 200px; }
.lib-form .bank-topup { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; grid-column: 1 / -1; }
.bank-topup input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.bank-have { color: var(--muted); font-size: .85rem; }

/* ---------- Design review: Lessonsmith colours only, 24px cards, 44px targets ---------- */
/* Faint sky, violet and coral tints stay only in the home page backgrounds. */
header.top::after, .builder .panel::before { background: linear-gradient(90deg, var(--deep), var(--accent) 35%, var(--mint) 70%, var(--chalk)); }
.builder .type:nth-child(5n+3) .tb .ti { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.builder .type:nth-child(5n+4) .tb .ti { background: color-mix(in srgb, var(--mint) 30%, var(--surface)); }
.builder .type:nth-child(5n+5) .tb .ti { background: color-mix(in srgb, var(--chalk) 20%, var(--surface)); }
.builder .doc h2:nth-of-type(5n+2)::before { background: var(--chalk); }
.builder .doc h2:nth-of-type(5n+3)::before { background: var(--accent); }
.builder .doc h2:nth-of-type(5n+4)::before { background: var(--deep); }
.cards.pricing .card:nth-child(1) { border-top-color: var(--mint); }
.cards.pricing .card:nth-child(2) { border-top-color: var(--chalk); }
section.block .cards > .card:nth-child(5n+3) { border-top-color: var(--accent); }
section.block .cards > .card:nth-child(5n+4) { border-top-color: var(--chalk); }
section.block .cards > .card:nth-child(5n+5) { border-top-color: var(--deep); }
.feature-cards .feature-card:nth-child(5n+3) .fi { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.feature-cards .feature-card:nth-child(5n+4) .fi, .feature-cards .feature-card:nth-child(4n+4) .fi { background: color-mix(in srgb, var(--mint) 24%, var(--surface)); }
.feature-cards .feature-card:nth-child(5n+5) .fi { background: color-mix(in srgb, var(--chalk) 22%, var(--surface)); }
.feature-cards .feature-card:nth-child(5n+5):hover h3, .features .feature:nth-child(4) .eyebrow { color: var(--accent); }
.tool-card a:has(.tone-b) { border-top-color: var(--accent); }
.tool-card a:has(.tone-o) { border-top-color: var(--chalk); }
.tool-card a:has(.tone-p) { border-top-color: var(--deep); }
.cpd-badges li:nth-child(2) { border-color: var(--chalk); }
.cpd-badges li:nth-child(3) { border-color: var(--accent); }
.cpd-badges li:nth-child(4) { border-color: var(--deep); }
.tip-warn { border-color: var(--chalk); }
.ps-pause { background: color-mix(in srgb, var(--chalk) 16%, var(--surface)); }
.ps-card { border: 1px solid var(--line); }
.card { border-radius: 24px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
button.small, .btn.small { min-height: 44px; }
/* Checkbox rows: the words after the box stay together as one block. */
.safety-check > span, .safety-choice > span { flex: 1; min-width: 0; }
.bank-subjects legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 100%; }
.bank-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
#bankEstimate.error { color: var(--danger); font-weight: 600; }
.pic-lib-empty { grid-column: 1 / -1; padding: 18px; text-align: center; } .pic-lib-empty button { min-height: 44px; }
/* School dashboard: staff search and filters; on phones each person is a small card. */
.staff-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; align-items: end; margin: 16px 0 10px; }
.staff-filters label { display: grid; gap: 4px; font-weight: 600; }
.staff-filters input, .staff-filters select { min-height: 44px; width: 100%; }
.staff-filters p { margin: 0; align-self: center; }
@media (max-width: 640px) {
  .staff-table thead { display: none; }
  .staff-table, .staff-table tbody { display: block; }
  .staff-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .staff-table td { border: 0; padding: 2px 0; }
  .staff-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .staff-table td:first-child { grid-column: 1 / -1; font-weight: 700; word-break: break-all; }
  .staff-table td:last-child { grid-column: 1 / -1; }
  .staff-table .acts { display: flex; flex-wrap: wrap; gap: 8px; }
  .staff-table .acts select, .staff-table .acts button { min-height: 44px; }
}
/* Admin: a strip of section links that stays at the top while you scroll. */
.admin-jump { position: sticky; top: 0; z-index: 4; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 10px 2px; margin: 0 0 14px; background: var(--bg); }
.admin-jump a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--deep); font-weight: 600; text-decoration: none; }
.admin-jump a:hover, .admin-jump a:focus-visible { border-color: var(--accent); background: var(--soft); }
#dash [id] { scroll-margin-top: 80px; }
/* Trust & safety page: the approved green hero. */
.trust-hero { position: relative; overflow: hidden; margin: 24px 0 18px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; color: #FFFFFF;
  background: radial-gradient(420px 260px at 100% 0%, color-mix(in srgb, var(--chalk) 32%, transparent), transparent 70%),
    radial-gradient(420px 260px at 0% 100%, color-mix(in srgb, var(--mint) 30%, transparent), transparent 70%),
    linear-gradient(135deg, var(--deep), var(--accent)); box-shadow: 0 14px 34px rgb(14 77 62 / .18); }
.trust-hero h1 { color: #FFFFFF; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 8px; }
.trust-hero .lead { color: #E6F6EE; font-size: 1.1rem; max-width: 60ch; margin: 0 auto; }
.trust-hero .flag { display: inline-block; background: var(--chalk); color: var(--chalk-ink); border-radius: 999px; padding: 5px 14px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
/* Reported pictures: alerts and checks for teachers, school admins and the safeguarding lead */
.pa-panel { border: 2px solid var(--chalk); border-radius: 24px; background: color-mix(in srgb, var(--chalk) 8%, var(--surface)); padding: 18px 20px; margin: 0 0 18px; }
.pa-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--font-display); font-size: 1.25rem; }
.pa-count { font-size: .85rem; background: var(--chalk); color: var(--chalk-ink); border-radius: 999px; padding: 3px 10px; }
.pa-list { display: grid; gap: 12px; margin-top: 12px; }
.pa-case { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.pa-case.done { opacity: .7; }
.pa-case img { width: 160px; height: auto; border-radius: 12px; background: var(--soft); }
.pa-body p { margin: 0 0 6px; }
.pa-stage { font-weight: 700; color: var(--deep); }
.pa-reason { font-style: italic; }
.pa-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pa-msg { font-weight: 600; color: var(--deep); }
.pa-compact .pa-case { grid-template-columns: 110px minmax(0, 1fr); }
.pa-compact .pa-case img { width: 110px; }
@media (max-width: 560px) { .pa-case, .pa-compact .pa-case { grid-template-columns: 1fr; } .pa-case img { width: 100%; } }
/* A picture that was reported, checked and found fine */
.screened-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--deep); background: var(--soft); border-radius: 999px; padding: 3px 10px; }

/* Model Forge promotion on the AI Labs pages (Lessonsmith green, gold and mint). */
.mf-promo { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin: 0 0 24px; padding: 26px 28px; border-radius: 24px; color: #FFFFFF;
  background: radial-gradient(circle at 92% 10%, rgb(244 200 66 / .35), transparent 40%), radial-gradient(circle at 6% 100%, rgb(45 190 143 / .35), transparent 45%), linear-gradient(135deg, #0E4D3E, #137A5E);
  box-shadow: 0 18px 50px rgb(14 77 62 / .18); }
.mf-promo > div { flex: 1 1 420px; min-width: 0; }
.mf-promo h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 6px 0 8px; color: #FFFFFF; }
.mf-promo p { margin: 0; color: #DDF1E9; font-size: 1.08rem; }
.mf-promo-flag { display: inline-block; background: #F4C842; color: #0E4D3E !important; font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: .92rem !important; }
.mf-promo-go { display: flex; flex-wrap: wrap; gap: 10px; }
.mf-promo-go .btn:not(.primary) { background: #FFFFFF; color: #0E4D3E; border-color: #FFFFFF; }
.mf-promo-go .btn.primary { background: #F4C842; color: #0E4D3E; border-color: #F4C842; }
.mf-nine { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 14px 0; }
.labs-try-go { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
/* Admin: Google Cloud spending */
.g-bar { height: 14px; background: var(--soft); border-radius: 999px; overflow: hidden; margin: 4px 0 12px; }
.g-bar span { display: block; height: 100%; background: var(--mint); }
.g-bar span.warn { background: var(--chalk); }
.g-bar span.over { background: var(--danger); }
.g-days { display: flex; align-items: flex-end; gap: 4px; height: 70px; padding: 4px 0; border-bottom: 1px solid var(--line); max-width: 520px; }
.g-days span { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }

/* ---------- Admin centre: easier to find things, and buttons that respond ---------- */
.admin .aj-group { flex: none; align-self: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: 8px; }
.admin .aj-group:first-child { margin-left: 0; }
.admin-jump a.is-current { background: var(--deep); color: #FFFFFF; border-color: var(--deep); box-shadow: inset 0 -3px 0 var(--chalk); }
.admin .aj-find { flex: none; margin-left: auto; }
.admin .aj-find input { min-height: 44px; width: 210px; border-radius: 999px; border: 1px solid var(--line); padding: 6px 14px; background: var(--surface); }
.admin .card { scroll-margin-top: 78px; transition: box-shadow .2s, border-color .2s; }
.admin .card.is-found { animation: admin-found 1.6s ease-out; }
@keyframes admin-found { 0%, 40% { box-shadow: 0 0 0 4px var(--chalk); border-color: var(--chalk); } 100% { box-shadow: none; } }
/* Every button and button-link: lifts on hover, presses in on click, gold focus ring, and shows working / done / failed. */
.admin button, .admin .btn { transition: transform .12s ease, box-shadow .15s ease, background-color .15s, border-color .15s; position: relative; }
.admin button:hover:not(:disabled), .admin .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgb(14 77 62 / .16); border-color: var(--accent); }
.admin button:active:not(:disabled), .admin .btn:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 2px 4px rgb(0 0 0 / .15); }
.admin button:focus-visible, .admin .btn:focus-visible, .admin input:focus-visible, .admin select:focus-visible, .admin textarea:focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; }
.admin button[aria-pressed="true"], .admin button[aria-selected="true"] { background: var(--deep); color: #FFFFFF; border-color: var(--deep); box-shadow: inset 0 -3px 0 var(--chalk); }
.admin button.is-busy { cursor: progress; opacity: .85; }
.admin button.is-busy::after { content: " …"; }
.admin button.is-done { background: var(--mint); border-color: var(--mint); color: #08201A; }
.admin button.is-done::after { content: " ✓"; }
.admin button.is-failed { border-color: var(--danger); color: var(--danger); animation: admin-shake .3s; }
.admin button.is-failed::after { content: " ✗"; }
@keyframes admin-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.admin input[type=checkbox], .admin input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; }
.admin label:has(> input[type=checkbox]:checked) { color: var(--deep); font-weight: 600; }
.admin tbody tr:hover { background: var(--soft); }
@media (prefers-reduced-motion: reduce) { .admin button, .admin .btn, .admin .card { transition: none; animation: none !important; } .admin button:hover:not(:disabled), .admin .btn:hover, .admin button:active:not(:disabled) { transform: none; } }
@media (max-width: 700px) { .admin .aj-find input { width: 160px; } }
/* On wider screens every section button shows at once (no sideways scrolling to find one). */
@media (min-width: 900px) { .admin .admin-jump { flex-wrap: wrap; overflow: visible; row-gap: 6px; } }

/* ---------- The picture safety library (red, amber, green) ---------- */
.psl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.psl-tab { min-height: 44px; border-radius: 999px; padding: 6px 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 600; }
.psl-tab b { margin-left: 4px; }
.psl-tab.psl-amber { border-color: #E3A21A; } .psl-tab.psl-green { border-color: #2DBE8F; } .psl-tab.psl-red { border-color: #C0392B; } .psl-tab.psl-grey { border-color: #9AA7A2; }
.psl-tab[aria-selected="true"] { background: var(--deep); color: #FFFFFF; border-color: var(--deep); box-shadow: inset 0 -3px 0 var(--chalk); }
.psl-search { display: grid; gap: 4px; max-width: 420px; margin-bottom: 12px; font-weight: 600; }
.psl-search input { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); padding: 6px 12px; background: var(--surface); font-weight: 400; }
.psl-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.psl-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left-width: 8px; transition: opacity .3s; }
.psl-card.psl-amber { border-left-color: #E3A21A; } .psl-card.psl-green { border-left-color: #2DBE8F; } .psl-card.psl-red { border-left-color: #C0392B; } .psl-card.psl-grey { border-left-color: #9AA7A2; }
.psl-card.psl-done { opacity: .55; }
.psl-img img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.psl-none { width: 110px; height: 110px; display: grid; place-items: center; text-align: center; font-size: .8rem; color: var(--muted); border: 2px dashed var(--line); border-radius: 10px; }
.psl-body { min-width: 0; display: grid; gap: 4px; align-content: start; }
.psl-body p { margin: 0; }
.psl-rag { font-size: .9rem; }
.psl-amber .psl-dot { color: #B7791F; } .psl-green .psl-dot { color: #137A5E; } .psl-red .psl-dot { color: #C0392B; } .psl-grey .psl-dot { color: #6B7A75; }
.psl-status { font-weight: 600; }
.psl-reason { font-style: italic; }
.psl-alt { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.psl-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.psl-acts button { min-height: 44px; }
@media (max-width: 480px) { .psl-card { grid-template-columns: 80px minmax(0, 1fr); } .psl-img img, .psl-none { width: 80px; height: 80px; } }

/* ---------- Cards that respond, on every page and lab (like the partners page) ----------
   Display cards lift a little with a soft shadow and a green edge when you point at
   them or tab into them. Working panels (in the labs) glow gently instead of moving.
   No movement when reduced motion is on. */
:is(.cards > .card, .feature-card, .tool-card, .lib-card, .ex-card, .psl-card, .mf-card, .home-card, .pa-plan-card, .pa-card, .sc-card,
  .rv-lib-card, .rv-card, .rd-cpd-card, .partner-card, .ns-card, .labs-mission-card, .gal-card, .cd-next-card, .win-card, .ps-card,
  .post-card, .labs-plan-card, .lab-card, .xt-card, .st-card, .research-card, .pw-card, .pw-stepcard, .founder-card, .mf-dl, .mf-todo li, .mf-ican li) {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
:is(.cards > .card, .feature-card, .tool-card, .lib-card, .ex-card, .psl-card, .mf-card, .home-card, .pa-plan-card, .pa-card, .sc-card,
  .rv-lib-card, .rv-card, .rd-cpd-card, .partner-card, .ns-card, .labs-mission-card, .gal-card, .cd-next-card, .win-card, .ps-card,
  .post-card, .labs-plan-card, .lab-card, .xt-card, .st-card, .research-card, .pw-card, .pw-stepcard, .founder-card, .mf-dl):is(:hover, :focus-within) {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgb(14 77 62 / .12);
  border-color: var(--accent);
}
:is(.mf-todo li, .mf-ican li):hover { transform: translateX(3px); }
:is(.tr-work > .panel, .pp-work > .panel, .mf-project .panel, .lab-panel, .mf-card-big, .labs-section) { transition: box-shadow .18s ease, border-color .18s ease; }
:is(.tr-work > .panel, .pp-work > .panel, .mf-project .panel, .lab-panel, .mf-card-big, .labs-section):is(:hover, :focus-within) { box-shadow: 0 14px 34px rgb(14 77 62 / .12); border-color: rgb(19 122 94 / .45); }
@media (prefers-reduced-motion: reduce) { :is(.cards > .card, .feature-card, .tool-card, .lib-card, .ex-card, .psl-card, .mf-card, .home-card, .pa-plan-card, .pa-card, .sc-card, .rv-lib-card, .rv-card, .rd-cpd-card, .partner-card, .ns-card, .labs-mission-card, .gal-card, .cd-next-card, .win-card, .ps-card, .post-card, .labs-plan-card, .lab-card, .xt-card, .st-card, .research-card, .pw-card, .pw-stepcard, .founder-card, .mf-dl, .mf-todo li, .mf-ican li) { transition: none; transform: none !important; } }
body.a11y-calm :is(.cards > .card, .feature-card, .tool-card, .mf-card, .home-card, .lab-card, .ex-card, .mf-dl) { transform: none !important; }
#picsWrap .pics-count { margin-top: 10px; }

/* ---------- Teacher pages: lively, and quick to find things (teacher-tiles.js) ---------- */
.tt-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 22px; padding: 4px 0; }
.tt-tile { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 14px 10px; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); color: var(--deep); font-weight: 700; text-decoration: none; min-height: 44px; box-shadow: 0 6px 18px rgb(14 77 62 / .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.tt-tile:hover, .tt-tile:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 30px rgb(14 77 62 / .12); color: var(--deep); }
.tt-tile.is-here { border-color: var(--chalk); background: #FFFBEA; box-shadow: 0 0 0 3px rgb(244 200 66 / .35); }
.tt-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--deep), var(--accent)); color: #FFFFFF; box-shadow: inset 0 -4px 0 rgb(244 200 66 / .8); }
.tt-tile:nth-child(3n+2) .tt-ico { background: linear-gradient(135deg, #C99A0E, var(--chalk)); color: var(--deep); box-shadow: inset 0 -4px 0 rgb(14 77 62 / .35); }
.tt-tile:nth-child(3n) .tt-ico { background: linear-gradient(135deg, var(--accent), var(--mint)); }
.tt-ico .ico { width: 30px; height: 30px; }
.tt-name { font-size: .95rem; line-height: 1.25; }
@media (max-width: 760px) {
  .tt-nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 128px; overflow-x: auto; scrollbar-width: thin; }
  .tt-ico { width: 44px; height: 44px; } .tt-ico .ico { width: 24px; height: 24px; }
}
/* Sections: a colour edge, a soft glow in the corner and a bigger number badge. */
.labs-console .labs-section[data-accent]:not(.rv-plus, .pa-panel) { border-top: 6px solid var(--accent); background-image: radial-gradient(circle at 100% 0, rgb(45 190 143 / .09), transparent 32%); scroll-margin-top: 20px; }
.labs-console .labs-section[data-accent="gold"]:not(.rv-plus, .pa-panel) { border-top-color: var(--chalk); background-image: radial-gradient(circle at 100% 0, rgb(244 200 66 / .14), transparent 32%); }
.labs-console .labs-section[data-accent="mint"]:not(.rv-plus, .pa-panel) { border-top-color: var(--mint); }
.labs-console .labs-section-title .labs-num { background: linear-gradient(135deg, var(--deep), var(--accent)); box-shadow: 0 0 0 4px rgb(244 200 66 / .45); }
/* Tick tiles (topics, options): respond to the pointer, and clearly show what's chosen. */
.labs-console :is(.rv-opt, .rv-chip, .rv-check-line) { transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.labs-console :is(.rv-opt, .rv-chip):hover { border-color: var(--accent); background: var(--bg); transform: translateY(-2px); box-shadow: 0 8px 18px rgb(14 77 62 / .08); }
.labs-console :is(.rv-opt, .rv-chip):has(input:checked) { border-color: var(--accent); background: #E1F4EB; box-shadow: inset 0 -3px 0 var(--mint); }
.labs-console :is(.rv-opt, .rv-chip) input:is([type="checkbox"], [type="radio"]) { accent-color: var(--accent); }
.labs-console :is(.rv-pick-btn):hover { border-color: var(--accent); box-shadow: 0 8px 18px rgb(14 77 62 / .08); }
@media (prefers-reduced-motion: reduce) { .tt-tile, .labs-console :is(.rv-opt, .rv-chip) { transition: none; transform: none !important; } }
body.a11y-calm .tt-tile, body.a11y-calm .labs-console :is(.rv-opt, .rv-chip) { transform: none !important; }

/* Pricing: the yearly price under each Pro plan, and "Build your own plan". */
.pricing .price-year { margin: -4px 0 10px; color: var(--muted); font-size: .95rem; }
.pricing .price-year b { color: var(--accent); }
.build-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 22px 0 8px; padding: 20px 24px; border-radius: 24px; background: linear-gradient(120deg, var(--soft), var(--surface)); border: 2px solid var(--chalk); box-shadow: 0 10px 26px rgb(14 77 62 / .08); }
.build-plan h3 { margin: 0 0 4px; font-family: var(--font-display); color: var(--deep); font-size: 1.35rem; }
.build-plan p { margin: 0; max-width: 760px; }
.build-plan-go { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 24px; border-radius: 999px; background: var(--deep); color: #FFFFFF; font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: inset 0 -4px 0 var(--chalk); }
.build-plan-go:hover { background: var(--accent); }
.build-plan-go:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }

/* Homepage: KS3 Computing, with sparkles (still for reduced motion). */
.home-ks3 { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 32px; align-items: center;
  padding: clamp(26px, 4vw, 44px); border-radius: 28px; color: #FFFFFF;
  background: radial-gradient(460px 260px at 92% 6%, rgb(244 200 66 / .38), transparent 70%), radial-gradient(520px 320px at 4% 100%, rgb(45 190 143 / .42), transparent 70%), linear-gradient(135deg, #0B2A22, var(--deep) 50%, var(--accent));
  box-shadow: 0 22px 50px rgb(14 77 62 / .25), inset 0 -6px 0 var(--chalk); }
.home-ks3-text { position: relative; z-index: 1; display: grid; justify-items: start; gap: 4px; }
.home-ks3-flag { display: inline-flex; gap: 6px; align-items: center; background: var(--chalk); color: var(--chalk-ink, #2B2200); border-radius: 999px; padding: 5px 14px; font-weight: 800; font-size: .92rem; box-shadow: 0 0 0 4px rgb(244 200 66 / .25), 0 0 24px rgb(244 200 66 / .55); }
.home-ks3 h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.08; margin: 14px 0 10px; color: #FFFFFF; }
.home-ks3-shine { background: linear-gradient(100deg, #F4C842 0%, #FFF3C4 22%, #F4C842 40%, #FFE38A 60%, #F4C842 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ks3-shine 5s ease-in-out infinite; }
.home-ks3 p { color: #DDF3EA; font-size: 1.1rem; margin: 0 0 16px; max-width: 640px; line-height: 1.55; }
.home-ks3-themes { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.home-ks3-themes li { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .28); font-weight: 700; }
.home-ks3-go { background: var(--chalk); color: var(--deep) !important; border-color: var(--chalk); font-weight: 800; box-shadow: 0 10px 26px rgb(0 0 0 / .25), 0 0 22px rgb(244 200 66 / .5); }
.home-ks3-go .ico { width: 18px; height: 18px; }
.home-ks3-more { background: transparent; color: #FFFFFF !important; border: 2px solid rgb(255 255 255 / .6); }
.home-ks3-go:focus-visible, .home-ks3-more:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.home-ks3-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-ks3-stats > div { display: grid; justify-items: center; gap: 2px; padding: 16px 8px; border-radius: 20px; background: rgb(255 255 255 / .1); border: 1px solid rgb(244 200 66 / .45); text-align: center; backdrop-filter: blur(2px); }
.home-ks3-stats b { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; color: var(--chalk); text-shadow: 0 0 18px rgb(244 200 66 / .55); }
.home-ks3-stats span { color: #DDF3EA; font-weight: 700; font-size: .9rem; }
.home-ks3-stats .home-ks3-join { grid-column: 1 / -1; background: #FFFFFF; border-color: #FFFFFF; }
.home-ks3-join span { color: var(--muted) !important; }
.home-ks3-join b { font-size: clamp(1.3rem, 2.4vw, 1.8rem) !important; color: var(--deep) !important; text-shadow: none !important; }
/* The sparkles: little gold four-point stars that twinkle in and out. */
.ks3-sparkles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ks3-sparkles i { position: absolute; width: 14px; height: 14px; background: #FFE38A; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 6px rgb(244 200 66 / .9)); opacity: 0; animation: ks3-twinkle 3.2s ease-in-out infinite; }
.ks3-sparkles i:nth-child(1) { top: 9%; left: 46%; animation-delay: 0s; }
.ks3-sparkles i:nth-child(2) { top: 18%; left: 88%; width: 20px; height: 20px; animation-delay: .6s; }
.ks3-sparkles i:nth-child(3) { top: 74%; left: 52%; width: 10px; height: 10px; animation-delay: 1.2s; }
.ks3-sparkles i:nth-child(4) { top: 86%; left: 92%; animation-delay: 1.8s; }
.ks3-sparkles i:nth-child(5) { top: 6%; left: 70%; width: 9px; height: 9px; animation-delay: 2.4s; }
.ks3-sparkles i:nth-child(6) { top: 46%; left: 61%; width: 18px; height: 18px; animation-delay: .3s; }
.ks3-sparkles i:nth-child(7) { top: 92%; left: 30%; width: 11px; height: 11px; animation-delay: 1.5s; }
.ks3-sparkles i:nth-child(8) { top: 30%; left: 97%; width: 10px; height: 10px; animation-delay: 2.1s; }
.ks3-sparkles i:nth-child(9) { top: 4%; left: 22%; width: 12px; height: 12px; animation-delay: .9s; }
.ks3-sparkles i:nth-child(10) { top: 60%; left: 3%; width: 10px; height: 10px; animation-delay: 2.7s; }
.ks3-sparkles i:nth-child(11) { top: 38%; left: 78%; width: 8px; height: 8px; animation-delay: 1.1s; }
.ks3-sparkles i:nth-child(12) { top: 66%; left: 82%; width: 16px; height: 16px; animation-delay: 2s; }
@keyframes ks3-twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: .2; transform: scale(.7) rotate(70deg); } }
@keyframes ks3-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (max-width: 900px) { .home-ks3 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .ks3-sparkles i { animation: none; opacity: .55; transform: rotate(45deg) scale(.8); }
  .home-ks3-shine { animation: none; background-position: 50% 0; }
}
/* More glitter: bigger stars and a fine shimmering gold dust. */
.ks3-sparkles i { width: 22px; height: 22px; background: radial-gradient(circle, #FFFFFF 0 18%, #FFE38A 40%, #F4C842 70%); filter: drop-shadow(0 0 8px rgb(255 227 138 / .95)) drop-shadow(0 0 16px rgb(244 200 66 / .6)); animation-duration: 2.6s; }
.ks3-sparkles i:nth-child(2), .ks3-sparkles i:nth-child(6), .ks3-sparkles i:nth-child(12) { width: 30px; height: 30px; }
.ks3-sparkles i:nth-child(3), .ks3-sparkles i:nth-child(5), .ks3-sparkles i:nth-child(11) { width: 14px; height: 14px; }
.home-ks3::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #FFF3C4 50%, transparent 51%), radial-gradient(1.5px 1.5px at 34% 78%, #FFE38A 50%, transparent 51%), radial-gradient(2px 2px at 57% 14%, #FFFFFF 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 73% 64%, #FFE38A 50%, transparent 51%), radial-gradient(2px 2px at 88% 40%, #FFF3C4 50%, transparent 51%), radial-gradient(1.5px 1.5px at 23% 52%, #FFFFFF 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 88%, #FFF3C4 50%, transparent 51%), radial-gradient(2px 2px at 44% 36%, #FFE38A 50%, transparent 51%), radial-gradient(1.5px 1.5px at 94% 82%, #FFFFFF 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 5% 8%, #FFE38A 50%, transparent 51%), radial-gradient(2px 2px at 81% 9%, #FFFFFF 50%, transparent 51%), radial-gradient(1.5px 1.5px at 50% 60%, #FFF3C4 50%, transparent 51%);
  background-size: 360px 240px; animation: ks3-dust 4s ease-in-out infinite alternate; }
@keyframes ks3-dust { from { opacity: .25; background-position: 0 0; } to { opacity: .75; background-position: 14px -10px; } }
@media (prefers-reduced-motion: reduce) { .home-ks3::after { animation: none; opacity: .5; } }
.ks3-sparkles i { width: 26px; height: 26px; background: radial-gradient(circle, #FFFDF2 0 10%, #FFE38A 28%, #F4C842 55%, #E0A800 100%); }
.ks3-sparkles i:nth-child(2), .ks3-sparkles i:nth-child(6), .ks3-sparkles i:nth-child(12) { width: 38px; height: 38px; }
.ks3-sparkles i:nth-child(3), .ks3-sparkles i:nth-child(5), .ks3-sparkles i:nth-child(11) { width: 16px; height: 16px; }
/* KS3 Computing on the whole-school card: first, glittering, and clearly included. */
.incl-flag { display: inline-block; background: #FFFFFF; color: var(--deep); font-weight: 800; font-size: .75rem; border-radius: 999px; padding: 2px 9px; vertical-align: middle; box-shadow: 0 0 0 2px var(--chalk); }
.school-list li.school-ks3 { border-width: 2px; box-shadow: 0 0 22px rgb(244 200 66 / .35); }
.school-list li.school-ks3 a { color: inherit; text-decoration: underline; text-decoration-color: rgb(244 200 66 / .7); text-underline-offset: 3px; }


/* ---------- phones: easier to use on a small screen ---------- */
/* Signed in on a phone: a short note that the tools have more room on a computer (common.js). */
.desktop-note { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 14px; border-radius: 18px;
  background: var(--soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-left: 5px solid var(--chalk); }
.desktop-note p { margin: 0; font-size: .95rem; line-height: 1.45; flex: 1 1 auto; min-width: 0; }
.desktop-note b { color: var(--accent); }
.dn-icon { font-size: 1.6rem; flex: none; }
.desktop-note .dn-ok { flex: none; min-height: 44px; min-width: 64px; border-radius: 12px; font-weight: 700; background: var(--deep); color: #FFFFFF; border: 0; }
.desktop-note .dn-ok:focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; }
@media (min-width: 821px) { .desktop-note { display: none; } }
@media print { .desktop-note { display: none; } }

@media (max-width: 700px) {
  /* The header takes less room: page links sit in one row you can swipe sideways. */
  header.top .wrap { min-height: 56px; padding-block: 8px; gap: 8px; }
  header.top .nav:not(.home-nav):not(:has(details)) {
    width: 100%; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    scrollbar-width: none; padding: 2px 2px 4px; margin-inline: -2px;
  }
  header.top .nav:not(.home-nav):not(:has(details))::-webkit-scrollbar { display: none; }
  header.top .nav:not(.home-nav):not(:has(details)) > * { flex: none; white-space: nowrap; scroll-snap-align: start; }
  header.top .nav .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }

  /* Resource tables scroll sideways rather than squashing words letter by letter. */
  .doc th, .doc td { min-width: 128px; overflow-wrap: normal; word-break: normal; hyphens: auto; }
  .doc th:first-child, .doc td:first-child { min-width: 72px; }

  /* The builder's "What do you need?" cards: titles only, with the selected card's
     description shown, so the brief and the Generate button are a short scroll away. */
  .builder .types { gap: 8px; }
  .builder .tb { align-items: center; padding: 8px 10px; min-height: 52px; }
  .builder .tb .ti { width: 30px; height: 30px; font-size: 1.05rem; }
  .builder .tb span { display: none; }
  .builder .type input:checked + .tb span { display: block; grid-column: 1 / -1; margin-top: 6px; }

  /* Bigger tap targets for the small option chips. */
  .chip span { padding: 9px 14px; }

  /* Typing in a field doesn't zoom the page (phones zoom in on text under 16px). */
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
}

/* Phones: section tiles become a row of small tabs, and only the chosen section shows. */
@media (max-width: 700px) {
  .tt-nav { grid-auto-columns: max-content; gap: 8px; margin: 0 0 14px; padding: 4px 2px 6px; position: sticky; top: 0; z-index: 5; background: var(--bg, #F3FAF6); }
  .tt-tile { grid-auto-flow: column; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; min-height: 44px; }
  .tt-tile:hover, .tt-tile:focus-visible { transform: none; }
  .tt-ico { width: 32px; height: 32px; border-radius: 50%; box-shadow: none; } .tt-ico .ico { width: 18px; height: 18px; }
  .tt-name { font-size: .9rem; white-space: nowrap; }
  .tt-tabs .labs-section.tt-off { display: none !important; }
  /* The "best on a computer" note is left out on phones: it's one more thing to read. */
  .desktop-note { display: none !important; }
}

/* Partner page: the investor and partner overview. Slides scroll sideways like a deck on
   a table, with arrows and dots; "Play" shows one slide at a time, full screen. */
.inv-deck { margin: 4px 0 14px; padding: 10px; border-radius: 24px; background: linear-gradient(135deg, var(--deep), var(--accent)); box-shadow: 0 18px 40px rgb(14 77 62 / .22); }
.inv-viewport { position: relative; }
.inv-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; border-radius: 14px; }
.inv-track:focus-visible { outline: 4px solid var(--chalk); outline-offset: 4px; }
.inv-slide { flex: 0 0 100%; scroll-snap-align: center; border-radius: 12px; overflow: hidden; background: #FFFFFF; box-shadow: 0 8px 22px rgb(0 0 0 / .25); }
.inv-slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.inv-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--chalk); background: rgb(14 77 62 / .88); color: #FFFFFF; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px rgb(0 0 0 / .3); }
.inv-prev { left: 10px; } .inv-next { right: 10px; }
.inv-arrow:disabled { opacity: .3; cursor: default; }
.inv-arrow:focus-visible, .inv-dot:focus-visible { outline: 4px solid var(--chalk); outline-offset: 3px; }
.inv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 4px 2px; color: #FFFFFF; }
.inv-count { font-weight: 700; }
.inv-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.inv-dot { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.inv-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: rgb(255 255 255 / .45); transition: transform .15s, background .15s; }
.inv-dot[aria-current="true"]::before { background: var(--chalk); transform: scale(1.35); }
.inv-scroll, .inv-text { margin-top: 10px; }
.inv .research-text { min-width: 0; }
.inv-cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.inv-text-body { display: grid; gap: 18px; padding: 4px 0 16px; }
.inv-slide-text { border-left: 4px solid var(--mint, #2DBE8F); padding-left: 14px; }
.inv-slide-text h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 6px; display: flex; gap: 10px; align-items: baseline; }
.inv-no { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--deep); color: #FFFFFF; font-size: .85rem; }
.inv-slide-text p { margin: 0 0 6px; }
.inv-slide-text .inv-src { color: var(--muted); font-size: .9rem; }
.inv-table { overflow-x: auto; }
.inv-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.inv-table th, .inv-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-table thead th { background: var(--soft); }
.inv-talk { margin-top: 14px; font-size: 1.05rem; }
/* Playing: the slide fills the screen on deep green, with the controls underneath. */
.inv-show { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #0B3D31; display: none; }
.inv-show[open] { display: flex; flex-direction: column; }
.inv-show::backdrop { background: #0B3D31; }
.inv-show-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; cursor: pointer; touch-action: pan-y; user-select: none; }
.inv-show-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 18px 50px rgb(0 0 0 / .45); background: #FFFFFF; }
.inv-show-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px 14px; color: #FFFFFF; font-weight: 700; border-top: 4px solid var(--chalk); background: #0E4D3E; }
.inv-show-btn { min-width: 52px; min-height: 48px; border-radius: 999px; border: 2px solid var(--chalk); background: transparent; color: #FFFFFF; font-weight: 800; font-size: 1rem; cursor: pointer; padding: 0 16px; }
.inv-show-btn:disabled { opacity: .3; cursor: default; }
.inv-show-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.inv-show-x { margin-left: 18px; background: var(--chalk); color: var(--deep); }
@media (max-width: 760px) {
  .inv-deck { padding: 8px; border-radius: 18px; margin-inline: -4px; }
  .inv-arrow { width: 44px; height: 44px; top: auto; bottom: -58px; transform: none; }
  .inv-prev { left: auto; right: 56px; } .inv-next { right: 4px; }
  .inv-bar { padding-right: 104px; min-height: 52px; }
  .inv-dots { display: none; }
  .inv-actions .btn { flex: 1 1 100%; text-align: center; }
  .inv-show-x { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { .inv-dot::before { transition: none; } }
