.nts-page-index {
    display: grid;
    grid-template-columns: minmax(200px, 25%) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 80px);
    align-items: start;
    width: 100%;
}

.nts-page-index__sidebar,
.nts-page-index__content {
    min-width: 0;
}

.nts-page-index__nav {
    position: sticky;
    top: 110px;
}

.nts-page-index__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--nts-color-primary, #0058a2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.nts-page-index__list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 0;
}

.nts-page-index__item {
    padding: 0;
    border: 0;
    background: transparent;
}

.nts-page-index__item a {
    display: block;
    padding: 12px 16px;
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    border-left: 3px solid transparent;
    transition: background-color .2s, border-color .2s, color .2s;
}

.nts-page-index__item a:hover,
.nts-page-index__item.active a {
    color: var(--nts-color-primary, #0058a2);
    background: color-mix(
        in srgb,
        var(--nts-color-primary, #0058a2) 8%,
        transparent
    );
    border-left-color: var(--nts-color-primary, #0058a2);
}

.nts-page-index__item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.nts-page-index__content [id] {
    scroll-margin-top: 120px;
}

@media (max-width: 991.98px) {
    .nts-page-index {
        display: block;
    }

    .nts-page-index__nav {
        position: static;
        margin-bottom: 32px;
    }

    .nts-page-index__list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .nts-page-index__item {
        flex: 0 0 auto;
    }

    .nts-page-index__item a {
        border-left: 0;
        border-bottom: 3px solid transparent;
        padding: 10px 12px;
    }

    .nts-page-index__item.active a {
        border-left-color: transparent;
        border-bottom-color: var(--nts-color-primary, #0058a2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nts-page-index__item a {
        transition: none;
    }
}