:root{--ink:#292d32;--muted:#666a6b;--paper:#f8f7f4;--white:#fff;--line:#e8e6e1;--berry:#88334b;--berry-dark:#69243a;--berry-wash:#f6eaf0;--green:#2f7969;--green-wash:#eaf4ee;--gold:#aa772b;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}:focus-visible{outline:3px solid #b36d85;outline-offset:4px}button{border:0}p{line-height:1.65}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em}h1{font-size:clamp(36px,4.5vw,60px);line-height:1.1;font-weight:650}h2{font-size:28px;font-weight:650}h3{font-size:19px}small{font-size:12px}.header{height:98px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:32px;padding:0 max(28px,calc((100vw - 1232px)/2));background:var(--white)}.brand{display:flex;align-items:center;gap:12px;font-size:25px;letter-spacing:-.8px;font-weight:720;white-space:nowrap}.brand-mark{display:block;width:43px;height:47px;background:var(--berry);color:white;border-radius:13px 13px 13px 4px;font-size:34px;text-align:center;line-height:43px;position:relative}.brand-mark span{font-size:22px;position:absolute;right:5px;bottom:-4px;color:#e4b9bd}.brand small{display:block;font-size:8px;letter-spacing:1.5px;margin-top:4px;font-weight:650;color:var(--muted)}nav{display:flex;align-self:stretch;align-items:center;gap:30px;margin:auto}nav a{height:100%;display:flex;align-items:center;font-size:14px;color:var(--muted);border-bottom:3px solid transparent;padding-top:3px}nav a.active{color:var(--berry);border-color:var(--berry);font-weight:650}.local-badge{font-size:12px;display:flex;align-items:center;gap:8px;white-space:nowrap}.local-badge i{width:7px;height:7px;border-radius:50%;background:var(--green)}main{max-width:1232px;margin:auto;padding:36px 0 80px;min-height:calc(100vh - 200px)}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:750;color:var(--berry);margin-bottom:19px;display:flex;align-items:center;gap:8px}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:20px;background:var(--white);padding:7px 11px;font-size:11px;font-weight:600}.pill.green{background:var(--green-wash);color:var(--green)}.pill.berry{background:var(--berry-wash);color:var(--berry)}.hero{display:grid;grid-template-columns:1.5fr 1fr;gap:60px;padding:42px 46px;background:#eeeae4;border-radius:24px;position:relative;overflow:hidden}.hero h1{margin-bottom:20px}.hero h1 em{font-style:normal;color:var(--berry)}.hero p{max-width:470px;font-size:15px;color:#696b6b;margin-bottom:26px}.hero-meta{display:flex;align-items:center;gap:12px;font-size:12px}.hero-meta span+span{border-left:1px solid #d0ccc6;padding-left:12px;color:var(--muted)}.hero-art{position:relative;align-self:center;padding:24px 0}.study-card{position:relative;padding:25px 27px;background:var(--white);border-radius:18px;box-shadow:0 16px 40px #5143360c;transform:rotate(2deg);max-width:350px;margin:0 auto}.study-card:before{content:"";position:absolute;inset:-10px 12px 8px -10px;border:1px solid #b6afa440;border-radius:18px;z-index:-1;transform:rotate(-5deg)}.study-card .card-label{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px;margin-bottom:20px}.study-card .big-number{font-size:46px;letter-spacing:-3px;font-weight:650}.study-card .big-number span{font-size:20px;letter-spacing:-.5px;color:#b3b0ac;margin-left:4px}.study-card h3{font-size:16px;margin:10px 0 8px}.study-card p{font-size:12px;line-height:1.5;margin-bottom:16px}.study-card .mini-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.mini-grid i{height:8px;border-radius:3px;background:#e9e5e0}.mini-grid i:nth-child(-n+5){background:#88334b}.art-symbol{position:absolute;color:var(--berry);font-family:Georgia,serif;font-size:34px;opacity:.6;user-select:none}.art-symbol.one{top:-4px;right:5px;transform:rotate(15deg)}.art-symbol.two{bottom:-12px;left:-10px;transform:rotate(-15deg)}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:42px 0 22px;gap:15px}.section-heading h2{margin:0 0 8px}.section-heading p{font-size:13px;color:var(--muted);margin:0}.section-heading>span{font-size:12px;color:var(--muted);padding-bottom:4px}.filter-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:24px}.years{display:flex;gap:6px;flex-wrap:wrap}.chip{padding:9px 17px;background:transparent;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:13px}.chip.active{background:var(--berry);color:white;border-color:var(--berry)}.filter-select{border:1px solid var(--line);background:white;padding:10px 32px 10px 13px;border-radius:9px;font-size:12px;color:var(--ink);max-width:100%}.test-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.test-card{padding:24px;background:white;border:1px solid var(--line);border-radius:var(--radius);transition:transform .18s,box-shadow .18s}.test-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #42322908}.test-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.test-year{font-size:32px;letter-spacing:-1px;font-weight:650}.test-card h3{margin-bottom:11px}.test-card .meta{display:flex;gap:15px;color:var(--muted);font-size:12px;margin-bottom:22px}.test-card-bottom{border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}.card-link{color:var(--berry);font-size:13px;font-weight:650;display:inline-flex;gap:15px;align-items:center;padding:8px 0;background:transparent}.callout{padding:21px 25px;margin-top:24px;display:flex;align-items:center;gap:18px;border:1px solid var(--line);border-radius:14px}.callout .icon-box{display:grid;place-items:center;flex:0 0 42px;height:42px;background:#eeebe5;border-radius:12px;color:var(--berry);font-size:22px}.callout h3{font-size:14px;margin-bottom:5px}.callout p{font-size:12px;margin:0;color:var(--muted)}.callout a{margin-left:auto;white-space:nowrap}.button{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:44px;padding:12px 20px;border-radius:9px;background:var(--berry);color:white;font-size:13px;font-weight:650}.button:hover{background:var(--berry-dark)}.button.secondary{background:var(--berry-wash);color:var(--berry);border:1px solid #e2c3d0}.button.secondary:hover{background:#efdce5;border-color:#d6aebf}.button.subtle{background:#efece6;color:var(--ink);padding:8px 14px;min-height:36px}.button.subtle:hover{background:#e6e2da}.button.understood{background:var(--green-wash);color:var(--green);border:1px solid #bddbcc}.button.understood:hover{background:#dcefe4}.button.understood[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.button[data-understanding=unclear][aria-pressed=true]{background:var(--berry);color:white;border-color:var(--berry)}.button.practice{background:#fbf1dc;color:#7a5418;border:1px solid #ecd5a4}.button.practice:hover{background:#f6e5c0}.button.transfer{background:#fddcb8;color:#8a3a06;border:1px solid #f2b27a}.button.transfer:hover{background:#fbcb98}.button.wide{width:100%}.footer{max-width:1232px;margin:auto;border-top:1px solid var(--line);padding:25px 0 32px;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}.footer b{font-size:12px;color:var(--ink);margin-right:8px}.footer a{text-decoration:underline;text-underline-offset:3px}.loading{padding:80px;text-align:center;color:var(--muted)}.skip{position:fixed;top:-80px;left:12px;background:white;padding:14px;z-index:100}.skip:focus{top:12px}.back-link{display:inline-flex;gap:8px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:25px}.exam-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.exam-title h1{font-size:32px;margin:8px 0}.exam-title .eyebrow{margin:0}.exam-actions{display:flex;align-items:center;gap:10px}.timer{font-size:19px;font-variant-numeric:tabular-nums;letter-spacing:.5px;margin:0 15px}.exam-toolbar{border:1px solid var(--line);border-radius:14px;background:white;padding:18px 22px;margin-bottom:22px}.toolbar-info{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;margin-bottom:14px}.task-numbers{display:grid;grid-template-columns:repeat(16,1fr);gap:7px}.task-number{color:var(--ink);height:37px;border-radius:8px;border:1px solid var(--line);background:white;font-size:12px;position:relative}.task-number.answered:after{content:"";position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:var(--gold)}.task-number.correct{background:var(--green-wash);color:var(--green);border-color:#cfe1d6}.task-number.partial{background:#fbf2e3;color:#946b2b;border-color:#ebdab7}.task-number.wrong{background:#faeded;color:#ad5050;border-color:#ecd3d3}.task-number.current{background:var(--berry);color:white;border-color:var(--berry)}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.question-card{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}.question-head{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid var(--line)}.question-head h2{font-size:20px;margin:0}.question-head span{font-size:11px;color:var(--muted)}.question-image{padding:24px 22px;min-height:200px}.question-image img{display:block;width:100%;height:auto}.question-nav{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-top:1px solid var(--line)}.question-nav>span{font-size:11px;color:var(--muted)}.answer-card{background:white;border:1px solid var(--line);border-radius:16px;padding:24px}.answer-card h3{margin:0 0 8px}.answer-card>p{font-size:12px;color:var(--muted);margin-bottom:20px}.answer-field{margin-bottom:17px}.answer-field label,.field-label{display:block;font-size:12px;margin-bottom:9px;font-weight:650}.text-input,textarea{width:100%;border:1px solid #dcd9d3;border-radius:9px;padding:11px 13px;background:#fff;color:var(--ink);font-size:14px}.text-input{height:44px}textarea{resize:vertical;min-height:90px;line-height:1.5}.text-input.correct{border-color:var(--green);background:#f6fbf7}.text-input.wrong{border-color:#b95656}
.rule-note{margin:7px 0 0;color:var(--ink);background:#faf6ee;border-left:3px solid var(--gold);padding:7px 10px;border-radius:0 7px 7px 0;line-height:1.45}
.text-input.partial{border-color:var(--gold);background:#fcf8f0}.answer-options{display:flex;gap:5px}.answer-option{flex:1;height:39px;border:1px solid var(--line);border-radius:8px;background:white;font-size:12px}.answer-option.selected{border-color:var(--berry);background:var(--berry-wash);color:var(--berry);font-weight:700}.answer-option.correct{border-color:var(--green);background:var(--green-wash)}.answer-option.wrong{border-color:#ad5050;background:#faeded}.answer-result{padding:13px 14px;margin:17px 0;border-radius:10px;font-size:12px;line-height:1.6;background:var(--green-wash);color:var(--green)}.answer-result.partial{background:#fbf2e3;color:#946b2b}.answer-result.wrong{background:#faeded;color:#ad5050}.answer-result b{display:block;margin-bottom:3px}.answer-divider{height:1px;background:var(--line);margin:22px 0}.muted{color:var(--muted)}.tiny{font-size:11px;line-height:1.6}.notes-label{display:block;font-size:11px;color:var(--muted);margin:0 0 8px}.solution{margin-top:22px;background:white;border:1px solid var(--line);border-radius:16px;padding:24px}.solution h3{margin-bottom:7px}.solution p{font-size:12px;color:var(--muted)}.solution img{width:100%;height:auto;display:block}.self-grade{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.self-grade label{font-size:12px;display:block;margin-bottom:12px;font-weight:650}.points-buttons{display:flex;gap:7px;flex-wrap:wrap}.points-button{border:1px solid var(--line);border-radius:8px;min-width:40px;min-height:38px;background:white;font-size:12px}.points-button.selected{background:var(--berry);color:white;border-color:var(--berry)}.save-note{display:flex;align-items:center;gap:7px;margin:16px 0 0;font-size:10px;color:var(--muted)}.save-note i{height:5px;width:5px;background:var(--green);border-radius:50%}.practice-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.practice-card{display:block;text-align:left;padding:22px;border:1px solid var(--line);border-radius:15px;background:white;color:var(--ink)}.practice-card:hover{border-color:#bd8c9b}.practice-card .type-number{display:block;color:var(--berry);font-size:32px;margin-bottom:22px}.practice-card h3{font-size:15px;margin-bottom:8px}.practice-card p{font-size:11px;margin:0;color:var(--muted)}.page-intro{margin:24px 0 32px}main>.page-intro:first-child{margin-top:0}.page-intro h1{font-size:42px;margin-bottom:15px}.page-intro p{font-size:14px;color:var(--muted);max-width:650px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:30px 0}.stat{background:white;border:1px solid var(--line);padding:26px;border-radius:16px}.stat strong{display:block;font-size:38px;letter-spacing:-1px;margin-bottom:10px}.stat span{font-size:12px;color:var(--muted)}.empty-state{text-align:center;padding:65px 25px;background:white;border:1px dashed #d8d2c8;border-radius:18px}.empty-state p{font-size:13px;color:var(--muted)}.history-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid var(--line);border-radius:14px;background:white;margin-bottom:12px}.history-row h3{font-size:15px;margin-bottom:8px}.history-row p{font-size:11px;color:var(--muted);margin:0}.history-row strong{font-size:22px}.history-actions{display:flex;gap:20px;align-items:center}.summary-hero{padding:35px;background:#eeeae4;border-radius:20px;display:flex;gap:35px;align-items:center;margin-bottom:30px}.summary-circle{flex:0 0 130px;height:130px;border:7px solid #d7c4c5;border-top-color:var(--berry);border-radius:50%;display:grid;align-content:center;text-align:center;font-size:30px;font-weight:650}.summary-circle small{font-size:11px;color:var(--muted);font-weight:400}.summary-hero h1{font-size:30px;margin-bottom:10px}.summary-hero p{font-size:13px;margin-bottom:12px;color:var(--muted)}.result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.result-card{display:block;text-align:left;padding:17px;background:white;border:1px solid var(--line);border-radius:12px;color:var(--ink)}.result-card span{display:block;font-size:11px;color:var(--muted);margin-top:9px}.result-card.correct{border-left:3px solid var(--green)}.result-card.partial{border-left:3px solid var(--gold)}.result-card.wrong{border-left:3px solid #ad5050}dialog{border:1px solid var(--line);border-radius:20px;padding:32px;max-width:470px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 25px 100px #0003}dialog::backdrop{background:#25232b70}dialog h2{font-size:25px;margin-bottom:14px}dialog p{font-size:13px;color:var(--muted)}.modal-buttons{display:flex;gap:10px;margin-top:24px}.modal-buttons .button{flex:1}.modal-radio{display:block;border:1px solid var(--line);padding:14px;border-radius:10px;margin:12px 0;font-size:13px}.modal-radio input{accent-color:var(--berry);margin-right:7px}.modal-radio small{display:block;margin:7px 0 0 25px;font-size:11px;color:var(--muted);line-height:1.5}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 20px;border-radius:10px;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}.hidden{display:none!important}
.question-tools{display:flex;align-items:center;gap:18px}.zoom-link{background:transparent;font-size:11px;color:var(--berry);padding:5px 0}.zoom-dialog{width:calc(100vw - 28px);max-width:1160px;max-height:calc(100vh - 28px);padding:24px}.zoom-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.zoom-header h2{margin:0;font-size:22px}.zoom-scroll{overflow:auto;background:white;border:1px solid var(--line);border-radius:8px}.zoom-scroll img{display:block;min-width:850px;width:100%;max-width:none}.task-numbers.practice-numbers{grid-template-columns:repeat(12,1fr)}
@media(min-width:1500px){main{padding-top:45px}.hero{padding-top:52px;padding-bottom:52px}}
@media(max-width:1300px){main{margin:0 28px}.footer{margin:0 28px}.header{padding:0 28px}.hero{gap:30px}}
@media(max-width:950px){.header{height:85px;gap:20px}.brand{font-size:21px}.brand small{font-size:7px}nav{gap:20px}.hero{padding:30px;gap:25px;grid-template-columns:1.2fr 1fr}.hero h1{font-size:43px}.hero p{font-size:13px}.hero-meta{font-size:10px}.study-card{padding:20px}.test-grid{grid-template-columns:repeat(2,1fr)}.exam-layout{grid-template-columns:minmax(0,1fr) 285px;gap:16px}.answer-card{padding:20px}.task-numbers{gap:5px}.practice-grid{grid-template-columns:repeat(3,1fr)}.footer{flex-direction:column;gap:12px}.exam-title h1{font-size:26px}.timer{font-size:16px;margin:0 8px}}
@media(max-width:700px){.header{height:auto;min-height:80px;flex-wrap:wrap;padding:18px 20px 0;gap:15px}.brand{font-size:21px}.brand-mark{width:35px;height:39px;line-height:35px;font-size:29px;border-radius:10px}.brand small{font-size:6px}.local-badge{margin-left:auto;font-size:10px}nav{order:3;width:100%;margin:0;gap:28px;height:45px}nav a{font-size:12px}.hero{grid-template-columns:1fr;padding:30px 24px}.hero-art{display:none}.hero h1{font-size:43px}.hero p{font-size:13px;max-width:360px}.hero-meta{font-size:10px}main{margin:0 18px;padding-top:24px;padding-bottom:45px}.section-heading{margin-top:30px}.section-heading h2{font-size:24px}.section-heading>span{display:none}.test-grid{grid-template-columns:1fr;gap:12px}.test-card{padding:21px}.test-card-top{margin-bottom:15px}.test-year{font-size:28px}.test-card .meta{margin-bottom:17px}.filter-bar{gap:15px}.chip{padding:9px 13px;font-size:12px}.filter-select{width:100%}.callout{padding:18px;align-items:start;flex-wrap:wrap;gap:12px}.callout>div:not(.icon-box){flex:1}.callout a{margin-left:54px}.footer{margin:0 18px;line-height:1.7}.exam-title{flex-direction:column;align-items:start;gap:8px;margin-bottom:12px}.exam-title h1{font-size:20px;margin:4px 0}.exam-actions{width:100%;justify-content:space-between}.exam-actions .button{font-size:11px;padding:10px 14px;min-height:40px}.timer{margin-left:0}.task-numbers{grid-template-columns:repeat(8,1fr);gap:7px}.exam-toolbar{padding:10px 12px;margin-bottom:12px}.toolbar-info{margin-bottom:6px}.task-number{height:32px;font-size:11px}.topic-badges{margin:0 0 10px}.exam-layout{grid-template-columns:minmax(0,1fr);display:flex;flex-direction:column}.exam-layout>div{display:contents}.question-card{order:1}.answer-card{order:2;padding:18px;margin-top:14px}#solution-slot{order:3}#worked-slot{order:4}.question-head{padding:18px}.question-image{padding:16px 10px}.question-nav{padding:15px}.question-nav .button{font-size:11px;padding:9px 13px;min-height:38px}.question-nav>span{font-size:10px}.practice-grid{grid-template-columns:repeat(2,1fr);gap:12px}.practice-card{padding:20px}.page-intro h1{font-size:34px}.stats{gap:9px}.stat{padding:18px 13px}.stat strong{font-size:28px}.stat span{font-size:10px}.history-row{padding:18px;align-items:start;flex-direction:column;gap:15px}.history-actions{width:100%;justify-content:space-between}.summary-hero{padding:25px;flex-direction:column;align-items:start;gap:20px}.summary-circle{width:110px;flex-basis:110px;height:110px}.summary-hero h1{font-size:26px}.result-grid{grid-template-columns:repeat(2,1fr)}dialog{padding:25px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){.task-numbers.practice-numbers{grid-template-columns:repeat(6,1fr)}.question-tools{gap:12px}.question-image{overflow-x:auto;padding:12px}.question-image img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain}.zoom-dialog{padding:16px}.zoom-header h2{font-size:18px}}

/* The source task is a scanned image. Make its full-size view discoverable and easy to tap. */
.question-head .zoom-link{min-height:44px;padding:8px 12px;border:1px solid var(--berry);border-radius:8px;background:var(--berry-wash);font-size:13px;font-weight:650;white-space:nowrap}
.question-head .zoom-link:hover{text-decoration:underline;text-underline-offset:3px}
.question-image-trigger{display:block;width:100%;padding:0;background:transparent;text-align:left;border-radius:8px;color:var(--berry)}
.question-image-trigger img{display:block;width:100%;height:auto}
.question-image-hint{display:block;min-height:44px;padding:12px 4px 0;font-size:14px;font-weight:650;text-align:center}
.question-image-trigger:hover .question-image-hint{text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.question-head .zoom-link{font-size:12px;padding:8px}.question-image-hint{padding-top:13px}}

@media(max-width:700px){
  .topic-skill-callout{display:flex;flex-direction:column;align-items:stretch;gap:12px}
  .topic-skill-callout>div{flex:none;width:100%}
  .topic-skill-callout a{align-self:flex-start;margin:0;white-space:normal;min-height:44px;font-size:14px}
}
/* A task left blank: 0 points like a wrong answer, but grey and dashed so it reads "no answer", not "mistake". */
.task-number.empty{background:#f1efea;color:var(--muted);border:1px dashed #b9b4aa}
.text-input.empty{border-color:#b9b4aa;border-style:dashed}
.answer-result.empty{background:#f1efea;color:var(--muted)}
.result-card.empty{border-left:3px dashed #a8a39a}
.task-number.empty.current{background:var(--berry);color:white;border:1px dashed var(--berry)}
/* Legend of the task-number colours, at the bottom of a task page. */
.status-legend{margin:28px 0 8px;padding:16px 20px;border:1px solid var(--line);border-radius:16px;background:white}
.status-legend h3{margin:0 0 12px;font-size:15px}
.status-legend ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px 24px;margin:0;padding:0;list-style:none}
.status-legend li{display:flex;align-items:center;gap:12px;font-size:13px;line-height:1.4;color:var(--muted)}
.status-legend li b{color:var(--ink)}
.status-legend .task-number{display:inline-grid;place-items:center;flex-shrink:0;width:38px;height:32px}
