/* Filter button in nav */

#sp_filter_btn {
    color: black;
    vertical-align: middle;
    cursor: pointer;
}

/* Filter panel overlay */

#sp_filter_panel {
    display: none;
    position: fixed;
    top: 3.5rem;
    left: 2rem;
    z-index: 100;
    padding: 1rem 1.5rem 1.25rem 0;
    line-height: 1.7rem;
}

#sp_filter_panel.sp_filter_open {
    display: block;
}

/* Filter rows */

.sp_filter_row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    margin-bottom: 0.21rem;
}

/* Individual filter tags */

.sp_filter_tag {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 9pt;
    cursor: pointer;
    color: black;
    text-decoration: none;
}

.sp_filter_tag:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.sp_filter_tag.sp_filter_active {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

/* Mobile */

@media only screen and (max-width: 600px) {
    #sp_filter_panel {
        position: static;
        padding: 0;
        line-height: normal;
    }

    .sp_filter_row {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .sp_filter_tag {
        font-size: 15pt;
        color: black;
        padding: 0;
    }

    .sp_dark .sp_filter_tag {
        color: white !important;
    }
}
