.glossary {
    padding-inline: 24px;
    position: relative;
}

.glossary .page-title {
    font-family: Obviously Wide Medium;
    font-size: 30px;
    line-height: 36.3px;
    color: var(--color-red);
    margin-top: 128px;
}

.glossary form.filters {
    position: sticky;
    top: -25px;
    background-color: var(--color-white);
    z-index: 2;
}

.glossary .search-input-container {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 63px;
    border-bottom: 1px solid var(--color-black);
    padding-bottom: 7px;
}

.glossary .filter-input {
    width: 100%;
    font-family: Obviously;
    font-size: 12px;
    line-height: 195.5%;
}

.glossary .search-icon {
    padding-bottom: 1px;
}

.glossary .search-icon img {
    width: 21px;
    height: 21px;
}

.app-header:has(.scroll-up) ~ .glossary .search-input-container {
    height: 145px;
}

.glossary .letters-filter-row {
    display: none;
}

.glossary .clear-and-summary-row {
    display: flex;
    margin-top: 10px;
    justify-content: space-between;
    align-items: center;
}

.glossary .clear-and-summary-row.hidden {
    display: none;
}

.glossary .clear-and-summary-row .clear-filters {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.glossary .clear-and-summary-row .text,
.glossary .clear-and-summary-row .count {
    font-family: Obviously Light, sans-serif;
    font-size: 12px;
    line-height: 19px;
    color: black;
}

.glossary .clear-and-summary-row .suffix {
    display: none;
    font-family: Obviously Light, sans-serif;
}

.glossary .clear-and-summary-row .clear-filters img {
    display: block;
    width: 15px;
    height: 15px;
}

.glossary .mobile-letter-in-view {
    color: var(--color-red);
    font-family: Obviously;
    font-size: 34px;
    font-style: italic;
    line-height: normal;
    height: 55px;
    display: flex;
    align-items: center;
}

.glossary .mobile-letter-in-view.hidden {
    display: none;
}

.glossary:has(.empty-state) .mobile-letter-in-view {
    display: none;
}

@media (min-width: 768px) {
    .glossary .page-title {
        font-size: 80px;
        line-height: 121%;
        margin-top: 139px;
    }

    .glossary .search-input-container {
        padding-bottom: 6px;
        height: 99px;
    }

    .app-header:has(.scroll-up) ~ .glossary .search-input-container {
        height: 160px;
    }

    .glossary .filter-input {
        font-size: 20px;
        line-height: 159.5%;
    }

    .glossary .search-icon {
        padding-bottom: 3px;
    }

    .glossary form.filters {
        top: -20px;
    }

    .glossary .letters-filter-row {
        display: block;
        margin-top: 14px;
        margin-bottom: 15px;
    }

    .glossary .letters-filter-row .letters {
        display: flex;
        justify-content: space-between;
        z-index: 1;
    }

    .glossary .letters-filter-row .letters .letter {
        display: flex;
        justify-content: center;
        color: var(--color-red);
        width: 20px;
        font-size: 20px;
        font-family: Obviously;
        line-height: 31.9px;
        text-transform: capitalize;
        cursor: pointer;
    }

    .glossary .letters-filter-row .letters .letter.selected {
        font-family: Obviously Bold;
    }

    .glossary .clear-and-summary-row {
        margin-bottom: 7px;
    }

    .glossary .mobile-letter-in-view {
        font-size: 70px;
        height: 130px;
        margin-bottom: 1px;
    }
}

@media (min-width: 1194px) {
    .glossary {
        padding-inline: 60px;
    }

    .glossary .page-title {
        font-size: 100px;
        margin-top: 248px;
        margin-bottom: 120px;
    }

    .glossary .search-input-container {
        height: unset;
    }

    .app-header:has(.scroll-up) ~ .glossary .search-input-container {
        height: unset;
    }

    .glossary form.filters {
        position: static;
    }

    .glossary .search-icon {
        padding-bottom: 1px;
    }
    .glossary .search-icon img {
        width: 25px;
        height: 25px;
    }

    .glossary .letters-filter-row {
        margin-top: 31px;
        margin-bottom: 16px;
    }

    .glossary .letters-filter-row .letters .letter {
        width: 20px;
        font-size: 20px;
        font-family: Obviously;
        line-height: 31.9px;
    }

    .glossary .clear-and-summary-row {
        visibility: visible;
    }

    .glossary .clear-and-summary-row.hidden {
        display: flex;
        visibility: hidden;
    }

    .glossary .clear-and-summary-row .text,
    .glossary .clear-and-summary-row .count {
        font-size: 14px;
        line-height: 159.5%;
    }

    .glossary .clear-and-summary-row {
        margin-top: unset;
        margin-bottom: 47px;
    }
}

@media (min-width: 1500px) {
    .glossary {
        padding-inline: 121px;
    }

    .glossary .page-title {
        margin-bottom: 85px;
    }

    .glossary .search-icon img {
        width: 27px;
        height: 27px;
    }
}

@media (min-width: 1920px) {
    .glossary {
        max-width: 1920px;
        margin-inline: auto;
    }
}
