/* ---------------- problem filter screen---------------- */
.page-filter-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1.page-filter-title {
    display: block;
    margin: 0 0 20px 0;

    text-align: center;
    color: var(--text-primary);
    font-size: var(--h1-pref);
}

h2.page-filter-subtitle {
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 var(--lg) 0;

    font-size: var(--h2-pref);
}

.card-filter {
    background: var(--paper-bg);
    border: 1px solid var(--footer-border);
    border-radius: var(--lg);
    padding: var(--lg);
    color: var(--card-text-color);

    width: 60vw;
    max-width: 1100px;

    @media screen and (max-width: 650px) {
        width: 100%;
    }
}

p.brand {
    color: var(--text-primary);
    /* text-muted-foreground */
    text-align: center;
    margin-bottom: 2.5rem;
    /* mb-10 = 40px */
    max-width: 32rem;
    /* max-w-lg = 512px */
    margin-left: auto;
    margin-right: auto;
}

/* ---------- filter chips ---------- */

#chip-osn {
    display: none;
}

#chip-aime {
    display: none;
}

.filter-group {
    margin-bottom: var(--lg);
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0 0 var(--sm) 0;
}

.filter-year {
    display: flex;
    gap: 50px;

    @media screen and (max-width: 650px) {
        flex-direction: column;
        gap: 20px;
    }
}

.filter-year-unit{
    display: flex;
    gap:10px;
    align-items: center;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--xs);
}

.chip-column {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: var(--xs);
    list-style-position: inside;
    /* Forces numbers inside the content box */
    padding-left: 0;
}


.chip {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    padding: var(--sm) var(--md);
    border-radius: var(--r-pill);
    border: 1px solid var(--card-border);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.chip:hover {
    transform: translateY(-2px) scale(1.03);
}

.chip:active {
    transform: translateY(0) scale(0.98);
}

.chip-selected {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    padding: var(--sm) var(--md);
    border-radius: var(--r-pill);
    border: 1px solid var(--card-border);
    background: var(--btn-primary);
    color: var(--text-on-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
    width: 15vw;

    @media screen and (max-width: 650px) {
        width: 50vw;
    }
}

.chip.selected {
    background: var(--card-bg-selected);
    border-color: var(--card-border-selected);
    color: var(--card-text-color-selected);
    font-weight: 600;
}

.custom-select {
    position: relative;
    width: 200px;
    font-size: 14px;
}

.custom-select select {
    display: none;
}

.select-selected {
    background-color: var(--btn-primary);
    font-family: var(--font-primary);
    font-weight: 600;
    padding: var(--sm) var(--md);
    border-radius: var(--r-pill);
    border: 1px solid var(--card-border);
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #fff transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent #fff transparent;
    top: 7px;
}

/* style the items (options), including the selected item: */
.select-items div,
.select-selected {
    color: #ffffff;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
}

/* style the items (options), including the selected item: */
.select-items div,
.select-selected {
    color: #ffffff;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
}

/*style items (options):*/
.select-items {
    position: absolute;
    background-color: var(--btn-primary);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;

    display: flex;
    flex-direction: column;
    max-height: 180px;
    overflow-y: scroll;
}

/* Hide the items when the select box is closed: */
.select-hide {
    display: none;
}

.select-items div:hover,
.same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}