.bw-toc {
    box-sizing: border-box;
    clear: both;
    width: 100%;
    margin: 24px 0;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: #f7f7f7;
    color: #202124;
    font-size: 16px;
}

.bw-toc__summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    line-height: 1.35;
}

.bw-toc__summary::-webkit-details-marker {
    display: none;
}

.bw-toc__summary::marker {
    display: none;
    content: '';
}

.bw-toc__state {
    font-size: 16px;
    font-weight: 400;
}

.bw-toc__state--show,
.bw-toc:not([open]) .bw-toc__state--hide {
    display: none;
}

.bw-toc:not([open]) .bw-toc__state--show {
    display: inline;
}

.bw-toc__rule {
    height: 1px;
    margin: 15px 0 14px;
    background: #17375e;
}

.bw-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bw-toc__item {
    margin: 0;
    padding: 7px 0;
    font-size: 16px;
    line-height: 1.5;
}

.bw-toc__item--h3 {
    padding-left: 26px;
}

.bw-toc__item--h4 {
    padding-left: 52px;
}

.bw-toc__item a {
    color: inherit;
    text-decoration: none;
}

.bw-toc__item a:hover,
.bw-toc__item a:focus {
    color: #d71920;
    text-decoration: underline;
}

h2[id],
h3[id],
h4[id] {
    scroll-margin-top: 90px;
}

.category_intro {
    box-sizing: border-box;
    clear: both;
    width: 100%;
}

@media (max-width: 767px) {
    .bw-toc {
        margin: 18px 0;
        padding: 10px;
        border-radius: 6px;
    }

    .bw-toc__summary {
        font-size: 16px;
    }

    .bw-toc__state {
        font-size: 16px;
    }

    .bw-toc__item {
        padding-top: 6px;
        padding-bottom: 6px;
        font-size: 16px;
    }

    .bw-toc__item--h3 {
        padding-left: 18px;
    }

    .bw-toc__item--h4 {
        padding-left: 36px;
    }
}
