.schoolhead { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.schoolwords { min-width: 0; }
.kicker { margin: 0 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.teacher { flex: none; margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--mute); max-width: 110px; }
.teacher img { display: block; margin: 0 auto 4px; }
.schoolfree { margin: 10px 0 0; font-weight: 600; }
.schoolentry { margin: 20px 0; padding: 18px; max-width: 760px; border: 1px solid var(--line-strong); border-radius: var(--r3); background: var(--card); }
.schoolentry h2 { margin-top: 0; }
.schoolentry p { max-width: 68ch; }
.entryreality { color: var(--mute); font-size: 15px; }
.entrypaths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.entrypath { min-width: 0; }
.entrypath h3 { margin-top: 10px; }
.schoolentry details { margin-top: 12px; }
.schoolentry summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
#school-entry-form { display: grid; gap: 8px; max-width: 440px; padding-top: 12px; }
#school-entry-form label { font-weight: 700; }
#school-entry-form select { width: 100%; min-width: 0; min-height: 44px; font: inherit; }
#school-entry-form button { min-height: 44px; justify-self: start; font: inherit; }
#school-entry-note { margin: 4px 0 10px; font-size: 14px; color: var(--mute); }
@media (max-width: 560px) { .entrypaths { grid-template-columns: 1fr; gap: 4px; } .schoolentry { padding: 14px; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.bigtsays { position: relative; max-width: 68ch; margin: 18px 0 0; padding: 14px 18px; border-radius: var(--r3); background: var(--accent-soft);
  font-size: 17px; line-height: 1.5; }
.bigtsays.hello, .bigtsays.opens { font-size: 18px; }
.who { font-weight: 700; color: var(--accent); }

.lessonpath { margin: 14px 0 6px; }
.pathwhere { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.dots { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; max-width: 520px; }
.dots li { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
.dots li:not(:last-child)::after { content: ""; flex: 1; height: 3px; margin: 0 2px; border-radius: 2px; background: var(--line-strong); }
.dot { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong);
  background: var(--card); color: var(--ink); font: 700 14px/1 var(--sans); text-decoration: none; }
.dot:hover { border-color: var(--accent); }
.dot.passed { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dot[aria-current="page"] { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--gold); }
.dotcheck { border-style: dashed; }
.dotcheck.passed { border-style: solid; background: var(--gold); border-color: var(--gold); color: #19332c; }
.pathcount { min-height: 3em; margin: 22px 0 0; font-size: 16px; font-weight: 700; color: var(--accent); }

.lessons { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: var(--s3); max-width: 760px; counter-reset: none; }
.lessons .lessonrow, .qs .q { max-width: none; }
.lessonlink { display: grid; grid-template-columns: 72px 1fr; gap: var(--s4); align-items: center; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r3); background: var(--card); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s; }
.lessonlink:hover { border-color: var(--accent); }
.lessonwords { display: grid; gap: 2px; min-width: 0; }
.lessonnum { font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); }
.lessontitle { font-size: 18px; font-weight: 700; line-height: 1.3; }
.lessonline { color: var(--mute); }
.badgebox, .lessonmark { position: relative; display: block; width: 72px; height: 72px; }
.lessonmark { display: grid; place-items: center; }
.lessonmark .tick { position: static; }
.badgeart { display: block; width: 100%; height: 100%; }
.tick { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  color: var(--accent-ink); font: 700 15px/26px var(--sans); text-align: center; opacity: 0; }
.passed .tick { opacity: 1; }
.state { display: grid; margin-top: 6px; font-size: 14px; }
.state > span { grid-area: 1 / 1; }
.state .todo { color: var(--mute); }
.state .done { visibility: hidden; color: var(--accent); font-weight: 700; }
.passed .state .todo { visibility: hidden; }
.passed .state .done { visibility: visible; }
.graduate { display: grid; grid-template-columns: 72px 1fr; gap: var(--s4); align-items: center; max-width: 760px; margin: 24px 0 0;
  padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r3); }
.graduate h2 { margin: 0; font-size: 18px; }
.graduate p { margin: 2px 0 0; }
.graduate.passed { border-style: solid; border-color: var(--gold); }
.checkbox { border: 2px solid var(--gold); background: var(--card); }
.checkbox .checkgo { margin-top: 10px; }
.kept { margin: 16px 0 0; font-size: 14px; color: var(--mute); }

.lesson { max-width: 72ch; }
.lesson section { margin-top: 28px; }
.lesson h2 { margin: 0 0 8px; }
.lesson h3 { margin: 16px 0 4px; font-size: 16px; }
.lesson h3 + p { margin-top: 0; }
.lesson p, .lesson li { line-height: 1.6; }
.example { margin: 12px 0; padding: 10px 16px; border-left: 4px solid var(--gold); border-radius: 0 var(--r2) var(--r2) 0; background: var(--accent-soft); }
.example p { margin: 0; }
.example p + p { margin-top: 6px; }
.general { margin: 28px 0 0; padding: 12px 16px; border-radius: var(--r2); background: var(--chip); max-width: 72ch; }
.quiz { margin-top: 32px; padding-top: 4px; }
.quiz h2 { margin: 0 0 6px; }
.qs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 20px; max-width: 720px; }
.q { padding: 16px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--card); }
.qtext { margin: 0 0 12px; font-weight: 700; }
.qnum { display: block; font-size: 13px; font-weight: 600; color: var(--mute); }
.choices { display: grid; gap: var(--s2); }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r2); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.35; text-align: left; }
.choice:hover:not(:disabled) { border-color: var(--accent); }
.choice:disabled { cursor: default; opacity: .62; }
.choice.isright, .choice.iswrong { opacity: 1; border-width: 2px; padding: 9px 13px; }
.choice.isright { border-color: var(--accent); background: var(--accent-soft); }
.choice.iswrong { border-color: var(--bad); }
.letter { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); font: 700 14px/26px var(--sans); text-align: center; }
.isright .letter { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.iswrong .letter { background: var(--bad); border-color: var(--bad); color: var(--card); }
.result { margin: 10px 0 0; }
.q:not([data-state]) .result { margin: 0; }
.verdict { font-weight: 700; }
[data-state="right"] .verdict { color: var(--accent); }
[data-state="wrong"] .verdict { color: var(--bad); }
.againrow { margin: 0; }
.again { margin-top: 10px; min-height: 44px; padding: 9px 18px; font-size: 15px; font-weight: 600; border-color: var(--accent); color: var(--accent); }
.pass { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; max-width: 720px; margin: 24px 0 0; padding: 20px;
  border: 2px solid var(--gold); border-radius: var(--r3); background: var(--card); }
[data-badges="0"] .ckpass .pass { grid-template-columns: 1fr; }
.pass:focus { outline: none; }
.pass .badgeart { width: 120px; height: 120px; }
.passhead { margin: 0; font: 700 22px/1.25 var(--serif); }
.bigtline, .gradline { margin: 8px 0 0; font-size: 17px; }
.pass .kept { margin-top: 8px; }
.pass .apply { margin-top: 12px; }

.quiz .pass { display: block; }
.cheer { display: flex; align-items: center; gap: 16px; }
.cheer .bigt { flex: none; width: 96px; height: 96px; }
.quiz .passhead { font-size: 26px; }
.stars { display: flex; gap: 6px; margin: 6px 0 0; font-size: 34px; line-height: 1; }
.star { color: var(--line-strong); }
.star.on { color: var(--gold); }
.starline { margin: 6px 0 0; color: var(--mute); }
.retakerow { margin: 8px 0 0; }
.retake { min-height: 44px; padding: 8px 16px; font-size: 15px; font-weight: 700; border-color: var(--accent); color: var(--accent); }
.learnedbox { margin: 16px 0 0; }
.learnedhead { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.learnedbox .bigtsays { margin: 0; }
.earned { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; }
.earned .badgeart { flex: none; width: 64px; height: 64px; }
.earned .bigtline { margin: 0; }
.nextrow { margin: 28px 0 0; }
.nextlink { display: inline-block; font-size: 18px; }

.every { margin: 28px 0 0; font-size: 20px; }
.trail { max-width: 420px; margin: 16px auto 8px; }
.tnodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; justify-items: center; }
.tnode { width: 150px; text-align: center; }
.tnode:nth-child(8n+2), .tnode:nth-child(8n+4) { transform: translateX(56px); }
.tnode:nth-child(8n+3) { transform: translateX(84px); }
.tnode:nth-child(8n+6), .tnode:nth-child(8n) { transform: translateX(-56px); }
.tnode:nth-child(8n+7) { transform: translateX(-84px); }
.tlink { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--ink); text-decoration: none; }
.tdot { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--accent);
  color: var(--accent-ink); box-shadow: 0 6px 0 #07523c; font: 800 24px/1 var(--sans); }
.tlink:active .tdot { transform: translateY(3px); box-shadow: 0 3px 0 #07523c; }
.tname { max-width: 140px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.tnode.done .tdot { background: var(--gold); color: #19332c; box-shadow: 0 6px 0 #9a6a00; }
.tnode.ahead .tdot { background: var(--chip); color: var(--mute); box-shadow: 0 6px 0 var(--line-strong); }
.tnode.ahead .tname { color: var(--mute); }
.tnode.current .tdot { box-shadow: 0 6px 0 #07523c, 0 0 0 6px var(--bg), 0 0 0 10px var(--gold); }
.tnode.current .tdot::after { content: ""; position: absolute; top: -4px; left: -86px; width: 72px; height: 72px; pointer-events: none;
  background: url(/bigt2-point-144.webp?v=4a487b1e13) center / contain no-repeat; }
.tnode.current:nth-child(8n+6) .tdot::after, .tnode.current:nth-child(8n+7) .tdot::after, .tnode.current:nth-child(8n) .tdot::after {
  left: auto; right: -86px; transform: scaleX(-1); }
.tcheck .tdot { border-radius: 22px; }
.schoolroles { max-width: 720px; margin: 28px 0 0; }
.schoolroles h2 { margin: 0; font-size: 20px; }
.roleslead { margin: 6px 0 0; color: var(--mute); }
.srlist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: var(--s3); }
.srole { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--card); }
.srtitle { font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); }
.srpay { color: var(--mute); font-size: 15px; }
.srole .apply { justify-self: start; margin-top: 4px; }
.rolesback, .rolesall { margin: 12px 0 0; }
.rolesback a { font-weight: 700; }

.checkhow { max-width: 72ch; margin-top: 24px; }
.checkhow h2 { margin: 0 0 6px; font-size: 20px; }
.checkhow li { line-height: 1.55; }
.check { margin-top: 24px; }
.checkgo { margin: 0; }
.checkwait { max-width: 68ch; padding: 14px 18px; border-radius: var(--r3); background: var(--chip); font-size: 17px; }
.ckpart { max-width: 760px; margin: 28px 0 0; }
.ckpart h2 { margin: 0; font-size: 21px; }
.ckpartn { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.ckline { margin: 6px 0 0; color: var(--mute); }
.ckguide { margin: 14px 0 0; padding: 14px 18px; border-radius: var(--r3); border: 1px solid var(--line-strong); background: var(--card); }
.ckguidehead { margin: 0 0 4px; font-weight: 800; }
.ckguide ol { margin: 8px 0 0; padding-left: 24px; }
.ckguide li { margin: 4px 0; line-height: 1.5; }
.cks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 16px; }
.ck { padding: 16px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--card); }
.cklabel { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--mute); }
.cklabel:first-child { margin-top: 0; }
.ck .example { margin: 6px 0 0; }
.ckq { margin: 14px 0 10px; font-weight: 700; }
.cknum { display: block; font-size: 13px; font-weight: 600; color: var(--mute); }
.ckchoices { display: grid; gap: var(--s2); }
.ckchoice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r2); background: var(--bg); font-size: 16px; line-height: 1.35; cursor: pointer; }
.ckchoice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ckchoice:hover { border-color: var(--accent); }
.ckchoice input:checked + .letter { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ckchoice input:focus-visible + .letter { outline: 3px solid var(--gold); outline-offset: 2px; }
.ckchoice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.ckleft { min-height: 1.5em; margin: 16px 0 0; font-weight: 700; color: var(--warn); }
.checkresult { max-width: 760px; margin-top: 8px; }
.checkresult:focus { outline: none; }
.checkresult h2 { margin: 0; font: 700 26px/1.25 var(--serif); }
.ckscores { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.ckscores li { padding: 8px 12px; border-radius: var(--r2); background: var(--chip); font-weight: 600; }
.ckscores li.full { background: var(--accent-soft); }
.ckscores li.low { box-shadow: inset 4px 0 0 var(--warn); }
.cknot { margin-top: 16px; }
.cklessons li { margin: 4px 0; }
.ckerror { margin-top: 12px; font-weight: 700; color: var(--bad); }
.cardmaker { margin: 20px 0 0; padding: 18px 20px; border-radius: var(--r3); border: 1px solid var(--line); background: var(--card); }
.cardhead { margin: 0; font-weight: 800; font-size: 18px; }
.cardlabel { display: block; margin: 8px 0 6px; font-size: 15px; color: var(--mute); }
.cardname { width: 100%; max-width: 420px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r2);
  background: var(--bg); color: var(--ink); font-size: 17px; }
.passcard { aspect-ratio: 16 / 9; max-width: 560px; margin: 16px 0 0; padding: 24px 26px; display: flex; flex-direction: column; justify-content: center;
  border: 6px solid #0b6b4f; outline: 2px solid #f2c14e; outline-offset: -14px; border-radius: 6px; background: #fffdf6; color: #16201b; }
.pcname { margin: 0; font: 800 clamp(22px, 5vw, 32px)/1.2 var(--sans); overflow-wrap: anywhere; }
.pcname.blank { color: #9aa59f; }
.pcline { margin: 10px 0 0; font-weight: 700; font-size: clamp(15px, 3.4vw, 19px); }
.pcfine { margin: 8px 0 0; font-size: clamp(13px, 2.8vw, 15px); color: #4a5a52; }
.pcsite { margin: 12px 0 0; font-weight: 700; color: #0b6b4f; font-size: 14px; }
.cardsave { min-height: 46px; padding: 10px 18px; font-weight: 700; border-color: var(--accent); color: var(--accent); }

.certfine { margin: 8px 0 0; color: var(--mute); font-size: 15px; }
.passcard.cert { aspect-ratio: auto; position: relative; padding: 22px 24px; }
.passcard.cert .badgeart { position: absolute; top: 14px; right: 14px; width: 64px; height: 64px; }
.pctitle { margin: 0 70px 10px 0; font-weight: 800; font-size: clamp(13px, 3vw, 16px); color: #0b6b4f; letter-spacing: .02em; text-transform: uppercase; }
.certbtns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.listform { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.listtick { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; line-height: 1.4; }
.listtick input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.verify { margin: 16px 0; }
.verifyresult { font: 700 22px/1.3 var(--serif); padding: 16px 18px; border-radius: var(--r3); background: var(--chip); }
.verifyresult.good { background: var(--accent-soft); }
.verifyresult.bad { box-shadow: inset 4px 0 0 var(--bad); }

@media (prefers-reduced-motion: no-preference) {
  .pass:not([hidden]) .badgeart { animation: schoolpop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
  @keyframes schoolpop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
  .star.on { animation: schoolpop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
  .star.on:nth-child(2) { animation-delay: .12s; }
  .star.on:nth-child(3) { animation-delay: .24s; }
  .tnode.current .tdot { animation: tglow 1.6s ease-in-out infinite alternate; }
  @keyframes tglow { from { box-shadow: 0 6px 0 #07523c, 0 0 0 6px var(--bg), 0 0 0 10px var(--gold); }
    to { box-shadow: 0 6px 0 #07523c, 0 0 0 6px var(--bg), 0 0 0 15px rgba(240, 189, 58, .35); } }
  .lessonlink:hover { transform: translateY(-1px); }
}
@media (max-width: 600px) {
  .teacher { max-width: 84px; font-size: 12px; }
  .teacher img { width: 64px; height: 64px; }
  .bigtsays, .bigtsays.hello, .bigtsays.opens { font-size: 16px; padding: 12px 14px; }
  .lessonlink, .graduate { grid-template-columns: 56px 1fr; gap: 12px; padding: 12px; }
  .badgebox, .lessonmark { width: 56px; height: 56px; }
  .lessontitle { font-size: 17px; }
  .dot { width: 30px; height: 30px; font-size: 13px; }
  .pass { grid-template-columns: 1fr; justify-items: start; gap: 12px; padding: 16px; }
  .pass .badgeart { width: 96px; height: 96px; }
  .cardmaker { padding: 16px; }
  .cheer .bigt { width: 80px; height: 80px; }
  .ck { padding: 14px; }
  .passcard { padding: 18px; outline-offset: -11px; }
}
