/* Sticky section navigation on investor profiles, sits right under the (sticky) site header */

:root {
    /* bottom edge of the nav bar, kept up to date by profile_toc.js; used to stop anchors under the bar */
    --pel-toc-bottom: 140px;
}

.pel-toc {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    /* over page content (e.g. the "Upgrade to see contacts" button, z-index 15), under the header (1000) */
    z-index: 999;
    background: #ecf6ff;
    border-bottom: 1px solid #b3dcff;
}

/* the header only gets its z-index 1000 once it turns sticky; before that the burger menu (z-index 11)
   would open under the nav, so keep the header above the nav at the top of the page too */
.header:not(.sticky) {
    position: relative;
    z-index: 1000;
}

.pel-toc-space {
    height: 55px;
}

.pel-toc__row {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1310px;
    margin: 0 auto;
    padding: 10px 15px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pel-toc__row::-webkit-scrollbar {
    display: none;
}

.pel-toc__top {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 6px;
    padding: 0 14px 0 0;
    border: 0;
    border-right: 1px solid #b3dcff;
    background: none;
    font: 700 14px/1 Nunito, sans-serif;
    color: #000;
    cursor: pointer;
    white-space: nowrap;
}

.pel-toc__top img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
}

.pel-toc__link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #b3dcff;
    border-radius: 999px;
    background: #fff;
    font: 600 14px/1 Nunito, sans-serif;
    color: #000;
    white-space: nowrap;
    text-decoration: none !important;
    transition: border-color .15s, color .15s, background .15s;
}

.pel-toc__link:hover {
    border-color: #1874c1;
    color: #1874c1;
}

.pel-toc__link.is-active {
    background: #1874c1;
    border-color: #1874c1;
    color: #fff;
}

.pel-toc__link.is-locked {
    background: rgba(255, 255, 255, .55);
    color: #6a6a6a;
}

.pel-toc__link.is-locked.is-active {
    background: #fff;
    border-color: #1874c1;
    color: #1874c1;
}

.pel-toc__link svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

[data-toc-section] {
    scroll-margin-top: var(--pel-toc-bottom);
}

@media (max-width: 575px) {
    .pel-toc__row {
        padding: 8px 15px;
    }

    .pel-toc__top span {
        display: none;
    }

    .pel-toc__top {
        padding-right: 10px;
    }
}
