.toc-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
}

.toc--off {
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.toc-header__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.toc-header__button {
    display: grid;
    align-items: center;
    gap: 10px;
    grid-template-columns: auto 1fr auto;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    font-size: 16px;
    line-height: 1.2;
    color: #111827;
}

.toc-header__caret {
    margin-left: auto;
}

.toc-header__menu {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 6px;
    max-height: 50vh;
    overflow: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.toc-header__menu[hidden] {
    display: none !important;
}

.toc-header__num {
    background: #222;
    color: #ddd;
    padding: 2px 8px;
    border-radius: 16px;
}

.toc-header__item {
    display: block;
    width: calc(100% / 3);
    padding: 10px 14px;
    text-decoration: none;
    text-align: center;
    color: #111827;
    font-size: 14px;
    outline: none;
}

.toc-header__item[aria-current="true"] {
    background: #eee;
    font-weight: 600;
    box-shadow: inset 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
}

.toc-header__item:hover {
    background: #eee;
}

.toc-header__item:focus {
    box-shadow: inset 0 0 0 2px rgba(56, 83, 138, .25);
}

@media (max-width:640px) {
    .toc-header {
        border-radius: 14px;
        padding: 6px;
        margin: 8px 10px 16px;
    }
}