/* SAIN/web-v2 · استایلِ مشترکِ این نسخه — جای inline styleهای فایل‌های طراحیِ بسته (RULES §۳.۵)
   عنوانِ بخش‌ها، جداکننده و لیست‌ها از _base.css (BaseV5)؛ استایلِ هر بخش در css/{بخش}.css با ریشه‌ی [data-sec="…"] */

/* فاصله‌ها و قاب‌هایی که در طراحی inline بودند */
[data-sec] .sain-mt20 { margin-top: 20px }
[data-sec] .sain-mt24 { margin-top: 24px }
[data-sec] .sain-mt32 { margin-top: 32px }
[data-sec] .sain-p0 { padding: 0 }
[data-sec] .sain-p16 { padding: 16px }
[data-sec] .sain-p12-8 { padding: 12px 8px }
[data-sec] .sain-p12-0 { padding: 12px 0 }
[data-sec] .sain-chart-pad { padding: 12px 8px 16px }
[data-sec="dimensions"] .metric-card__value.sain-fs20 { font-size: 20px }
[data-sec="dimensions"] .metric-card__value.sain-fs16 { font-size: 16px }
[data-sec="growth"] .sain-gcol-1 { grid-column: 1 / 2 }
[data-sec="growth"] .sain-gcol-23 { grid-column: 2 / 4 }
[data-sec="cycle"] .sain-c-calm { color: #0CA678 }
[data-sec="cycle"] .sain-c-worry { color: #E8590C }

/* «تذکر مهم» پایانِ بخش‌ها — در طراحی inline style بود */
[data-sec] .sain-note { background: #FFFBEB; border-radius: 14px; padding: 20px 24px; margin-top: 36px; border: 1px solid #FDE68A }
[data-sec] .sain-note__title { font-size: 14px; font-weight: 700; color: #92400E; margin-bottom: 8px; display: flex; align-items: center; gap: 6px }
[data-sec] .sain-note__title svg { width: 18px; height: 18px; flex-shrink: 0; fill: #92400E }
[data-sec] .sain-note__text { font-size: 13px; color: #78350F; line-height: 24px; text-align: justify }

/* ابعاد برای کاربرِ رایگان: جدولِ خلاصه بدونِ ستونِ رتبه‌ی درصدی (فقط نمره و سطح، مثلِ web-v1) */
[data-sec="dimensions"] .sain-table--free .sub-th-name,
[data-sec="dimensions"] .sain-table--free .sub-td-name { flex: 0 0 50%; width: 50% }
[data-sec="dimensions"] .sain-table--free .sub-th-raw,
[data-sec="dimensions"] .sain-table--free .sub-td-raw { flex: 0 0 20%; width: 20% }
[data-sec="dimensions"] .sain-table--free .sub-th-status,
[data-sec="dimensions"] .sain-table--free .sub-td-status { flex: 0 0 30%; width: 30% }

/* جلدِ کتاب، پوسترِ فیلم و تصویرِ بازی: آیکونِ طراحی زیرِ عکس؛ اگر عکس بار نشد (onerror → جانگهدار)، همان زمینه و آیکون */
[data-sec="solutions"] .so-card__cover { position: relative }
[data-sec="solutions"] .so-card__cover img { position: absolute; inset: 0 }

/* تفسیرِ قدیمی (بدونِ کلیدهای تازه): «نمرات شما در یک نگاه»، کادرِ «هشدار» و متنِ HTMLِ موتورِ قبلی، مثلِ web-v1 */
[data-sec="total"] .sain-old-scores { grid-template-columns: repeat(4, 1fr) }
[data-sec="total"] .sain-legacy-warn { margin-top: 24px }
[data-sec="total"] .sain-legacy-warn p { margin: 0 0 6px }
[data-sec="dimensions"] .sain-old-pct { font-size: 14px; font-weight: 700; color: #64748B; margin-right: 10px }
[data-sec] .sain-rich p { margin: 0 0 6px }
[data-sec] .sain-rich [style] { font-family: inherit !important; font-size: inherit !important }
[data-sec="solutions"] .sain-rich--list ul { margin: 0; padding: 0 22px 0 0 }
[data-sec="solutions"] .sain-rich--list li { font-size: 15px; line-height: 30px; color: #343A40; text-align: justify; margin: 0 0 10px }
@media screen and (max-width: 576px) {
    [data-sec="total"] .sain-old-scores { grid-template-columns: repeat(2, 1fr) }
}
