/* LearnDeutsch targeted quiz + speaker correction | prebuilt and source | 1.6.25 */
/* Keep speaker on the LEFT and reserve actual space between speaker and German text. */
.word-table .word-german-audio,
.numbers-section .number-german-audio {
  display: grid !important;
  grid-template-columns: 40px minmax(0,1fr) !important;
  column-gap: 0 !important;
  align-items: center !important;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  direction: ltr;
}
.word-table .word-german-audio > .sound-button,
.numbers-section .number-german-audio > .sound-button {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}
.word-table .word-german-audio > b,
.numbers-section .number-german-audio > b,
.numbers-section .number-german-audio > h3,
.numbers-section .number-german-audio > p {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0;
  width: auto;
  margin: 0 0 0 18px !important;
  padding: 0 !important;
  text-align: left;
  overflow-wrap: anywhere;
}
/* Selected answers should look light blue. After checking, correct answers stay blue. */
label.quiz-option.is-selected,
label.quiz-option.correct,
label.quiz-option:has([data-state="checked"]):not(.is-wrong),
label.quiz-option:has(input[type="radio"]:checked):not(.is-wrong),
label.practice-choice.is-selected,
label.practice-choice.correct,
label.practice-choice:has(input[type="radio"]:checked):not(.is-wrong) {
  background-color: #eaf3ff !important;
  border-color: #83afe7 !important;
  box-shadow: inset 0 0 0 1px #bed8fa !important;
  color: #163f78 !important;
}
/* A checked wrong answer is red; override the blue :has() fallback. */
label.quiz-option.is-wrong,
label.practice-choice.is-wrong {
  background-color: #fff0f2 !important;
  border-color: #e8a2ab !important;
  box-shadow: inset 0 0 0 1px #f7cbd2 !important;
  color: #802c3c !important;
}
label.quiz-option.is-selected > span,
label.quiz-option.correct > span,
label.quiz-option.is-wrong > span,
label.practice-choice.is-selected > span,
label.practice-choice.is-wrong > span {
  color: inherit;
}
label.quiz-option, label.practice-choice {
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
@media (max-width: 600px) {
  .word-table .word-german-audio > b,
  .numbers-section .number-german-audio > b,
  .numbers-section .number-german-audio > h3,
  .numbers-section .number-german-audio > p {margin-left: 14px !important;}
}
@media (prefers-reduced-motion: reduce) {
  label.quiz-option, label.practice-choice {transition: none;}
}
