/* Retrieval-practice quiz component. Pairs with quiz.js. */
.quiz {
  border: 1px solid var(--rule); border-radius: 4px;
  background: #fff; padding: 1.4rem 1.5rem; margin: 2rem 0;
}
.quiz > .quiz-label {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 650; color: var(--accent);
  display: block; margin-bottom: 1rem;
}
.q { margin-bottom: 1.8rem; }
.q:last-of-type { margin-bottom: 0.6rem; }
.q .stem { font-weight: 600; margin: 0 0 0.8rem; line-height: 1.45; }
.q .options { list-style: none; padding: 0; margin: 0; }
.q .options li { margin: 0 0 0.45rem; }
.opt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font-family: var(--sans); font-size: 0.9rem; line-height: 1.4;
  background: var(--paper-alt); border: 1px solid var(--rule); border-radius: 3px;
  padding: 0.6rem 0.85rem; color: var(--ink);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.opt:hover:not(:disabled) { background: #ece5d9; border-color: var(--ink-faint); }
.opt:disabled { cursor: default; }
.opt.correct { background: #e4f0e8; border-color: var(--good); color: var(--good); font-weight: 600; }
.opt.wrong { background: #f6e3e0; border-color: var(--accent); color: var(--accent); }
.feedback {
  font-family: var(--sans); font-size: 0.86rem; line-height: 1.5;
  color: var(--ink-soft); margin: 0.8rem 0 0; padding-left: 0.85rem;
  border-left: 2px solid var(--rule); display: none;
}
.feedback.show { display: block; }
.quiz-score {
  font-family: var(--sans); font-size: 0.86rem; font-weight: 650;
  color: var(--ink-soft); border-top: 1px solid var(--rule);
  padding-top: 0.9rem; margin-top: 1.2rem;
}
/* Free-recall prompt: answer before revealing. Desirable difficulty. */
.recall { border: 1px dashed var(--ink-faint); border-radius: 4px; padding: 1.2rem 1.4rem; margin: 2rem 0; }
.recall .stem { font-weight: 600; margin: 0 0 0.9rem; }
.recall textarea {
  width: 100%; min-height: 5.5rem; font-family: var(--sans); font-size: 0.9rem;
  line-height: 1.5; padding: 0.6rem 0.7rem; border: 1px solid var(--rule);
  border-radius: 3px; background: var(--paper); color: var(--ink); resize: vertical;
}
.recall button.reveal {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 650; cursor: pointer;
  margin-top: 0.8rem; padding: 0.5rem 1rem; border-radius: 3px;
  border: 1px solid var(--accent); background: transparent; color: var(--accent);
}
.recall button.reveal:hover { background: var(--accent-soft); }
.recall .answer { display: none; margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); }
.recall .answer.show { display: block; }
@media print { .opt { background: #fff; } .feedback, .recall .answer { display: block; } }
