/* License exam practice — UI only */
.how-to {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 20px;
  max-width: 78ch;
}
.how-to h2 { margin: 0 0 8px; font-size: 1.1rem; }
.how-to ol { margin: 0; padding-left: 1.25rem; }
.how-to li { margin: 6px 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
@media (min-width: 1100px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card-btn,
.topic-btn {
  text-align: left;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
}
.card-btn:hover,
.topic-btn:hover { border-color: var(--accent-hover); background: var(--accent-pale); }
.card-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.card-btn h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card-btn p { margin: 0 0 4px; font-size: 0.92rem; }
.meta,
.note,
.cite { font-size: 0.88rem; color: var(--muted); }
.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  align-items: center;
}
.btn.danger { border-color: var(--bad); color: var(--bad); }
.soft-cta {
  border-top: 1px solid var(--line);
  margin: 8px 0 16px;
  padding-top: 14px;
  font-size: 0.95rem;
  color: #445;
}
.soft-cta p { margin: 0 0 10px; }
.prog-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prog-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.5;
}
.prog-row .resume-btn { display: inline-flex; margin-top: 8px; }
.progress-box {
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 24px 0;
}
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.topic-list h3 { margin: 16px 0 6px; font-size: 1rem; }
.quiz-shell { max-width: 900px; }
.quiz-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}
.quiz-progress {
  flex: 1 1 200px;
  min-width: 0;
}
.quiz-progress .meta { margin: 0 0 6px; display: block; }
.prog-bar {
  height: 8px;
  background: #dde3ea;
  border-radius: 999px;
  overflow: hidden;
}
.prog-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}
.kbd-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.q-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.qid { font-weight: 700; margin-bottom: 8px; }
.qtext { font-size: 1.08rem; margin: 0 0 12px; line-height: 1.45; }
.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice {
  text-align: left;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #ccd5dd;
  background: #fff;
  cursor: pointer;
  font: inherit;
  width: 100%;
}
.choice:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-pale); }
.choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice.correct { background: #e6f6ea; border-color: var(--ok); }
.choice.wrong { background: #fdecea; border-color: var(--bad); }
.choice .L { font-weight: 700; margin-right: 6px; }
.feedback { margin: 12px 0; padding: 12px; border-radius: 8px; }
.feedback.ok { background: #e6f6ea; }
.feedback.bad { background: #fdecea; }
.figure { margin: 12px 0; }
.figure a { display: block; cursor: zoom-in; }
.figure figcaption { margin-top: 4px; font-size: .9rem; }
.figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.score { font-size: 1.5rem; font-weight: 700; margin: 8px 0; }
.score-pass { color: var(--ok); }
.score-fail { color: var(--bad); }
.result-summary {
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 12px 0 20px;
  max-width: 52ch;
}
.missed-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.missed-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
}
.linkish {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 8px 4px;
  min-height: 44px;
  text-decoration: underline;
}
.linkish:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.err { color: var(--bad); }
code { font-size: 0.8rem; }
.pool-details summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

/* contrast fix 2026-10-11: related-tool buttons (~8:1 on white) */
.tool-row a{color:#0b4f96 !important;border-color:#0b4f96;background:#fff;opacity:1}
.tool-row a:hover,.tool-row a:focus-visible{background:#0b4f96;color:#fff !important}

.score-hist{margin:.5em 0}.score-hist summary{cursor:pointer;font-weight:600}.hist-table{border-collapse:collapse;margin:.5em 0;width:100%;max-width:520px;font-size:.92rem}.hist-table th,.hist-table td{border-bottom:1px solid #dde3ea;padding:4px 8px;text-align:left}
