/*
 * File Path: assets/css/admin/classification/classification-layout.css
 * Classification metabox -- section layout and section title.
 * Component of mbs-admin-classification.css (R-015).
 */

/* ── Metabox sections ────────────────────────────────────────── */

.mbs-classification-metabox .mbs-class-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f1;
}

.mbs-classification-metabox .mbs-class-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mbs-class-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #50575e;
    margin: 0 0 10px;
}


/* ── Content Warnings — 3-column layout ─────────────────────────────────── */
.mbs-cat-checklist--3col {
    column-count: 3;
    column-gap: 16px;
}

.mbs-cat-checklist--3col li {
    break-inside: avoid; /* keep label + checkbox on one line within a column */
}

@media ( max-width: 900px ) {
    .mbs-cat-checklist--3col {
        column-count: 2;
    }
}

@media ( max-width: 600px ) {
    .mbs-cat-checklist--3col {
        column-count: 1;
    }
}

/* ── Content Warnings toggle ─────────────────────────────────────────────── */
.mbs-warnings-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mbs-warnings-toggle:focus-visible {
    outline: 2px solid var(--mbs-status-info);
    outline-offset: 2px;
    border-radius: 2px;
}

.mbs-warnings-toggle__chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.mbs-warnings-toggle[aria-expanded="false"] .mbs-warnings-toggle__chevron {
    transform: rotate(-90deg);
}

#mbs-warnings-list[hidden] {
    display: none;
}
