.article-nav {
    --an-muted:  #666666;
    --an-navy:   #0e2c47;

    background: #fff;
    border-bottom: 1px solid rgba(14, 44, 71, 0.1);
}

.article-nav__list {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0 var(--ap-edge, 20px);
    list-style: none;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.article-nav__list::-webkit-scrollbar {
    display: none;
}

.article-nav__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.article-nav__link {
    display: block;
    padding: 14px 16px;
    white-space: nowrap;
    font-family: Inter, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--an-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.article-nav__link:hover,
.article-nav__link:focus-visible {
    color: var(--an-navy);
}
.article-nav__link.is-active,
.article-nav__link[aria-current='true'] {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.ap-body__main :where(h2, h3, [id]) {
    scroll-margin-top: calc(var(--blogHeaderandTopBarHeight, 0px) + 64px);
}

@media (min-width: 1024px) {
    .article-nav__list {
        justify-content: safe center;
        padding: 0 var(--ap-edge, 40px);
    }
    .article-nav__link {
        padding: 14px 18px;
        font-size: 1.25rem;
        font-weight: 500;
        line-height: 1.7;
        color: #6e757c;
        border-bottom: none;
    }
}
