/* Mind Quest — second adventures, intentionally scoped to these pages */
:root{--navy:#102944;--teal:#0a919b;--mint:#e2f7f1;--ink:#173a57;--muted:#637d8e;--line:#d9e7ef;--bg:#f3f8fb;--gold:#b78637}
*{box-sizing:border-box}body.mq-adv2{margin:0;background:var(--bg);font-family:Tahoma,'Segoe UI',Arial,sans-serif;color:var(--ink);line-height:1.75;direction:rtl}
button,a{font:inherit}button{cursor:pointer}a{color:inherit}.mq-adv2 .shell{width:min(930px,calc(100% - 26px));margin:auto}.mq-adv2 .mast{background:linear-gradient(126deg,#091e38,#164469);color:#fff;padding:14px 0 28px}.mq-adv2 .mast-top{display:flex;justify-content:space-between;align-items:center;gap:9px}.mq-adv2 .brand{font-size:20px;font-weight:900}.mq-adv2 .brand small{display:block;font-size:11px;letter-spacing:2px;color:#95dfe2;direction:ltr;text-align:right;font-weight:500}.mq-adv2 .back{border:1px solid #6991ab;border-radius:12px;color:#effbff;font-weight:700;padding:8px 13px;text-decoration:none;font-size:13px}.mq-adv2 .eyebrow{font-size:12px;color:#a3f1d6;margin:18px 0 5px;font-weight:900}.mq-adv2 h1{font-size:clamp(23px,4.5vw,33px);margin:0 0 6px;line-height:1.35}.mq-adv2 .mast p{margin:0;font-size:14px;color:#cae0ea}.mq-adv2 main.shell{margin:-13px auto 34px}.mq-adv2 .pane{background:#fff;border:1px solid var(--line);border-radius:21px;padding:clamp(14px,3vw,25px);margin:0 0 12px;box-shadow:0 7px 30px #164d670b}.mq-adv2 .topic-head{display:flex;align-items:center;gap:12px;margin:0 0 14px}.mq-adv2 .topic-ico{font-size:30px;background:#e5f8f2;border-radius:13px;min-width:50px;height:50px;display:grid;place-items:center}.mq-adv2 .topic-head h2{font-size:clamp(19px,3vw,25px);margin:0}.mq-adv2 .topic-head p{margin:0;font-size:13px;color:var(--muted)}.mq-adv2 .tag{border:1px solid #b7e1db;color:#087c84;background:#e5f8f4;border-radius:50px;padding:3px 10px;font-size:12px;font-weight:800;display:inline-block}
.mq-adv2 .btn{display:inline-flex;justify-content:center;align-items:center;text-decoration:none;border:0;border-radius:13px;background:#0c919b;color:white;font-weight:900;padding:10px 15px;min-height:45px}.mq-adv2 .btn.secondary{background:#eef7fa;color:#2b657a;border:1px solid #d1e4ed}.mq-adv2 .btn.gold{background:#b78637}.mq-adv2 .btn:disabled{opacity:.5;cursor:not-allowed}.mq-adv2 button:focus-visible,.mq-adv2 a:focus-visible{outline:3px solid #f2b84a;outline-offset:2px}.mq-adv2 .selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 17px}.mq-adv2 .select{background:#f7fbfd;border:2px solid #d7e6ee;border-radius:14px;padding:12px;text-align:right;color:var(--ink);font-weight:800}.mq-adv2 .select small{display:block;color:var(--muted);font-weight:500;font-size:12px}.mq-adv2 .select.active{border-color:#0e9997;background:#e7f8f4}.mq-adv2 .welcome p{margin:5px 0 10px}.mq-adv2 .pale{border:1px solid #e4e9f0;background:#f6fafd;border-radius:12px;padding:13px;color:#537589;font-size:13px}.mq-adv2 .small{font-size:12px;color:var(--muted)}
.mq-adv2 .quizhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.mq-adv2 .quizhead strong{font-size:17px}.mq-adv2 .track{width:100%;height:7px;border-radius:99px;background:#e4edf3;margin:13px 0;overflow:hidden}.mq-adv2 .track span{height:100%;display:block;background:#0eaea6;border-radius:99px}.mq-adv2 .number-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:15px 0 20px;max-width:500px}.mq-adv2 .qnum{border-radius:13px;min-height:52px;border:2px solid #b9ceda;background:white;color:#163953;font-size:17px;font-weight:900}.mq-adv2 .qnum.current{background:#3e4e88;border-color:#3e4e88;color:white;box-shadow:inset 0 0 0 2px #ffffff80}.mq-adv2 .qnum.answered:not(.current){border-color:#0e9a9e;background:#e5f8f7;color:#0e7782}
.mq-adv2 .question{font-size:clamp(18px,2.5vw,22px);font-weight:900;line-height:1.8;margin:15px 0}.mq-adv2 .figure{border:1px solid #d6e8f1;background:linear-gradient(145deg,#f5fbff,#f9fffb);border-radius:16px;padding:10px;display:flex;justify-content:center;align-items:center;margin:13px 0}.mq-adv2 .figure svg{width:100%;height:auto;max-height:210px}.mq-adv2 .options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mq-adv2 .opt{border:1px solid #cfdeea;border-radius:13px;background:#fff;color:#153751;min-height:58px;padding:10px;display:flex;align-items:center;text-align:right;gap:10px}.mq-adv2 .opt .letter{flex:0 0 29px;border-radius:9px;background:#e7f2f6;color:#356277;text-align:center;padding:3px 0;font-weight:900}.mq-adv2 .opt.chosen{border:2px solid #0e999c;background:#e6f9f5}.mq-adv2 .opt.correct{background:#e6f9ed;border-color:#228960}.mq-adv2 .opt.wrong{background:#fff0ee;border-color:#bc6b6b}.mq-adv2 .feedback{margin:12px 0 0;padding:12px 14px;border:1px solid #b7e0c6;border-radius:13px;background:#ecfaf2;font-size:14px;color:#205c49}.mq-adv2 .feedback.bad{background:#fff4e9;border-color:#eacbaa;color:#864e21}.mq-adv2 .feedback p{margin:4px 0 0;color:inherit}.mq-adv2 .actions{display:flex;gap:9px;margin:18px 0 2px;justify-content:space-between;flex-wrap:wrap}.mq-adv2 .actions .btn{flex:1;min-width:120px}.mq-adv2 .summary{display:flex;align-items:baseline;gap:12px;padding:15px 0}.mq-adv2 .score{font-size:clamp(31px,6vw,43px);font-weight:900;color:#078b90}.mq-adv2 details{padding:12px 14px;border:1px solid #dae8ec;border-radius:12px;margin-top:8px;background:#f9fcfd}.mq-adv2 details summary{font-weight:800;cursor:pointer}.mq-adv2 details p{margin:7px 0;font-size:14px}.mq-adv2 .domains{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mq-adv2 .domain{border:1px solid #d5e7ed;background:#f7fbfc;color:#134562;text-decoration:none;padding:16px;border-radius:14px;display:flex;align-items:center;gap:12px;font-weight:900}.mq-adv2 .domain .emoji{font-size:24px}.mq-adv2 .footer-links{text-align:center;color:#637d91;font-size:12px;margin:16px auto 25px}.mq-adv2 .mq-channel-only-link,.mq-adv2 .mq-email-link{font-size:13px}
@media(max-width:600px){.mq-adv2 .options{grid-template-columns:1fr}.mq-adv2 .number-grid{gap:7px}.mq-adv2 .qnum{min-height:49px}.mq-adv2 .domains{grid-template-columns:1fr}.mq-adv2 .mast-top .brand{font-size:17px}.mq-adv2 .select{font-size:14px}.mq-adv2 .mast{padding-bottom:23px}}

/* v1.1.0: source-faithful diagnostic figures and diagram choices */
.mq-figure{border:1px solid #cbdfea;border-radius:16px;padding:10px;margin:14px auto;background:#f5fbfd;max-width:570px;direction:ltr;text-align:center}
.mq-figure svg{display:block;width:100%;max-width:420px;height:auto;max-height:300px;margin:0 auto}
.figure-caption{font-size:12px;color:#425f78;line-height:1.8;direction:rtl;margin:8px 0 0}
.mq-dual-figure{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px auto;max-width:640px}
.mq-dual-figure>div{min-width:0;text-align:center;font-size:13px}
.mq-dual-figure .mq-figure{padding:6px;margin:6px auto}
.mq-option-content{display:block;min-width:0;flex:1;text-align:start}
.mq-option-content .mq-figure{margin:7px auto 0;padding:4px;background:transparent;max-width:260px;border:0}
.mq-option-content .mq-figure svg{max-width:230px;max-height:160px}
.opt{align-items:start}
@media(max-width:550px){.mq-dual-figure{gap:6px}.mq-figure{padding:6px}.mq-option-content .mq-figure svg{max-height:130px}}

/* v1.1.3: full-size responsive figures */
.mq-adv2 .mq-figure.mq-v113{direction:ltr;width:100%;max-width:660px;box-sizing:border-box;background:#f7fbfd;padding:12px;overflow:hidden}
.mq-adv2 .mq-v113 svg{display:block;width:100%;height:auto;max-height:none;max-width:620px;margin-inline:auto;overflow:visible}
.mq-adv2 .mq-v113 .figure-caption{direction:rtl;text-align:center;color:#405e73;font-size:12px;margin:10px 4px 0;line-height:1.7}
@media(max-width:500px){.mq-adv2 .mq-figure.mq-v113{padding:6px;margin:10px auto}.mq-adv2 .mq-v113 svg{max-width:100%;height:auto}}

/* v1.1.4 carefully redrawn schematics */
.mq-adv2 .mq-v114 svg text {font-family: Tahoma, 'Segoe UI', Arial, sans-serif}
.mq-adv2 .mq-v114 svg {max-width:100%; height:auto; overflow:visible}
@media(max-width:500px){.mq-adv2 .mq-v114 svg {width:100%;max-height:none}}

/* v1.1.5 - precision assessment diagrams: no oversized pedagogy cards */
.mq-adv2 .mq-figure.mq-assessment{box-sizing:border-box;direction:ltr!important;max-width:620px;width:min(100%,620px);padding:8px;background:#fff;border:1px solid #dfecf0;border-radius:10px;box-shadow:none;margin:12px auto}
.mq-adv2 .mq-figure.mq-assessment svg{width:100%;height:auto;max-width:100%;max-height:none;display:block;overflow:visible}
.mq-adv2 .mq-option-content .mq-figure{max-width:260px;width:100%;margin:5px auto}
.mq-adv2 .mq-option-content .mq-figure svg{max-width:100%}
@media (max-width:570px){.mq-adv2 .mq-figure.mq-assessment{padding:3px;max-width:100%;margin:8px auto}.mq-adv2 .mq-figure.mq-assessment svg{max-height:none}.mq-adv2 .options:has(.mq-option-content .mq-figure){grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.mq-adv2 .opt:has(.mq-option-content .mq-figure){flex-direction:column;gap:4px;align-items:stretch}.mq-adv2 .opt .mq-option-content{min-width:0;width:100%}}

/* v1.1.6 — test-style, responsive inline vector diagrams. */
.mq-adv2 .mq-figure.mq-assessment { max-width:640px; overflow:hidden; }
.mq-adv2 .mq-figure.mq-assessment svg { overflow:visible; max-width:100%; }
.mq-adv2 .mq-figure-note { font-size:12px; color:#516c7b; direction:rtl; margin:6px 0 0; }
@media(max-width:480px){.mq-adv2 .mq-figure.mq-assessment{padding:2px}}

/* v1.2.0 precise mechanical diagrams */
.mq-adv2 .mq-verified-figure{max-width:760px;width:100%;box-sizing:border-box;direction:ltr;overflow:hidden;background:#fff;border:1px solid #dbe8ed;padding:10px;border-radius:14px}
.mq-adv2 .mq-verified-figure svg{width:100%;height:auto;max-height:none;max-width:100%;overflow:hidden;display:block;margin:auto}
.mq-adv2 .mq-verified-figure .figure-caption{direction:rtl;text-align:center;font-size:12px;color:#587386;line-height:1.65}
