/* News list: category filter bar and category labels (markup: news/news_list_page.html) */

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--estc-border);
}

.news-filter {
    padding: 8px 16px;
    border: 1px solid var(--estc-line);
    background: #fff;
    font-family: var(--estc-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--estc-heading);
    transition: background-color .2s, color .2s, border-color .2s;
}

.news-filter:hover,
.news-filter:focus-visible {
    border-color: var(--estc-primary);
    color: var(--estc-primary);
}

.news-filter.is-active {
    background: var(--estc-primary);
    border-color: var(--estc-primary);
    color: #fff;
}

.news-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.news-label {
    display: inline-block;
    padding: 3px 10px;
    background: var(--estc-primary-light);
    font-family: var(--estc-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--estc-primary-dark);
    transition: background-color .2s, color .2s;
}

.news-label:hover,
.news-label:focus-visible {
    background: var(--estc-primary);
    color: #fff;
}

@media (max-width: 575px) {
    .news-filter {
        padding: 6px 12px;
        font-size: 14px;
    }
}
