.anchor-link-list {
    --color-bg: #fff;
    --color-text: #222;
    --color-border: #c6c6c6;
    --color-border-active: #0089e3;
    --color-dropdown-border: #f5f5f5;
    background-color: var(--color-bg);
    padding-top: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 1
}

.anchor-link-list--hidden {
    display: none
}

@media print,screen and (min-width: 90em) {
    .anchor-link-list__dropdown-container {
        width: 50%
    }
}

.anchor-link-list__dropdown-current-section-wrapper {
    align-items: center;
    border-bottom: 0.25rem solid var(--color-border-active);
    display: flex;
    flex-direction: row;
    justify-content: space-between
}

.anchor-link-list__dropdown-icon {
    background-color: var(--color-text);
    display: inline-block;
    height: 1.5rem;
    mask-image: url('data:image/svg+xml,%3Csvg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M17 14L12 9L7 14" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
    mask-size: cover;
    transform: rotate(180deg);
    transition: transform .3s ease;
    width: 1.5rem
}

.anchor-link-list__dropdown-icon--expanded {
    transform: rotate(0deg)
}

.anchor-link-list__current-section {
    display: inline-block;
    width: 100%
}

.anchor-link-list__current-section--desktop {
    display: none
}

.anchor-link-list__link {
    border-bottom: 0.25rem solid rgba(0,0,0,0);
    margin-left: 1.25rem;
    overflow: hidden;
    padding: 0.5rem 0;
    text-decoration: none;
    white-space: nowrap
}

    .anchor-link-list__link:hover {
        border-bottom: 0.25rem solid var(--color-border-active)
    }

@media print,screen and (min-width: 48em) {
    .anchor-link-list__link {
        margin-left: 1.25rem;
        overflow: hidden;
        padding: 1rem 0
    }

    .anchor-link-list__list-item:first-child .anchor-link-list__link {
        margin-left: 0
    }
}

.anchor-link-list__link--active {
    border-bottom: 0.25rem solid var(--color-border-active);
    font-weight: 600
}

.anchor-link-list__list {
    display: flex;
    flex-direction: row;
    max-height: 100vh;
    overflow: auto;
    scrollbar-width: none
}

    .anchor-link-list__list::-webkit-scrollbar {
        display: none
    }

.anchor-link-list__list--mobile {
    display: none
}

.anchor-link-list__list--mobile-expanded {
    background-color: #f5f5f5;
    box-shadow: 0 0.5rem 1.8125rem 0 rgba(3,6,72,.0517);
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin-top: 0.0625rem;
    position: absolute;
    scrollbar-width: none;
    width: 100%;
    z-index: 1
}

    .anchor-link-list__list--mobile-expanded::-webkit-scrollbar {
        display: none
    }

@media print,screen and (min-width: 90em) {
    .anchor-link-list__list--mobile-expanded {
        max-height: unset;
        width: 50%
    }
}

.anchor-link-list__list--mobile-expanded .anchor-link-list__link {
    max-width: unset;
    text-wrap: auto
}

@media print,screen and (min-width: 90em) {
    .anchor-link-list__list {
        max-height: 70vh;
        overflow-y: auto
    }
}

.anchor-link-list__list-item {
    border-bottom: 0.0625rem solid var(--color-dropdown-border)
}

.anchor-link-list__section-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%
}

@media print,screen and (min-width: 90em) {
    .anchor-link-list__section-title {
        max-width: 100%
    }
}
