/* ==========================================================================
   Noonvachi Core 3.2 — تایپوگرافی محتوای وردپرس (بدنهٔ مقاله و یادداشت رسپی)
   بقیهٔ سیستم طراحی در design.css است.
   ========================================================================== */

.nv-editorial-body, .nv-article-reading {
  color: color-mix(in srgb, var(--nv-fg, #3c291e) 90%, transparent);
  font-size: 15px;
  line-height: 2.25;
  font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
}
.nv-editorial-body { padding-block: 1rem; }
.nv-article-body { display: flex; flex-direction: column; gap: 1.25rem; }

.nv-article-reading > *:first-child, .nv-editorial-body > *:first-child { margin-top: 0; }
.nv-article-reading p, .nv-editorial-body p { margin: 0; }
.nv-core .nv-article-reading a { color: var(--nv-primary, #e78c08); text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--nv-primary, #e78c08) 50%, transparent); }
.nv-article-reading a:hover { border-bottom-style: solid; }

/* سرتیترهای مقاله — مثل h2 سایت با میلهٔ گرادیانی */
.nv-article-reading h2 {
  display: flex; align-items: center; gap: .75rem;
  margin: 2rem 0 .75rem; padding: 0;
  font-size: 1.25rem; font-weight: 900; line-height: 1.6;
}
@media (min-width: 640px) { .nv-article-reading h2 { font-size: 1.5rem; } }
.nv-article-reading h2::before {
  content: ""; display: inline-block; width: .375rem; height: 2rem; flex: none;
  border-radius: 999px; background: linear-gradient(to bottom, var(--nv-primary, #e78c08), #f59e0b);
}
.nv-article-reading h3 { margin: 1.5rem 0 .5rem; font-size: 1.125rem; font-weight: 800; }

/* نقل‌قول — مثل Quote بخش مقاله */
.nv-article-reading blockquote {
  position: relative; margin: 1.5rem 0; padding: 1.75rem 3.5rem 1.75rem 1.75rem;
  border-radius: 1.5rem; background: color-mix(in srgb, var(--nv-secondary, #f8efe0) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--nv-border, #e6ddce) 60%, transparent);
  font-weight: 500; font-style: italic;
}
.nv-article-reading blockquote::after {
  content: ""; position: absolute; top: 1.25rem; inset-inline-end: 1.25rem; width: 2rem; height: 2rem;
  opacity: .25; background-color: var(--nv-primary, #e78c08);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3Cpath d='M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3Cpath d='M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* فهرست‌ها — با دایرهٔ تیک مثل سایت */
.nv-article-reading ul, .nv-editorial-body ul { list-style: none; margin: .25rem 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.nv-article-reading ul li, .nv-editorial-body ul li { position: relative; padding-inline-start: 2rem; }
.nv-article-reading ul li::before, .nv-editorial-body ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 1.1rem; height: 1.1rem;
  border-radius: 999px; background: color-mix(in srgb, var(--nv-primary, #e78c08) 15%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.801 10A10 10 0 1 1 17 3.335'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.801 10A10 10 0 1 1 17 3.335'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nv-article-reading ol, .nv-editorial-body ol { margin: .25rem 0; padding-inline-start: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }

/* جدول‌ها — مثل جدول‌های سایت */
.nv-article-reading table {
  width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .875rem;
  border-radius: 1rem; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--nv-border, #e6ddce) 70%, transparent);
}
.nv-article-reading th, .nv-article-reading td { padding: .75rem 1rem; text-align: start; border-bottom: 1px solid color-mix(in srgb, var(--nv-border, #e6ddce) 60%, transparent); }
.nv-article-reading thead th { background: color-mix(in srgb, var(--nv-muted, #f4eee5) 70%, transparent); font-weight: 700; font-size: .75rem; }
.nv-article-reading tbody tr:last-child td { border-bottom: 0; }
.nv-article-reading img { border-radius: 1.25rem; }
.nv-article-reading figcaption, .nv-article-reading .wp-caption-text { margin-top: .5rem; font-size: .6875rem; text-align: center; color: var(--nv-muted-fg, #796456); }

/* جعبه‌های هشدار و نکته که با ویرایشگر افزوده می‌شوند */
.nv-article-reading .is-style-info, .nv-editorial-body .is-style-info { border-radius: 1rem; padding: 1.25rem; background: rgba(224, 242, 254, .8); }
.nv-article-reading .is-style-tip { border-radius: 1rem; padding: 1.25rem; background: rgba(209, 250, 229, .8); }
.nv-article-reading .is-style-warning { border-radius: 1rem; padding: 1.25rem; background: rgba(254, 243, 199, .8); }

/* منابع و یادداشت‌ها */
.nv-article-sources { margin-top: 1.5rem; border-radius: 1rem; background: color-mix(in srgb, var(--nv-muted, #f4eee5) 60%, transparent); padding: 1.25rem 1.5rem; }
.nv-article-sources h2 { margin: 0 0 .75rem; font-size: 1rem; font-weight: 900; }
.nv-article-sources ol { margin: 0; padding-inline-start: 1.25rem; font-size: .8125rem; line-height: 2; }
.nv-core .nv-article-sources a { color: var(--nv-primary, #e78c08); }
.nv-disclaimer, .nv-reviewer-note { font-size: .75rem !important; line-height: 1.9 !important; color: var(--nv-muted-fg, #796456); border-radius: .875rem; padding: .875rem 1.125rem; }
.nv-disclaimer { background: color-mix(in srgb, var(--nv-muted, #f4eee5) 70%, transparent); }
.nv-reviewer-note { background: color-mix(in srgb, #d1fae5 45%, transparent); }

/* فهرست مطالب شورت‌کدی */
.nv-article-toc { border: 1px solid var(--nv-border, #e6ddce); background: var(--nv-card, #fff); padding: 1.25rem 1.5rem; border-radius: 1rem; margin: 1rem 0; }
.nv-article-toc > strong { font-size: 1rem; }
.nv-article-toc ol { padding-inline-start: 1.25rem; margin: .5rem 0 0; font-size: .8125rem; line-height: 2.1; }
.nv-article-toc li.nv-toc-h3 { margin-inline-start: 1.25rem; font-size: .75rem; }
.nv-article-toc a:hover { color: var(--nv-primary, #e78c08); }

/* علاقه‌مندی‌ها */
.nv-saved-view { padding: 1.25rem 0; }

@media print {
  .nv-editorial-body, .nv-article-reading { font-size: 12pt; color: #000; }
  .nv-article-sources, .nv-disclaimer { background: none; }
}
