/* =========================================================
   خزرینو — صفحه مقاله مجله
   ========================================================= */
.art-loading { padding: 70px; text-align: center; color: var(--text-3); }

.art-hero { margin: 18px 0 24px; }
.art-crumb { font-size: 12px; color: var(--text-3); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.art-crumb a { color: var(--text-2); }
.art-crumb a:hover { color: var(--green); }
.art-cover { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21/9; margin-bottom: 18px; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-cat { display: inline-block; }
.art-title { font-size: clamp(24px, 4.5vw, 36px); line-height: 1.5; margin: 10px 0 8px; }
.art-sub { font-size: clamp(15px, 2.6vw, 18px); color: var(--text-2); font-weight: 500; line-height: 1.8; }
.art-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); align-items: center; }
.art-meta span { display: inline-flex; align-items: center; gap: 5px; }
.art-meta svg { width: 15px; height: 15px; }
.art-meta .art-actions { margin-inline-start: auto; display: flex; gap: 6px; }

.art-layout { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; padding-bottom: 40px; }
@media (min-width: 1000px) { .art-layout { grid-template-columns: 1fr 300px; } }

/* فهرست مطالب چسبان */
.art-toc { display: none; position: sticky; top: calc(var(--header-h) + 16px); }
@media (min-width: 1000px) { .art-toc { display: block; } }
.art-toc__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-xs); }
.art-toc__box h4 { font-size: 13px; margin-bottom: 10px; color: var(--navy); }
.art-toc a { display: block; font-size: 13px; color: var(--text-2); padding: 6px 10px; border-radius: 8px; border-inline-start: 2px solid transparent; transition: color .16s, background .16s; }
.art-toc a:hover, .art-toc a.is-active { color: var(--green); background: var(--green-soft); border-inline-start-color: var(--green); }

/* بدنه مقاله */
.art-body { font-size: 16px; line-height: 2.1; color: var(--text); min-width: 0; }
.art-body h2 { font-size: 21px; margin: 30px 0 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.art-body h3 { font-size: 17px; margin: 22px 0 10px; }
.art-body p { margin-bottom: 16px; color: var(--text); }
.art-body ul, .art-body ol { margin: 0 0 16px; padding-inline-start: 22px; }
.art-body li { margin-bottom: 8px; color: var(--text-2); }
.art-body img { border-radius: var(--radius); margin: 16px 0; max-width: 100%; height: auto; }

/* بلاک‌های ویرایشگرِ مقاله (نوارِ بلاک در پنل آن‌ها را درج می‌کند).
   ⚠️ ساختارِ `.faq` و `.howto` را `lib/schema.ts` می‌خواند تا
   FAQPage و HowTo بسازد — کلاسشان را عوض نکنید. */
/* نظرهای مجله */
.art-comments { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.art-comments h2 { font-size: 19px; margin: 0 0 16px; color: var(--navy); }
.cmt-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.cmt { background: var(--surface-2); border-radius: var(--radius-s); padding: 13px 15px; }
.cmt__head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.cmt__head b { font-size: 13.5px; color: var(--navy); }
.cmt__head span { font-size: 11.5px; color: var(--text-3); }
.cmt p { margin: 0; font-size: 14px; line-height: 2; color: var(--text-2); }
.cmt__reply { background: none; border: 0; padding: 4px 0 0; cursor: pointer;
  font-family: inherit; font-size: 12px; color: var(--green); }
.cmt__kids { list-style: none; margin: 10px 0 0; padding-inline-start: 16px;
  border-inline-start: 2px solid var(--line); display: grid; gap: 10px; }
.cmt-empty { font-size: 13.5px; color: var(--text-3); margin: 0 0 16px; }
.cmt-form { display: grid; gap: 8px; justify-items: start; }
.cmt-form textarea { width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 11px 13px; font-family: inherit; font-size: 14px;
  color: var(--text); resize: vertical; }
.cmt-form textarea:focus { border-color: var(--green); outline: none; }
.cmt-form small { font-size: 11.5px; color: var(--text-3); }
.cmt-replying { font-size: 12.5px; color: var(--text-3); }
.cmt-replying button { background: none; border: 0; color: var(--green);
  cursor: pointer; font-family: inherit; font-size: 12.5px; }

.art-body figure { margin: 20px 0; }
.art-body figcaption { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 6px; }
.art-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.art-body th, .art-body td { border: 1px solid var(--line); padding: 9px 11px; text-align: start; }
.art-body th { background: var(--surface-2); font-weight: 700; }
.art-body hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.art-body .embed video { width: 100%; border-radius: var(--radius); }

.art-body .callout {
  background: var(--green-soft); border-inline-start: 3px solid var(--green);
  border-radius: var(--radius-s); padding: 14px 16px; margin: 20px 0;
}
.art-body .callout b { color: var(--green-deep); display: block; margin-bottom: 4px; }
.art-body .callout p { margin: 0; }

.art-body .faq { margin: 26px 0; }
.art-body .faq details {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; margin-bottom: 8px; background: var(--surface);
}
.art-body .faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--navy); }
.art-body .faq details[open] summary { margin-bottom: 8px; }
.art-body .faq div { font-size: 14px; color: var(--text-2); line-height: 2; }

.art-body ol.howto { counter-reset: step; list-style: none; padding-inline-start: 0; }
.art-body ol.howto li {
  counter-increment: step; position: relative; padding-inline-start: 38px; margin-bottom: 12px;
}
.art-body ol.howto li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: 12.5px; font-weight: 700;
}
.art-body blockquote { border-inline-start: 3px solid var(--green); background: var(--green-soft); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 16px 0; color: var(--text-2); }

.art-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 24px 0; }
.art-tags a { font-size: 12px; color: var(--text-2); background: var(--surface-2); padding: 5px 13px; border-radius: 99px; }
.art-tags a:hover { color: var(--green); background: var(--green-soft); }

/* اتصال هوشمند به اکوسیستم */
.art-connect { margin-top: 34px; }
.art-connect__group { margin-bottom: 26px; }
.art-connect__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.art-connect__head h3 { font-size: 17px; }
.art-connect__head a { font-size: 13px; color: var(--green); font-weight: 700; }

/* باکس اشتراک/CTA پایان مقاله */
.art-cta { background: linear-gradient(135deg, var(--green-deep), var(--green)); color: #fff; border-radius: var(--radius-l); padding: 26px; text-align: center; margin: 30px 0; }
.art-cta h3 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.art-cta p { color: rgba(255,255,255,.85); font-size: 13.5px; margin-bottom: 16px; }
.art-cta .btn { background: #fff; color: var(--green-deep); }
.art-cta .btn:hover { background: var(--gold-light); }

/* مقالات مرتبط */
.art-related { padding: 24px 0 44px; }
