/* Dropdown blanks in code blocks (see blanks.lua) */
select.exam-blank {
  font-family: inherit;
  font-size: inherit;
  padding: 0 0.2em;
  border: 1px solid #0066a1;
  border-radius: 3px;
  background: #eef5fa;
  color: #0066a1;
}

select.exam-blank {
  max-width: 100%;
}

/* Shared row of dropdowns under R and Python code (blanks.lua, blank-row) */
div.exam-blank-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.5em;
  margin: 0.25em 0 1em;
}
span.exam-blank-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  max-width: 100%;
}
span.exam-blank-item > select {
  min-width: 0;
  flex: 0 1 auto;
}
span.exam-label,
pre code span.exam-label {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 0.3em;
  border-radius: 3px;
  background: #444;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

/* Answer boxes for typed values (see blanks.lua) */
input.exam-box {
  font-family: var(--bs-font-monospace, monospace);
  width: 7em;
  margin-left: 0.4em;
  padding: 0 0.3em;
  border: 1px solid #0066a1;
  border-radius: 3px;
}

/* Answers view (exam-answers: true): fields show the key, disabled */
select.exam-blank.exam-key:disabled,
input.exam-box.exam-key:disabled {
  color: #2e7d32;
  border-color: #2e7d32;
  background: #eef7ee;
  opacity: 1;
  font-weight: 600;
}
span.exam-key {
  color: #2e7d32;
  font-weight: 600;
}

/* Remindo layout (exam-remindo: true): blanks as plain labels, nothing clickable */
span.remindo-blank {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 0.3em;
  border-radius: 3px;
  background: #444;
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}
span.remindo-box {
  padding: 0 0.3em;
  border: 1px dashed #888;
  border-radius: 3px;
  color: #888;
  font-style: italic;
}
