/* ==========================================================================
   Category-only refinements

   The category archive inherits its layout, cards, filters, pagination, and
   sidebar from archive.css. This file contains only the small visual details
   that identify the active category.
   ========================================================================== */

.category-page {
    --category-accent: var(--color-primary);
}

.category-archive-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-archive-identity__icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--category-accent) 30%, var(--color-border));
    border-radius: 14px;
    background: color-mix(in srgb, var(--category-accent) 10%, var(--color-surface-raised));
    color: var(--category-accent);
    font-size: 20px;
}

.category-archive-identity__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.category-archive-identity__copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-archive-identity__copy .eyebrow i {
    color: var(--category-accent);
}

.category-archive-identity__copy strong {
    overflow: hidden;
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-archive-hero h1 {
    margin-top: 17px;
}

.category-archive-hero .archive-stat--accent strong i {
    color: var(--category-accent);
}

.category-archive-filter .category-filter-field select:disabled {
    cursor: default;
    opacity: 1;
}

.category-archive-filter .category-filter-field .archive-filter-field__input > i {
    color: var(--category-accent);
}

.category-archive-empty {
    border-style: solid;
    border-color: color-mix(in srgb, var(--category-accent) 20%, var(--color-border-strong));
}

.category-archive-empty .archive-empty__icon {
    background: color-mix(in srgb, var(--category-accent) 12%, transparent);
    color: var(--category-accent);
}

.category-archive-empty .button {
    margin-top: 17px;
}

@media (max-width: 640px) {
    .category-archive-identity__icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        border-radius: 12px;
        font-size: 18px;
    }

    .category-archive-identity__copy strong {
        font-size: 12px;
    }

    .category-archive-hero h1 {
        margin-top: 14px;
    }
}
