/* Section headers — site-wide */

.card > .card-header:not(:has(.cfb-tab-nav)):not(:has(.form-select)):not(:has(.form-control)) {
    background: linear-gradient(180deg, #fbfcfd 0%, #f2f5f9 100%);
    border-bottom: 1px solid #dfe6ee;
    padding: 0.75rem 1rem;
}

.card > .card-header:not(:has(.cfb-tab-nav)) h5,
.card > .card-header:not(:has(.cfb-tab-nav)) .h5,
.card > .card-header:not(:has(.cfb-tab-nav)) h4,
.card > .card-header:not(:has(.cfb-tab-nav)) .h4 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #1a2332;
    line-height: 1.3;
}

.card > .card-header:not(:has(.cfb-tab-nav)) h5 > .bi,
.card > .card-header:not(:has(.cfb-tab-nav)) .h5 > .bi,
.card > .card-header:not(:has(.cfb-tab-nav)) h4 > .bi,
.card > .card-header:not(:has(.cfb-tab-nav)) .h4 > .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-right: 0.15rem !important;
    border-radius: 7px;
    background: #1e3a5f;
    color: #fff;
    font-size: 0.78rem;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(30, 58, 95, 0.18);
}

.card > .card-header:not(:has(.cfb-tab-nav)):not(:has(h5)):not(:has(h4)):not(:has(.form-select)) {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #1a2332;
    line-height: 1.3;
}

.card > .card-header:not(:has(.cfb-tab-nav)):not(:has(h5)):not(:has(h4)) > .bi:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-right: 0 !important;
    border-radius: 7px;
    background: #1e3a5f;
    color: #fff;
    font-size: 0.78rem;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(30, 58, 95, 0.18);
}

.cfb-section-meta {
    font-weight: 600;
    font-size: 0.78rem;
    color: #6b7785;
}

.cfb-section-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.55rem;
    border-radius: 999px;
    background: #e8eef5;
    color: #4a5968;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.cfb-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid #e3eaf2;
}

.cfb-section-head .cfb-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #1a2332;
    line-height: 1.25;
}

.cfb-section-head .cfb-section-title__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 7px;
    background: #1e3a5f;
    color: #fff;
    font-size: 0.78rem;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(30, 58, 95, 0.18);
}

.cfb-section-head--label .cfb-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5f6775;
}

.cfb-section-head--label .cfb-section-title__icon {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.68rem;
    border-radius: 6px;
    background: #5f6775;
    box-shadow: none;
}

.cfb-page-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a2332;
    margin: 0 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid #1e3a5f;
}

.cfb-page-section-title--muted {
    border-bottom-color: #6c757d;
}

.cfb-page-section-title--danger {
    border-bottom-color: #dc3545;
}

/* Page headers (top-level h1 on browse pages) */
h1.cfb-page-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e3eaf2;
    font-size: clamp(1.45rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1a2332;
    line-height: 1.15;
}

h1.cfb-page-header > .bi:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0 !important;
    border-radius: 10px;
    background: linear-gradient(145deg, #1e3a5f 0%, #2a5080 100%);
    color: #fff !important;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.2);
}

h1.cfb-page-header--gold > .bi:first-child {
    background: linear-gradient(145deg, #9a7209 0%, #c9940a 100%);
    box-shadow: 0 2px 6px rgba(154, 114, 9, 0.22);
}

h1.cfb-page-header--centered {
    justify-content: center;
    text-align: center;
}

.cfb-page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e3eaf2;
}

.cfb-page-header-row h1.cfb-page-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

@media (max-width: 575.98px) {
    h1.cfb-page-header > .bi:first-child {
        width: 2.15rem;
        height: 2.15rem;
        font-size: 0.95rem;
    }
}
