/* ==========================================
   استایل‌های عمومی که Utility-Class نمی‌شن
   ========================================== */

html {
    scroll-behavior: smooth;
}

::selection {
    background: #4b47c2;
    color: #ffffff;
}

/* ==========================================
   استایل محتوای مقاله (تگ‌هایی که از ادیتور وردپرس میان)
   چون این تگ‌ها رو خود ادیتور وردپرس تولید می‌کنه،
   نمی‌تونیم روشون مستقیم کلاس Tailwind بذاریم،
   پس با سلکتور فرزند استایلشون می‌دیم
   ========================================== */

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 2.25;
    color: #4b5563;
}

.article-content h2 {
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.8;
    color: #1f2937;
    scroll-margin-top: 100px; /* برای لینک‌های فهرست مطالب، هدر رو نپوشونه */
}

.article-content h3 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #312e81;
}

.article-content ul {
    margin: 1.5rem 0;
    padding-right: 1.4rem;
    color: #4b5563;
}

.article-content ul li {
    position: relative;
    margin-bottom: 0.9rem;
    padding-right: 0.65rem;
    line-height: 2;
}

.article-content ul li::marker {
    color: #4b47c2;
}

.article-content blockquote {
    margin: 2.25rem 0;
    border-right: 4px solid #4b47c2;
    background: #f2f2ff;
    padding: 1.25rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 2;
    color: #4b5563;
    border-radius: 1rem;
}

.article-content table {
    width: 100%;
    text-align: right;
    font-size: 0.875rem;
}

.article-content table thead {
    background: #4b47c2;
    color: #ffffff;
}

.article-content table th,
.article-content table td {
    padding: 1rem 1.25rem;
    white-space: nowrap;
}

.article-content table tbody tr {
    border-top: 1px solid #f1f5f9;
}

.article-content table tbody tr:nth-child(even) {
    background: #f8fafc;
}