.category-directory .model-tile__top,
.category-types-grid .model-tile__top {
    align-items: center;
}

.category-tile__wordmark {
    -webkit-line-clamp: 1;
    font-size: 1.15rem;
    letter-spacing: .035em;
    line-height: 1.25;
}

.category-page {
    color: #172033;
}

.category-hero {
    background:
        radial-gradient(circle at 91% 8%, rgba(19, 184, 176, .12), transparent 20rem),
        radial-gradient(circle at 5% 95%, rgba(22, 134, 217, .1), transparent 20rem),
        #f5f8fc;
    border-bottom: 1px solid #e3e9f1;
    padding-block: clamp(1.8rem, 4vw, 3rem);
}

.category-hero__shell {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
}

.category-hero__copy {
    min-width: 0;
}

.category-hero__context {
    color: #075789;
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .05em;
    margin-bottom: .9rem;
    text-decoration: none;
    text-transform: uppercase;
}

.category-hero__context:hover {
    text-decoration: underline;
    text-underline-offset: .2rem;
}

.category-page h1.category-hero__title {
    font-size: clamp(2.1rem, 4.5vw, 3.5rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.1;
    margin: 0 0 1rem;
    max-width: 24ch;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.category-hero__intro {
    color: #46556b;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
    max-width: 48rem;
    overflow-wrap: anywhere;
}

.category-hero__editorial {
    color: #607078;
    font-size: .9rem;
    line-height: 1.65;
    margin: .85rem 0 0;
    max-width: 48rem;
    overflow-wrap: anywhere;
}

.category-resources {
    display: grid;
    gap: .7rem;
    min-width: 0;
}

.category-resource {
    align-items: center;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: .75rem;
    color: #172033;
    display: grid;
    gap: .85rem;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    padding: .85rem 1rem;
    text-decoration: none;
}

.category-resource:hover {
    background: #fbfdff;
    border-color: #9fc6df;
    color: #075789;
}

.category-resource__icon {
    align-items: center;
    background: #edf5fc;
    border-radius: .55rem;
    color: #0b6fba;
    display: flex;
    height: 2.5rem;
    justify-content: center;
}

.category-resource__count {
    display: block;
    font-size: 1.2rem;
    font-weight: 850;
    line-height: 1.15;
}

.category-resource__label {
    color: #64748b;
    display: block;
    font-size: .78rem;
    margin-top: .25rem;
    overflow-wrap: anywhere;
}

.category-resource__label--primary {
    color: #172033;
    font-size: .9rem;
    line-height: 1.4;
    margin-top: 0;
}

.category-resource > i {
    color: #0b6fba;
    font-size: .8rem;
}

.category-section {
    padding-block: clamp(1.8rem, 4vw, 3rem);
    scroll-margin-top: 6rem;
}

.category-section--white {
    background: #fff;
    border-top: 1px solid #e7edf2;
}

.category-section__heading {
    margin-bottom: 1.4rem;
}

.category-section__heading h2 {
    color: #172033;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    line-height: 1.25;
    margin-bottom: .65rem;
    overflow-wrap: anywhere;
}

.category-section__heading p {
    color: #607078;
    font-size: .93rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 52rem;
}

.category-section__count {
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    color: #3e566c;
    flex: 0 0 auto;
    font-size: .8rem;
    font-weight: 700;
    padding: .55rem .8rem;
}

.category-parts-search {
    margin-bottom: 1.5rem;
}

.category-parts-grid .public-card {
    border-color: #d8e2e5;
    border-radius: 8px;
    box-shadow: none;
    min-width: 0;
    overflow-wrap: anywhere;
}

.category-pagination-summary {
    color: #607078;
    display: flex;
    flex-wrap: wrap;
    font-size: .8rem;
    gap: .4rem 1rem;
    justify-content: space-between;
    margin-top: 1.1rem;
}

.category-pagination-summary p {
    margin: 0;
}

.category-empty {
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    padding-block: 2.5rem;
}

.category-back-link {
    padding-block: 1.2rem 2rem;
}

.category-back-link a {
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.category-back-link a:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .category-hero__shell {
        gap: 1.25rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .category-resources {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-resource {
        gap: .65rem;
        grid-template-columns: 2.2rem minmax(0, 1fr);
        padding: .8rem;
    }

    .category-resource__icon {
        height: 2.2rem;
    }

    .category-resource > i {
        display: none;
    }

    .category-section .model-library__results-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 359.98px) {
    .category-resources {
        grid-template-columns: minmax(0, 1fr);
    }
}
