/* BLOCK: Content Anchors */

.block-content-anchors {
    margin-block: 0px !important;
    padding-block: 3.125rem !important;
    padding-inline: 2.1875rem 3.125rem;
    background-color: rgb(from var(--c-bg-lighter) r g b / .5);
}

.block-content-anchors .title {
    color: var(--c-text-dark);
    margin-bottom: 2.5rem;
}

.block-content-anchors .anchors-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.625rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgb(from var(--c-bg-light) r g b / .5);
}

.block-content-anchors .anchors-wrapper .snap {
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 1px;
    overflow: hidden;
}

.block-content-anchors .anchors-wrapper .snap::before {
    content: '';
    position: absolute;
    top: var(--snap-top, 0px);
    left: 0px;
    width: 100%;
    height: var(--snap-size, 2rem);
    background-color: var(--c-bg-dark);
    transform: translateY(-50%);
    transition: top 200ms ease-out;
}

.block-content-anchors .anchor {
    color: currentColor;
    text-decoration: none;
    opacity: .5;
    transition: opacity 200ms ease-out;
}

.block-content-anchors .anchor:is(:hover, :focus-visible) {
    opacity: .8;
}

.block-content-anchors .anchor.active {
    opacity: 1;
}