/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; } /* stable: pages don't shift sideways when a scrollbar appears */
html[data-textsize="1"] { font-size: 112.5%; }
html[data-textsize="2"] { font-size: 125%; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(21,20,27,.09) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
code { background: #ece6da; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

main { max-width: 1120px; margin: 0 auto; padding: 28px 16px 80px; }
main.wide { max-width: 1360px; }

.eyebrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--muted); margin-bottom: .4em; }
.eyebrow a { text-decoration: none; }
.hl { background: linear-gradient(transparent 55%, var(--zone) 55%, var(--zone) 92%, transparent 92%); padding: 0 .1em; }
.lede { font-size: 1.15rem; max-width: 62ch; color: #2d2b29; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 40px 0 16px; }
.section-title small { display: block; font-family: var(--body); font-size: .8rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.page-head { margin-bottom: 20px; }
.page-head h1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.verify { display: flex; gap: 8px; align-items: flex-start; background: #fff3c4; border: 2px dashed #b38600; border-radius: var(--r-sm); padding: 10px 14px; font-size: .92rem; max-width: 80ch; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px; background: var(--ink); color: #fff;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--lime); color: var(--ink); transform: rotate(-6deg); border: 2px solid #fff; }
.logo-mark .ico { width: 24px; height: 24px; stroke-width: 3; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.mainnav { display: flex; gap: 4px; margin-left: 8px; flex: 1; overflow-x: auto; }
.mainnav a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; white-space: nowrap; color: #dcd8cf; }
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.mainnav a.on { background: var(--lime); color: var(--ink); font-weight: 600; }
.me { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tool-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 2px solid #4a4855; color: #fff; cursor: pointer; }
.tool-btn:hover { border-color: #fff; }
.me-menu { position: relative; }
.me-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; border: 2px solid #4a4855; }
.me-menu summary::-webkit-details-marker { display: none; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--violet); color: var(--ink); font-weight: 700; font-size: .8rem; border: 2px solid var(--ink); flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: .68rem; margin-right: 8px; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; border-width: 3px; box-shadow: var(--shadow); }
.me-pop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 8px; min-width: 220px; }
.me-pop a, .me-pop button { display: flex; gap: 8px; align-items: center; width: 100%; padding: 8px 10px; border: 0; background: none; font: inherit; text-decoration: none; border-radius: 8px; cursor: pointer; text-align: left; }
.me-pop a:hover, .me-pop button:hover { background: var(--paper); }
.me-role { font-size: .8rem; color: var(--muted); padding: 4px 10px; margin: 0; }

.flash { display: flex; align-items: center; gap: 10px; max-width: 1120px; margin: 16px auto 0; padding: 12px 16px; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--shadow); font-weight: 500; width: calc(100% - 32px); }
.flash-ok { background: var(--lime); }
.flash-error { background: #ffd5cc; }

/* ===== Buttons & forms ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  padding: 10px 18px; border: var(--bw) solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }
.btn-zone { background: var(--zone); color: var(--zone-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; }
.btn-danger { background: #ffd5cc; }
.btn-sm { padding: 5px 12px; font-size: .88rem; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; }
.btn-lg { padding: 14px 26px; font-size: 1.1rem; }
.btn-xl { padding: 18px 34px; font-size: 1.3rem; box-shadow: var(--shadow-lg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field { display: grid; gap: 6px; font-weight: 500; }
.field > span { font-size: .92rem; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--ink); margin-top: 2px; }
.form-grid { display: grid; gap: 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { width: auto; padding: 6px 10px; }
.form-error { display: flex; gap: 8px; align-items: center; background: #ffd5cc; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; }

.panel { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 32px); margin-bottom: 24px; }
.panel h2:not(:first-child) { margin-top: 1.4em; }
.center-panel { text-align: center; display: grid; justify-items: center; gap: 6px; }
.center-panel ul { text-align: left; }
.big-ico { width: 64px; height: 64px; }
.callout-box { display: flex; gap: 14px; align-items: flex-start; background: color-mix(in srgb, var(--zone) 35%, white); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 14px 16px; margin: 18px 0; }
.callout-box > .ico { width: 28px; height: 28px; margin-top: 2px; }
.callout-box p { margin: 4px 0; }
.callout-box ul { margin: 6px 0 0; padding-left: 20px; }
.callout-box.warn { background: #fff3c4; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 36px; border: 3px dashed #bdb5a6; border-radius: var(--r); color: var(--muted); text-align: center; }
.empty .ico { width: 40px; height: 40px; }

.read-btn, .say {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 600 .88rem var(--body); padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
}
.read-btn.speaking, .say.speaking { background: var(--lime); color: var(--ink); }
.say { padding: 4px; width: 30px; height: 30px; justify-content: center; vertical-align: middle; background: #fff; color: var(--ink); }

.vc-list { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-chip { display: inline-flex; align-items: baseline; gap: 6px; font-size: .78rem; line-height: 1.3; padding: 4px 10px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); }
.vc-chip b { font-family: var(--display); }
.vc-chip.vc-ext { background: #fff7d6; border-style: dashed; }
.vc-chip em { font-style: normal; font-weight: 700; color: #8a6500; }

/* ===== Map ===== */
.map-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin-bottom: 28px; }
.map-hero h1 { max-width: 16ch; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 280px; }
.stat { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 16px; }
.stat b { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.stat span { font-size: .9rem; color: var(--muted); }
.meter { grid-column: 1 / -1; height: 18px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--lime) 0 10px, #b2dc2a 10px 20px); border-right: var(--bw) solid var(--ink); }

.celebrate { display: flex; align-items: center; gap: 18px; background: var(--lime); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 18px 22px; margin-bottom: 28px; position: relative; overflow: hidden; }
.celebrate h2 { margin: 0 0 4px; }
.celebrate p { margin: 0; }
.celebrate .btn { margin-left: auto; }
.celebrate-ico { width: 48px; height: 48px; flex: none; animation: wiggle 1s ease-in-out 3; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.confetti { position: absolute; width: 10px; height: 14px; top: -20px; animation: fall linear forwards; border: 1.5px solid var(--ink); }
@keyframes fall { to { transform: translateY(260px) rotate(540deg); opacity: 0; } }

.next-up { margin-bottom: 44px; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 26px 22px; padding-top: 6px; }

.node {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r);
  padding: 22px 18px 18px 18px; box-shadow: var(--shadow); position: relative;
  transition: transform .1s, box-shadow .1s; min-height: 104px; gap: 16px;
}
a.node:hover { transform: translate(-2px, -2px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.node-text { display: grid; gap: 5px; flex: 1; min-width: 0; }
.node-text strong { font-family: var(--display); font-size: 1.15rem; line-height: 1.15; }
.node-text small { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.node-state { position: absolute; top: -12px; right: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.node-state .ico { width: 13px; height: 13px; }
.state-open { background: color-mix(in srgb, var(--zone) 22%, white); }
.state-open .node-state { background: var(--zone); color: var(--zone-ink); }
.state-started { background: repeating-linear-gradient(-45deg, #fff 0 12px, color-mix(in srgb, var(--zone) 25%, white) 12px 24px); }
.state-started .node-state { background: var(--ink); color: #fff; }
.state-submitted .node-state { background: var(--sun); }
.state-complete { background: var(--zone); color: var(--zone-ink); }
.state-complete .node-text small { color: inherit; opacity: .8; }
.state-complete .node-state { background: var(--ink); color: #fff; }
.state-locked { background: #ebe6dc; border-style: dashed; box-shadow: none; color: #6b665e; }
.state-locked .node-text small { color: #7a746a; font-weight: 500; }
.state-soon { background: #fff; border-style: dashed; }
.state-soon .node-state { background: #ebe6dc; }

.zone-band { background: var(--zone); border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(22px, 3vw, 36px); }
.zone-head { display: flex; gap: 18px; align-items: center; margin-bottom: 30px; color: var(--zone-ink); }
.zone-head h2 { margin: 0; font-size: 2rem; }
.zone-head p { margin: 2px 0 0; }
.band-nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.band-nodes.four { grid-template-columns: repeat(4, 1fr); }
.zone-band .state-open { background: #fff; }
.zone-band .state-complete { background: var(--ink); color: #fff; }
.zone-band .state-complete .node-state { background: var(--zone); color: var(--zone-ink); }
.trail-arrow { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 28px 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--muted); }
.trail-arrow .ico { width: 22px; height: 22px; stroke-width: 3; }
.crossroads { margin-top: 36px; }

.zones { display: grid; grid-template-columns: repeat(var(--zones, 5), minmax(0, 1fr)); gap: 16px; }
.zone { background: #fff; border: var(--bw) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.zone-top { background: var(--zone); color: var(--zone-ink); padding: 18px 16px 14px; border-bottom: var(--bw) solid var(--ink); }
.zone-top h2 { margin: 12px 0 4px; font-size: 1.45rem; }
.zone-top p { font-size: .86rem; line-height: 1.4; margin-bottom: 10px; min-height: 3.6em; }
.zone-top small { font-weight: 600; font-size: .78rem; }
.zone-meter { height: 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; margin-bottom: 4px; }
.zone-meter span { display: block; height: 100%; background: var(--ink); }
.trail { padding: 26px 14px 20px; display: grid; gap: 26px; position: relative; flex: 1;
  background-image: linear-gradient(var(--ink), var(--ink)); background-size: 3px 100%; background-position: 50% 0; background-repeat: no-repeat; }
.tier { display: grid; gap: 24px; position: relative; }
.tier-label { justify-self: center; font-family: var(--display); font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; background: var(--ink); color: #fff; padding: 2px 10px; border-radius: 999px; }
.zone .node { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 14px 14px; }
.zone .tier-3 .node { border-width: 4px; }
.zone .tier-3 .node::after { content: "BOSS"; position: absolute; left: 10px; top: -12px; font: 800 .65rem var(--display); letter-spacing: .1em; background: var(--coral); border: 2px solid var(--ink); padding: 1px 7px; border-radius: 999px; color: var(--ink); }

/* ===== Skill page ===== */
.skill-hero { background: var(--zone); color: var(--zone-ink); border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 22px clamp(18px, 3vw, 34px) 28px; margin-bottom: 24px; position: relative; overflow: hidden; }
.skill-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255,255,255,.25); }
.crumb { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: .9rem; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.skill-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; position: relative; z-index: 1; }
.skill-hero h1 { margin: 16px 0 6px; }
.tagline { font-size: 1.3rem; font-weight: 500; margin: 0; }
.hero-card { background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.hero-card .kicker { display: flex; margin-bottom: 4px; }
.hero-card p { margin-bottom: 10px; }

.skill-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.steps { position: sticky; top: 84px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; font-weight: 500; border: 2px solid transparent; }
.steps a:hover { background: #fff; border-color: var(--ink); }
.steps a.on { background: #fff; border: var(--bw) solid var(--ink); box-shadow: var(--shadow); font-weight: 700; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-weight: 700; font-size: .85rem; }
.steps a.done .step-n { background: var(--zone); }
.steps a.done .step-n .ico { width: 16px; height: 16px; stroke-width: 3; }
.step-ico { opacity: .7; }
.steps-now { display: none; }
.done-form { display: flex; justify-content: flex-end; margin: -6px 0 30px; }
.panel-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }

.hook { display: flex; gap: 16px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 18px 20px; font-size: 1.15rem; margin-bottom: 24px; }
.hook p { margin: 0; }
.hook strong { color: var(--zone); }
.hook-ico { width: 40px; height: 40px; flex: none; color: var(--zone); }
.can-do { list-style: none; padding: 0; display: grid; gap: 10px; }
.can-do li { display: flex; gap: 10px; align-items: flex-start; }
.can-do .ico { width: 24px; height: 24px; color: #2b7a0b; margin-top: 2px; }
.vocab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.vocab-card { position: relative; background: color-mix(in srgb, var(--zone) 18%, white); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 12px 14px; }
.vocab-card strong { font-family: var(--display); font-size: 1.3rem; display: block; }
.vocab-card p { margin: 2px 0 6px; font-size: .95rem; }
.vocab-card em { font-size: .85rem; color: var(--muted); }
.vocab-card .say { position: absolute; top: 10px; right: 10px; }

.start-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.start-steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.start-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; font-size: .88rem; background: var(--paper); }

/* Explainer player */
.explainer { border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink); }
.ex-stage { position: relative; aspect-ratio: 16 / 9; background: var(--zone); overflow: hidden; }
.ex-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.12) 1.5px, transparent 1.5px); background-size: 20px 20px; }
.ex-scene { position: absolute; left: 0; top: 0; width: 960px; height: 540px; transform: scale(var(--k, .75)); transform-origin: 0 0; display: grid; place-items: center; padding: 30px 60px; opacity: 0; visibility: hidden; transition: opacity .35s; color: var(--zone-ink); }
.ex-scene.active { opacity: 1; visibility: visible; }
.ex-scene.active .sc > * { animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.ex-scene.active .sc > *:nth-child(2) { animation-delay: .15s; }
.ex-scene.active .sc > *:nth-child(3) { animation-delay: .3s; }
.ex-scene.active .sc > *:nth-child(4) { animation-delay: .45s; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: none; } }
.sc { position: relative; text-align: center; display: grid; justify-items: center; gap: 2%; width: 100%; }
.sc h3 { font-size: 64px; font-weight: 800; margin: 0; line-height: 1.05; }
.sc p { font-size: 31px; max-width: 32ch; margin: 0; font-weight: 500; line-height: 1.3; }
.sc-title .sticker { transform: scale(1.3); margin-bottom: 18px; }
.sc-ico { width: 120px; height: 120px; stroke-width: 2.2; }
.sc-message { grid-template-columns: auto auto; align-items: center; gap: 6%; }
.ex-caption { font-size: 1.05rem; }
.sc-message .phone { transform: rotate(3deg); width: 300px; font-size: 16px; }
.sc-message .bubble { font-size: 19px; }
.sc-stat b { white-space: nowrap; font-family: var(--display); font-size: 106px; line-height: .9; background: #fff; border: var(--bw) solid var(--ink); padding: 2% 4%; border-radius: 20px; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.sc-stat p { font-size: 22px; max-width: 50ch; }
.sc-flag { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; gap: 5%; }
.flag-letter { font-family: var(--display); font-weight: 800; font-size: 170px; line-height: .8; background: var(--coral); color: var(--ink); border: 4px solid var(--ink); border-radius: 26px; padding: 2% 6%; box-shadow: var(--shadow-lg); transform: rotate(-4deg); }
.flag-pill { display: inline-flex; gap: 6px; align-items: center; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 12px; font-weight: 700; text-transform: uppercase; font-size: 19px; letter-spacing: .08em; margin-bottom: 10px; padding: 4px 16px; }
.sc-steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.sc-steps li { counter-increment: s; background: #fff; border: var(--bw) solid var(--ink); border-radius: 14px; padding: 10px 24px; font-size: 29px; font-weight: 600; box-shadow: var(--shadow); text-align: left; }
/* Five or more steps: a little tighter so they still fit the frame. */
.sc-steps ol:has(li:nth-child(5)) { gap: 8px; }
.sc-steps ol:has(li:nth-child(5)) li { font-size: 25px; padding: 7px 22px; }
.sc-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--ink); color: #fff; margin-right: 10px; }
.ex-big-play { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: #fff; border: 4px solid #fff; display: grid; place-items: center; cursor: pointer; z-index: 3; box-shadow: 0 0 0 6px rgba(0,0,0,.15); }
.ex-big-play .ico { width: 42px; height: 42px; fill: #fff; margin-left: 6px; }
.explainer.playing .ex-big-play, .explainer.started .ex-big-play { display: none; }
.ex-caption { min-height: 3.4em; padding: 10px 18px; color: #fff; background: var(--ink); font-size: 1.05rem; text-align: center; display: grid; place-items: center; }
.explainer.no-cc .ex-caption { display: none; }
.ex-controls { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #23222b; }
.ex-controls button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: transparent; color: #fff; border: 2px solid #4a4855; cursor: pointer; }
.ex-controls button[aria-pressed="false"] { opacity: .45; }
.ex-controls .i-pause { display: none; }
.explainer.playing .i-pause { display: block; }
.explainer.playing .i-play { display: none; }
.ex-progress { flex: 1; display: flex; gap: 4px; }
.ex-progress span { flex: 1; height: 8px; border-radius: 99px; background: #4a4855; overflow: hidden; }
.ex-progress i { display: block; height: 100%; width: 0; background: var(--zone); }
.ex-progress span.past i { width: 100%; }
.transcript { margin-top: 16px; }
.transcript summary { cursor: pointer; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.video-wrap { aspect-ratio: 16/9; border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
body.board { background: var(--ink); }
.board-main { max-width: 1400px; padding: 2vh 2vw; }

/* Reading */
.reading header, .case header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.reading header .read-btn, .case header .read-btn { margin-left: auto; }
.prose { font-size: 1.12rem; line-height: 1.75; max-width: 66ch; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.reading .prose strong { background: color-mix(in srgb, var(--zone) 45%, white); padding: 0 3px; border-radius: 4px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.case { border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 18px; background: #fffdf7; box-shadow: var(--shadow); }
.case .prose { font-size: 1rem; }
.think { background: #fff3c4; border-radius: var(--r-sm); padding: 10px 14px; border: 2px solid var(--ink); }
.think ul { margin: 6px 0 0; padding-left: 20px; }
.source { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.diagram-wrap + .diagram-wrap { margin-top: 36px; }

/* Workbook step */
.workbook-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.wb-thumb { width: 150px; aspect-ratio: 210/297; background: var(--zone); border: var(--bw) solid var(--ink); border-radius: 10px; box-shadow: var(--shadow-lg); display: grid; place-items: center; align-content: center; gap: 6px; transform: rotate(-4deg); text-align: center; padding: 10px; }
.wb-thumb span { display: grid; place-items: center; width: 56px; height: 56px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.wb-thumb span .ico { width: 30px; height: 30px; }
.wb-thumb b { font-family: var(--display); line-height: 1.1; }
.wb-thumb i { font-style: normal; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.wb-list { columns: 2; gap: 30px; }
.wb-list li { margin-bottom: 6px; break-inside: avoid; }

/* Quiz */
.quiz { display: grid; gap: 16px; }
.q { border: 2px solid var(--ink); border-radius: var(--r); padding: 14px 18px 16px; margin: 0; background: #fff; }
.q { min-width: 0; }
/* The question sits inside its box (not on the border), so long questions wrap cleanly. */
.q legend { float: left; width: 100%; display: flex; align-items: flex-start; gap: 10px; font-weight: 600; padding: 0 0 4px; font-size: 1.08rem; }
.q legend + * { clear: both; }
.q legend .q-n { margin-top: 1px; }
.q legend .say-btn, .q legend button { margin-left: auto; flex: none; }
.q-text { min-width: 0; overflow-wrap: anywhere; }
.opt span { min-width: 0; overflow-wrap: anywhere; }
.q-n { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; }
.opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 2px solid #d6d0c4; border-radius: 12px; margin-top: 8px; cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.opt:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--zone) 25%, white); }
.q-right { border-color: #2b7a0b; background: #f1fbe6; }
.q-wrong { border-color: #c2410c; background: #fff4ef; }
.opt-answer { border-color: #2b7a0b !important; background: #d9f5c4 !important; }
.explain { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; font-size: .95rem; }
.best { display: inline-flex; gap: 8px; align-items: center; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; }

.show-form { display: grid; gap: 14px; margin-top: 10px; }
.show-form fieldset { min-width: 0; border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 8px 16px; }
.check.levelup { background: #fff7d6; border: 2px dashed #b38600; border-radius: var(--r-sm); padding: 10px 14px; }
.t-comment { background: #fff3c4; border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 10px 14px; margin: 10px 0; }

/* Badges */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.badge { position: relative; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 18px 12px 14px; text-align: center; display: grid; justify-items: center; gap: 8px; box-shadow: var(--shadow); }
.badge strong { font-family: var(--display); line-height: 1.15; }
.badge small { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.badge.unearned { background: #f2eee6; box-shadow: none; border-style: dashed; color: #8a847a; }
.badge.earned .sticker { animation: none; }
.badge.new { background: var(--lime); }
.new-tag { position: absolute; top: -12px; right: -8px; background: var(--coral); border: 2px solid var(--ink); border-radius: 999px; font: 800 .72rem var(--display); padding: 2px 8px; transform: rotate(8deg); }

/* Curriculum grid */
.vc-grid-wrap { overflow-x: auto; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); background: #fff; }
.vc-grid { border-collapse: collapse; width: 100%; min-width: 720px; }
.vc-grid th, .vc-grid td { border-bottom: 2px solid #ece6da; padding: 10px; text-align: center; }
.vc-grid thead th { background: var(--ink); color: #fff; font-family: var(--display); font-size: .9rem; }
.vc-grid tbody th { text-align: left; font-weight: 600; font-size: .92rem; width: 34%; }
.vc-grid tbody th small { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.vc-grid td { width: 11%; cursor: help; }
.vc-grid td:not(.na) { background: repeating-linear-gradient(45deg, #fff 0 6px, #f6f2ea 6px 12px); }
.vc-grid td.hit { background: var(--lime); font-weight: 700; }
.vc-grid td.hit .ico { stroke-width: 3; }
.vc-grid td.na { background: #faf8f4; cursor: default; }
.vc-detail { list-style: none; padding: 0; display: grid; gap: 12px; }
.vc-detail li { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 12px 16px; }
.vc-detail p { margin: 8px 0; }
.vc-from { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .88rem; }
.mini-skill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--zone); color: var(--zone-ink); border: 2px solid var(--ink); font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mini-skill.ext { background: #fff; border-style: dashed; }

/* Teacher */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tiles.mini { grid-template-columns: repeat(2, 130px); }
.tile { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.tile .ico { width: 22px; height: 22px; }
.tile b { font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.tile span { font-size: .85rem; color: var(--muted); }
.tile.hot { background: var(--sun); }
.tile.hot span { color: var(--ink); }
.filter select { width: auto; margin-left: 8px; }
.filter label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.q-card { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; border-top: 12px solid var(--zone); }
.q-card header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.q-card header div { display: grid; flex: 1; }
.q-card header span { font-size: .88rem; color: var(--muted); }
.q-card header small { font-size: .75rem; color: var(--muted); }
.q-card blockquote { margin: 8px 0 12px; padding: 10px 14px; background: var(--paper); border-radius: 10px; font-style: italic; }
.q-card textarea { margin-bottom: 10px; }
.q-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; margin: 0; }
.grid-wrap { overflow-x: auto; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.progress-grid { border-collapse: collapse; font-size: .9rem; }
.progress-grid th, .progress-grid td { padding: 6px 5px; border-bottom: 1px solid #ece6da; text-align: center; }
.progress-grid thead th { position: sticky; top: 0; background: #fff; }
.progress-grid thead th span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--zone); color: var(--zone-ink); border: 2px solid var(--ink); }
.progress-grid thead th span .ico { width: 15px; height: 15px; }
.progress-grid tbody th { text-align: left; white-space: nowrap; padding: 6px 14px; position: sticky; left: 0; background: #fff; }
.progress-grid tbody th a { text-decoration: none; display: flex; align-items: center; font-weight: 500; }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); vertical-align: middle; }
.dot-complete { background: var(--zone); }
.dot-submitted { background: var(--sun); border-radius: 4px; transform: rotate(45deg) scale(.85); }
.dot-started { background: conic-gradient(var(--ink) 0 50%, #fff 50%); }
.dot-open, .dot-soon { background: #fff; }
.dot-locked { border-color: #d6d0c4; background: #f2eee6; width: 10px; height: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; color: var(--muted); margin-top: 12px; }
.legend > span { display: inline-flex; gap: 6px; align-items: center; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-family: var(--display); padding: 10px 8px; border-bottom: var(--bw) solid var(--ink); }
.table td { padding: 10px 8px; border-bottom: 1px solid #e3ddd1; vertical-align: top; }
.table td.notes { max-width: 320px; font-size: .88rem; }
section.panel > .table, .panel .table { margin-top: 10px; }
.status { font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap; }
.status-complete { background: var(--lime); }
.status-submitted { background: var(--sun); }
.status-started { background: #e4ecff; }

.ti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ti-card { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.ti-card.planned { border-style: dashed; box-shadow: none; background: #fbf9f5; }
.ti-card header { display: flex; gap: 12px; align-items: center; }
.ti-card header div { display: grid; }
.ti-card header small { color: var(--muted); font-size: .8rem; }
.ti-card p { margin: 0; font-size: .9rem; }
.guide { display: grid; gap: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lesson { border-left: 6px solid var(--zone); padding: 4px 0 4px 18px; margin: 16px 0; }
.lesson h3 small { font-family: var(--body); font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.lesson li { margin-bottom: 6px; }
.keypoints li { margin-bottom: 6px; }

/* Admin */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 24px; }
.class-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.class-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 10px 12px; }
.class-list form { grid-column: 1 / -1; }
.class-list select[multiple] { flex: 1; }
.pills { display: flex; gap: 6px; }
.pills a { padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: .88rem; }
.pills a.on { background: var(--ink); color: #fff; }

/* Login */
.login { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; min-height: 70vh; }
.login.single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.login-art { position: relative; padding: 60px 0; }
.login-art h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); position: relative; z-index: 1; }
.login-art p { font-size: 1.2rem; max-width: 34ch; position: relative; z-index: 1; }
.la { position: absolute; display: grid; place-items: center; width: 70px; height: 70px; border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: var(--shadow); }
.la .ico { width: 34px; height: 34px; }
.la1 { background: var(--lime); top: -10px; left: 0; transform: rotate(-8deg); }
.la2 { background: var(--sun); top: -30px; left: 120px; transform: rotate(6deg); }
.la3 { background: var(--violet); top: 0; left: 240px; transform: rotate(-4deg); }
.la4 { background: var(--coral); bottom: -20px; left: 30px; transform: rotate(5deg); }
.la5 { background: var(--blue); color: #fff; bottom: -40px; left: 150px; transform: rotate(-7deg); }
.la6 { background: var(--teal); bottom: -10px; left: 270px; transform: rotate(9deg); }
.login-card { background: #fff; border: var(--bw) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 30px; display: grid; gap: 16px; }
.login-card h2 { margin: 0; font-size: 2rem; }
.login-card .btn { justify-self: start; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Tablets and small laptops: the menu gets its own row under the logo, so nothing is cut off. */
@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .mainnav { order: 3; flex-basis: 100%; margin: 0; }
}
@media (max-width: 900px) {
  .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-nodes, .band-nodes.four { grid-template-columns: 1fr 1fr; }
  .skill-layout { grid-template-columns: 1fr; }
  /* Phones and tablets: all seven steps as one row of numbers, with the current step named above. */
  .steps { position: static; }
  .steps-now { display: block; margin: 0 0 8px; font-size: .95rem; }
  .steps ol { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .steps a { justify-content: center; padding: 6px 0; }
  .steps a .step-ico, .steps a > span:not(.step-n) { display: none; }
  .steps a.on .step-n { background: var(--ink); color: #fff; }
  .skill-hero-grid, .map-hero, .login, .two-col { grid-template-columns: 1fr; }
  .login-art { padding: 70px 0 40px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .mainnav { order: 3; flex-basis: 100%; margin: 0; }
  .mainnav a span { font-size: .9rem; }
  .me-name { display: none; }
  .zones, .band-nodes, .band-nodes.four { grid-template-columns: 1fr; }
  .hero-stats { min-width: 0; }
  .ex-controls { flex-wrap: wrap; }
  .celebrate { flex-wrap: wrap; }
  .wb-list { columns: 1; }
  .la { width: 52px; height: 52px; }
  .la2 { left: 90px; } .la3 { left: 180px; } .la5 { left: 110px; } .la6 { left: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Compact hero once a skill is under way, so the step content sits higher */
.skill-hero.compact { padding-bottom: 20px; }
@media (min-width: 901px) { .skill-hero.compact .skill-hero-grid { grid-template-columns: 1fr 1.25fr; } }
.skill-hero.compact .sticker-xl { --sz: 58px; border-radius: 16px; }
.skill-hero.compact h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 10px; }
.skill-hero.compact .tagline { font-size: 1.05rem; }
.skill-hero.compact .hero-card { padding: 12px 14px; font-size: .92rem; }
.skill-hero.compact .hero-card p { margin-bottom: 6px; }

/* Student "My Curriculum" (no level numbers) */
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mc-card { position: relative; background: #fff; border: var(--bw) dashed #bdb5a6; border-radius: var(--r); padding: 18px 18px 16px 58px; display: grid; gap: 10px; align-content: start; }
.mc-card.hit { border-style: solid; border-color: var(--ink); box-shadow: var(--shadow); }
.mc-card strong { font-family: var(--display); font-size: 1.1rem; line-height: 1.2; }
.mc-tick { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #bdb5a6; color: #9a948a; }
.mc-card.hit .mc-tick { background: var(--lime); border-color: var(--ink); color: var(--ink); }

/* Foundation readers: a little larger and more spacious by default (never labelled) */
body[data-rl="support"] { font-size: 1.15rem; line-height: 1.75; }
body[data-rl="support"] .prose { font-size: 1.22rem; line-height: 1.9; }

/* Reading-level marker for staff */
.rl { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; white-space: nowrap; }
.rl-support { background: #ffe1d6; } .rl-core { background: #e4ecff; } .rl-extend { background: #e9f8c4; }
.rl-sym { font-size: .7rem; margin-left: 6px; color: var(--muted); }

.levels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.level-card { border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 14px 16px; }
.level-card.rl-support { background: #fff3ee; } .level-card.rl-core { background: #f1f5ff; } .level-card.rl-extend { background: #f6fce6; }
.level-card h3 small { display: block; font-family: var(--body); font-size: .8rem; font-weight: 500; color: var(--muted); margin-top: 4px; }
.level-card p, .level-card ul { font-size: .92rem; }
.hero-card .kicker { margin-top: 4px; }

.vc-grid td .cd-n { font-size: .75rem; color: #b0a999; }
.vc-grid td.hit span { font-size: .8rem; margin-left: 2px; }
.cd-text { margin: 4px 0 0; }
.ach { margin-top: 18px; border-top: 2px dashed #d6d0c4; padding-top: 12px; }
.ach summary { cursor: pointer; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.ach h4 { font-family: var(--display); margin: 14px 0 4px; }
.ach li { margin-bottom: 6px; font-size: .92rem; }

.ex-voice { margin: 0; padding: 6px 14px 8px; background: #23222b; color: #a9a5b3; font-size: .78rem; }
.ex-voice:empty { display: none; }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 2px 2px 0 var(--ink); }
.jump a small { font-weight: 400; color: var(--muted); }
.jump a:hover { background: var(--lime); }
.panel[id] { scroll-margin-top: 90px; }
.panel:target { outline: 4px solid var(--lime); outline-offset: 4px; }

/* Keep explainer scenes hidden until they've been sized to the player (avoids a jump). */
.ex-stage:not(.fitted) .ex-scene { visibility: hidden; }

/* ===== Programs ===== */
/* VCE VM Literacy: "hi-vis" scheme — concrete and blueprint grid, charcoal header with a
   hazard stripe, safety-orange accents. Clearly different from the F–10 cream and lime. */
body.fam-vm {
  --paper: #e3e6ea;
  --lime: #ff8a2a;
  --zone: #ff8a2a;
  --zone-ink: #2a1200;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(27, 31, 36, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 31, 36, .07) 1px, transparent 1px);
  background-size: 28px 28px;
}
body.fam-vm .topbar { background: #1b1f24; }
body.fam-vm .topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: repeating-linear-gradient(-45deg, #ff8a2a 0 14px, #1b1f24 14px 28px);
}
body.fam-vm .logo-mark { background: #ff8a2a; border-color: #fff; }
body.fam-vm .mainnav a.on { background: #ff8a2a; color: #1b1f24; }
body.fam-vm .meter span { background: repeating-linear-gradient(-45deg, #ff8a2a 0 10px, #e5701a 10px 20px); }
body.fam-vm main { padding-top: 40px; }
body.fam-vm .flash { margin-top: 24px; }
/* VPC Literacy: "workshop" scheme — kraft pegboard, deep-teal header with a ruler strip,
   bright teal accents. Clearly different from F–10 (cream and lime) and VM (hi-vis orange). */
body.fam-vpc {
  --paper: #efe4cf;
  --lime: #2ed3c6;
  --zone: #2ed3c6;
  --zone-ink: #04302c;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(74, 52, 18, .2) 1.8px, transparent 2.4px);
  background-size: 26px 26px;
}
body.fam-vpc .topbar { background: #0e3b43; }
body.fam-vpc .topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    repeating-linear-gradient(90deg, #0e3b43 0 2px, transparent 2px 10px) top left / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, #0e3b43 0 2px, transparent 2px 50px) top left / 100% 7px no-repeat,
    #2ed3c6;
}
body.fam-vpc .logo-mark { background: #2ed3c6; border-color: #fff; }
body.fam-vpc .mainnav a.on { background: #2ed3c6; color: #0e3b43; }
body.fam-vpc .meter span { background: repeating-linear-gradient(90deg, #2ed3c6 0 12px, #1fb3a7 12px 14px); }
body.fam-vpc main { padding-top: 40px; }
body.fam-vpc .flash { margin-top: 24px; }
body.fam-vpc .prog-chip { background: #2ed3c6; color: #0e3b43; transform: rotate(2deg); }
.prog-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 6px;
  background: #ff8a2a; color: #1b1f24; font: 800 .85rem var(--display); letter-spacing: .04em; text-transform: uppercase;
  border: 2px solid #fff; transform: rotate(-2deg);
}

/* Program switch and banner (teacher and admin pages) */
/* One row of tabs; on narrow screens they scroll sideways instead of wrapping. */
.prog-switch { display: flex; flex-wrap: nowrap; gap: 6px; margin: 4px 0 0; overflow-x: auto; scrollbar-width: thin; }
.prog-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: var(--bw) solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; text-decoration: none; font-weight: 600; background: #fff; opacity: .7; }
.prog-tab { flex: none; white-space: nowrap; padding: 9px 14px; }
.prog-tab .ico { flex: none; }
.prog-count { display: inline-flex; align-items: center; gap: 3px; font-size: .78rem; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .75); border: 2px solid var(--ink); border-radius: 999px; padding: 0 7px 0 5px; line-height: 1.5; }
.prog-count .ico { width: 12px; height: 12px; }
.prog-tab.on { opacity: 1; }
.prog-tab.fam-f10.on { background: #c6f432; }
.prog-tab.fam-vm.on { background: #ff8a2a; }
.prog-tab.fam-vpc.on { background: #2ed3c6; }
.prog-banner { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border: var(--bw) solid var(--ink); border-radius: 0 var(--r) var(--r) var(--r); box-shadow: var(--shadow); margin-bottom: 28px; }
.prog-banner > div { display: grid; }
.prog-banner strong { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.prog-banner small { color: inherit; opacity: .8; }
.prog-banner-ico { width: 42px; height: 42px; flex: none; }
.prog-banner.fam-f10 { background: #f2fbd6; }
.prog-banner.fam-vm { background: #1b1f24; color: #fff; border-color: #1b1f24; position: relative; overflow: hidden; }
.prog-banner.fam-vm::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 90px; background: repeating-linear-gradient(-45deg, #ff8a2a 0 14px, #1b1f24 14px 28px); }
.prog-banner.fam-vm .prog-banner-ico { color: #ff8a2a; }
.prog-banner.fam-vpc { background: #0e3b43; color: #fff; border-color: #0e3b43; position: relative; overflow: hidden; }
.prog-banner.fam-vpc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, #0e3b43 0 2px, transparent 2px 12px) top left / 100% 6px no-repeat, #2ed3c6; }
.prog-banner.fam-vpc .prog-banner-ico { color: #2ed3c6; }
.prog-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 6px; border: 2px solid var(--ink); }
.prog-tag.fam-f10 { background: #c6f432; } .prog-tag.fam-vm { background: #ff8a2a; } .prog-tag.fam-vpc { background: #2ed3c6; }
.prog-select.fam-vm { background: #ffe3cc; }
.prog-select.fam-vpc { background: #d3f6f2; }

.outcome-grid td { width: 22%; }

/* ===== Curriculum map (cards) ===== */
.cmap-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 4px 0 14px; }
.cmap-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 6px; }
.cmap-head p { margin: 0; max-width: 80ch; }
.cmap-stat { display: grid; gap: 4px; min-width: 220px; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow); }
.cmap-stat b { font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.cmap-stat b span { font-size: 1.2rem; color: var(--muted); }
.cmap-stat small { color: var(--muted); }
.cmap-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cmap-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.cmap-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cmap-jump a { font-size: .8rem; text-decoration: none; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.cmap-jump a:hover { background: var(--lime); }
.cm-meter { display: inline-block; width: 64px; height: 8px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; vertical-align: middle; }
.cm-meter i { display: block; height: 100%; background: var(--lime); }
.cmap-stat .cm-meter { width: 100%; height: 10px; }
.cm-unit { margin-top: 18px; }
.cm-unit-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 10px; display: flex; align-items: center; gap: 12px; }
.cm-unit-title::after { content: ""; flex: 1; height: 3px; background: var(--ink); border-radius: 3px; opacity: .15; }
.cm-card { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 14px; scroll-margin-top: 90px; }
.cm-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.cm-card > summary::-webkit-details-marker { display: none; }
.cm-card-title { flex: 1; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.cm-card-title small { display: block; font-family: var(--body); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.cm-card-stats { display: flex; gap: 18px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
.cm-card-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.cm-card-stats b { color: var(--ink); }
.cm-chev { width: 22px; height: 22px; transition: transform .15s; flex: none; }
.cm-card[open] .cm-chev { transform: rotate(180deg); }
.cm-card-body { border-top: 2px solid #ece6da; padding: 14px 18px 18px; }
.cm-outcome { margin: 0 0 12px; color: #3d3a35; font-style: italic; max-width: 95ch; }
.cm-options { font-size: .85rem; color: var(--muted); margin: -6px 0 12px; }
.lvl-chip.doit-chip { background: var(--zone); color: var(--zone-ink); }
.cm-assess { margin-top: 14px; font-size: .88rem; }
.cm-assess summary { cursor: pointer; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.cm-assess ul { margin: 8px 0 0; columns: 2; column-gap: 28px; }
@media (max-width: 700px) { .cm-assess ul { columns: 1; } }
.cm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cm-cols h4 { font-family: var(--display); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cm-item { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #efe9de; }
.cm-item:last-child { border-bottom: 0; }
.cm-item p { margin: 0 0 4px; font-size: .92rem; line-height: 1.45; }
.cm-item.gap p { color: #8d877d; }
.cm-code { font-size: .78rem; font-weight: 700; color: var(--muted); padding-top: 2px; display: grid; align-content: start; }
.cm-code b { font-family: var(--display); font-size: 1rem; color: var(--ink); }
.cm-code small { font-weight: 500; font-size: .66rem; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cm-none { font-size: .75rem; color: #a59f94; }
.chip-skill { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); background: var(--zone, #eee); color: var(--zone-ink, var(--ink)); white-space: nowrap; }
.chip-skill .ico { width: 12px; height: 12px; }
.chip-skill.chip-ext { background: #fff; border-style: dashed; color: var(--ink); }
.chip-skill.chip-sup { background: #fff3ee; color: var(--ink); }
.chip-demo { --zone: #e4ecff; --zone-ink: var(--ink); }
@media (max-width: 900px) { .cm-cols { grid-template-columns: 1fr; } .cm-card > summary { flex-wrap: wrap; } .cm-card-stats { justify-content: flex-start; } }

/* "Where?" pop-up (curriculum map, staff only) */
.cm-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.where-btn { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 1px 6px; border-radius: 6px; }
.where-btn .ico { width: 12px; height: 12px; }
.where-btn:hover { color: var(--ink); background: #f1ece2; }
.where-modal { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 0; background: #fff; color: var(--ink); }
.where-modal::backdrop { background: rgba(21, 20, 27, .45); }
.where-body { padding: 22px 24px 24px; overflow: auto; max-height: calc(100vh - 52px); }
.where-close { position: sticky; float: right; top: 10px; margin: 10px 10px 0 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; cursor: pointer; z-index: 2; }
.w-head { border-bottom: 2px solid #ece6da; padding-bottom: 12px; margin-bottom: 14px; padding-right: 40px; }
.w-code { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-right: 10px; }
.w-text { margin: 6px 0 0; font-size: 1.02rem; font-weight: 500; }
.w-skill { margin-top: 16px; }
.w-skill h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.1rem; margin-bottom: 8px; }
.w-look { display: flex; gap: 8px; align-items: flex-start; background: #fff7d6; border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin: 0 0 10px; }
.w-look .ico { margin-top: 3px; }
.w-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.w-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 6px 8px; }
.w-table td { padding: 8px; border-bottom: 1px solid #efe9de; vertical-align: top; }
.w-table a { color: inherit; }
.w-step { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-weight: 600; }
.w-where { display: inline-block; white-space: nowrap; background: #f1ece2; border-radius: 6px; padding: 1px 7px; margin: 0 4px 3px 0; font-variant-numeric: tabular-nums; }
.where-panel .w-head { padding-right: 0; }
.preview-bar { display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; font-size: .9rem; }
.preview-bar a { color: var(--lime); }

/* Teacher guide: classroom reality check */
.panel.reality { border-style: dashed; background: #fffaf0; }
.panel.reality li { margin-bottom: 6px; }
