.case-anchor-nav {
    --anchor-accent: #c9f06f;
    --anchor-bg: rgba(246, 248, 243, .96);
    --anchor-ink: #173f36;
    --anchor-line: rgba(23, 63, 54, .14);
    --anchor-muted: #4b5f5a;
    background: var(--anchor-bg);
    border-bottom: 1px solid var(--anchor-line);
    border-top: 1px solid var(--anchor-line);
    box-shadow: 0 12px 30px rgba(15, 36, 35, .08);
    color: var(--anchor-ink);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.del-case,
.wbd-case {
    display: block;
    overflow: visible;
}

.wbd-case .case-anchor-nav {
    --anchor-accent: #9274ff;
    --anchor-bg: rgba(255, 255, 255, .96);
    --anchor-ink: #171b2a;
    --anchor-line: rgba(23, 27, 42, .14);
    --anchor-muted: #4f5567;
}

.case-anchor-nav-inner {
    align-items: center;
    display: flex;
    gap: 28px;
    margin: 0 auto;
    max-width: 1180px;
    min-height: 64px;
    padding: 0 28px;
}

.case-anchor-nav-label {
    color: var(--anchor-ink);
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

.case-anchor-links {
    align-items: stretch;
    display: flex;
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-inline: 12px;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.case-anchor-links::-webkit-scrollbar {
    display: none;
}

.case-anchor-links a {
    align-items: center;
    border-bottom: 3px solid transparent;
    color: var(--anchor-muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    min-height: 64px;
    padding: 2px 12px 0;
    position: relative;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}

.case-anchor-links a:hover {
    background: rgba(23, 63, 54, .06);
    background: color-mix(in srgb, var(--anchor-accent) 20%, transparent);
    color: var(--anchor-ink);
}

.case-anchor-links a.is-active {
    border-bottom-color: var(--anchor-ink);
    color: var(--anchor-ink);
}

.case-anchor-links a.is-active::before {
    background: var(--anchor-accent);
    border-radius: 999px;
    content: "";
    height: 7px;
    margin-right: 8px;
    width: 7px;
}

.case-anchor-links a:focus-visible {
    border-radius: 4px;
    box-shadow: inset 0 0 0 3px var(--anchor-ink);
    outline: 3px solid var(--anchor-accent);
    outline-offset: -3px;
}

[data-case-anchor-target] {
    scroll-margin-top: 84px;
}

@media (max-width: 767px) {
    .case-anchor-nav-inner {
        gap: 0;
        min-height: 56px;
        padding: 0 16px;
    }

    .case-anchor-nav-label {
        border-right: 1px solid var(--anchor-line);
        margin-right: 4px;
        padding-right: 14px;
    }

    .case-anchor-links a {
        font-size: 12px;
        min-height: 56px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 520px) {
    .case-anchor-nav-label {
        border: 0;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .case-anchor-links a {
        transition: none;
    }
}
