.nsc-anchor-heading {
    position: relative;
    scroll-margin-top: 100px;
}

.nsc-anchor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 4px;
    color: #A8B0B5;
    opacity: 0;
    border-radius: 6px;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
    vertical-align: middle;
    position: relative;
}

.nsc-anchor-heading:hover .nsc-anchor-link,
.nsc-anchor-link:focus {
    opacity: 1;
}

.nsc-anchor-link:hover {
    color: #6F787E;
    background: #F0F3F3;
}

.nsc-anchor-link::before {
    content: 'Copy link to heading';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333F48;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
}

.nsc-anchor-link:hover::before {
    opacity: 1;
}

.nsc-anchor-link--copied::before {
    content: 'Copied!';
    opacity: 1;
}
