/*
 * The English test scores on the forms (Forms round 5, FM41; rules and page module forms_asset/xEnglishTests.js).
 * Flat, square corners, the theme's own colours (Bootstrap's emphasis tokens follow light and dark mode), logical
 * properties for right-to-left pages.
 */

/* The worked-out overall: read-only, quietly marked as the result of the scores. */
.xet-computed,
input.xet-computed[readonly] {
    background-color: color-mix(in srgb, var(--color1, #0d6efd) 7%, var(--bs-body-bg, #fff)) !important;
    border-color: color-mix(in srgb, var(--color1, #0d6efd) 45%, var(--bs-border-color, #ced4da)) !important;
    font-weight: 600;
    color: var(--bs-body-color) !important;
}
select.xet-locked { pointer-events: none; }

/* The list of valid steps drawn beside a hidden score box (IELTS bands). */
select.xet-list { width: 100%; }

/* OET: the grade letter of a sub-test score, under its box. */
.xet-grade {
    display: inline-block;
    margin-top: 4px;
    padding: 0 6px;
    font-size: 13px;
    line-height: 20px;
    border-radius: 0;
    background: color-mix(in srgb, var(--color1, #0d6efd) 12%, var(--bs-body-bg, #fff));
    color: var(--bs-body-color);
}

/* The calm notes under the scores: worked out, valid until, please check. */
ul.xet-notes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
ul.xet-notes[hidden] { display: none; }
.xet-note { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--bs-body-color); }
.xet-note i { margin-top: 3px; flex: 0 0 16px; text-align: center; }
.xet-note.is-ok i { color: var(--bs-success-text-emphasis, #146c43); }
.xet-note.is-info i { color: var(--bs-secondary-color, #6c757d); }
.xet-note.is-warn i { color: var(--bs-warning-text-emphasis, #997404); }
.xet-note.is-warn span { font-weight: 600; }

/* A help line under a question (the report number's place on the report, why an overall is typed). */
.xet-help { font-size: 13px !important; line-height: 1.4; }

/* Cambridge has five papers: five columns on a wide screen (english_check's grid), two on a phone. */
.xdy .row.xdy-en__bands.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 767.98px) {
    .xdy .row.xdy-en__bands.is-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
