.cw-halls-classifications {
    --halls-low: #2176a4;
    --halls-intermediate: #ddae45;
    --halls-high: #d76b5d;
}

body.light-mode .cw-halls-classifications {
    --halls-intermediate: #9d6c10;
    --halls-high: #b84d40;
}

.cw-halls-classifications-map {
    margin-top: 6px;
}

.cw-halls-classifications .cw-halls-hero-body {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.cw-halls-classifications > .container {
    padding-top: 22px;
    padding-bottom: 22px;
}

.cw-halls-classifications .cw-halls-section-title {
    margin-bottom: 12px;
    text-align: center;
}

.cw-halls-classifications .cw-halls-section-title .cw-halls-kicker {
    display: block;
    margin: 0 auto 6px;
}

.cw-halls-classifications .cw-halls-section-title h2 {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.35rem;
    line-height: 1.2;
}

.cw-halls-classifications-map .cw-halls-section-title {
    margin-bottom: 10px;
}

.cw-halls-classification-list {
    margin-top: 14px;
}

.cw-halls-classification-intro {
    max-width: 780px;
    margin: 0 auto 14px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: center;
}

.cw-halls-classification-groups {
    display: grid;
    gap: 12px;
}

.cw-halls-classification-group {
    min-width: 0;
    padding: 15px 16px;
    background: color-mix(in srgb, var(--bg-elevated) 93%, var(--group-accent) 4%);
    border: 1px solid color-mix(in srgb, var(--group-accent) 27%, var(--border-strong));
    border-top: 3px solid var(--group-accent);
    border-radius: 8px;
}

.cw-halls-classification-group-low {
    --group-accent: var(--halls-low);
}

.cw-halls-classification-group-intermediate {
    --group-accent: var(--halls-intermediate);
}

.cw-halls-classification-group-high {
    --group-accent: var(--halls-high);
}

.cw-halls-classification-group-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.cw-halls-classification-group-heading .cw-halls-kicker {
    color: var(--group-accent);
}

.cw-halls-classification-group-heading h3 {
    margin: 4px 0 0;
    color: var(--text-heading);
    font-size: 1.2rem;
    line-height: 1.25;
}

.cw-halls-classification-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: var(--group-accent);
    background: color-mix(in srgb, var(--group-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--group-accent) 30%, transparent);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.cw-halls-classification-description {
    max-width: 820px;
    margin: 8px auto 12px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.52;
    text-align: center;
}

.cw-halls-classification-table-wrap {
    overflow-x: auto;
    background: color-mix(in srgb, var(--bg-primary) 62%, transparent);
    border: 1px solid var(--border-color);
    border-radius: 7px;
}

.cw-halls-classification-table {
    width: 100%;
    border-collapse: collapse;
}

.cw-halls-classification-table th,
.cw-halls-classification-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}

.cw-halls-classification-table thead th {
    color: var(--text-muted);
    background: color-mix(in srgb, var(--group-accent) 8%, transparent);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
}

.cw-halls-classification-table tbody tr:last-child th,
.cw-halls-classification-table tbody tr:last-child td {
    border-bottom: 0;
}

.cw-halls-classification-table tbody th {
    min-width: 170px;
    color: var(--text-heading);
    font-size: 0.86rem;
    font-weight: 750;
}

.cw-halls-classification-table tbody td {
    color: var(--text-secondary);
    font-size: 0.81rem;
    line-height: 1.4;
}

.cw-halls-classification-table tbody th a {
    color: var(--text-heading);
    text-decoration: none;
}

.cw-halls-classification-table tbody th a:hover {
    color: var(--group-accent);
    text-decoration: underline;
}

.cw-halls-classification-table tbody td strong {
    color: var(--group-accent);
    font-size: 0.96rem;
}

.cw-halls-classification-faq {
    margin-top: 14px;
}

.cw-halls-classification-faq-list {
    display: grid;
    gap: 7px;
    max-width: 860px;
    margin: 0 auto;
}

.cw-halls-classification-faq-list details {
    background: color-mix(in srgb, var(--bg-elevated) 90%, var(--cw-blue) 4%);
    border: 1px solid var(--border-color);
    border-radius: 7px;
}

.cw-halls-classification-faq-list details[open],
.cw-halls-classification-faq-list details:hover {
    background: color-mix(in srgb, var(--cw-blue) 7%, var(--bg-elevated));
}

.cw-halls-classification-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-heading);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.cw-halls-classification-faq-list summary::-webkit-details-marker {
    display: none;
}

.cw-halls-classification-faq-list summary .fas {
    flex: 0 0 auto;
    color: var(--cw-blue);
    transition: transform var(--transition-fast);
}

.cw-halls-classification-faq-list details[open] summary .fas {
    transform: rotate(180deg);
}

.cw-halls-classification-faq-list p {
    margin: 0;
    padding: 0 16px 16px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
}

.cw-halls-classification-scale {
    margin-left: 2px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

@media (max-width: 700px) {
    .cw-halls-classification-group {
        padding: 14px;
    }

    .cw-halls-classification-group-heading h3 {
        font-size: 1.05rem;
    }

    .cw-halls-classification-description {
        font-size: 0.8rem;
    }

    .cw-halls-classification-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .cw-halls-classification-table,
    .cw-halls-classification-table thead,
    .cw-halls-classification-table tbody,
    .cw-halls-classification-table tr,
    .cw-halls-classification-table th,
    .cw-halls-classification-table td {
        display: block;
    }

    .cw-halls-classification-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .cw-halls-classification-table tbody {
        display: grid;
        gap: 7px;
    }

    .cw-halls-classification-table tr {
        padding: 10px 11px;
        background: color-mix(in srgb, var(--bg-primary) 58%, transparent);
        border: 1px solid var(--border-color);
        border-left: 3px solid var(--group-accent);
        border-radius: 6px;
    }

    .cw-halls-classification-table tbody th,
    .cw-halls-classification-table tbody td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
        padding: 3px 0;
        border: 0;
        text-align: right;
    }

    .cw-halls-classification-table tbody th {
        display: block;
        padding-bottom: 6px;
        font-size: 0.9rem;
        text-align: left;
    }

    .cw-halls-classification-table tbody td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-align: left;
        text-transform: uppercase;
    }
}

@media (max-width: 420px) {
    .cw-halls-classification-group-heading {
        display: block;
    }

    .cw-halls-classification-count {
        display: inline-flex;
        margin-top: 8px;
    }
}
