/* Keep native controls and the manual's colors, with all six sections on one page. */
.page-chapters-quick-start [hidden] {
    display: none !important;
}

.qs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.qs-grid fieldset {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.qs-grid legend {
    padding: 0 5px;
    color: var(--accent);
    font-weight: 700;
}

.qs-grid p {
    margin: 0 0 8px;
}

.qs-grid label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    line-height: 1.4;
    cursor: pointer;
}

.qs-grid input {
    flex: 0 0 auto;
    accent-color: var(--accent-mid);
}

.qs-grid [data-parent] {
    margin-top: 12px;
}

.qs-grid [data-parent] fieldset + fieldset {
    margin-top: 12px;
}

.qs-help {
    color: var(--muted);
    font-size: 0.9em;
}

.qs-button {
    margin-top: 24px;
    padding: 12px 18px;
    max-width: 100%;
    border: 2px solid var(--accent-mid);
    border-radius: 8px;
    background: var(--accent-deep);
    color: #FFFBCC;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.qs-button:hover {
    background: var(--accent);
    color: #333132;
}

.qs-button:focus-visible,
.qs-grid input:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 3px;
}

#qs-question-heading,
#qs-guide-heading {
    margin-top: 0;
}

@media (max-width: 640px) {
    .qs-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .qs-button {
        display: none !important;
    }
}

/* Share the wide MIDI checklist across columns instead of leaving an empty neighboring card. */
@media (min-width: 641px) {
    .qs-grid > fieldset:first-child {
        grid-column: 1 / -1;
    }

    .qs-grid > fieldset:first-child .qs-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }
}

/* Keep device symbols legible in running prose without using their larger settings-table sizes. */
#qs-guide img.inline-svg {
    height: 1.5em !important;
    width: auto;
    vertical-align: middle;
}

#qs-guide .qs-step h3 {
    margin-top: 36px;
}

/* Use readable red in each theme for local validation messages and their section borders. */
.page-chapters-quick-start {
    --qs-error: #ff8585;
}

html.light-mode .page-chapters-quick-start {
    --qs-error: #b42318;
}

.qs-grid fieldset.qs-invalid {
    border-color: var(--qs-error);
}

.qs-grid .qs-error {
    margin: 8px 0 0;
    color: var(--qs-error);
    font-weight: 400;
}
