/*
 * جبران ریست تیلویند داخل خروجی المنتور.
 *
 * tw.min.css با preflight خودش font-size و font-weight تیترها را inherit می‌کند،
 * بولت لیست‌ها و فاصله‌ی پاراگراف‌ها را برمی‌دارد. المنتور فرض می‌کند مقادیر
 * پیش‌فرض مرورگر سر جایشان هستند، پس بدون این فایل خروجی‌اش تخت دیده می‌شود.
 *
 * همه‌ی سلکتورها با :where() پوشیده شده‌اند تا وزنشان صفر بماند. نتیجه این است که
 * این مقادیر فقط جای خالی را پر می‌کنند: هر تنظیمی که کاربر در خود المنتور یا در
 * Site Settings بگذارد، چون وزن بیشتری دارد، همچنان برنده است.
 */

:where(.elementor) h1 { font-size: 2em;    font-weight: 700; }
:where(.elementor) h2 { font-size: 1.5em;  font-weight: 700; }
:where(.elementor) h3 { font-size: 1.17em; font-weight: 700; }
:where(.elementor) h4 { font-size: 1em;    font-weight: 700; }
:where(.elementor) h5 { font-size: 0.83em; font-weight: 700; }
:where(.elementor) h6 { font-size: 0.67em; font-weight: 700; }

:where(.elementor) h1,
:where(.elementor) h2,
:where(.elementor) h3,
:where(.elementor) h4,
:where(.elementor) h5,
:where(.elementor) h6 { margin-block: 0.6em 0.4em; line-height: 1.5; }

:where(.elementor) p { margin-block: 1em; }

:where(.elementor) ul { list-style: disc;    padding-inline-start: 1.5em; margin-block: 1em; }
:where(.elementor) ol { list-style: decimal; padding-inline-start: 1.5em; margin-block: 1em; }
:where(.elementor) li { margin-block: 0.3em; }

:where(.elementor) blockquote {
    margin-block: 1em;
    padding-inline-start: 1em;
    border-inline-start: 3px solid currentColor;
    opacity: 0.9;
}

/* لینک‌های متنی زیرخط بگیرند، ولی دکمه‌ها نه. */
:where(.elementor) a:not([class*="elementor-button"]) { text-decoration: underline; }

:where(.elementor) table { border-collapse: collapse; width: 100%; }
:where(.elementor) th,
:where(.elementor) td { border: 1px solid #e5e7eb; padding: 0.5em 0.75em; }

/* ویجت تصویر المنتور خودش ابعاد را مدیریت می‌کند؛ ریست display:block تیلویند
   وسط‌چین کردن را خراب می‌کند. */
:where(.elementor) .elementor-widget-image img { display: inline-block; }
