/* body-level padding removed — MkDocs handles layout */

.quiz-page .container,
.quiz-page .page-header,
.quiz-page .card,
.quiz-page #results-card {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-page .page-header {
  margin-bottom: 24px;
}

.quiz-page .page-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.quiz-page .page-sub {
  font-size: 13px;
}

.quiz-page .card,
.quiz-page #results-card {
  border-radius: 12px;
  padding: 1.75rem;
}

.theme-light.quiz-page .card,
.theme-light.quiz-page #results-card {
  background: #fff;
  border: 0.5px solid #ddd;
}

.theme-dark.quiz-page .card,
.theme-dark.quiz-page #results-card {
  background: #1a1d27;
  border: 0.5px solid #2e3347;
}

.quiz-page .progress-bar-bg,
.quiz-page #prog-wrap {
  height: 5px;
  border-radius: 3px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.quiz-page .progress-bar-fill,
.quiz-page #prog-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.quiz-page .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.quiz-page .meta-cat,
.quiz-page #cat-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.quiz-page .meta-count,
.quiz-page #prog-lbl,
.quiz-page #q-count {
  font-size: 12px;
}

.quiz-page .question,
.quiz-page #q-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.quiz-page .options,
.quiz-page #opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.quiz-page .opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid;
  transition: background 0.15s, border-color 0.15s;
}

.quiz-page .opt .letter {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}

.quiz-page .opt .opt-text {
  font-size: 14px;
  line-height: 1.5;
}

.quiz-page .explanation,
.quiz-page #expl {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.65;
  margin: 12px 0;
  display: none;
}

.quiz-page .actions,
.quiz-page .btn-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.quiz-page .btn,
.quiz-page button {
  padding: 9px 20px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid;
  font-family: inherit;
}

.quiz-page .result-screen {
  display: none;
  text-align: center;
}

.quiz-page .result-score,
.quiz-page .score-big {
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
}

.quiz-page .result-pct,
.quiz-page .score-pct {
  font-size: 18px;
  margin: 4px 0 6px;
}

.quiz-page .result-label,
.quiz-page .motiv {
  font-size: 15px;
  margin-bottom: 1.5rem;
}

.quiz-page .section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-align: left;
}

.quiz-page .result-breakdown,
.quiz-page .cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.quiz-page .rb-card,
.quiz-page .cat-card {
  border-radius: 8px;
  padding: 12px 14px;
}

.quiz-page .rb-num,
.quiz-page .cat-score {
  font-size: 18px;
  font-weight: 600;
}

.quiz-page .rb-lbl,
.quiz-page .cat-name {
  font-size: 12px;
}

.quiz-page .rb-detail {
  font-size: 11px;
}

.quiz-page #btn-check {
  opacity: 0.45;
  pointer-events: none;
}

.quiz-page #btn-check.active {
  opacity: 1;
  pointer-events: auto;
}

.quiz-page #btn-next {
  display: none;
}

.quiz-page #resume-banner {
  max-width: 680px;
  margin: 0 auto 16px;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-page #resume-banner span {
  font-size: 13px;
}

.quiz-page #resume-banner button {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 6px;
}

.quiz-page .btn-resume {
  margin-right: 8px;
}

/* light theme */
.theme-light.quiz-page .page-sub,
.theme-light.quiz-page #prog-lbl,
.theme-light.quiz-page #q-count,
.theme-light.quiz-page .meta-count,
.theme-light.quiz-page .result-label,
.theme-light.quiz-page .score-pct,
.theme-light.quiz-page .rb-lbl,
.theme-light.quiz-page .rb-detail,
.theme-light.quiz-page .cat-name,
.theme-light.quiz-page .section-title {
  color: #666;
}

.theme-light.quiz-page .progress-bar-bg,
.theme-light.quiz-page #prog-wrap {
  background: #e8e6e0;
}

.theme-light.quiz-page .progress-bar-fill,
.theme-light.quiz-page #prog-bar {
  background: var(--quiz-accent, #534ab7);
}

.theme-light.quiz-page .meta-cat,
.theme-light.quiz-page #cat-lbl {
  color: var(--quiz-accent, #534ab7);
  background: #f0ede8;
  padding: 4px 10px;
  border-radius: 20px;
}

.theme-light.quiz-page .opt {
  border-color: #ddd;
  background: #fff;
  color: #1a1a1a;
}

.theme-light.quiz-page .opt:hover {
  background: #f8f7f3;
  border-color: #bbb;
}

.theme-light.quiz-page .opt .letter {
  border: 1px solid #bbb;
  background: #f0ede8;
  color: #666;
}

.theme-light.quiz-page .opt.selected,
.theme-light.quiz-page .opt.sel {
  border-color: var(--quiz-selected-border, #534ab7);
  background: var(--quiz-selected-bg, #eeedfe);
  color: var(--quiz-selected-text, #26215c);
}

.theme-light.quiz-page .opt.correct {
  border-color: #0f6e56;
  background: #e1f5ee;
  color: #04342c;
}

.theme-light.quiz-page .opt.wrong {
  border-color: #993c1d;
  background: #faece7;
  color: #4a1b0c;
}

.theme-light.quiz-page .opt.dim {
  border-color: #eee;
  background: #fafafa;
  color: #999;
}

.theme-light.quiz-page .explanation.correct-exp,
.theme-light.quiz-page #expl.correct {
  border-left: 3px solid #1d9e75;
  background: #e1f5ee;
  color: #085041;
}

.theme-light.quiz-page .explanation.wrong-exp,
.theme-light.quiz-page #expl.wrong {
  border-left: 3px solid #d85a30;
  background: #faece7;
  color: #4a1b0c;
}

.theme-light.quiz-page .btn,
.theme-light.quiz-page button {
  border-color: #ddd;
  background: #fff;
  color: #1a1a1a;
}

.theme-light.quiz-page .btn:hover,
.theme-light.quiz-page button:hover {
  background: #f0ede8;
}

.theme-light.quiz-page .btn-primary,
.theme-light.quiz-page #btn-check {
  background: var(--quiz-accent, #534ab7);
  border-color: var(--quiz-accent, #534ab7);
  color: #fff;
}

.theme-light.quiz-page .btn-primary:hover {
  filter: brightness(0.9);
}

.theme-light.quiz-page .rb-card,
.theme-light.quiz-page .cat-card {
  background: #f8f7f3;
  border: 0.5px solid #e0ddd8;
}

.theme-light.quiz-page #resume-banner {
  background: #eeedfe;
  border: 1px solid #534ab7;
}

.theme-light.quiz-page #resume-banner span {
  color: #26215c;
}

.theme-light.quiz-page .btn-resume {
  background: #534ab7;
  border-color: #534ab7;
  color: #fff;
}

.theme-light.quiz-page .btn-discard {
  background: transparent;
  border-color: #534ab7;
  color: #534ab7;
}

/* dark theme */
.theme-dark.quiz-page .page-sub,
.theme-dark.quiz-page #prog-lbl,
.theme-dark.quiz-page #q-count,
.theme-dark.quiz-page .meta-count,
.theme-dark.quiz-page .result-label,
.theme-dark.quiz-page .score-pct,
.theme-dark.quiz-page .rb-lbl,
.theme-dark.quiz-page .rb-detail,
.theme-dark.quiz-page .cat-name,
.theme-dark.quiz-page .section-title {
  color: #7b7f96;
}

.theme-dark.quiz-page .progress-bar-bg,
.theme-dark.quiz-page #prog-wrap {
  background: #252840;
}

.theme-dark.quiz-page .progress-bar-fill,
.theme-dark.quiz-page #prog-bar {
  background: var(--quiz-accent, #8b83e6);
}

.theme-dark.quiz-page .meta-cat,
.theme-dark.quiz-page #cat-lbl {
  color: var(--quiz-accent, #8b83e6);
}

.theme-dark.quiz-page .opt {
  border-color: #2e3347;
  background: #1a1d27;
  color: #c8cad8;
}

.theme-dark.quiz-page .opt:hover {
  background: #252840;
}

.theme-dark.quiz-page .opt .letter {
  border: 1px solid currentColor;
}

.theme-dark.quiz-page .opt.selected,
.theme-dark.quiz-page .opt.sel {
  border-color: var(--quiz-selected-border, #8b83e6);
  background: #252840;
  color: #a8a4e8;
}

.theme-dark.quiz-page .opt.correct {
  border-color: #1d6b47;
  background: #0d2e1f;
  color: #34d399;
}

.theme-dark.quiz-page .opt.wrong {
  border-color: #7a2e2e;
  background: #2d1515;
  color: #f87171;
}

.theme-dark.quiz-page .opt.dim {
  border-color: #2e3347;
  background: #161820;
  color: #4a4e63;
}

.theme-dark.quiz-page .explanation.correct-exp,
.theme-dark.quiz-page #expl.correct {
  border-left: 3px solid #34d399;
  background: #0d2e1f;
  color: #34d399;
}

.theme-dark.quiz-page .explanation.wrong-exp,
.theme-dark.quiz-page #expl.wrong {
  border-left: 3px solid #f87171;
  background: #2d1515;
  color: #f87171;
}

.theme-dark.quiz-page .btn,
.theme-dark.quiz-page button {
  border-color: #2e3347;
  background: #1a1d27;
  color: #c8cad8;
}

.theme-dark.quiz-page .btn:hover,
.theme-dark.quiz-page button:hover {
  background: #252840;
}

.theme-dark.quiz-page .btn-primary,
.theme-dark.quiz-page #btn-check {
  background: var(--quiz-accent, #8b83e6);
  border-color: var(--quiz-accent, #8b83e6);
  color: #fff;
}

.theme-dark.quiz-page .rb-card,
.theme-dark.quiz-page .cat-card {
  background: #252840;
}

.theme-dark.quiz-page #resume-banner {
  background: #252840;
  border: 1px solid #8b83e6;
}

.theme-dark.quiz-page #resume-banner span {
  color: #c8cad8;
}

.theme-dark.quiz-page .btn-resume {
  background: #8b83e6;
  border-color: #8b83e6;
  color: #fff;
}

.theme-dark.quiz-page .btn-discard {
  background: transparent;
  border-color: #8b83e6;
  color: #8b83e6;
}


