.custom-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 80rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .custom-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .custom-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.hide-scrollbar {
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* متن مقاله — فونت و تایپوگرافی */
.blog-article-content,
.page-cms-content.blog-article-content {
    font-family: IRANYekan, sans-serif;
}

.blog-article-content strong,
.blog-article-content b {
    font-weight: 700;
    color: #0f172a;
}

/* جدول — هم‌سبک با page-cms-content */
.blog-article-content table,
.blog-article-content .cms-table-scroll table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 0.875rem;
    color: #334155;
}

.blog-article-content .cms-table-scroll,
.blog-article-content .table {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

@media (max-width: 1023px) {
    .blog-article-content .cms-table-scroll,
    .blog-article-content .table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blog-article-content table,
    .blog-article-content .cms-table-scroll table {
        min-width: 36rem;
    }
}

@media (min-width: 1024px) {
    .blog-article-content .cms-table-scroll,
    .blog-article-content .table {
        overflow-x: visible;
    }

    .blog-article-content table,
    .blog-article-content .cms-table-scroll table {
        min-width: 0;
        width: 100%;
    }

    .blog-article-content table td,
    .blog-article-content table th,
    .blog-article-content .cms-table-scroll table td,
    .blog-article-content .cms-table-scroll table th {
        white-space: normal;
        word-break: break-word;
    }
}

/* فهرست مطالب */
#toc-list li {
    position: relative;
}

#toc-list li::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 0;
    width: 2px;
    height: 0;
    background-color: #2563eb;
    transition: height 0.15s ease;
}

#toc-list li.toc-active {
    color: #2563eb;
}

#toc-list li.toc-active::after {
    height: 100%;
}

#toc-list li:hover {
    color: #2563eb;
}

#toc-list li:hover::after {
    height: 100%;
}
