/* MMT LEGACY QUIZ SKIN (2026-11-06) — see legacy-skin.js.
   Only loaded by the five older whole-topic quizzes. Every rule starts with "body"
   so it outranks the quiz's own same-named rule without !important. Colours and
   sizes copy engine.css (the newer whole-topic quizzes). */

/* ---------- page ---------- */
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#0f172a;
  background:radial-gradient(circle at top left,rgba(37,99,235,.13),transparent 32rem),radial-gradient(circle at top right,rgba(124,58,237,.10),transparent 34rem),#f8fafc}
body .wrap{max-width:1060px;margin:0 auto 30px;padding:14px 20px 0}
body .panel{background:transparent;box-shadow:none;padding:0;border-radius:0}
body .banner{display:none}

/* ---------- top bar (same as engine.css) ---------- */
body .mmtTopbar{position:relative;z-index:40;background:linear-gradient(135deg,#0f172a,#123b7a 55%,#2563eb);color:#fff;padding:12px 22px;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;box-shadow:0 10px 28px rgba(15,23,42,.22)}
body .mmtBrand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#fff;border-radius:14px;padding:6px 10px;margin-left:-10px;font-weight:900}
body .mmtBrand[href]:hover{background:rgba(255,255,255,.12)}
body .mmtBrandLogo{width:42px;height:42px;border-radius:9px;background:#fff;color:#1d4ed8;display:grid;place-items:center;font-weight:1000;letter-spacing:-.08em}
body .mmtBrandText strong{display:block;font-size:1.12rem;line-height:1;letter-spacing:-.03em}
body .mmtBrandText span{display:block;font-size:.76rem;opacity:.82;font-weight:650}
body .mmtTopTitle{font-weight:850;font-size:clamp(1rem,1.6vw,1.3rem);letter-spacing:-.03em;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .topActions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body .mmtStrip{height:6px;background:rgba(15,23,42,.10)}
body .mmtStrip .bar{height:100%;border-radius:0;background:transparent;box-shadow:none}
body .mmtStrip #barFill{height:100%;border-radius:0;background:linear-gradient(90deg,#2563eb,#7c3aed)}

/* Chips in the bar: white pills, like "Signed in" and the level chip in the newer quizzes. */
body .topActions .chip,body .topActions .accessChip,body .topActions .achievementBtn,body .topActions .smallInlineBtn{
  border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.14);color:#fff;box-shadow:none;border-radius:999px;
  padding:6px 12px;font-size:.82rem;font-weight:900;gap:7px;min-height:0}
body .topActions .studentChip.show,body .topActions .studentChip.on,body .topActions .accessChip.ok,body .topActions .accessChip.signed{background:#dcfce7;color:#166534;border-color:#dcfce7}
body .topActions .mmtLevelChip{background:#fff;color:#1d4ed8;border-color:#fff}
body .topActions .mmtLevelChip *{color:inherit}
body .topActions .dot{width:9px;height:9px}
/* Language: just the picker (the trilingual label stays readable inside the list). */
body .topActions .languageSelectCard{background:transparent;border:0;box-shadow:none;padding:0;font-size:0;gap:0}
body .topActions .languageSelectCard *:not(select):not(option){display:none}
body .topActions .languageSelect{font-size:.82rem;min-width:0;padding:6px 30px 6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.4);background-color:#fff;color:#1e3a8a}

/* ---------- question row ---------- */
body .progressRow{margin:2px 0 10px;gap:10px;justify-content:flex-start;flex-wrap:wrap}
body .qCounter{font-size:.95rem;font-weight:950;color:#0f172a}
body .mmtTools{margin-left:auto;padding:0;gap:8px}
body .mmtTools .topLeft{gap:8px}
body .mmtTools .resetBtn,body .mmtTools .linkBtn,body .mmtTools .teacherAssignBtn,body .mmtTools .smallInlineBtn{
  border-radius:12px;padding:7px 12px;font-size:.84rem;font-weight:900;box-shadow:none}
body .mmtTools .resetBtn{background:#fff;color:#b91c1c;border:1px solid #fecaca}
body .mmtTools .linkBtn{background:#fff;border:1px solid #e2e8f0;color:#334155}
body .assignmentNotice,body #assignmentNotice{margin:0 0 10px;font-weight:850;font-size:.86rem;color:#1e3a8a;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:8px 12px}
body .demoNotice{margin:0 0 10px;font-weight:850;font-size:.86rem;border-radius:12px;padding:8px 12px}

/* ---------- the card ---------- */
body .stage{background:#fff;border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 18px 45px rgba(15,23,42,.12);padding:20px 26px 16px;min-height:0}
body .qArea{min-height:0;gap:14px}
body .qArea > *{max-width:100%}
body .qLabel{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:.86rem;font-weight:900;color:#4338ca;background:#eef2ff;border:0;box-shadow:none;padding:6px 13px;gap:6px}
body .qBox,body .promptCard{border:1px solid #e2e8f0;background:#f8fafc;border-radius:18px;box-shadow:none;font-size:clamp(22px,2.6vw,30px);min-height:84px;width:min(780px,100%);padding:16px 22px;color:#0f172a}
body .promptText{font-size:inherit}
body .diagramCard{border:1px solid #e2e8f0;border-radius:18px;box-shadow:none;background:#fbfdff}
body .answerRow{gap:10px}
body .answerRow .ansLabel,body #ansLabel,body .ansLabel{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:900;color:#475569}
body .ansInput{border:2px solid #cbd5e1;border-radius:14px;font-size:22px;padding:11px 14px;min-width:min(300px,70vw);background:#fff;transition:border-color .15s,box-shadow .15s}
body .ansInput:focus,body .ansInput:focus-within{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.16)}
body .hintLine,body #tipLine{font-size:.84rem;font-weight:800;color:#64748b}

/* ---------- buttons ---------- */
body .btn{border-radius:14px;padding:12px 18px;font-size:16px;font-weight:950;box-shadow:none}
body .btn.primary,body .btn.dark{background:#2563eb;color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.22)}
body .btn.primary:hover,body .btn.dark:hover{background:#1d4ed8}
body .btn.ghost{background:#f1f5f9;color:#0f172a}
body .btn.ghost:hover{background:#e2e8f0}
body .mmtNav{display:flex;align-items:center;justify-content:flex-end!important;margin-top:4px!important;gap:10px;flex-wrap:wrap;width:100%;padding-top:4px;border-top:1px solid #f1f5f9}
body .mmtNav #prevBtn{margin-right:auto}
body .mmtNav .mmtSubmitSlot{display:inline-flex}
body .feedback{font-weight:900}

/* ---------- phones ---------- */
@media (max-width:700px){
  body .mmtTopbar{grid-template-columns:auto 1fr;padding:10px 12px}
  body .mmtBrandText{display:none}
  body .mmtTopTitle{text-align:left;font-size:1rem;white-space:normal}
  body .topActions{grid-column:1/-1;justify-content:flex-start}
  body .wrap{padding:10px 10px 0}
  body .stage{padding:16px 14px 12px}
  body .mmtTools{margin-left:0}
}
