.wlp-quiz {
  --wlp-blue: #1f5fbf;
  --wlp-green: #1a7f37;
  --wlp-green-bg: #e9f7ee;
  --wlp-red: #c62828;
  --wlp-red-bg: #fdecec;
  --wlp-border: #dfe3ea;
  --wlp-muted: #5c6370;
  margin: 1.5em 0;
  font-size: 17px;
  line-height: 1.6;
}
.wlp-quiz .wlp-box {
  border: 1px solid var(--wlp-border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
}
.wlp-quiz .wlp-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--wlp-muted);
  font-weight: 600;
}
.wlp-quiz .wlp-points { color: var(--wlp-green); }
.wlp-quiz .wlp-bar {
  height: 6px;
  margin: 8px 0 16px;
  background: #eef1f5;
  border-radius: 99px;
  overflow: hidden;
}
.wlp-quiz .wlp-bar-fill {
  height: 100%;
  background: var(--wlp-blue);
  transition: width 0.3s ease;
}
.wlp-quiz .wlp-question {
  font-weight: 600;
  margin-bottom: 14px;
}
.wlp-quiz .wlp-question p { margin: 0 0 0.4em; }
.wlp-quiz .wlp-options { display: grid; gap: 10px; }
.wlp-quiz .wlp-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1.5px solid var(--wlp-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wlp-quiz .wlp-option:hover:not(:disabled) { border-color: var(--wlp-blue); background: #f4f8ff; }
.wlp-quiz .wlp-option:disabled { cursor: default; }
.wlp-quiz .wlp-option p { margin: 0; }
.wlp-quiz .wlp-letter {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef1f5;
  font-weight: 700;
  font-size: 14px;
}
.wlp-quiz .wlp-option.is-correct { border-color: var(--wlp-green); background: var(--wlp-green-bg); }
.wlp-quiz .wlp-option.is-correct .wlp-letter { background: var(--wlp-green); color: #fff; }
.wlp-quiz .wlp-option.is-wrong { border-color: var(--wlp-red); background: var(--wlp-red-bg); }
.wlp-quiz .wlp-option.is-wrong .wlp-letter { background: var(--wlp-red); color: #fff; }
.wlp-quiz .wlp-feedback:empty { display: none; }
.wlp-quiz .wlp-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
}
.wlp-quiz .wlp-feedback.is-correct { background: var(--wlp-green-bg); color: #10462a; }
.wlp-quiz .wlp-feedback.is-wrong { background: var(--wlp-red-bg); color: #6b1414; }
.wlp-quiz .wlp-note { margin-top: 6px; }
.wlp-quiz .wlp-expl-title { margin-top: 10px; font-weight: 700; font-size: 14px; }
.wlp-quiz .wlp-expl p { margin: 0 0 0.4em; }
.wlp-quiz .wlp-next {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--wlp-blue);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.wlp-quiz .wlp-next:hover { filter: brightness(1.08); }
.wlp-quiz .wlp-result { text-align: center; padding: 10px 0; }
.wlp-quiz .wlp-result-title { color: var(--wlp-muted); font-weight: 600; }
.wlp-quiz .wlp-result-score { font-size: 40px; font-weight: 800; color: var(--wlp-blue); }
.wlp-quiz .wlp-result-pct { font-weight: 700; }
.wlp-quiz .wlp-more { display: block; margin-top: 12px; font-weight: 600; }
.wlp-quiz .wlp-quiz-static .wlp-q { font-weight: 600; }

/* Start card (quiz sits at the top of chapter posts) */
.wlp-quiz { margin-top: 0.5em; scroll-margin-top: 90px; }
.wlp-quiz .wlp-box { scroll-margin-top: 90px; }
.wlp-quiz .wlp-box.is-intro {
  padding: 0;
  border: 0;
  background: linear-gradient(135deg, #1f5fbf 0%, #0f2a55 100%);
  box-shadow: 0 10px 26px rgba(15, 42, 85, 0.22);
  overflow: hidden;
}
.wlp-quiz .wlp-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  padding: 18px 20px;
  color: #fff;
}
.wlp-quiz .wlp-intro-icon {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}
.wlp-quiz .wlp-intro-text { flex: 1 1 200px; min-width: 0; }
.wlp-quiz .wlp-intro-title { font-size: 20px; font-weight: 800; line-height: 1.3; }
.wlp-quiz .wlp-intro-sub { margin-top: 2px; font-size: 14px; opacity: 0.88; }
.wlp-quiz .wlp-start {
  flex: 0 0 auto;
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  color: #1f5fbf;
  background: #fff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}
.wlp-quiz .wlp-start:hover { transform: translateY(-1px); }
@media (max-width: 480px) {
  .wlp-quiz .wlp-start { width: 100%; }
}
