.news-filter-panel,
.work-filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 480px;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.news-filter-panel:not(.is-open),
.work-filter-panel:not(.is-open) {
    pointer-events: none;
}

.news-filter-panel.is-open,
.work-filter-panel.is-open {
    pointer-events: auto;
    transform: translateX(0);
}

.news-filter-overlay,
.work-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    display: none;
}

.news-filter-overlay.is-open,
.work-filter-overlay.is-open {
    display: block;
}

body.news-filter-open .site-header,
body.work-filter-open .site-header {
    pointer-events: none;
}

body.news-filter-open .site-header__inner,
body.news-filter-open .site-header__inner *,
body.work-filter-open .site-header__inner,
body.work-filter-open .site-header__inner * {
    pointer-events: auto;
}

.news-filter-btn-group,
.work-filter-btn-group {
    display: inline-flex;
    align-items: stretch;
}

.news-filter-btn,
.work-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 8px 24px 8px 16px;
    border: 1.25px solid var(--color-flare);
    border-radius: 56px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-flare);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.news-filter-btn__icon,
.work-filter-btn__icon {
    display: flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.news-filter-btn__count,
.work-filter-btn__count {
    margin-left: 4px;
}

.news-filter-btn-group:has(.news-filter-btn-clear:not([hidden])) .news-filter-btn--bar,
.work-filter-btn-group:has(.work-filter-btn-clear:not([hidden])) .work-filter-btn--bar {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.news-filter-btn-clear,
.work-filter-btn-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    margin-left: -1.25px;
    border: 1.25px solid var(--color-flare);
    border-radius: 0 56px 56px 0;
    color: var(--color-flare);
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.news-filter-btn-clear[hidden],
.work-filter-btn-clear[hidden] {
    display: none;
}

.news-filter-btn:hover,
.news-filter-btn:focus-visible,
.news-filter-btn-clear:hover,
.news-filter-btn-clear:focus-visible,
.work-filter-btn:hover,
.work-filter-btn:focus-visible,
.work-filter-btn-clear:hover,
.work-filter-btn-clear:focus-visible {
    position: relative;
    z-index: 1;
}
