/* Custom overrides loaded after webex.css and after the Bootstrap theme. */

/* 1. Webex assigns a forced white background to unchecked MCQ options.
      In dark mode this clashes with the surrounding page colors.
      Make the unchecked-option background transparent so each theme
      handles its own contrast. The dotted grey border still marks
      the options as interactive. */
.unchecked .webex-incorrect,
.unchecked .webex-correct,
.unchecked .webex-radiogroup label.webex-incorrect,
.unchecked .webex-radiogroup label.webex-correct {
  background-color: transparent !important;
}

/* 2. Bootstrap styles every inline <code> element with a hardcoded
      light background (#f8f9fa). In dark mode, the text color becomes
      light while the background stays light, so inline code becomes
      invisible. Override the background with a semi-transparent grey
      that works on both light and dark page backgrounds, and let the
      text color be inherited from the surrounding text (which is dark
      in light mode and light in dark mode).

      We list explicit parents instead of using code:not(pre code)
      because the descendant selector inside :not() is a newer feature
      that some Chromium versions silently drop from the parsed rule. */
p code,
li code,
td code,
th code,
label code,
dt code,
dd code,
blockquote code,
strong code,
em code,
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code,
.callout code,
.callout-body code {
  background-color: rgba(127, 127, 127, 0.15) !important;
  color: inherit !important;
}
