
@font-face{font-family:'Mulish';src:url(fonts/Mulish-Regular.ttf) format('truetype');font-weight:400 500;font-style:normal}
@font-face{font-family:'Mulish';src:url(fonts/Mulish-Bold.ttf) format('truetype');font-weight:600 900;font-style:normal}
@font-face{font-family:'Mulish';src:url(fonts/Mulish-Italic-Regular.ttf) format('truetype');font-weight:400 900;font-style:italic}
@font-face{font-family:'Newsreader';src:url(fonts/Newsreader-Regular.ttf) format('truetype');font-weight:400 500;font-style:normal}
@font-face{font-family:'Newsreader';src:url(fonts/Newsreader-Bold.ttf) format('truetype');font-weight:600 900;font-style:normal}
@font-face{font-family:'Newsreader';src:url(fonts/Newsreader-Italic.ttf) format('truetype');font-weight:400 900;font-style:italic}
@font-face{font-family:'Latin Modern Math';src:url(fonts/LatinModernMath.woff2) format('woff2');font-weight:400 900;font-style:normal}
*{box-sizing:border-box}
body{margin:0;background:#F5F1EA;font-family:'Mulish',system-ui,sans-serif;color:#2B2823;-webkit-text-size-adjust:100%}
a{color:#5B1A24}a:hover{color:#3E1018}
button{font-family:'Mulish',system-ui,sans-serif;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid #DCA83C;outline-offset:2px}
[hidden]{display:none !important}
.fs{letter-spacing:-.12em}
math{font-family:'Latin Modern Math','Cambria Math','STIX Two Math',math;font-size:1.12em;math-style:normal}
math mo,math mi,math mn{font-family:inherit}
/* Card KS S4 (OLE, 8 Oct, 10H.15.1): a script is script-size in every engine -- said here, not left to the UA's
   font-size:math, which an engine without math-depth ignores (a full-size, floating 2) */
/* Card KS S5 (OLE, 9 Oct, Firefox desktop + Android: "the 2s are still big"): Gecko ignores a RELATIVE font-size
   (71%, .71em, smaller) and font-size:math on a MathML script -- measured in Firefox 136 and Gecko 156: the 2 stays
   at its base's size. calc() is honoured by Gecko and Blink alike, so the script size is said as calc(.71em). */
msup>:not(:first-child),msub>:not(:first-child),msubsup>:not(:first-child),mroot>:last-child{font-size:calc(.71em)}
/* Card KS S5: Gecko breaks a line INSIDE inline MathML at an operator ((x + 3)^2 | - 7); Blink never does. One
   <math> never wraps in either engine (long chains are split into separate <math>s before = by KS_EQBREAK); and
   Firefox for Android's font inflation never resizes the maths. */
math{white-space:nowrap;-moz-text-size-adjust:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.mp{white-space:nowrap}
.qtail{margin:6px 0 0}.qlist{margin:0;padding-left:1.6em;display:flex;flex-direction:column;gap:6px}.qlist>li::marker{font-weight:800;color:#5B1A24}.tq .qlist>li::marker,.ans.dark .qlist>li::marker,.exitans .qlist>li::marker{color:#DCA83C}
.al{display:grid;grid-template-columns:minmax(0,max-content) auto minmax(0,1fr);align-items:baseline;row-gap:4px}
.al .all{grid-column:1;text-align:right;white-space:nowrap}.al .ale{grid-column:2}.al .ale math{padding:0 .2778em}
.al .alr{grid-column:3;text-align:left;white-space:normal;min-width:0}.al .alw{grid-column:1/-1;text-align:left}
.top{background:#5B1A24;color:#FFF}
.bar{max-width:1120px;margin:0 auto;padding:14px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-weight:800;letter-spacing:.08em;font-size:13px;text-transform:uppercase}
.crumbs a{color:#FFF;text-decoration:none;padding:6px 0}.crumbs .dot{opacity:.55}.crumbs .yr{font-weight:600;letter-spacing:.04em}
.todaylab{font-size:13px;font-weight:700;opacity:.85}
.prog{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700}
.track{width:160px;height:8px;border-radius:999px;background:rgba(255,255,255,.22);overflow:hidden}
.fill{height:100%;border-radius:999px;background:#DCA83C;width:0}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px 96px}
.grid{display:grid;gap:16px}.g240{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.g280{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.g300{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.g320{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.g420{grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr));margin-top:16px}
.card{background:#FFF;border-radius:18px;padding:20px 22px;display:flex;flex-direction:column;gap:12px;min-width:0}
.kick{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#5B1A24}
.kick.gold{color:#DCA83C}
.lhead{padding:40px 0 28px;display:flex;flex-wrap:wrap;gap:32px;align-items:flex-end;justify-content:space-between}
.lside{flex:0 1 380px;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;gap:16px}
.lside .goals{align-self:stretch}
.logo{display:block;height:80px;width:auto;flex:none}
.lside .logo{margin-top:46px}
.hero{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.hero .logo{margin-top:6px}
.yside{display:flex;flex-direction:column;align-items:flex-end;gap:14px}
@media (max-width:960px){.logo{display:none}}
.lmain{flex:1 1 520px;min-width:0}
.kickline{display:flex;align-items:center;gap:12px;margin-bottom:14px;font-size:14px;font-weight:700;color:#5E5750}
.kickline svg{width:40px;height:40px;flex:none}.maroon{color:#5B1A24}
.lhead h1{margin:0;font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:clamp(36px,6vw,60px);line-height:1.02;letter-spacing:-.01em}
.context{margin:16px 0 0;font-size:18px;line-height:1.55;color:#4A443E;max-width:640px}
.know{margin:18px 0 0;max-width:640px}.know ul{margin:8px 0 0;padding-left:20px;font-size:16px;line-height:1.55;color:#2B2823}.know li+li{margin-top:4px}
.exfig{margin:12px 0 6px}
.goals{box-shadow:0 1px 0 rgba(43,40,35,.06),0 8px 24px rgba(43,40,35,.06)}
.lo{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.45}
.grade{flex:none;font-size:11px;font-weight:800;background:#F3E6E7;color:#5B1A24;border-radius:6px;padding:3px 7px;margin-top:2px}
.route{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#EDE6DA;border-radius:16px;margin-bottom:12px}
.route a{padding:10px 14px;border-radius:10px;font-weight:700;font-size:14px;color:#2B2823;text-decoration:none}
.route a:hover{background:#FFF}.route a.last{color:#5B1A24;background:#F3E6E7}
.howto{margin:0 0 8px;font-size:14px;color:#5E5750}
.sec{padding-top:56px}
.sh{display:flex;align-items:baseline;flex-wrap:wrap;gap:14px;margin-bottom:14px}
.sh .no{font-family:'Newsreader',serif;font-size:22px;color:#5B1A24}.sh h2{margin:0;font-size:28px;font-weight:800}
.sh .sub{font-size:14px;color:#5E5750}.sh.light .no{color:#E9C9CD}.sh.light .sub{color:#E9C9CD}
.lead{margin:0 0 20px;font-size:15px;color:#5E5750}
.cardtop{display:flex;justify-content:space-between;align-items:center}.qn{font-weight:800;color:#5B1A24}
.q{font-size:17px;line-height:1.5}
.rev{align-self:flex-start;border:0;border-radius:999px;background:#5B1A24;color:#FFF;font-weight:700;font-size:14px;padding:10px 18px;min-height:44px}
.rev:hover{background:#4A141D}
.rev.gold{background:#DCA83C;color:#2B2823;font-weight:800}.rev.white{background:#FFF;color:#5B1A24;font-weight:800}
.ghost{align-self:flex-start;border:1.5px solid #CFC5B5;border-radius:999px;background:#FFF;color:#2B2823;font-weight:700;font-size:13px;padding:8px 14px;min-height:44px;white-space:nowrap}
.ghost:hover{background:#EFE7DA}.ghost.strongb{border-color:#5B1A24;color:#5B1A24;font-weight:800;font-size:14px;padding:10px 18px}
.pm .sh h2{font-size:24px}.pmcol{gap:10px}.pmlead{margin:0;font-size:14px;color:#5E5750}
.dfl,.wsl{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:15px;line-height:1.45}
.dfl li{display:flex;gap:10px;align-items:baseline}.dfc{flex:none;min-width:3.6em;text-align:center;font-weight:800;font-size:13px;background:#F3E6E7;color:#5B1A24;border-radius:6px;padding:2px 8px}
.wsl a{color:#5B1A24;font-weight:700;text-decoration:underline;text-underline-offset:3px}.wsl a:hover{color:#2B2823}
.pmgo{text-decoration:none;display:inline-flex;align-items:center}
.fits{margin-top:20px;text-decoration:none;color:#2B2823;max-width:640px}.fits p{margin:0;font-size:15px;color:#4A443E}.fits:hover{box-shadow:0 8px 24px rgba(43,40,35,.10)}
/* Card LI (OLE, 9 Oct 14:54, 11Ma1 3.1 on pupils' Windows laptops: scroll bars both ways on every worked-example step):
   NO CELL IS A SCROLL CONTAINER. overflow-x:auto forces overflow-y:auto, maths ink spills its line box by a pixel, and
   Windows draws classic bars always. A cell breaks first (before =, then + / -, the pieces site_math writes); only a
   cell still wider than its card is given, by site.js, a horizontal-only wrapper (.hx), padded so no script is clipped. */
.ans,.tq>.q,.pq>div:first-child,.xq>div{min-width:0}
.hx{overflow-x:auto;overflow-y:hidden;padding:.5em 0;margin:-.5em 0}
/* Card LI: break before scroll -- a ledger whose maths does not fit beside its cues takes the phone layout (each cue on
   its own line above its row), and a CFU set with an option too wide for half the card takes one option per row */
.steps.lg.lstk{grid-template-columns:0 0 minmax(0,max-content) auto minmax(0,max-content) minmax(0,1fr)}.steps.lg.lstk .step>*{grid-row:2}.steps.lg.lstk .step::before{display:none}.steps.lg.lstk .cue{grid-column:2/-1;grid-row:1;max-width:none;padding:0 0 4px}.steps.lg.lstk .step .note{grid-row:3}.steps.lg.lstk .w.wp{padding-left:0}.steps.lg.lstk .step.lwr .l{grid-row:2;grid-column:3/-1;text-align:left}.steps.lg.lstk .step.lwr .e,.steps.lg.lstk .step.lwr .r{grid-row:3}.steps.lg.lstk .step.lwr .note{grid-row:4}.steps.lg.lstk .step.text .wide{grid-row:1}
.opts.wjs{grid-template-columns:1fr}
.ans{background:#E4F0EE;color:#173F3C;border-radius:10px;padding:12px 14px;font-size:16px;line-height:1.7}
.ans.plain{background:transparent;padding:0;font-size:15px}
.btns{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start;align-items:flex-start}
.ans.hint{background:#FBF3DF;color:#5A4410;font-size:15px}
.fig:has(> .stack > img[data-step]:only-child[hidden]){display:none}
button.strongb[data-steps]{white-space:normal;max-width:100%;text-align:left}
.ans.dark{background:rgba(255,255,255,.08);color:#FFF;font-size:17px}
.ans.exitans{background:transparent;padding:0;color:#F6E7E9;font-size:16px}
.rhs{margin-top:16px}.rq{display:flex;flex-direction:column;gap:8px;font-size:15px;line-height:1.5}
.lab{font-size:11px;font-weight:800;letter-spacing:.08em;color:#5B1A24}
.concept{padding:0;overflow:hidden}.cbody{padding:18px 22px 22px;display:flex;flex-direction:column;gap:8px}
.concept h3{margin:0;font-size:18px;font-weight:800}.concept p{margin:0;font-size:15px;line-height:1.6}
.more{align-self:flex-start;border:0;background:transparent;color:#5B1A24;font-weight:800;font-size:13px;padding:8px 0;min-height:40px;text-decoration:underline}
.full{font-size:15px;line-height:1.6;color:#4A443E;background:#FBF8F3;border-radius:10px;padding:12px 14px}
.fig,.cfig{display:flex;justify-content:center;background:#FBF8F3;border-radius:12px;padding:12px}
.cfig{border-radius:0;padding:16px}.cfig .stack{max-width:min(320px,100%) !important}.ifig .stack{max-width:min(360px,100%) !important}
.tiles+.howto{margin-top:28px}
.stack{position:relative;width:100%}.stack img{display:block;width:100%;height:auto}
.stack img.over{position:absolute;inset:0}
.figrow{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.figrow .fig{flex:1 1 260px}
.ex{padding:24px;gap:14px}.exhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.exq{font-size:18px;line-height:1.5;font-weight:600}
.lscroll{max-width:100%;min-width:0}
/* Card KS S4 (OLE, 8 Oct 19:42, 10H.7.2 and 8Ma2 8.2.1): the maths block is CENTRED between the cue's hairline and the
   card's edge (two 1fr spacers round l | = | r); the hairline is the row's own ::before in the first spacer, full row
   height; a prose row (.wp) wraps from the hairline; a maths cell too wide for the card scrolls inside itself, so the
   cue column is never clipped; `=` has relation spacing on both sides in every engine. */
.steps.lg{display:grid;grid-template-columns:minmax(80px,max-content) minmax(14px,1fr) minmax(0,max-content) auto minmax(0,max-content) minmax(0,1fr);column-gap:0;align-items:baseline}
.lg .step>*{grid-row:1}
.lg .step::before{content:"";grid-column:2;grid-row:1;align-self:stretch;border-left:1px solid #E4DACB}
.lg .step.text::before{display:none}
.lg .step{display:grid;grid-template-columns:subgrid;grid-column:1/-1;align-items:baseline;padding:8px 0;border-top:1px solid #EFE8DD}
.lg .step[hidden]{display:grid;visibility:hidden;height:0;padding:0;border:0;overflow:hidden}
.lg .cue{grid-column:1;font-weight:800;font-size:14px;padding-right:14px;max-width:260px}
.lg .l{grid-column:3;text-align:right;white-space:normal;min-width:0}
.lg .e{grid-column:4;text-align:center;white-space:nowrap}
.lg .e math{padding:0 .2778em}
.lg .r{grid-column:5;text-align:left;white-space:normal;min-width:0}
.lg .w{grid-column:3/6;text-align:left;white-space:normal;min-width:0}
.lg .w.wp{grid-column:2/-1;white-space:normal;overflow-x:visible;padding-left:14px;min-width:0;line-height:1.5}
.lg .step math{font-size:20px}
.lg .step.text .wide{grid-column:1/-1;font-size:16px;line-height:1.5;white-space:normal;min-width:0}
.lg .step .note{grid-column:1/-1;grid-row:2;font-size:14px;line-height:1.45;color:#6B5E52;font-style:italic;margin-top:4px;white-space:normal;min-width:0}
.lg .step .note math{font-size:16px}
.lg .step.hair:not([hidden]){border-top:1.5px solid #B9A994}
.lg .step.chk:not([hidden]){margin-top:14px}
.lg .step.ansrow .cue,.lg .step.cueans .cue{color:#5B1A24}
.lg .step.ansrow .l,.lg .step.ansrow .e,.lg .step.ansrow .r,.lg .step.ansrow .w{color:#5B1A24;font-weight:700}
.step.pic{display:block;border-top:0}
.move{display:inline-flex;align-items:center;gap:8px;background:#FBEDEC;color:#5B1A24;border-radius:999px;padding:5px 12px 5px 6px;font-size:11px;font-weight:800;letter-spacing:.08em}
.move svg{width:26px;height:26px}
.turn{margin-top:16px;background:#2B2823;color:#FFF;border-radius:18px;padding:24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:24px}
.tq{display:flex;flex-direction:column;gap:12px;min-width:0}.tq .fig{background:#FFF}
.cfu{gap:12px}.stem{font-size:16px;line-height:1.5;font-weight:600}
.opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
/* Card KS S4: a CFU whose options run long (over 30 characters drawn) takes one option per row; any still too wide
   for its button scrolls inside it */
.opts.wide{grid-template-columns:1fr}.opt{min-width:0}
.opt{text-align:left;border-radius:12px;padding:12px 14px;min-height:48px;font-size:15px;color:#2B2823;background:#FFF;border:1.5px solid #DDD3C4}
.opt:hover{border-color:#5B1A24}.ol{font-weight:800;margin-right:8px}
.opt.right{background:#E3F2E9;border-color:#1F6B45;color:#16452C}.opt.wrong{background:#FBEADF;border-color:#B3541E;color:#6B2E09}
.fb{border-radius:10px;padding:12px 14px;font-size:14px;line-height:1.5}
.fb.ok{background:#E3F2E9;color:#16452C}.fb.no{background:#FBEADF;color:#6B2E09}
.gate{margin:0 0 20px;background:#FBF1DC;border-radius:14px;padding:16px 20px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;font-size:15px;line-height:1.5}
.gatego{font-size:13px;font-weight:800;color:#6B4A07}
.gate.gatenum{display:block}.gatenum .gatehead{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.gparts{margin:12px 0 0;display:flex;flex-direction:column;gap:14px}.gq{display:flex;gap:8px;align-items:baseline;min-width:0}.gn{font-weight:800;color:#6B4A07;flex:none}
.gpart{display:flex;flex-direction:column;gap:10px;min-width:0}.gpart .fig{background:#FFF}.gpart>.ghost{align-self:flex-start}
.plist{padding:8px 24px;gap:0}
.prow{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:start;padding:16px 0;border-bottom:1px solid #EFE8DD}
.prow:last-child{border-bottom:0}.pq{display:flex;flex-direction:column;gap:10px;font-size:16px;line-height:1.5;min-width:0}
.pn{font-weight:800;color:#5B1A24;font-size:16px}
.extb{font-weight:800;color:#6B4A07;font-size:11px;letter-spacing:.06em;background:#FBF1DC;border-radius:6px;padding:4px 0;text-align:center}
.sheet{font-weight:800}
.exit{background:#5B1A24;color:#FFF;border-radius:22px;padding:32px;display:flex;flex-direction:column;gap:22px}
.xq{background:rgba(255,255,255,.08);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:12px;font-size:16px;line-height:1.5;min-width:0}
.xn{font-weight:800;color:#DCA83C}.next{margin:0;font-size:14px;color:#E9C9CD}.next strong{color:#FFF}
.lockscreen{max-width:560px;margin:72px auto;padding:32px;background:#FFF;border-radius:22px;display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.lockscreen h1{margin:0;font-family:'Newsreader',Georgia,serif;font-size:40px;font-weight:600}
.lockscreen p{margin:0;font-size:17px;line-height:1.5;color:#4A443E}
.pill{display:inline-flex;align-items:center;gap:12px;background:#FBF1DC;border-radius:999px;padding:8px 8px 8px 16px}
.pill span{font-size:13px;font-weight:800;color:#6B4A07}
.lockbtn{border:0;border-radius:999px;background:#2B2823;color:#FFF;font-weight:800;font-size:13px;padding:8px 14px;min-height:40px}
.unl{display:inline-flex;align-items:center;gap:8px;border:1.5px solid #CFC5B5;border-radius:999px;background:#FFF;color:#2B2823;font-weight:800;font-size:13px;padding:10px 16px;min-height:44px}
.teacherbar{max-width:1120px;margin:12px auto 0;padding:0 24px}
/* home and year */
.hero{padding:56px 0 28px}.hero h1{margin:0;font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:clamp(40px,7vw,56px);line-height:1.05}
.hero p{margin:14px 0 0;font-size:18px;color:#4A443E;max-width:620px}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.tile{text-align:left;text-decoration:none;color:#2B2823;background:#FFF;border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:18px;min-height:220px;box-shadow:0 1px 0 rgba(43,40,35,.06),0 8px 24px rgba(43,40,35,.06);transition:transform 120ms ease,box-shadow 120ms ease}
.tile:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(43,40,35,.12);color:#2B2823}
.tile .big{font-family:'Newsreader',Georgia,serif;font-size:64px;line-height:1;color:#5B1A24;font-weight:600}
.tile .nm{font-size:18px;font-weight:800}.tile .foot{margin-top:auto;display:flex;flex-direction:column;gap:4px}
.tile .tk{font-size:11px;font-weight:800;letter-spacing:.1em;color:#8A6A2A}.tile .tl{font-size:15px;line-height:1.4}
.back{border:0;background:transparent;color:#5B1A24;font-weight:800;font-size:14px;padding:10px 0;min-height:44px;text-decoration:none;display:inline-block}
.yhead{padding:8px 0 28px;display:flex;flex-wrap:wrap;gap:20px;align-items:flex-end;justify-content:space-between}
.yhead .yk{font-size:14px;font-weight:700;color:#5E5750;margin-bottom:8px}
.yhead h1{margin:0;font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:clamp(38px,6vw,52px);line-height:1.05}
.feat{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch}
.today{flex:2 1 460px;min-width:0;background:#5B1A24;color:#FFF;border-radius:22px;padding:28px;display:flex;flex-direction:column;gap:12px;text-decoration:none}
.today:hover{color:#FFF}.today .tk{font-size:12px;font-weight:800;letter-spacing:.12em;color:#DCA83C}
.today .tid{font-size:14px;font-weight:700;color:#E9C9CD}
.today .tt{font-family:'Newsreader',Georgia,serif;font-size:clamp(30px,5vw,42px);line-height:1.05;font-weight:600}
.today .go{margin-top:auto;align-self:flex-start;background:#FFF;color:#5B1A24;border-radius:999px;padding:12px 20px;font-weight:800;font-size:15px}
.catch{flex:1 1 300px;min-width:0;background:#FFF;border-radius:22px;padding:22px 24px;display:flex;flex-direction:column;gap:6px}
.catch .ck{font-size:12px;font-weight:800;letter-spacing:.1em;color:#5E5750;margin-bottom:6px}
.crow{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 8px;border-radius:10px;color:#2B2823;text-decoration:none}
.crow:hover{background:#FBF8F3}.crow .i{font-size:12px;font-weight:800;color:#5B1A24}.crow .t{font-size:15px;font-weight:600}.crow .w{font-size:12px;color:#5E5750}
.yh2{margin:48px 0 14px;font-size:22px;font-weight:800}
.topics{background:#FFF;border-radius:20px;overflow:hidden}
.tp{border-bottom:1px solid #EFE8DD}.tp:last-child{border-bottom:0}
.tprow{width:100%;text-align:left;border:0;background:#FFF;padding:16px 22px;display:grid;grid-template-columns:48px minmax(0,1fr) auto 24px;gap:14px;align-items:center;min-height:64px}
.tprow:hover{background:#FBF8F3}
.badge{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;font-weight:800;font-size:15px}
.b-done{background:#F3E6E7;color:#5B1A24}.b-now{background:#5B1A24;color:#FFF}.b-future{background:#F0EBE3;color:#8C847A}
.tpt{display:flex;flex-direction:column;gap:3px;min-width:0}.tpt .a{font-size:17px;font-weight:800}.tpt .b{font-size:13px;color:#5E5750}
.tpt .a.mute{color:#8C847A}
.pips{display:flex;gap:4px;flex-wrap:wrap;max-width:160px}.pip{width:10px;height:10px;border-radius:999px;background:#E6DFD3}
.pip.done{background:#5B1A24}.pip.now{background:#DCA83C}.chev{font-size:18px;color:#5E5750}
.lsn{padding:0 22px 14px 84px;display:flex;flex-direction:column;gap:2px}
.lrow{width:100%;text-align:left;border:0;background:transparent;display:grid;grid-template-columns:64px minmax(0,1fr) 110px 92px;gap:12px;align-items:center;padding:10px;border-radius:10px;color:#2B2823;min-height:44px;text-decoration:none;font-size:15px}
.lrow:hover{background:#FBF8F3}.lrow .i{font-size:13px;font-weight:800;color:#5B1A24}.lrow .t{font-weight:600}.lrow .w{font-size:13px;color:#5E5750}
.lrow.shut{color:#8C847A}.lrow.shut .i,.lrow.shut .w{color:#8C847A}.lrow.shut .t{font-weight:400}
.chip{justify-self:start;font-size:12px;font-weight:800;border-radius:999px;padding:4px 10px}
.c-today{background:#DCA83C;color:#2B2823}.c-done{background:#F3E6E7;color:#5B1A24}.c-open{background:#FBF1DC;color:#6B4A07}
.c-soon{background:#ECE8E1;color:#5E5850}.c-extra{background:#ECE8E1;color:#5B1A24}.card.soon .kick{color:#5B1A24}
.c-lock{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800}
/* PIN pad */
.pinbg{position:fixed;inset:0;background:rgba(43,40,35,.55);display:flex;align-items:center;justify-content:center;padding:16px;z-index:10}
.pinbox{background:#FFF;border-radius:24px;padding:28px;width:100%;max-width:340px;display:flex;flex-direction:column;gap:18px;align-items:center}
.pinbox .pk{font-size:12px;font-weight:800;letter-spacing:.12em;color:#5B1A24}.pinbox .pt{font-size:15px;color:#4A443E;text-align:center}
.dots{display:flex;gap:14px}.dotp{width:16px;height:16px;border-radius:999px;background:#FFF;border:2px solid #CFC5B5}.dotp.on{background:#5B1A24;border-color:#5B1A24}
.pinerr{font-size:13px;font-weight:800;color:#9A3412}
.keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.key{border:0;border-radius:14px;background:#F5F1EA;color:#2B2823;font-weight:800;font-size:22px;min-height:60px}.key:hover{background:#EFE7DA}
.cancel{border:0;background:transparent;color:#5E5750;font-weight:700;font-size:14px;min-height:44px}
/* worksheet */
.sheetpage{max-width:780px;margin:0 auto;padding:32px 24px;background:#FFF;min-height:100vh}
.sheethead{border-bottom:2px solid #5B1A24;padding-bottom:12px;margin-bottom:12px;display:flex;flex-direction:column;gap:6px}
.sheethead h1{margin:0;font-family:'Newsreader',Georgia,serif;font-size:32px}
.wsq{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:12px 0 72px;border-bottom:1px solid #EFE8DD;font-size:16px;line-height:1.5}
@media print{.noprint{display:none}.sheetpage{padding:0}body{background:#FFF}}
@media (max-width:640px){
/* Card KS S4 (the 390 px overflow census: 1,180 practice answers ran out of a 132 px column): at phone width the
   practice row is number | question, the Show-answer button under the question, the list's side padding halved */
.plist{padding:8px 14px}.prow{grid-template-columns:28px minmax(0,1fr);gap:10px}.prow>.ghost,.prow>.btns{grid-column:2;justify-self:start}
.bar{padding:12px 16px}.wrap{padding:0 16px 72px}.opts{grid-template-columns:1fr}
.steps.lg{grid-template-columns:0 0 minmax(0,max-content) auto minmax(0,max-content) minmax(0,1fr)}.lg .step>*{grid-row:2}.lg .step::before{display:none}
.lg .cue{grid-column:2/-1;grid-row:1;max-width:none;padding:0 0 4px}.lg .step .note{grid-row:3}.lg .w.wp{padding-left:0}.lg .step.text .wide{grid-row:1}.lsn{padding:0 12px 12px 12px}.lrow{grid-template-columns:56px minmax(0,1fr);}
.lrow .w,.lrow .chip,.lrow .c-lock{grid-column:2}.tprow{grid-template-columns:44px minmax(0,1fr) 20px;padding:14px 16px}.pips{display:none}
.exit{padding:22px}.track{width:100px}}
/* Card MK (29.20-29.21): Revise pages and the "I can" rating. Every class here is new and owned by these two
   components (29.17 (f)): rv* the Revise page, rt* the rating, ht* the half-term heading, tph the topic row's wrapper. */
.rvhead{padding:36px 0 16px}.rvhead h1{margin:6px 0 0;font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:clamp(32px,5vw,48px);line-height:1.05}
.rvsaid{margin:0 0 14px;background:#FBEADF;color:#6B2E09;border-radius:14px;padding:14px 18px;font-size:15px;line-height:1.5;font-weight:700}
.rvsaid.rvnear{background:#FBF1DC;color:#6B4A07}.rvsaid a{color:inherit}
.rvlist{display:flex;flex-direction:column;gap:14px;margin-top:8px}
.rvi{gap:10px}.rvtop{display:flex;align-items:baseline;gap:12px}
.rvn{font-family:'Newsreader',serif;font-size:22px;color:#5B1A24;min-width:1.4em}
.rvsrc{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#5E5750}.rvsrc a{color:#5B1A24}
.rvstem{margin:0;font-size:15px;line-height:1.5;color:#4A443E}
.rvfoot{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:22px}
.rtcard{gap:4px}.rtcard .lead{margin:0 0 8px}
.rtrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;padding:12px 0;border-top:1px solid #EFE8DD}
.rtlo{flex:1 1 320px;min-width:0;font-size:16px;line-height:1.5}
.rtbtns{display:flex;flex-wrap:wrap;gap:8px}
.rtb{border:1.5px solid #DDD3C4;border-radius:999px;background:#FFF;color:#2B2823;font-weight:700;font-size:14px;padding:8px 14px;min-height:44px}
.rtb:hover{border-color:#5B1A24}
.rtb.rt-can[aria-pressed="true"]{background:#E3F2E9;border-color:#1F6B45;color:#16452C}
.rtb.rt-nearly[aria-pressed="true"]{background:#FBF1DC;border-color:#B98A1E;color:#6B4A07}
.rtb.rt-not[aria-pressed="true"]{background:#FBEADF;border-color:#B3541E;color:#6B2E09}
.rtnote{margin:10px 0 0;font-size:13px;color:#5E5750}
.rtpip{display:inline-block;width:10px;height:10px;border-radius:999px;margin-left:8px;vertical-align:middle}
.rtpip.rt-can{background:#1F6B45}.rtpip.rt-nearly{background:#DCA83C}.rtpip.rt-not{background:#B3541E}
.rtsum{color:#6B2E09;font-weight:700}
.tph{display:flex;align-items:center}.tph .tprow{flex:1 1 auto;min-width:0}
.rvl{flex:none;margin-right:18px;font-size:13px;font-weight:800;color:#5B1A24;background:#F3E6E7;border-radius:999px;padding:8px 14px;text-decoration:none;min-height:36px;display:inline-flex;align-items:center}
.rvl:hover{background:#E9D3D6;color:#3E1018}
.hth{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:12px 22px;background:#EDE6DA}
.htl{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#5E5750}
.rvh{font-size:14px;font-weight:800;color:#5B1A24;text-decoration:none;min-height:36px;display:inline-flex;align-items:center}
.rvh.off{color:#8C847A;font-weight:700}
@media (max-width:640px){.rvl{margin-right:10px;padding:6px 10px}.hth{padding:10px 16px}.rtbtns{width:100%}}
