uix-glossary-page {
    .glossary-container {
        color: var(--color-text);
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    
        & .no-results {
            text-align: center;
            font-size: larger;
            padding: 40px;
            color: var(--color-text-secondary);
            display: none;
            width: 100%;
        }
    
        & .header {
            margin-top: 50px;
    
            & h1 {
                font-size: 72px;
                line-height: 1;
                margin-bottom: 20px;
                max-width: 600px;
    
                @media screen and (max-width: 700px) {
                    font-size: 40px;
                }
            }
    
            & p {
                max-width: 700px;
                font-size: large;
                line-height: 1;
                margin-bottom: 20px;
                color: var(--unyt-text-secondary);
            }
        }
    
        & .controls {
            & input[type="search"] {
                position: relative;
                width: 100%;
                height: 40px;
                padding: 26px 14px;
                box-sizing: border-box;
                border: 1px solid;
                border-radius: 8px;
                border-color: var(--unyt-border-primary);
                background: none;
                font-size: large;
    
                @media screen and (max-width: 1000px) {
                    padding-top: 10px;
                    padding-bottom: 10px;
                }
            }
        }
    
        & .topic-filters {
            margin: 20px 0;
    
            & .filter-cards {
                display: flex;
                justify-content: start;
                align-items: center;
                margin: auto;
                margin-top: 30px;
                margin-bottom: 30px;
                gap: 12px;
                width: 100%;
                flex-wrap: wrap;
    
                @media screen and (max-width: 1000px) {
                    justify-content: center;
                }
    
                & > uix-info-card {
                    cursor: pointer;
                    padding: 20px;
                    display: flex;
                    flex: 1;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                    border-radius: 6px;
                    background-color: var(--unyt-bg-secondary);
                    opacity: 0.4;
                    &:has(.info-card.active) {
                        opacity: 1;
                    }
                    & h1 {
                        font-size: 30px;
                        margin-bottom: 10px;
                        margin-top: 0;
                    }
                    & > div {
                        font-size: 15px;
                    }
                }
    
                uix-info-card {
                    width: 25%;
                }
            }
        }
    }
    
    #glossary-list {
        max-width: 1200px;
        margin: auto;
        width: calc(100% - 80px);
        padding-top: 50px;
    
        & section {
            position: relative;
            scroll-margin-top: 20px;
            &.glossary-item {
                grid-gap: 20px;
                display: flex;
                padding-bottom: 80px;
                position: relative;
    
                & .unyt-tag.special {
                    color: var(--color-text);
                    background-color: var(--color-background);
                }
    
                & .content {
                    padding-left: 80px;
                    margin-top: 10px;
                }
                &::after {
                    display: block;
                    content: "";
                    position: absolute;
                    left: 30px;
                    height: calc(100% - 60px);
                    width: 3px;
                    background: var(--unyt-bg-secondary);
                    z-index: -2;
                    margin-top: 62px;
                }
                &::before {
                    display: block;
                    content: "";
                    position: absolute;
                    width: calc(100% - 90px);
                    left: 90px;
                    bottom: 40px;
                    opacity: 0.2;
                    border-bottom: 3px dashed var(--unyt-bg-secondary);
                }
                &.last-visible::after {
                    display: none !important;
                }
    
                &.last-visible::before {
                    display: none !important;
                }
    
                &:not([data-no-icon])::after {
                    height: calc(100% - 60px);
                    margin-top: 62px;
                }
    
                &[data-no-icon]::after {
                    height: 100%;
                    margin-top: 0;
                    top: 0;
                }
    
                &.hidden {
                    margin-bottom: -20px;
                    z-index: -1 !important;
                    padding-bottom: 0px;
                    
    
                    &::before,
                    &::after {
                        display: none;
                    }
    
                    & > div {
                        display: none;
                    }
    
                    & > a > div:last-of-type {
                        &::before {
                            display: none !important;
                        }
                        & h1, h3 {
                            display: none;
                        }
                    }
                }
    
                & a {
                    color: var(--color-text);
    
                    & div:last-of-type {
                        & h1 {
                            font-weight: 600;
                        }
                        & h3 {
                            margin-top: 5px;
                        }
                    }
    
                    & ::before {
                        display: none;
                    }
                    & h1 {
                        color: var(--color-accent);
                    }
                    & h3 {
                        color: var(--color-text-secondary);
                    }
                }
                @media screen and (max-width: 1400px) {
                    flex-direction: column;
                    grid-gap: 0 !important;
                    & > a > div:last-of-type {
                        align-self: center !important;
                        &::before {
                            display: none;
                        }
                    }
    
                    & h1 {
                        font-size: xx-large !important;
                    }
    
                    &::after {
                        border-left: 2px solid var(--text-color);
                        content: "";
                        position: absolute;
                        left: 32px;
                        height: 100%;
                        margin-top: 68px;
                        z-index: -2;
                    }
    
                    & > div:last-of-type {
                        margin-left: 80px !important;
                    }
                }
    
                & > div, & > a {
                    flex: 1;
                }
                & > a {
                    text-decoration: none !important;
                    display: flex;
                    align-items: flex-start;
                    & > div:first-of-type {
                        width: 60px;
                        flex-shrink: 0;
                        height: 60px;
                        position: relative;
                        border-radius: 100%;
                        opacity: 0;
    
                        background-color: var(--unyt-bg-secondary);
                        margin: 2px;
                        box-shadow: none;
                        border: 0;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        margin-right: 20px;
    
                        &[data-visible] {
                            opacity: 1;
                        }
    
                        & > span {
                            font-size: 38px;
                            color: var(--text_accent_1);
                        }
    
                        & > img {
                            max-width: calc(100% - 20px);
                            max-height: calc(100% - 20px);
                        }
                    }
                    & > div:last-of-type {
                        display: flex;
                        position: relative;
                        flex-direction: column;
                        align-self: stretch;
    
                        & > h1 {
                            font-weight: normal;
                            font-size: 40px;
                            margin: 0;
                            line-height: 1;
                        }
                        & > h3 {
                            font-weight: normal;
                            color: var(--);
                            font-size: large;
                        }
                    }
                }
            }
        }
    }
    
    @media (max-width: 1400px) {
        .glossary-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
        }
    
        .glossary-container .header h1 {
            font-size: 2.5rem;
        }
    
        .glossary-item {
            flex-direction: column;
            gap: 20px;
        }
    
        .glossary-item::after {
            left: 30px;
            width: calc(100% - 60px);
        }
    }
    
    @media (max-width: 600px) {
        #glossary-list {
            width: 100%;
        }
        .glossary-container .header h1 {
            font-size: 2rem;
        }
    
        .glossary-item .title-container h2 {
            font-size: 1.8rem;
        }
    
        .glossary-item .title-container h3 {
            font-size: 1.2rem;
        }
    }
    
    uix-markdown-wrapper {
        --text: var(--unyt-text-secondary) !important;
    }
    
}

