:root{font-family:Arial,Helvetica,sans-serif;color:#13345b;background:#edf4fb;--blue:#0870ca;--deep:#103260;--pale:#eaf5ff;--line:#b7d8f2;--red:#e32233;--green:#0b875b}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:var(--blue)}.shell{max-width:1550px;margin:auto;min-height:100vh;display:grid;grid-template-columns:292px minmax(0,1fr)}.side{background:#fff;border-right:1px solid var(--line);padding:25px 17px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:11px;margin:0 5px 25px}.brand img{width:76px;height:55px;object-fit:contain}.brand strong{display:block;font-size:20px;line-height:1.08;color:#0a3269}.brand small{display:block;margin-top:4px;font-size:12px;letter-spacing:.12em;color:#607b9a}.side h2{font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:#6883a2;margin:26px 11px 8px}.nav{display:grid;gap:5px}.nav button{width:100%;display:flex;align-items:center;gap:11px;text-align:left;background:transparent;border:1px solid transparent;border-radius:12px;padding:12px 10px;color:#183b65;font-weight:700}.nav button:hover,.nav button.active{background:#eaf5ff;border-color:#a9d3f7}.nav .n{display:grid;place-items:center;min-width:31px;height:31px;border-radius:9px;background:#e7f3ff;color:var(--blue);font-size:13px}.nav .done .n{background:#e3f8ec;color:var(--green)}.nav .locked{opacity:.6}.nav small{display:block;font-weight:400;font-size:11px;color:#6e819a;margin-top:2px}.main{padding:26px clamp(18px,4vw,65px) 60px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}.topbar .eyebrow{font-weight:800;letter-spacing:.15em;color:var(--blue);font-size:13px}.userBox{display:flex;align-items:center;gap:8px;font-size:13px;color:#47627f}.userBox button{border:0;background:#dfefff;border-radius:9px;padding:8px 10px;color:#155aa0}.hero{background:linear-gradient(122deg,#fff 15%,#e6f3ff 100%);border:1px solid #c8def3;border-radius:23px;padding:clamp(24px,4vw,48px);box-shadow:0 10px 32px #0a3f7a12}.hero h1{margin:7px 0 13px;font-size:clamp(34px,4vw,57px);line-height:1.03;color:#103260}.hero p{margin:0 0 20px;line-height:1.5;font-size:17px;max-width:730px}.pill{display:inline-flex;align-items:center;gap:7px;border-radius:100px;background:#d9ebfb;color:#135795;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:8px 12px}.btn{border:1px solid #91c8f3;border-radius:11px;padding:12px 18px;background:#fff;color:#0b5ca8;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px}.btn:hover{background:#e7f4ff}.btn.primary{border-color:var(--blue);background:var(--blue);color:#fff}.btn.primary:hover{background:#065eae}.btn.danger{border-color:#efb7be;color:#aa2230}.btn.small{padding:8px 11px;min-height:34px}.btnrow{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.modulesGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px;margin-top:22px}.moduleTile{background:#fff;border:1px solid var(--line);border-radius:15px;padding:19px;text-align:left;box-shadow:0 5px 15px #073d7510}.moduleTile:hover{border-color:var(--blue);transform:translateY(-1px)}.moduleTile .num{display:grid;place-items:center;width:37px;height:37px;background:var(--blue);color:#fff;border-radius:50%;font-weight:900;margin-bottom:11px}.moduleTile h3{margin:0 0 6px;font-size:18px}.moduleTile small{color:#617c99}.testHeader h1{font-size:clamp(32px,3vw,48px);line-height:1.1;margin:10px 0;color:#103260}.testHeader p{line-height:1.5;color:#516c89}.modulePoster{width:100%;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;box-shadow:0 6px 18px #0b457219}.modulePoster img{display:block;width:100%;height:auto;border-radius:8px}.moduleActions{margin-top:18px}.infoCard,.resultCard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:25px;margin-top:24px;box-shadow:0 7px 21px #113e6810}.infoCard h2{margin:0 0 12px}.infoCard p{line-height:1.55;color:#45617f}.testHeader{margin-bottom:20px}.question{background:#fff;border:1px solid var(--line);border-radius:19px;padding:24px;margin-bottom:18px;box-shadow:0 5px 17px #1039610e}.question.incomplete{outline:3px solid #f4ad74}.qhead{display:flex;gap:12px;align-items:flex-start;margin-bottom:13px}.qnum{display:grid;place-items:center;background:var(--blue);color:#fff;min-width:42px;height:42px;border-radius:50%;font-weight:900}.qhead h2{font-size:clamp(18px,2vw,25px);line-height:1.27;margin:3px 0 0;color:#102f59}.qkind{font-size:12px;font-weight:800;color:#3577ad;text-transform:uppercase;letter-spacing:.07em;margin-top:7px}.optionGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:16px}.option{display:flex;flex-direction:column;align-items:stretch;gap:9px;text-align:left;background:#fafdff;border:2px solid #c9dfef;border-radius:13px;padding:13px;min-height:60px;color:#16375e;font-weight:700}.option:hover{border-color:#5da9e9}.option.selected{background:#e2f2ff;border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}.option .choiceTop{display:flex;align-items:flex-start;gap:9px}.choiceMark{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:7px;border:2px solid #91b8d5;color:#2075bc;font-size:13px}.option.selected .choiceMark{background:var(--blue);border-color:var(--blue);color:#fff}.art{display:block;width:100%;height:138px;border-radius:8px;background:#f3f8fe;overflow:hidden}.art svg{width:100%;height:100%}.art.heroArt{max-width:470px;height:210px;margin:10px 0 17px;border:1px solid #b8d9f4}.choiceOnly .art{height:164px}.orderLayout,.matchLayout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:15px}.dropArea{background:#f0f8ff;border:2px dashed #8cbfeb;min-height:110px;border-radius:13px;padding:11px}.dropArea h3,.cardPool h3{margin:0 0 10px;font-size:14px}.cardPool{background:#fafcff;border:1px solid #d0e3f1;border-radius:13px;padding:11px}.miniCard{background:#fff;border:1px solid #adcee7;border-radius:10px;padding:10px 12px;display:flex;align-items:center;gap:9px;font-weight:700;color:#123c65;text-align:left;width:100%;margin-bottom:7px}.miniCard:hover,.miniCard.active{border-color:var(--blue);background:#e6f3ff}.miniCard .art{width:76px;height:63px;flex:none}.sequenceItem{display:flex;align-items:center;gap:9px;margin-bottom:8px}.sequenceItem b{display:grid;place-items:center;background:#dceeff;border-radius:50%;width:27px;height:27px;flex:none}.target{border:1px dashed #83b9e4;border-radius:10px;background:#fff;padding:10px;margin:0 0 8px;min-height:72px}.target strong{display:block;margin-bottom:5px}.target .assigned{display:flex;align-items:center;gap:7px;color:#1671bb;font-weight:800;font-size:13px}.hint{color:#65809c;font-size:13px;margin:10px 0}.numberInput{font-size:24px;font-weight:800;width:140px;padding:11px;border-radius:10px;border:2px solid #8abde5;color:#123c65;margin-top:12px}.numberUnit{font-weight:800;margin-left:8px}.answerKey{background:#eff9ef;border-left:5px solid #40a662;padding:12px 15px;margin-top:16px;border-radius:8px;color:#175739}.score{font-size:56px;font-weight:900;color:var(--blue);line-height:1}.resultCard ul{line-height:1.7}.errorList{padding-left:18px}.certFrame{width:100%;aspect-ratio:842/595;border:1px solid #b4d2eb;border-radius:8px;background:#fff}.profileField{max-width:500px;display:grid;gap:7px;font-weight:800}.profileField input{padding:13px;border:2px solid #b4d7ef;border-radius:10px}.visuallyHidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:850px){.shell{grid-template-columns:1fr}.side{position:static;height:auto;padding:12px 15px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 10px}.brand img{width:57px;height:42px}.brand strong{font-size:16px}.side h2{display:none}.nav{display:flex;overflow:auto;gap:6px}.nav button{min-width:150px;padding:8px;font-size:13px}.nav .n{min-width:26px;height:26px}.main{padding:18px 16px 50px}.modulePoster{padding:6px;border-radius:10px}.orderLayout,.matchLayout{grid-template-columns:1fr}.optionGrid{grid-template-columns:1fr 1fr}.question{padding:17px}}@media(max-width:540px){.optionGrid{grid-template-columns:1fr}.topbar{align-items:flex-start}.hero{padding:23px}.hero h1{font-size:35px}.userBox{flex-wrap:wrap;justify-content:flex-end}}
/* Quiz photographs and clean illustration crops, sized for reading in place. */
.main:has(.modulePoster) .topbar{display:none}
.art{height:auto;background:#fff;display:flex;flex-direction:column;border-radius:9px;overflow:hidden;min-width:0}
.art .photoWindow{display:block;width:100%;height:240px;flex:none;background:#fff}
.choiceOnly .art{height:auto}.choiceOnly .photoWindow{height:260px}
.art.heroArt{max-width:710px;width:100%;height:auto;margin:16px 0 22px;border:1px solid #d2e3ef}
.heroArt .photoWindow{height:300px}
.heroArt[data-art="bucket_wash"]{max-width:none}.heroArt[data-art="bucket_wash"] .photoWindow{height:auto}
.sequencePhotos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media(max-width:540px){.sequencePhotos{grid-template-columns:1fr}}
.artCaption{display:block;padding:9px 11px;font-size:13px;line-height:1.4;font-weight:500;color:#3e5873;background:#f2f7fc;text-align:left}
.sceneLabel{display:block;text-align:center;padding:8px;font-size:18px;font-weight:800;color:#183b65;background:#edf5fc}
.miniCard:has(.art){flex-wrap:wrap}.miniCard .art{width:100%;height:auto;flex:1 1 100%}.miniCard .photoWindow{height:190px}
.target .assigned{display:flex;flex-wrap:wrap}.target .assigned .art{width:100%;max-width:270px}.target .assigned .photoWindow{height:150px}
.matchLayout>.dropArea{align-self:start;position:sticky;top:18px}
.restroomScene{position:relative;display:block;width:100%;aspect-ratio:1672/941;overflow:hidden}.restroomScene .photoWindow{height:100%}
.placedSign{position:absolute;height:auto;transform:translate(-50%,-100%);filter:drop-shadow(2px 3px 1px #0005)}
.placedSign.obscured{clip-path:inset(0 0 0 57%)}
.signArt{overflow:visible}.option:has(.signArt){grid-column:auto}.question:has(.signArt) .optionGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.clothPair{display:flex;gap:18px;padding:18px;justify-content:center}.clothFace{display:block;flex:1;max-width:260px;text-align:center}.clothFace b{font-size:16px}.fabric{position:relative;display:block;margin-top:8px;aspect-ratio:1}.fabric .photoWindow{height:100%}.fabricGrid{position:absolute;inset:9% 9%;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);border:1px dashed white}.fabricGrid>span{display:grid;place-items:center;border:1px dashed #e6f5ff;font-size:36px;font-weight:800;color:#b52332;text-shadow:0 1px white}.fabricGrid.used{background:#b7c0cbaa}
.doseLabel{display:grid;gap:15px;text-align:left;border:2px solid #16365b;border-radius:12px;padding:24px 30px;background:#fff;margin:16px}.doseLabel small{letter-spacing:.14em;color:#62758c}.doseLabel strong{font-size:28px;line-height:1.3;color:#132d4a}.doseLabel>span{border-top:1px solid #cedbe8;padding-top:14px;font-size:18px}
@media(min-width:851px){.optionGrid:has(.choiceOnly){grid-template-columns:repeat(2,minmax(0,1fr))}.question:has([data-art="glove_small"]) .optionGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.question:has(.signArt) .optionGrid{grid-template-columns:1fr}.choiceOnly .photoWindow{height:260px}.heroArt .photoWindow{height:240px}.clothPair{gap:8px;padding:9px}.clothFace b{font-size:13px}.fabricGrid>span{font-size:23px}}

/* Result colours follow the existing pass/fail decision for both test types. */
.resultCard[data-status="failed"]{--result-ink:#b42332;--result-bg:#fff1f2;--result-border:#f1afb6;--result-badge:#ffe0e4}
.resultCard[data-status="passed"]{--result-ink:#166534;--result-bg:#edf9f0;--result-border:#a8d9b6;--result-badge:#d5f1df}
.resultCard[data-status]{background:var(--result-bg);color:var(--result-ink);border-color:var(--result-border);box-shadow:none}
.resultCard[data-status] .score,.resultCard[data-status] .errorList a{color:var(--result-ink)}
.resultCard[data-status] .pill{background:var(--result-badge);color:var(--result-ink)}
.resultCard[data-status] .btn{background:#fff;color:var(--result-ink);border-color:var(--result-border)}
.resultCard[data-status] .btn:hover{background:var(--result-badge)}
.resultCard[data-status] .btn.primary{background:var(--result-ink);color:#fff;border-color:var(--result-ink)}
.resultCard[data-status] .errorList a{text-underline-offset:3px}

/* Final question I-20 uses pictures without captions. */
#q-i20 .artCaption{display:none}

