/* Approved Maths entry: functional setup and explicitly illustrative report. */
body.maths-entry .ma-main{max-width:1440px;width:calc(100% - 48px);padding:32px 0 20px;background:#fff;border-radius:0;color:#0c2042}
.ma-main *{box-sizing:border-box}
.ma-heading{margin:0 0 34px}.ma-heading h1{font-size:42px;line-height:1.15;margin:0 0 10px;letter-spacing:-1px}.ma-heading p{font-size:20px;margin:0;color:#334766}
.ma-workspace{display:grid;grid-template-columns:minmax(310px,.55fr) minmax(0,1fr);gap:16px;padding:22px;border-radius:24px;background:#e6f5fd;align-items:stretch}
.ma-setup,.ma-report{min-width:0;border:1px solid #ccddec;border-radius:20px;background:#fff;padding:26px}
.ma-setup{display:flex;flex-direction:column;gap:25px;margin:0}.ma-eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;margin:0 0 14px;color:#31415e}.ma-setup h2{font-size:32px;line-height:1.2;letter-spacing:-.7px;margin:0 0 12px}.ma-lead{font-size:17px;line-height:1.5;margin:0;color:#334766}
.ma-setup fieldset{min-width:0;padding:0;margin:0;border:0}.ma-setup legend{font-size:18px;font-weight:750;margin:0 0 12px;padding:0}.ma-years{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ma-year{position:relative;cursor:pointer}.ma-year input{position:absolute;opacity:0;width:1px;height:1px}.ma-year span{display:flex;justify-content:center;align-items:center;min-height:42px;border:1px solid #cbd6e5;border-radius:9px;font-size:15px;background:white;color:#102344}.ma-year input:checked+span{background:#e90052;border-color:#e90052;color:white;font-weight:700}.ma-year input:focus-visible+span{outline:3px solid #257ab6;outline-offset:3px}
.ma-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ma-modes label{display:flex;align-items:center;gap:8px;padding:12px 10px;border:1px solid #cbd6e5;border-radius:9px;font-size:15px;cursor:pointer}.ma-modes label:has(:checked){border-color:#eb1762;background:#fff0f6}.ma-modes input{accent-color:#e90052;width:18px;height:18px;margin:0}.ma-modes span{white-space:nowrap}.ma-set-info{font-size:13px;color:#52647c;margin:0 0 16px;line-height:1.5}.ma-primary{display:flex;align-items:center;justify-content:center;gap:16px;min-height:52px;width:100%;border:0;border-radius:12px;background:#e90052;color:#fff;font-size:19px;font-weight:750;cursor:pointer}.ma-primary:hover{background:#c70048}.ma-access{font-size:12px;line-height:1.6;color:#52647c;margin:10px 0 0}.ma-mode-note{font-size:12px;line-height:1.5;color:#52647c}.ma-student{font-size:14px;font-weight:700;margin:0 0 12px;display:block}.ma-student select{width:100%;padding:10px;margin-top:6px;border:1px solid #cbd6e5;border-radius:8px;background:white;color:#102344;font:inherit}.ma-main [hidden]{display:none!important}
.ma-steps{list-style:none;display:grid;gap:12px;padding:14px 0 0;border-top:1px solid #dae3ed;margin:auto 0 0}.ma-steps li{display:flex;align-items:center;gap:12px;font-size:15px}.ma-steps span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e4f4ff;flex:none}.ma-resume{font-size:13px;color:#245c88}
.ma-report{display:flex;flex-direction:column;gap:22px}.ma-report-header{display:flex;align-items:start;justify-content:space-between;gap:12px}.ma-report-header h2{font-size:30px;line-height:1.2;margin:0 0 8px;letter-spacing:-.7px}.ma-report-header p{font-size:14px;line-height:1.5;margin:0;color:#334766}.ma-sample{flex:none;white-space:nowrap;font-size:13px;font-weight:750;color:#d3004b;background:#ffe7f1;border-radius:30px;padding:9px 13px}.ma-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ma-metrics>div{display:grid;gap:8px;background:#ebf9f1;border-radius:13px;padding:15px 18px}.ma-metrics span{font-size:13px}.ma-metrics strong{font-size:28px;line-height:1.1;white-space:nowrap}
.ma-topics h3,.ma-report-bottom h3{font-size:22px;line-height:1.25;margin:0 0 12px;letter-spacing:-.4px}.ma-topic{display:grid;grid-template-columns:minmax(155px,1.1fr) minmax(60px,1.5fr) 44px 42px;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #e1e7ef;font-size:14px}.ma-topic>span:not(.ma-track),.ma-topic>b{text-align:right;white-space:nowrap}.ma-track{height:12px;border-radius:20px;background:#e7ebf0;overflow:hidden}.ma-track i{display:block;height:100%;border-radius:20px}
.ma-report-bottom{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:1;min-height:320px}.ma-report-bottom>section{display:flex;flex-direction:column;min-width:0;padding:14px;border-radius:15px}.ma-mistake{background:#e6f5ff}.ma-next{background:#e7f9ef}.ma-bottom-inner{flex:1;min-width:0;border:1px solid #d9e5ef;border-radius:12px;background:#ffffffce;padding:16px;display:flex;flex-direction:column}.ma-bottom-inner h4{font-size:17px;line-height:1.3;margin:0 0 14px}.ma-bottom-inner p{font-size:16px;line-height:1.5}.ma-wrong,.ma-correct{border-radius:9px;padding:6px 8px;margin:0 0 8px;background:#fff0f3}.ma-correct{background:#e4f9eb}.ma-explanation{margin-top:auto;padding-top:12px;font-size:16px}.ma-explanation p{margin:10px 0 0;font-size:clamp(14px,1.18vw,17px);white-space:nowrap}.ma-next h4{display:flex;align-items:center;gap:10px}.ma-next svg{width:30px;height:30px;flex:none;color:#ed0058}.ma-next ul{margin:0;padding-left:22px;display:flex;flex-direction:column;justify-content:space-between;flex:1;gap:12px;font-size:clamp(13px,1.1vw,16px);line-height:1.5}.ma-next li{padding-left:1px}.ma-disclaimer{border-top:1px solid #d8e2ec;padding-top:10px;margin:0;text-align:center;font-size:12px;line-height:1.5;color:#52647c}
@media(max-width:1100px){.ma-workspace{grid-template-columns:minmax(260px,.52fr) minmax(0,1fr);padding:16px;gap:12px}.ma-setup,.ma-report{padding:18px}.ma-report-header{flex-wrap:wrap}.ma-report-header h2{font-size:26px}.ma-metrics>div{padding:12px}.ma-metrics strong{font-size:24px}.ma-topic{grid-template-columns:minmax(120px,1.2fr) minmax(50px,1fr) 38px 35px;font-size:12px;gap:6px}.ma-report-bottom h3{font-size:19px}.ma-bottom-inner{padding:12px}.ma-report-bottom>section{padding:10px}.ma-setup h2{font-size:29px}}
@media(max-width:850px){body.maths-entry .ma-main{width:calc(100% - 32px);padding-top:24px}.ma-workspace{grid-template-columns:1fr}.ma-report-header{flex-wrap:nowrap}.ma-setup{gap:20px}.ma-steps{grid-template-columns:repeat(3,1fr);gap:8px}.ma-steps li{font-size:13px;align-items:start}.ma-report-bottom{min-height:300px}.ma-next ul{font-size:15px}.ma-explanation p{font-size:16px}.ma-topic{font-size:14px;grid-template-columns:minmax(150px,1fr) minmax(50px,1.4fr) 44px 42px}}
@media(max-width:520px){.ma-heading h1{font-size:32px}.ma-heading p{font-size:16px}.ma-heading{margin-bottom:24px}.ma-workspace{padding:10px}.ma-report-header{flex-wrap:wrap}.ma-report-header h2{font-size:25px}.ma-metrics{grid-template-columns:repeat(2,1fr)}.ma-report-bottom{grid-template-columns:1fr}.ma-bottom-inner{min-height:230px}.ma-topic{grid-template-columns:1fr 40px 38px;font-size:13px}.ma-track{grid-column:1;grid-row:2;height:8px}.ma-topic strong{grid-column:1}.ma-topic>span:not(.ma-track){grid-column:2;grid-row:1}.ma-topic>b{grid-column:3;grid-row:1}.ma-steps{grid-template-columns:1fr}.ma-report{gap:18px}.ma-next ul{gap:14px}}
