.blog__content .blog-toc {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e4e1db;
    border-radius: 10px;
    background: #f8f5ef;
    text-align: left;
}

.blog__content .blog-toc__title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
}

.blog__content .blog-toc__list {
    counter-reset: blog-toc;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog__content .blog-toc__item {
    counter-increment: blog-toc;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: start;
    margin: 0.5rem 0;
    padding: 0;
}

.blog__content .blog-toc__item::before {
    content: counter(blog-toc) ".";
    color: #6b6258;
    font-weight: 600;
    line-height: 1.6;
    text-align: right;
}

.blog__content .blog-toc__link {
    display: block;
    min-width: 0;
    color: #1f1f1f;
    text-decoration: none;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.blog__content .blog-toc__link:hover,
.blog__content .blog-toc__link:focus {
    color: #000;
    text-decoration: underline;
}

.blog__content h2[id] {
    scroll-margin-top: 80px;
}

@media (max-width: 767px) {
    .blog__content .blog-toc {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }

    .blog__content .blog-toc__title {
        margin-bottom: 0.75rem;
    }

    .blog__content .blog-toc__item {
        grid-template-columns: 1.75rem minmax(0, 1fr);
        column-gap: 0.625rem;
    }
}
