/*
 * News category bar
 * One horizontal row on every viewport. On narrow screens the row scrolls
 * with snap points instead of wrapping into 3-4 lines and pushing the first
 * article below the fold.
 */
.news-category-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.news-category-bar::-webkit-scrollbar {
    display: none;
}

.news-category-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
    .news-category-bar {
        scroll-behavior: auto;
    }
}

/*
 * Local sub-categories: the major Canadian cities.
 * A compact, horizontally scrollable row that sits under the category bar.
 */
.news-city-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.news-city-bar::-webkit-scrollbar {
    display: none;
}

.news-city-label {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.45;
    margin-right: 0.25rem;
}

.news-city-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    font-size: 11px;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--bc) / 0.2);
    transition: all 0.15s ease;
}

.news-city-chip:hover {
    border-color: hsl(var(--p) / 0.5);
}
