/* Knowledge quiz UI. Extends knowledge.css (kn-* classes); adds kq-* helpers.
   Reuses the site look: soft cards, purple accent, no second design system. */

.kq-h { margin: 0 0 .6rem; }
.kq-cats { margin-top: .5rem; }
.kq-cat { cursor: pointer; text-align: left; width: 100%; border: 0; background: none; font: inherit; }
.kq-cat .kn-card-body { position: relative; }
.kq-count {
  position: absolute; top: .6rem; right: .6rem;
  font-size: .8rem; font-weight: 600; color: #6b5b8a;
  background: #efeaf7; border-radius: 999px; padding: .1rem .5rem;
}
.kq-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.kq-progress { font-size: .9rem; color: #6b5b8a; }
.kq-question { max-width: 640px; }
.kq-illus { margin-bottom: .8rem; }
.kq-illus img { width: 100%; height: auto; border-radius: 14px; display: block; }
.kq-prompt { font-size: 1.15rem; font-weight: 600; margin: .2rem 0 1rem; }
.kq-caveat { margin-bottom: 1rem; }

.kq-options { display: grid; gap: .6rem; }
.kq-option {
  font: inherit; text-align: left; padding: .8rem 1rem;
  border: 2px solid #e3dcef; border-radius: 12px; background: #fff;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.kq-option:hover:not(:disabled) { border-color: #b9a8dd; }
.kq-option:focus-visible { outline: 3px solid #7a5fc0; outline-offset: 2px; }
.kq-option:disabled { cursor: default; }
.kq-option.is-correct { border-color: #2e8b57; background: #e9f6ee; font-weight: 600; }
.kq-option.is-wrong { border-color: #c0392b; background: #fdeceb; }

.kq-feedback { margin-top: 1rem; }
.kq-verdict { font-weight: 700; margin: 0 0 .4rem; }
.kq-verdict.is-correct { color: #2e8b57; }
.kq-verdict.is-wrong { color: #c0392b; }
.kq-expl { margin: .2rem 0 .6rem; }
.kq-sources { font-size: .85rem; }
.kq-next {
  margin-top: .8rem; font: inherit; font-weight: 600; cursor: pointer;
  padding: .7rem 1.4rem; border: 0; border-radius: 999px;
  background: #2E1A5A; color: #fff;
}
.kq-next:hover { background: #3d2678; }
.kq-next:focus-visible { outline: 3px solid #7a5fc0; outline-offset: 2px; }
.kq-score { font-size: 1.3rem; font-weight: 700; margin: .3rem 0 1rem; }

@media (max-width: 520px) {
  .kq-prompt { font-size: 1.05rem; }
  .kq-top { flex-wrap: wrap; }
}
