:root{font-family:Arial,sans-serif;color:#182C49;background:#F5F7FA;line-height:1.6;font-size:17px}*{box-sizing:border-box}body{margin:0}header{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:22px}button,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #7B8CA3;background:white;border-radius:12px;padding:12px 18px;color:#182C49;min-height:46px}button:hover{background:#EAF0F8}button:disabled{opacity:.5;cursor:default}button:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #72520C;outline-offset:3px}.brand{border:0;background:none;font-weight:700;padding:0;font-size:19px}.badge,.tag{font-size:12px;letter-spacing:1px;border-radius:20px;padding:5px 12px;background:#EAF0F8}.badge{white-space:nowrap}main{max-width:1040px;margin:20px auto;padding:0 22px;min-height:65vh}h1{font-size:clamp(30px,5vw,50px);line-height:1.15;letter-spacing:-1px;max-width:760px}h2{font-size:25px;line-height:1.35}p{max-width:850px}.muted{color:#526078}.panel{background:white;border:1px solid #DCE3ED;border-radius:22px;padding:30px;margin:20px 0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.card{padding:22px;background:#fff;border:1px solid #DCE3ED;border-radius:17px}.card strong{font-size:23px}.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0}.primary{background:#182C49;color:white;border-color:#182C49}.primary:hover{background:#10203A}.danger{color:#8e2525}.option{display:block;text-align:left;width:100%;margin:10px 0;padding:15px 18px}.selected{border:2px solid #182C49;background:#EAF0F8}.correct{border:2px solid #236044}.incorrect{border:2px solid #9B3036}.qimg{width:100%;max-height:300px;object-fit:contain;background:white;cursor:zoom-in}.timer{font-variant-numeric:tabular-nums;font-size:23px;font-weight:700}.topline{display:flex;justify-content:space-between;gap:12px;align-items:center}.progress{height:6px;background:#DCE3ED;border-radius:10px;margin:16px 0;overflow:hidden}.progress>div{height:100%;background:#182C49}.navq{display:flex;flex-wrap:wrap;gap:7px}.navq button{padding:8px 12px;min-width:42px}.flag{border-color:#72520C;background:#FFF3D6}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.stats strong{display:block;font-size:30px}.stats>div{background:#EAF0F8;border-radius:12px;padding:15px}select,textarea{width:100%;border:1px solid #7B8CA3;border-radius:10px;padding:12px;background:white}label{display:block;margin:12px 0}dialog{max-width:900px;width:calc(100% - 28px);border:0;border-radius:20px;padding:24px}dialog::backdrop{background:#102b35aa}dialog img{width:100%}footer{text-align:center;color:#526078;font-size:13px;padding:30px}.small{font-size:14px}details{margin:14px 0;border-bottom:1px solid #DCE3ED;padding-bottom:12px}summary{cursor:pointer;font-weight:bold}ol{padding-left:24px}@media(max-width:650px){header{padding:16px;gap:10px}.brand{font-size:15px}.badge{font-size:10px}main{padding:0 15px}.panel{padding:20px}.grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.row button{flex-grow:1}h1{letter-spacing:-.5px}.topline{align-items:flex-start}.timer{font-size:20px}}

#question-heading{scroll-margin-top:20px;outline:none}.question-jump{border:1px solid #DCE3ED;border-radius:12px;padding:12px 16px;background:white}.question-jump summary{display:list-item;font-size:15px}.question-jump summary span{margin-left:12px}.question-jump .navq{margin-top:12px;gap:6px}.question-jump .navq button{min-width:44px;min-height:44px;padding:8px}.question-jump button[aria-current="step"]{border:2px solid #182C49;background:#EAF0F8}h3{font-size:19px;margin:24px 0 8px}

:root{color-scheme:light}.topline{position:sticky;top:0;z-index:5;background:#F5F7FA;padding:8px 0;border-bottom:1px solid #DCE3ED}.topline p{margin:5px 0}#question-heading{scroll-margin-top:120px}.option.selected{font-weight:600}.question-jump summary{min-height:44px;align-content:center}

.topline.practice-topline{position:static;border-bottom:0;padding:0}.practice-topline~.panel #question-heading{scroll-margin-top:18px}.option{display:flex;align-items:center;gap:14px}.option-image{width:100px;height:58px;object-fit:contain;flex:none;background:white;border-radius:6px}.qimg{max-height:360px}#question-heading{font-size:clamp(21px,3vw,27px);line-height:1.45;margin:18px 0 22px}.panel{overflow-wrap:anywhere}@media(max-width:650px){.option{padding:12px;min-height:64px;margin:8px 0;line-height:1.4}.option-image{width:92px;height:50px}.panel{padding:18px}.topline p{font-size:15px}#question-heading{font-size:22px;line-height:1.45}.qimg{margin-bottom:12px}.practice-topline~.panel #question-heading{scroll-margin-top:16px}.test-topline~.panel #question-heading{scroll-margin-top:110px}}

/* Shape answers use the same geometry in practice, comparison and review. */
.visual-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.visual-choice{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:100px;padding:14px 10px;margin:0;border:1px solid #7B8CA3;border-radius:12px;background:#fff;color:#182C49}
.option-letter{font-weight:700;flex:none}.visual-choice .option-letter{position:absolute;top:8px;left:12px;font-size:15px}
.visual-choice .option-image{display:block;width:100%;max-width:170px;height:65px;margin-top:12px;object-fit:contain;background:#fff;border-radius:0}
.visual-choice.selected{border:2px solid #182C49;background:#EAF0F8}.visual-choice.correct{border:2px solid #236044}.visual-choice.incorrect{border:2px solid #9B3036}
.comparison-options{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-options .visual-choice{min-height:140px}.comparison-options .option-image{max-width:280px;height:100px}
.comparison-prompt{display:block;max-height:500px;object-fit:contain;background:#fff}.review-option{display:flex;gap:12px;margin:12px 0}
@media(max-width:650px){.visual-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.visual-choice{min-height:105px}.visual-choice .option-image{height:65px;width:100%}.comparison-options .visual-choice{min-height:125px}.comparison-options .option-image{height:85px}}

input[type="search"]{width:100%;font:inherit;padding:12px;border:1px solid #7B8CA3;border-radius:10px;background:#fff;color:#182C49}input:focus-visible{outline:3px solid #72520C;outline-offset:3px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-card{display:flex;flex-direction:column;min-width:0;padding:20px}.category-card h3{margin:0 0 8px;font-size:21px}.category-card p{margin:5px 0 12px}.category-card button{margin-top:auto;align-self:flex-start}.category-card strong{font-size:inherit}@media(max-width:650px){.category-grid{grid-template-columns:1fr}.category-card{padding:17px}.category-card h3{font-size:20px}.category-card button{width:100%}}

.source-entry{border-bottom:1px solid #DCE3ED;padding-bottom:14px}.source-entry a{color:#182C49;overflow-wrap:anywhere}.source-entry h3{font-size:20px}
#closemodal{position:sticky;bottom:0;z-index:2;background:#fff;box-shadow:0 0 0 5px #fff;margin-top:16px}

.full-solution li+li{margin-top:10px}.solution-shortcut{margin-top:24px;padding:16px 18px;border-left:3px solid #182C49;background:#EAF0F8;border-radius:0 10px 10px 0}.solution-shortcut h3{margin-top:0}

/* Mensofo identity: final navy logo 20.10.2026, typography/spacing from the brand system. */
@font-face{font-family:Mensofo Sans;src:url('assets/brand/mensofo-regular.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Mensofo Sans;src:url('assets/brand/mensofo-bold.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
:root{font-family:'Mensofo Sans',Arial,sans-serif;color:#182C49;background:#F5F7FA;font-size:16px;line-height:1.6;--brand:#182C49;--brand-soft:#EAF0F8;--accent:#E1B45B}
header{max-width:1120px;padding:24px 40px;gap:24px;border-bottom:1px solid #DCE3ED}
.brand{display:inline-flex;align-items:center;flex:none;padding:8px 0;min-height:60px;border-radius:0;background:transparent}
.brand img{display:block;width:240px;height:auto;max-width:100%}.brand:hover{background:transparent}.brand-context{display:flex;align-items:center;gap:16px;color:#526078;font-size:13px}.badge{background:#EAF0F8;color:#182C49;border:1px solid #C3CDDC;letter-spacing:.6px;font-size:10px;font-weight:700;padding:5px 10px}
main{margin:40px auto;max-width:1040px;padding:0 32px}.tag{display:inline-block;color:#182C49;background:#EAF0F8;font-size:10px;letter-spacing:1.2px;padding:6px 12px;border-radius:6px;font-weight:700}
h1{font-size:clamp(32px,4.8vw,48px);line-height:1.18;letter-spacing:-1.2px;max-width:740px;margin:20px 0}h2{color:#182C49}main>p.muted{max-width:760px;font-size:17px;margin-bottom:32px}
.panel,.card,dialog{border-radius:12px}.panel{padding:32px;margin:24px 0}.card{border-color:#DCE3ED;padding:24px}.category-card h3{font-size:19px;line-height:1.4}.category-card .small{color:#526078;font-size:13px}.category-card button{border-color:#7B8CA3;border-radius:8px;font-size:14px;font-weight:700}
button{border-radius:8px;color:#182C49;background:#fff;border-color:#7B8CA3}button:hover{background:#EAF0F8}button:disabled{opacity:1;color:#526078;background:#E2E8EF;border-color:#B0BDCF;cursor:not-allowed}.primary{background:#182C49;color:#fff;border-color:#182C49}.primary:hover{background:#10203A;color:#fff}.primary:disabled{background:#E2E8EF;color:#526078;border-color:#B0BDCF}
button:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #72520C;outline-offset:3px}.selected,.visual-choice.selected{background:#EAF0F8;border-color:#182C49;color:#182C49}.correct,.visual-choice.correct{background:#E8F3ED;color:#236044;border-color:#236044}.incorrect,.visual-choice.incorrect{background:#FCEDEE;color:#9B3036;border-color:#9B3036}.danger{color:#9B3036}.flag{color:#72520C;background:#FFF3D6;border-color:#72520C}
select,textarea,input[type=search]{font:inherit;color:#182C49;background:#fff;border-color:#7B8CA3;border-radius:8px}input::placeholder,textarea::placeholder{color:#526078;opacity:1}label{font-weight:700;font-size:14px}.source-entry a{color:#182C49}.solution-shortcut{background:#EAF0F8;border-left-color:#182C49}.stats>div{background:#EAF0F8}.progress{background:#DCE3ED}.progress>div{background:#182C49}.test-topline{background:#F5F7FA}dialog{color:#182C49;background:#fff}dialog::backdrop{background:#182C49aa}
.footer-wordmark{display:block;width:140px;height:auto;margin:0 auto 20px}footer{border-top:1px solid #DCE3ED;margin-top:48px;padding:32px 24px;color:#526078}footer p{margin:10px auto;max-width:720px}.copyright{font-size:12px}.skip-link{position:absolute;left:16px;top:-100px;z-index:20;background:#182C49;color:white;padding:12px 18px}.skip-link:focus{top:8px}
@media(max-width:650px){header{padding:16px 20px;gap:12px;align-items:center}.brand{min-height:52px}.brand img{width:200px}.brand-context>span:first-child{display:none}.brand-context{gap:0}.badge{font-size:8px;padding:4px 7px;letter-spacing:0;white-space:normal;max-width:78px;text-align:center}main{padding:0 16px;margin-top:28px}.panel{padding:20px;margin:20px 0}.card{padding:20px}h1{font-size:34px;letter-spacing:-.8px}main>p.muted{font-size:16px}.tag{font-size:9px;letter-spacing:.6px}.category-card h3{font-size:18px}.option{border-radius:8px}.row{gap:10px}#question-heading{font-size:21px;line-height:1.5}footer{margin-top:32px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(max-width:360px){header{padding:14px 12px;gap:8px}.brand-context .badge{max-width:70px}}

/* Checked answers retain feedback colours while their controls are locked. */
button.option.correct:disabled{background:#E8F3ED;color:#236044;border:2px solid #236044;opacity:1;-webkit-text-fill-color:currentColor}
button.option.incorrect:disabled{background:#FCEDEE;color:#9B3036;border:2px solid #9B3036;opacity:1;-webkit-text-fill-color:currentColor}

/* Accounts, autosave and public homepage */
header{flex-wrap:wrap;gap:1rem}#account-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin-left:auto}.save-strip{max-width:1120px;margin:0 auto;padding:.5rem 1.25rem;display:flex;align-items:center;justify-content:flex-end;gap:1rem;font-size:.82rem;color:#465873}.sync-button{padding:.35rem .65rem;font-size:.8rem}.hero{padding:3.5rem 0 2.5rem;max-width:850px}.hero h1{font-size:clamp(2.3rem,6vw,4.8rem);line-height:1.1;letter-spacing:-.035em;max-width:750px}.lead{font-size:1.2rem;line-height:1.7;max-width:650px}.hero .row{margin-top:1.5rem}.resume-panel{border-left:5px solid #b88a4c}.resume-panel article{padding:1rem 0;border-bottom:1px solid #e3e7ed}dialog{width:min(640px,calc(100% - 2rem));max-height:85dvh;border-radius:20px;padding:1.5rem}dialog::backdrop{background:rgba(14,30,52,.48)}dialog h2{margin-top:0}#auth-form input{width:100%;box-sizing:border-box}#auth-form button[type=submit]{width:100%;margin:1rem 0}#auth-message{min-height:1.5em}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b88a4c;outline-offset:3px}@media(max-width:600px){header{padding:1rem}#account-nav{width:100%;margin:0}#account-nav button{flex:1;font-size:.88rem}.brand-context{display:none}.hero{padding:2rem 0}.save-strip{font-size:.72rem;justify-content:space-between}.resume-panel button{width:100%}}

/* Sample usability: short mobile toolbar and readable dialog bounds. */
dialog{box-sizing:border-box;overflow-y:auto} .topline>div:last-child{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.topline button{font-size:14px;padding:8px 12px}.category-card .row{margin-top:auto} .category-card .row button{margin-top:0}
@media(max-width:650px){.test-topline{position:static}.test-topline~.panel #question-heading{scroll-margin-top:16px}.topline{flex-wrap:wrap}.topline>div:last-child{width:100%;justify-content:space-between}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact, accessible password visibility controls. */
.password-field{position:relative;display:block;margin-top:.5rem}
#auth-form .password-field input{min-height:44px;padding:.6rem 3rem .6rem .7rem;font:inherit;border:1px solid #7B8CA3;border-radius:8px}
.password-eye{position:absolute;right:0;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;margin:0;border:0;background:transparent;border-radius:8px;cursor:pointer}
.password-eye .eye-slash{display:none}.password-eye[aria-pressed=true] .eye-slash{display:block}
#auth-form .privacy-link{display:inline;padding:0;margin:0;border:0;border-radius:0;background:none;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#auth-form .privacy-link:hover{color:#526078}

#auth-form input{min-height:46px;padding:.6rem .7rem;font:inherit;border:1px solid #7B8CA3;border-radius:8px;margin-top:.5rem}#auth-message:empty{display:none}#auth-message{min-height:0}.auth-notice{padding:12px 14px;background:#EAF0F8;border-radius:8px;font-size:.95rem;line-height:1.5}.auth-error{background:#FCEDEE;color:#842929;border-left:4px solid #9B3036}dialog .row{margin:1rem 0;gap:12px}#closemodal{margin-top:1rem}

.text-link{border:0;background:transparent;padding:.5rem;text-decoration:underline;text-underline-offset:4px;font:inherit;cursor:pointer}.privacy-inline{margin:.5rem 0 1rem}.privacy-inline>summary{display:list-item;width:fit-content;font-size:.9rem;font-weight:400;text-decoration:underline;cursor:pointer}.privacy-inline[open]{padding:1rem;background:#F5F7FA;border-radius:8px}.privacy-inline h2{font-size:1.1rem}.privacy-inline p{font-size:.9rem}.study-settings{margin-top:1rem}.study-settings>summary{cursor:pointer;font-weight:600;padding:.75rem 0}#auth-form>label{display:block;margin-top:1rem}#closemodal{border:0;background:transparent;text-decoration:underline;padding:.5rem}.hero{padding-top:2rem}.hero h1{font-size:clamp(2.2rem,5vw,4rem)}.resume-panel{margin-top:1rem}@media(max-width:600px){.hero .row{align-items:stretch;flex-direction:column}.hero .row button{width:100%}dialog{padding:1.25rem}.auth-notice{overflow-wrap:anywhere}}

/* Audit corrections: scroll the content, keep closing control outside it. */
dialog{padding:0;overflow:hidden;max-height:90dvh}
dialog[open]{display:flex;flex-direction:column}
.modal-toolbar{flex:none;display:flex;justify-content:flex-end;padding:8px 16px;background:#fff;border-bottom:1px solid #DCE3ED}
#closemodal{position:static;margin:0;min-height:44px;padding:8px 12px;background:#fff;box-shadow:none;text-decoration:none;border:1px solid #7B8CA3;border-radius:8px}
#modalbody{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:24px;scroll-padding:20px}
dialog.wide-dialog{width:min(960px,calc(100% - 32px));max-width:960px}
.lesson-options:not(.visual-options){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}
.lesson-option{padding:8px 12px;background:#F5F7FA;border:1px solid #DCE3ED;border-radius:8px;min-width:0}
.footer-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 24px;margin:20px auto;max-width:960px}
.footer-nav a,footer a,.contact-email,#modalbody a{color:#182C49;text-underline-offset:4px;overflow-wrap:anywhere}
.footer-nav a{padding:8px 0;min-height:44px;display:inline-flex;align-items:center;font-size:14px}
.signup-next{border-left:4px solid #b88a4c}.evaluation-note{margin:8px 0 12px}.evaluation-note summary{font-size:14px}
@media(max-width:600px){#modalbody{padding:18px}dialog{width:calc(100% - 20px);max-height:92dvh}.modal-toolbar{padding:8px 12px}.lesson-options:not(.visual-options){grid-template-columns:1fr}.footer-nav{gap:4px 18px}.contact-email{display:block;width:100%}}
.lesson-option{display:flex;align-items:center;gap:12px}.lesson-option .option-letter{min-width:20px}.wide-dialog #modalbody details>img{display:block;max-height:320px;object-fit:contain;margin:16px 0}
