.toc-for-posts {
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 28px 0;
    font-size: 16px;
    line-height: 1.6;
    direction: rtl;
}

.toc-for-posts__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.toc-for-posts__title {
    font-weight: 700;
    font-size: 1.1em;
    color: #1f2937;
}

.toc-for-posts__toggle {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.9em;
    cursor: pointer;
    color: #374151;
}

.toc-for-posts__toggle:hover {
    background: #eef0f3;
}

.toc-for-posts__list,
.toc-for-posts__sublist {
    list-style: decimal inside;
    margin: 0;
    padding: 0;
}

.toc-for-posts__sublist {
    list-style: lower-alpha inside;
    margin: 4px 18px 8px 0;
    padding: 0;
}

.toc-for-posts__item {
    margin: 4px 0;
}

.toc-for-posts__item a {
    color: #1d4ed8;
    text-decoration: none;
}

.toc-for-posts__item a:hover {
    text-decoration: underline;
}

.toc-for-posts.is-collapsed .toc-for-posts__list {
    display: none;
}
