/* Shared multiple-choice widget — consumed by the Reading MCQ pages (Single +
   Multiple), Listening MCQ Multiple and Select Missing Words. Loads before each
   per-question file, so any page-specific delta in that file overrides this
   base. The graded correct/incorrect wash reads from the main.css tokens.

   Listening MCQ Single is the one MCQ page that does not link this file. It
   keeps its own copy of the wash deliberately — why, and what guards the
   duplicate, is in docs/archive/BDD_COVERAGE_PLAN.md under "Follow-on: #196". */

.passage {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    line-height: 1.5;
}

.mcq-container {
    background-color: var(--surface);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid var(--border);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 25px;
}

.option {
    display: flex;
    align-items: center;
    /* 4px, not 10px: the rows read as one list, not a stack of cards. */
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.option:hover {
    background-color: #f5f5f5;
}

/* Chromium's default form-control accent is not a constant — it moved from
   #0078D4 to #8764B8 between two runs a week apart, which is enough to repaint
   a checked option in a visual baseline without a line of app CSS changing.
   Today's baselines all render every option unchecked, so nothing here has
   drifted yet; the first spec that snapshots a selected or marked state is when
   it would start, and pinning the colour now costs nothing.

   --brand-blue rather than --chrome-accent. The style guide splits the palettes
   by what draws the pixel: --chrome-* is the chrome's, and the skill palette
   dresses what a page's content is coloured by. An option control is neither —
   it is a form control, and the shared focus indicator in main.css already
   rings this very input in --brand-blue, the token the guide calls the primary
   brand and focus indicator. The checked dot sits inside that ring; two hues a
   pixel apart on one control would be the odd choice. --chrome-accent would
   also split this one widget in two: body[data-skill] resolves it to the red of
   Reading and the teal of Listening, so the same option control would check in a
   different colour on each of the four pages. That is a restyle, not a pin. */
.option input[type="radio"],
.option input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--brand-blue);
}

.option.correct {
    background-color: var(--correct-bg);
    border: 1px solid var(--correct-border);
}

.option.incorrect {
    background-color: var(--incorrect-bg);
    border: 1px solid var(--incorrect-border);
}

@media (max-width: 768px) {
    .option {
        min-height: 44px;
        /* The label's 44px min-height keeps the tap target. */
        padding-top: 0;
        padding-bottom: 0;
    }

    .option label {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .option input[type="radio"],
    .option input[type="checkbox"] {
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
    }
}
