/* Keep component foregrounds paired with their surfaces. Tutor/Elementor heading
   rules and the surrounding lesson's paragraph styles otherwise override these. */
:is(.ps-mcq-app, .ps-mcq-lesson) :is(.ps-mcq-hero, .ps-mcq-result-hero, .ps-mcq-lesson-hero) {
  color: #fff;
}
:is(.ps-mcq-app, .ps-mcq-lesson) :is(.ps-mcq-hero, .ps-mcq-result-hero, .ps-mcq-lesson-hero) :is(h1, h2, h3, h4, h5, h6, strong, b) {
  color: #fff !important;
}
:is(.ps-mcq-app, .ps-mcq-lesson) :is(.ps-mcq-hero, .ps-mcq-result-hero, .ps-mcq-lesson-hero) :is(p, li) {
  color: #e0edf4 !important;
}
:is(.ps-mcq-app, .ps-mcq-lesson) :is(.ps-mcq-hero, .ps-mcq-result-hero, .ps-mcq-lesson-hero) a {
  color: #b4f5eb !important;
}
:is(.ps-mcq-app, .ps-mcq-lesson) :is(.ps-mcq-kicker, .ps-mcq-eyebrow) {
  color: #a7f0e5 !important;
}
.ps-mcq-app .ps-mcq-topline { color: #d2e6ee; }
.ps-mcq-app .ps-mcq-brand { color: #fff; }
.ps-mcq-app .ps-mcq-result-score span { color: #e0edf4; }
.ps-mcq-app .ps-mcq-result-hero {
  background: radial-gradient(circle at 80% 0%, #146369, transparent 42%), linear-gradient(120deg, #0b2948, #0d4c59);
}
.ps-mcq-app .ps-mcq-hero-pills span,
.ps-mcq-lesson .ps-mcq-lesson-tags span { color: #f0fffc; }
.ps-mcq-lesson .ps-mcq-clinical-table th {
  background: #103b55;
  color: #fff !important;
}
.ps-mcq-lesson .ps-mcq-clinical-table th :is(span, b, strong) { color: inherit !important; }

/* All enabled controls and answer markers retain readable text in each state. */
.ps-mcq-app .ps-mcq-primary {
  background: linear-gradient(115deg, #087969, #096e88);
  color: #fff !important;
}
.ps-mcq-app .ps-mcq-primary :is(span, b, strong) { color: inherit !important; }
.ps-mcq-app .ps-mcq-question-meta span:first-child,
.ps-mcq-app .ps-mcq-numbers button.is-current { color: #fff !important; }
.ps-mcq-app .ps-mcq-option.is-selected .ps-mcq-option-letter {
  background: #087e74;
  color: #fff !important;
}
.ps-mcq-app .ps-mcq-option.is-incorrect .ps-mcq-option-letter {
  background: #a54a42;
  color: #fff !important;
}
.ps-mcq-app .ps-mcq-option.is-correct .ps-mcq-option-letter,
.ps-mcq-app .ps-mcq-reasons .is-best b {
  background: #14794f;
  color: #fff !important;
}
.ps-mcq-app .ps-mcq-feedback h3 { color: #116b52 !important; }
.ps-mcq-app .ps-mcq-feedback.is-wrong h3 { color: #99504a !important; }

/* Small text needs the same contrast as body copy, including on tinted cards. */
.ps-mcq-app :is(.ps-mcq-review-note, .ps-mcq-setup label small, .ps-mcq-session-progress b, .ps-mcq-question-actions > span, .ps-mcq-unanswered),
.ps-mcq-app .ps-mcq-timer span,
.ps-mcq-lesson :is(.ps-mcq-footnote, .ps-mcq-contents b, .ps-mcq-scenario-grid summary span, .ps-mcq-reference-box p) {
  color: #526879 !important;
}
.ps-mcq-app .ps-mcq-setup input::placeholder { color: #526879; opacity: 1; }
.ps-mcq-lesson :is(.ps-mcq-section-kicker, .ps-mcq-lesson-intro small),
.ps-mcq-launcher small { color: #076f69 !important; }
.ps-mcq-lesson .ps-mcq-lesson-body a { color: #12677e; }
.ps-mcq-app :is(.ps-mcq-history-list i, .ps-mcq-review-list i) { color: #086e67; }
.ps-mcq-app .ps-mcq-numbers button.is-answered { color: #096c4c; }
.ps-mcq-app .ps-mcq-numbers button.is-current { color: #fff; }
