/* Approved Maths Studio design; isolated from the other exam products. */
.maths-entry,.mw{--ms-ink:#222a3e;--ms-pink:#d90b56;--ms-muted:#59677e;--ms-line:#dce2ed;color:var(--ms-ink);font-family:'Atkinson Hyperlegible Next',Arial,sans-serif;background:#f8f9fc;line-height:1.5}
.maths-entry *,.mw *{box-sizing:border-box}.maths-entry{margin:0}.maths-entry [hidden],.mw [hidden]{display:none!important}
.maths-entry a,.mw a{color:inherit}.ms-brand{text-decoration:none;display:flex;align-items:center;gap:10px;flex:none;font-size:29px;font-weight:800;letter-spacing:-1px;line-height:1.15}.ms-brand img{width:37px;height:37px}.ms-brand em{font-style:normal;color:#d90b56}.ms-brand small{display:block;font-size:11px;font-weight:400;letter-spacing:0;margin-top:4px}
.ms-header{background:#fff;border-bottom:1px solid #e9edf4}.ms-header-inner{max-width:1320px;margin:auto;min-height:84px;display:flex;align-items:center;gap:30px;padding:12px 28px}.ms-header nav{display:flex;align-items:center;gap:17px;flex:1;justify-content:center}.ms-header nav a{font-size:13px;text-decoration:none;white-space:nowrap;padding:19px 0;border-bottom:2px solid transparent}.ms-header nav a[aria-current]{color:#d90b56;border-color:#d90b56;font-weight:700}.ms-account{border:1px solid #a3aec1;padding:9px 18px;border-radius:9px;text-decoration:none;font-size:14px;white-space:nowrap}
.ms-main{max-width:1280px;margin:auto;padding:20px 28px 30px}.ms-breadcrumb{font-size:12px;color:#64728a;margin:0 0 20px}.ms-breadcrumb a{text-decoration:none}.ms-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.ms-intro h1{font-size:42px;letter-spacing:-.02em;line-height:1.15;margin:0 0 8px}.ms-intro p{margin:0;color:#59677e;font-size:18px}.maths-entry .vip-free-product{display:block;background:#e8f7f0;color:#176347;padding:14px 18px;border:0;border-radius:12px;font-size:13px;max-width:490px;line-height:1.6}.vip-free-product strong{display:block;font-size:11px;letter-spacing:.07em;margin-bottom:3px}
.ms-form{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(290px,1fr);gap:16px;align-items:stretch}.ms-choices,.ms-summary{background:white;border:1px solid #e2e7f0;border-radius:15px;padding:24px}.ms-choices fieldset{border:0;margin:0;padding:0;min-width:0}.ms-choices legend{font-size:22px;line-height:1.3;font-weight:750;margin-bottom:19px;padding:0}.ms-step{display:inline-flex;width:29px;height:29px;align-items:center;justify-content:center;border-radius:50%;color:white;background:#d90b56;font-size:18px;margin-right:12px}.ms-years{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.ms-year{position:relative;cursor:pointer;border:1px solid #d5ddeb;border-radius:11px;text-align:center;padding:13px 4px 10px;min-height:92px;font-size:13px}.ms-year b{display:block;font-size:36px;font-weight:700;line-height:1.2;margin-top:3px}.ms-year input,.ms-mode input{position:absolute;opacity:0;width:1px;height:1px}.ms-year:has(:checked),.ms-mode:has(:checked){border:2px solid #d90b56;background:#fff2f7;color:#b90748}.ms-year:has(:checked){padding:12px 3px 9px}.ms-year:has(:checked)::after{content:'✓';position:absolute;right:6px;top:5px;border-radius:50%;background:#d90b56;color:white;width:17px;height:17px;font-size:12px}.ms-year:focus-within,.ms-mode:focus-within{outline:3px solid #18887e;outline-offset:3px}.ms-selected{font-size:12px;color:#59677e;margin:11px 0 19px}.ms-rule{border:0;border-top:1px solid #e5eaf2;margin:0 0 22px}.ms-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ms-mode{border:1px solid #d5ddeb;border-radius:12px;padding:20px 28px 20px 20px;position:relative;cursor:pointer;display:flex;gap:15px;align-items:flex-start;min-height:126px}.ms-mode:has(:checked){padding:19px 27px 19px 19px}.ms-mode::after{content:'';width:15px;height:15px;border:1px solid #96a3b8;border-radius:50%;position:absolute;right:13px;top:13px}.ms-mode:has(:checked)::after{border:5px solid #d90b56;background:white}.ms-mode>span:first-of-type{font-size:30px;line-height:1.2}.ms-mode b{display:block;color:#222a3e;font-size:18px}.ms-mode small{display:block;color:#59677e;font-size:13px;margin-top:4px}.ms-mode p{font-size:13px;color:#59677e;margin:6px 0 0}.ms-topics{margin-top:18px;border:1px solid #e2e7f0;border-radius:11px;padding:16px}.ms-topics h2{font-size:18px;margin:0 0 10px}.ms-topics ul{list-style:none;padding:0;margin:0}.ms-topics li{display:flex;gap:16px;align-items:center;font-size:14px;padding:10px 0;border-bottom:1px solid #edf0f6}.ms-topic-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#e7f7f1;color:#147460;font-size:18px}.ms-topics li:nth-child(2) .ms-topic-icon{background:#fff0f6;color:#ba0b4a}.ms-topics li:nth-child(3) .ms-topic-icon{background:#edf4ff;color:#365b93}.ms-tip{font-size:12px;background:#fff7e7;color:#725218;border-radius:9px;padding:10px 12px;margin:13px 0 0}.ms-summary{padding:25px;display:flex;flex-direction:column}.ms-overline{color:#687891;font-size:11px;letter-spacing:.06em;margin:0 0 5px}.ms-summary h2{font-size:29px;letter-spacing:-.6px;margin:0 0 5px}.ms-summary>p{margin:0;color:#59677e;font-size:15px}.ms-facts{list-style:none;padding:15px 0;margin:0}.ms-facts li{display:flex;align-items:center;gap:16px;padding:16px 0;font-size:16px;font-weight:600}.ms-facts i{font-style:normal;width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#fff0f6;color:#d90b56;font-size:25px}.ms-facts li:nth-child(2) i{background:#e7f7f1;color:#147460}.ms-facts li:nth-child(3) i{background:#edf4ff;color:#365b93}.ms-summary hr{border:0;border-top:1px solid #e0e6ef;margin:6px 0 20px;width:100%}.ms-primary,.mw .ms-primary{background:#d90b56;color:#fff;border:1px solid #d90b56;font:700 16px/1.3 'Atkinson Hyperlegible Next',Arial,sans-serif;border-radius:9px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:13px 23px;cursor:pointer;text-decoration:none}.ms-primary:hover,.mw .ms-primary:hover{background:#bd0749}.ms-summary .ms-primary{width:100%}.ms-mode-note{font-size:12px!important;text-align:center;line-height:1.6;margin-top:13px!important}.ms-resume{font-size:13px;margin-top:18px;text-align:center;color:#b90748!important}.ms-student-label{font-size:14px;margin:15px 0}.ms-student-label select{display:block;width:100%;padding:11px;font:inherit;border:1px solid #cad4e1;border-radius:8px;margin-top:6px}.ms-footer{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:#65758e;margin-top:20px}.ms-footer a{text-decoration:none}.ms-skip{position:absolute;top:-100px;left:20px}.ms-skip:focus{top:10px;background:white;z-index:100;padding:15px}.maths-entry :is(a,button,input,select):focus-visible,.mw :is(a,button,input,select):focus-visible{outline:3px solid #18887e;outline-offset:3px}
body:has(.mw) .vip-standard-header,body:has(.mw) #vip-page-back,body:has(.mw) .lp-footer{display:none!important}body:has(.mw) .lp-shell{max-width:none!important;width:100%!important}.mw{min-height:100vh}.mw button{font-family:inherit}.mw-header{background:white;border-bottom:1px solid #e2e7f0;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px max(24px,calc((100vw - 1400px)/2))}.mw-identity{display:flex;align-items:center;gap:25px}.mw-title{border-left:1px solid #d2dbea;padding-left:25px}.mw-title strong{font-size:23px;display:block;line-height:1.2}.mw-title span{font-size:14px;color:#62708a;display:block;margin-top:4px}.mw-header-actions{display:flex;gap:16px;align-items:center}.mw .ms-secondary,.mw .ms-text{background:white;border:1px solid #b6c1d4;border-radius:8px;color:#26334d;min-height:43px;padding:10px 16px;font:500 14px/1.3 'Atkinson Hyperlegible Next',Arial,sans-serif;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.mw .ms-text{background:transparent;border-color:transparent}.mw .ms-secondary:hover,.mw .ms-text:hover{background:#fff2f7}.mw svg{width:20px;height:20px;display:inline-block;flex:none}.mw-content{max-width:1450px;margin:auto;padding:18px 24px 25px}.mw-statusbar{display:flex;align-items:center;gap:24px;margin-bottom:19px;min-height:55px}.mw-mode{background:#fae7ee;color:#b90748;padding:9px 19px;border-radius:30px;font-weight:700;white-space:nowrap}.mw-progress{display:flex;align-items:center;gap:22px;flex:1;max-width:690px;font-size:14px}.mw-progress strong{white-space:nowrap}.mw-progress progress{height:8px;border:0;overflow:hidden;border-radius:10px;margin:0;min-width:50px;flex:1;accent-color:#d90b56}.mw-progress progress::-webkit-progress-bar{background:#dce2ec}.mw-progress progress::-webkit-progress-value{background:#d90b56}.mw-timer{margin-left:auto;display:flex;align-items:center;gap:15px;padding:8px 14px;border-radius:11px;background:#edf1f7;font-variant-numeric:tabular-nums}.mw-timer span{font-size:11px;color:#586983;display:block}.mw-timer strong{font-size:25px;line-height:1.1;display:block}.mw-timer button{border-left:1px solid #ccd5e3!important;border-radius:0!important;font-size:12px!important}.mw-grid{display:grid;grid-template-columns:272px minmax(0,1fr);gap:18px;align-items:start}.mw-nav,.mw-paper{background:white;border:1px solid #e1e7f0;border-radius:12px;min-width:0}.mw-nav{padding:20px 17px}.mw h2,.mw h3,.mw p{margin-top:0}.mw .mw-nav h2{font-size:22px;margin:0 0 5px}.mw .mw-nav>p{font-size:13px;margin:0 0 16px;color:#59677e}.mw-grid-buttons{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.mw-grid-buttons button{min-height:44px;border:1px solid #d6dfec;border-radius:7px;background:#fff;color:#27354b;font-size:14px;font-weight:600;cursor:pointer;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.25;padding:4px 0}.mw-grid-buttons button.answered{background:#26354a;border-color:#26354a;color:white}.mw-grid-buttons button.current{background:#fff0f6;border:2px solid #d90b56;color:#d90b56}.mw-grid-buttons small{font-size:10px;line-height:1}.mw-grid-buttons .mw-flag{position:absolute;right:1px;top:12px;width:12px;height:12px;color:#aa6500;fill:#ffd578;stroke-width:2.5}.mw-grid-buttons .answered .mw-flag{color:#ffd578}.mw-legend{display:grid;grid-template-columns:1fr 1fr;gap:13px 5px;margin:19px 0;font-size:11px;color:#56657e}.mw-legend>span{display:flex;align-items:center;gap:7px}.mw-legend i{font-style:normal;width:19px;height:19px;border-radius:4px;border:1px solid #cdd7e6;display:grid;place-items:center;font-size:12px}.mw-legend i.answered{background:#26354a;color:white;border-color:#26354a}.mw-legend i.current{border:2px solid #d90b56;background:#fff0f6}.mw-legend svg{width:19px;height:19px;color:#a65f00}.mw-finish{border-top:1px solid #e4e9f2;padding-top:18px}.mw-finish button{width:100%;border-color:#d90b56!important;color:#bc0749!important;font-weight:700!important}.mw-finish p{font-size:11px;text-align:center;margin:8px 0 0;color:#65758e}.mw-paper{padding:23px 27px;display:flex;flex-direction:column;min-height:650px}.mw-question-top{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e0e6f0;padding-bottom:17px;margin-bottom:24px}.mw-question-meta{display:flex;align-items:center;gap:18px;font-size:11px;font-weight:600;letter-spacing:.04em;flex-wrap:wrap}.mw-skill{background:#f0f3f9;color:#586b87;border-radius:20px;padding:5px 14px;letter-spacing:0;font-weight:500}.mw-question-top button{white-space:nowrap}.mw .mw-question-content h2{font-size:clamp(22px,2.1vw,29px);line-height:1.45;margin:0 0 18px;letter-spacing:-.4px}.mw .mw-question-content .lp-eyebrow{display:none}.mw-question-content{outline:none}.mw-question-content p{line-height:1.6}.mw-answers{margin:8px 0 0}.mw-answers legend{font-size:14px;color:#586b87;margin-bottom:14px}.mw-answers fieldset{border:0;margin:0;padding:0;min-width:0}.mw-options{display:grid;gap:10px}.mw-option{display:flex;align-items:center;gap:18px;border:1px solid #d6deeb;border-radius:10px;padding:13px 18px;margin:0;min-height:61px;cursor:pointer;font-size:21px;font-weight:500}.mw-option.selected{background:#fff0f6;border:2px solid #d90b56;padding:12px 17px}.mw-option:focus-within{outline:3px solid #18887e;outline-offset:2px}.mw-option b{width:38px;height:38px;border-radius:50%;background:#e9edf4;display:grid;place-items:center;font-size:19px;flex:none}.mw-option.selected b{background:#f8d5e2;color:#bd0749}.mw-option span{flex:1;overflow-wrap:anywhere}.mw-option input{width:20px;height:20px;min-height:20px;padding:0;margin:0;accent-color:#d90b56;flex:none;cursor:pointer}.mw-entry-answer{font-size:18px!important;min-height:58px!important}.mw-save{display:flex;align-items:center;gap:8px;min-height:48px;font-size:13px;color:#087769;margin:8px 0}.mw-save.is-dirty{color:#6e6144}.mw-bottom{border-top:1px solid #e0e6f0;margin-top:auto;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:10px}.mw-bottom .ms-primary{min-width:180px}.mw-note{text-align:center;font-size:11px!important;color:#65758e;margin:10px 0 0}.mw-mobile-toggle{display:none!important}.mw-alert{padding:13px 17px;border-radius:9px;background:#fff1f1;border:1px solid #edb0bd;font-size:14px;display:flex;align-items:center;gap:12px;margin-bottom:15px}.mw-sample{font-size:13px;padding:10px 16px;background:#edf8f2;border-radius:10px;margin:0 0 15px}.mw-sample a{font-weight:700;color:#176347}.mw-dialog{color:#222a3e;width:min(540px,calc(100vw - 32px));border:1px solid #dce2ed;border-radius:18px;padding:30px;max-height:85vh;overflow:auto;box-shadow:0 25px 80px #18244033}.mw-dialog::backdrop{background:#18244080}.mw .mw-dialog h2{font-size:25px;line-height:1.2;margin:0 0 17px}.mw-dialog p{font-size:15px;color:#59677e}.mw-dialog .mw-dialog-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.mw-review-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:#f4f6fa;padding:17px;border-radius:10px}.mw-review-stats b{display:block;font-size:25px}.mw-review-stats span{font-size:12px}.mw-review-links{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}.mw-review-links button{min-width:40px;min-height:40px;border:1px solid #c7d1e1;border-radius:6px;background:#fff;cursor:pointer}.mw-help-list{padding-left:20px;font-size:15px}.mw-help-list li{margin-bottom:10px}
@media(max-width:1150px){.ms-header-inner{flex-wrap:wrap;gap:4px 20px}.ms-header nav{order:3;width:100%;justify-content:space-between}.ms-account{margin-left:auto}.ms-intro{align-items:flex-start}.ms-intro .vip-free-product{max-width:420px}.mw-progress{gap:12px}.mw-progress>span{display:none}.mw-grid{grid-template-columns:225px minmax(0,1fr)}.mw-nav{padding:18px 12px}.mw-paper{padding:22px}.mw-statusbar{gap:15px}.mw-skill{display:none}}
@media(max-width:800px){.ms-header-inner{padding:14px 20px}.ms-header nav{overflow:auto;justify-content:flex-start;gap:23px;flex:0 0 100%;width:100%;min-width:0}.ms-main{padding:20px}.ms-intro{display:block}.ms-intro h1{font-size:35px}.ms-intro .vip-free-product{max-width:none;margin-top:20px}.ms-form{grid-template-columns:1fr}.ms-choices,.ms-summary{padding:20px}.ms-summary{order:2}.ms-facts{display:flex;flex-wrap:wrap;gap:12px;padding:15px 0}.ms-facts li{font-size:13px;gap:7px;padding:7px 0}.ms-facts i{width:30px;height:30px;font-size:20px}.ms-summary h2{font-size:26px}.ms-footer{flex-wrap:wrap}.mw-header{padding:14px 18px;gap:15px}.mw-identity{gap:14px}.mw .ms-brand{font-size:23px;gap:8px}.mw .ms-brand img{width:30px;height:30px}.mw-title{padding-left:14px}.mw-title strong{font-size:17px}.mw-title span{font-size:11px}.mw-header-actions{gap:3px}.mw-header-actions button{font-size:12px!important;padding:8px!important}.mw-content{padding:14px 16px}.mw-statusbar{flex-wrap:wrap;gap:12px;align-items:center}.mw-mode{font-size:13px;padding:7px 12px}.mw-progress{font-size:12px;flex:1}.mw-timer{padding:6px 12px}.mw-timer strong{font-size:21px}.mw-grid{grid-template-columns:1fr;gap:12px}.mw-nav{padding:12px 16px}.mw-nav-body{display:none}.mw-nav.is-expanded .mw-nav-body{display:block}.mw .mw-nav h2,.mw .mw-nav>p{display:none}.mw-mobile-toggle{display:flex!important;width:100%;justify-content:space-between!important;border:0!important;padding:0!important;min-height:32px!important;background:transparent!important}.mw-grid-buttons{grid-template-columns:repeat(8,1fr);margin-top:16px}.mw-legend{display:flex;flex-wrap:wrap}.mw-finish{padding:14px 0 0}.mw-paper{min-height:580px;padding:19px}.mw-question-top{margin-bottom:20px;gap:8px}.mw-question-top button{font-size:12px!important;padding:8px!important}.mw-question-meta{font-size:10px}.mw .mw-question-content h2{font-size:23px}.mw-option{font-size:19px;padding:12px}.mw-option.selected{padding:11px}.mw-option b{width:32px;height:32px;font-size:16px}.mw-bottom .ms-primary{min-width:130px;font-size:14px;padding:12px}.mw-bottom .ms-secondary,.mw-bottom .ms-text{font-size:12px;padding:10px}.mw-note{font-size:11px}.mw-timer .ms-text{font-size:11px!important}.mw-header-actions .ms-secondary span{display:none}}
@media(max-width:480px){.ms-years{grid-template-columns:repeat(3,1fr)}.ms-modes{grid-template-columns:1fr}.ms-mode{min-height:100px}.ms-summary{padding:20px}.ms-choices legend{font-size:19px}.ms-topics{padding:13px}.ms-brand{font-size:25px}.mw .ms-brand small{display:none}.mw-title{border:0;padding:0}.mw-title span{font-size:10px}.mw-title strong{font-size:13px}.mw .ms-brand{font-size:19px}.mw .ms-brand img{width:25px;height:25px}.mw-identity{gap:12px}.mw-header{padding:12px}.mw-header-actions .ms-secondary{display:inline-flex;padding:6px!important}.mw-content{padding:12px}.mw-progress{min-width:170px}.mw-timer{margin-left:0;width:100%;justify-content:flex-start}.mw-timer button{margin-left:auto}.mw-paper{padding:16px}.mw-grid-buttons{grid-template-columns:repeat(5,1fr)}.mw-bottom{flex-wrap:wrap}.mw-bottom .ms-primary{flex:1}.mw-option{gap:12px}.mw-statusbar{margin-bottom:12px}.mw .mw-question-content h2{font-size:21px}.mw-dialog{padding:23px}}
@media(prefers-reduced-motion:reduce){.maths-entry *,.mw *{scroll-behavior:auto!important;transition:none!important}}

.ms-mode svg{width:30px;height:30px;display:block}.ms-facts svg{width:25px;height:25px}

/* Keep the setup surface inset, with white gutters around its rounded edges. */
body.maths-entry{background:#fff}
.maths-entry .ms-main{box-sizing:border-box;width:calc(100% - 64px);max-width:1200px;margin:24px auto 32px;padding:28px;background:#f8f9fc;border-radius:26px}
@media(max-width:800px){.maths-entry .ms-main{width:calc(100% - 32px);margin:16px auto 24px;padding:20px;border-radius:20px}}
@media(max-width:480px){.maths-entry .ms-main{padding:16px}}

/* Keep navigation available while reading long questions. */
.mw-bottom{position:sticky;bottom:0;z-index:5;background:#fff;padding-bottom:6px;box-shadow:0 -10px 14px #ffffffed}
