/* ---------------------------------------------------------------------------
   GENERATED FILE -- do not edit by hand.

   Synced from the Djamgatech app by tools/sync_quiz_engine.py, which rewrites
   every `rem` value to absolute px at a 16px base. This app sets
   `html { font-size: 10px }`, so rem-based sizing would render the quiz at
   62.5% of its intended size.

   To change the quiz UI, edit the source in the Djamgatech repo and re-run the
   sync. App-specific colour and layout overrides live in quiz-engine-theme.css,
   which is loaded after this file and IS hand-maintained.
   --------------------------------------------------------------------------- */

/* Djamgatech quiz engine — exam-like practice UI.
   Scoped under .qz so it cannot leak into the rest of the site. */

.qz {
  --qz-ink: #1a1f36;
  --qz-muted: #667085;
  --qz-line: #e3e6ef;
  --qz-brand: #3f51b5;
  --qz-brand-soft: #eef0fb;
  --qz-ok: #1b8a4b;
  --qz-ok-soft: #e8f6ee;
  --qz-bad: #c62828;
  --qz-bad-soft: #fdeaea;
  --qz-flag: #e8a33d;
  max-width: 780px;
  margin: 0 auto;
  color: var(--qz-ink);
  font-size: 16px;
  line-height: 1.55;
}

/* ----------------------------------------------------------------- header */

.qz-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 12px; flex-wrap: wrap;
}
.qz-meta { display: flex; align-items: center; gap: 9.6px; flex-wrap: wrap; }
.qz-count { font-weight: 700; }
.qz-domain {
  background: var(--qz-brand-soft); color: var(--qz-brand);
  padding: 3.2px 9.6px; border-radius: 999px;
  font-size: 12.8px; font-weight: 600;
}
.qz-timer {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18.4px;
  background: var(--qz-brand); color: #fff;
  padding: 5.6px 13.6px; border-radius: 8px;
}
.qz-timer-low { background: var(--qz-bad); }

.qz-progress {
  height: 4px; background: var(--qz-line); border-radius: 999px;
  overflow: hidden; margin-bottom: 20px;
}
.qz-progress span {
  display: block; height: 100%; background: var(--qz-brand);
  transition: width .25s ease;
}

/* ---------------------------------------------------------------- question */

.qz-card {
  background: #fff; border: 1px solid var(--qz-line);
  border-radius: 14px; padding: 24px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}
.qz-stem { font-size: 17.28px; font-weight: 600; margin: 0 0 5.6px; }
.qz-hint { color: var(--qz-muted); font-size: 14.08px; margin: 0 0 16px; }

.qz-options { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9.6px; }
.qz-option {
  width: 100%; display: flex; align-items: flex-start; gap: 12.8px;
  padding: 14.4px 16px; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--qz-line); border-radius: 10px;
  font: inherit; color: inherit; transition: border-color .12s, background .12s;
}
.qz-option:hover { border-color: #b9c0d8; background: #fbfcff; }
.qz-option.is-picked { border-color: var(--qz-brand); background: var(--qz-brand-soft); }
.qz-marker {
  flex: 0 0 25.6px; height: 25.6px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--qz-line); color: var(--qz-muted);
  font-size: 12.8px; font-weight: 700;
}
.qz-option.is-picked .qz-marker { background: var(--qz-brand); color: #fff; }
.qz-text { flex: 1; }

/* -------------------------------------------------------------- navigation */

.qz-nav { display: flex; gap: 9.6px; margin: 17.6px 0; flex-wrap: wrap; }
.qz-btn {
  padding: 10.4px 17.6px; border-radius: 9px; cursor: pointer;
  border: 1.5px solid var(--qz-line); background: #fff; color: var(--qz-ink);
  font: inherit; font-weight: 600;
}
.qz-btn:hover:not(:disabled) { border-color: #b9c0d8; }
.qz-btn:disabled { opacity: .45; cursor: not-allowed; }
.qz-primary { background: var(--qz-brand); border-color: var(--qz-brand); color: #fff; margin-left: auto; }
.qz-flag.is-on { border-color: var(--qz-flag); color: #8a5a10; background: #fdf5e7; }

/* Question navigator — the thing that makes it feel like a real exam:
   see at a glance what is answered, flagged and left. */
.qz-palette { display: flex; flex-wrap: wrap; gap: 6.4px; margin-top: 8px; }
.qz-pill {
  width: 33.6px; height: 33.6px; border-radius: 7px; cursor: pointer;
  border: 1.5px solid var(--qz-line); background: #fff;
  font: inherit; font-size: 13.12px; font-weight: 600; color: var(--qz-muted);
}
.qz-pill.is-answered { background: var(--qz-brand-soft); color: var(--qz-brand); border-color: #c3cbf0; }
.qz-pill.is-flagged { border-color: var(--qz-flag); }
.qz-pill.is-current { outline: 2px solid var(--qz-brand); outline-offset: 1px; }

/* ----------------------------------------------------------------- results */

.qz-score {
  display: flex; align-items: center; gap: 19.2px;
  padding: 22.4px; border-radius: 14px; margin-bottom: 24px;
}
.qz-score.is-pass { background: var(--qz-ok-soft); }
.qz-score.is-fail { background: var(--qz-bad-soft); }
.qz-scorenum { font-size: 48px; font-weight: 800; line-height: 1; }
.qz-score.is-pass .qz-scorenum { color: var(--qz-ok); }
.qz-score.is-fail .qz-scorenum { color: var(--qz-bad); }
.qz-scorenum small { font-size: 19.2px; }
.qz-scoremeta { display: flex; flex-direction: column; gap: 2.4px; }
.qz-scoremeta span { color: var(--qz-muted); font-size: 14.4px; }

.qz-domains ul { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 8px; }
.qz-domains li { display: grid; grid-template-columns: 1fr 120px auto; gap: 12.8px; align-items: center; }
.qz-dname { font-size: 14.72px; }
.qz-dbar { background: var(--qz-line); height: 7px; border-radius: 999px; overflow: hidden; }
.qz-dbar i { display: block; height: 100%; background: var(--qz-brand); }
.qz-dpct { font-variant-numeric: tabular-nums; font-size: 13.6px; color: var(--qz-muted); }

.qz-upsell {
  border: 1.5px dashed var(--qz-brand); background: var(--qz-brand-soft);
  border-radius: 12px; padding: 19.2px; margin-bottom: 24px;
}
.qz-upsell h4 { margin: 0 0 6.4px; }
.qz-upsell p { margin: 0 0 14.4px; color: #3a4166; font-size: 15.2px; }

.qz-reviewhead { margin: 0 0 9.6px; }
.qz-review { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.qz-review > li {
  border: 1px solid var(--qz-line); border-left-width: 4px;
  border-radius: 10px; padding: 16px 17.6px; background: #fff;
}
.qz-review > li.is-ok { border-left-color: var(--qz-ok); }
.qz-review > li.is-bad { border-left-color: var(--qz-bad); }
.qz-rstem { margin: 0 0 11.2px; font-weight: 600; }
.qz-ropts { list-style: none; padding: 0; margin: 0; display: grid; gap: 7.2px; }
.qz-ropts li {
  padding: 9.6px 12px; border-radius: 8px; background: #f7f8fc;
  display: grid; gap: 4px;
}
.qz-ropts li.is-correct { background: var(--qz-ok-soft); }
.qz-ropts li.is-wrong { background: var(--qz-bad-soft); }
.qz-rtext { font-weight: 500; }
.qz-rtag {
  justify-self: start; font-size: 11.52px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--qz-muted);
}
.qz-ropts li.is-correct .qz-rtag { color: var(--qz-ok); }
.qz-ropts li.is-wrong .qz-rtag { color: var(--qz-bad); }
/* The per-option note is the teaching surface — give it room to breathe. */
.qz-rwhy { font-size: 14.4px; color: #4a5068; }
.qz-rexp { margin: 12.8px 0 0; font-size: 14.72px; color: #4a5068; }
.qz-rref { font-size: 13.6px; }

@media (max-width: 620px) {
  .qz-score { flex-direction: column; align-items: flex-start; gap: 9.6px; }
  .qz-domains li { grid-template-columns: 1fr 70px auto; }
  .qz-primary { margin-left: 0; width: 100%; }
  .qz-nav { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  .qz {
    --qz-ink: #e8eaf2; --qz-muted: #a0a6bd; --qz-line: #2c3350;
    --qz-brand-soft: #22284a; --qz-ok-soft: #16301f; --qz-bad-soft: #33191b;
  }
  .qz-card, .qz-option, .qz-btn, .qz-pill, .qz-review > li { background: #171b2e; }
  .qz-option:hover { background: #1c2140; }
  .qz-ropts li { background: #1c2036; }
}
