/* A single glass segmented control, scoped to the news archive. */
.news-archive-page #news-archive-filters {
    --filter-ink: #71788b;
    --filter-active: #5e46dc;
    --filter-panel: linear-gradient(140deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .38));
    --filter-line: rgba(255, 255, 255, .85);
    --filter-pill: linear-gradient(160deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .62));
    --filter-pill-line: rgba(255, 255, 255, .95);
    --filter-pill-shadow: 0 2px 7px rgba(44, 34, 87, .13), inset 0 1px 0 rgba(255, 255, 255, .9);
    display: block;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 4px !important;
    border: 1px solid var(--filter-line);
    border-radius: 999px;
    background: var(--filter-panel);
    box-shadow: 0 5px 20px rgba(47, 41, 87, .055), inset 0 1px 0 rgba(255, 255, 255, .6);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.news-archive-page #news-archive-filters::-webkit-scrollbar { display: none; }
body.dark-theme .news-archive-page #news-archive-filters {
    --filter-ink: #b0b8cc;
    --filter-active: #f6f4ff;
    --filter-panel: linear-gradient(140deg, rgba(46, 51, 70, .74), rgba(27, 31, 45, .48));
    --filter-line: rgba(231, 231, 255, .14);
    --filter-pill: linear-gradient(160deg, rgba(232, 229, 255, .21), rgba(196, 190, 247, .1));
    --filter-pill-line: rgba(255, 255, 255, .18);
    --filter-pill-shadow: 0 2px 8px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.news-archive-page #news-archive-filters .news-filter-track {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2px;
    width: max-content;
    min-width: 100%;
    isolation: isolate;
}
.news-archive-page #news-archive-filters .news-filter-btn {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    min-height: 40px;
    margin: 0;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--filter-ink);
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 160ms ease, background-color 160ms ease;
}
.news-archive-page #news-archive-filters .news-filter-btn:hover { color: var(--filter-active); background-color: rgba(127, 115, 210, .055); }
.news-archive-page #news-archive-filters .news-filter-btn.active {
    color: var(--filter-active);
    background: var(--filter-pill);
    border-color: var(--filter-pill-line);
    box-shadow: var(--filter-pill-shadow);
}
.news-archive-page #news-archive-filters.has-indicator .news-filter-btn.active {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}
.news-archive-page #news-archive-filters .news-filter-indicator {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 0;
    height: 100%;
    border: 1px solid var(--filter-pill-line);
    border-radius: 999px;
    background: var(--filter-pill);
    box-shadow: var(--filter-pill-shadow);
    opacity: 0;
    pointer-events: none;
}
.news-archive-page #news-archive-filters.has-indicator .news-filter-indicator { opacity: 1; }
.news-archive-page #news-archive-filters.indicator-ready .news-filter-indicator {
    transition: transform 260ms cubic-bezier(.22, 1, .36, 1), width 260ms cubic-bezier(.22, 1, .36, 1);
}
.news-archive-page #news-archive-filters .news-filter-btn:focus-visible {
    outline: 2px solid #8b73ff;
    outline-offset: -3px;
}
@media (max-width: 760px) {
    .news-archive-page #news-archive-filters { width: 100%; margin-bottom: 20px; }
    .news-archive-page #news-archive-filters .news-filter-btn { min-height: 44px; padding: 11px 13px; font-size: 12px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .news-archive-page #news-archive-filters { background: #f1eff8; }
    body.dark-theme .news-archive-page #news-archive-filters { background: #252939; }
}
@media (prefers-reduced-motion: reduce) {
    .news-archive-page #news-archive-filters .news-filter-btn,
    .news-archive-page #news-archive-filters.indicator-ready .news-filter-indicator { transition: none; }
}
