/* Задачи в тексте страницы — см. /local/assets/js/problems.js */
.problems { margin: 1.5rem 0; }
.problems-list { padding-left: 1.25rem; margin: 0; }
.problem {
    margin-bottom: 1.25rem;
    padding: .75rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
}
.problem-text { margin-bottom: .5rem; }
.problem-text p:last-child { margin-bottom: 0; }

.problems-ready .problem-solution { display: none; }
.problems-ready .problem-open .problem-solution {
    display: block;
    margin-top: .5rem;
    padding: .5rem .75rem;
    border-left: 3px solid var(--bs-info);
    background: var(--bs-tertiary-bg);
}
.problem-answer { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.problem-answer .form-control { width: 11rem; max-width: 100%; }
.problem-unit { color: var(--bs-secondary-color); }
.problem-result { min-height: 1.3em; margin-top: .35rem; font-size: .95rem; }
.problem-right { border-color: var(--bs-success); }
.problem-right .problem-result { color: var(--bs-success); font-weight: 600; }
.problem-wrong .problem-result { color: var(--bs-danger); }
.problems-score { font-weight: 600; }
