/* =====================================================
   مجله‌ی پاشا ۲۴ — افزودنی‌های مخصوص بلاگ روی سیستم طراحی سایت اصلی (site.css)
   توکن‌ها: --navy --amber --cream --line --card-r --card-sh (از 01-tokens و 96-web)
   ===================================================== */
.skip-link { position: absolute; inset-inline-start: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 0 0 10px 10px; }
.skip-link:focus { inset-inline-start: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.alignleft { float: left; margin: .4rem 1rem .6rem 0; }
.alignright { float: right; margin: .4rem 0 .6rem 1rem; }
.aligncenter { display: block; margin-inline: auto; }

/* ---------- جستجو ---------- */
.blog-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 6px 6px 6px 8px; box-shadow: var(--shadow-2, 0 4px 24px rgba(10, 34, 68, .09)); max-width: 40rem; width: 100%; }
.blog-search .bs-ic { width: 40px; height: 40px; display: grid; place-items: center; color: var(--amber-deep); flex: none; }
.blog-search .bs-ic .ic { width: 20px; height: 20px; }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; height: 44px; color: var(--navy); }
.blog-search input::placeholder { color: var(--muted); }
.blog-search .btn { height: 44px; border-radius: 12px; padding-inline: 22px; font-size: 14px; }
.phero-search { width: 100%; max-width: 40rem; margin-top: 18px; }
.blog-intro .blog-search { margin-top: 14px; box-shadow: var(--card-sh); }

/* ---------- خانه و آرشیو ---------- */
.mag-big + .cat-chips { margin-block: 26px 22px; }
.arch-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.arch-bar .cat-chips { margin: 0; }
.arch-cta .ic { width: 18px; height: 18px; }
.mag-feature { box-shadow: var(--card-sh); }
.mag-feature img { transition: transform .6s var(--ease); }
.mag-feature:hover img { transform: scale(1.04); }
.blog-empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.blog-empty b { display: block; font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.blog-count { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.card-title .card-link { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .badge { text-decoration: none; }

/* صفحه‌بندی */
.blog-pager { gap: 8px; }
.blog-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; height: 46px; min-width: 46px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: var(--card-sh); font-weight: 700; color: var(--navy); transition: .2s; }
.blog-pager a.page-numbers:hover { background: var(--amber-soft); }
.blog-pager .page-numbers.is-active { background: var(--amber); }
.blog-pager .page-numbers.dots { box-shadow: none; background: transparent; }
.blog-pager .ic { width: 18px; height: 18px; }

/* نوار دعوت به مشاوره */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 22px; padding: 22px 28px; box-shadow: var(--card-sh); }
.cta-band b { display: block; font-size: 18px; font-weight: 800; }
.cta-band span { color: rgba(255, 255, 255, .72); font-size: 14px; }

/* ---------- مقاله ---------- */
.art-wrap > .art-main { min-width: 0; }
.entry-content { max-width: none; color: var(--ink); font-size: 16px; line-height: 2.15; overflow-wrap: anywhere; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 24px; font-weight: 900; line-height: 1.7; margin: 2.2rem 0 .7rem; padding-inline-start: 14px; position: relative; color: var(--navy); scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 5px; height: 1.1em; border-radius: 5px; background: var(--amber); }
.entry-content h3 { font-size: 20px; font-weight: 800; margin: 1.8rem 0 .5rem; color: var(--navy); scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h4 { font-size: 17px; font-weight: 800; margin: 1.4rem 0 .4rem; color: var(--navy); }
.entry-content p { margin: .8rem 0; }
.entry-content strong, .entry-content b { color: var(--navy); font-weight: 800; }
.entry-content ul, .entry-content ol { margin: .8rem 0; padding-inline-start: 1.5rem; line-height: 2.1; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin: .15rem 0; }
.entry-content li::marker { color: var(--amber-deep); }
.entry-content a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--navy); }
.entry-content img { max-width: 100%; height: auto; border-radius: 16px; margin-block: .6rem; }
.entry-content figure { margin: 1.2rem 0; max-width: 100%; }
.entry-content figcaption, .entry-content .wp-caption-text { color: var(--muted); font-size: 13px; text-align: center; margin-top: 6px; line-height: 1.8; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content blockquote { margin: 1.4rem 0; padding: 16px 20px; background: var(--cream); border-radius: 16px; border-inline-start: 4px solid var(--amber); color: var(--navy-2); }
.entry-content blockquote p:first-child { margin-top: 0; } .entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--line-2); margin: 2rem 0; }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 16px; }
.tbl-wrap { overflow-x: auto; margin: 1.2rem 0; border-radius: 14px; border: 1px solid var(--line-2); -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.9; min-width: 32rem; }
.entry-content th, .entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: right; }
.entry-content th { background: var(--bg-soft); color: var(--navy); font-weight: 800; }
.entry-content tr:last-child td { border-bottom: 0; }

/* فهرست مطالب */
.toc-box { background: var(--bg-soft); border-radius: 16px; padding: 4px 18px; margin: 0 0 22px; }
.toc-box summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: 12px 0; display: flex; align-items: center; gap: 8px; list-style: none; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary .ic { width: 18px; height: 18px; color: var(--amber-deep); }
.toc-box ol, .toc-side ol { list-style: none; padding: 0 0 12px; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc-box li, .toc-side li { counter-increment: toc; }
.toc-box li a, .toc-side li a { display: block; padding: 5px 0; color: var(--navy-2); font-size: 14px; line-height: 1.8; text-decoration: none; }
.toc-box li.l3, .toc-side li.l3 { padding-inline-start: 16px; }
.toc-box li a:hover, .toc-side li a:hover { color: var(--amber-deep); }
.toc-side h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.toc-side h3 .ic { width: 18px; height: 18px; color: var(--amber-deep); }
.toc-side { max-height: 60vh; overflow: auto; }
.toc-side li a { border-inline-start: 2px solid var(--line); padding-inline-start: 12px; font-size: 13.5px; }
.toc-side li a.is-on { border-color: var(--amber); color: var(--navy); font-weight: 800; }
@media (min-width: 821px) { .toc-box { display: none; } }
@media (max-width: 820px) { .toc-side { display: none; } }

/* ستون کناری */
.art-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 18px); }
@media (max-width: 820px) { .art-side { position: static; margin-top: 8px; } }

/* پرسش‌های متداول و برچسب‌ها و اشتراک */
.art-faq { margin-top: 2.2rem; }
.art-faq .sec-title { margin-bottom: 14px; }
.art-foot { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-2); display: grid; gap: 14px; }
.art-tags, .art-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.art-tags b, .art-share b { color: var(--navy); font-size: 14px; margin-inline-end: 4px; }
.art-tags .cat-chip { font-size: 13px; padding: 5px 14px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--bg-soft); color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; border: 0; cursor: pointer; transition: .2s; text-decoration: none; }
.share-btn:hover { background: var(--amber-soft); }
.share-btn .ic { width: 16px; height: 16px; color: var(--amber-deep); }
.art-app-head { display: none; }
.art-app-head .art-ttl { font-size: 24px; font-weight: 900; line-height: 1.6; margin-top: 10px; color: var(--navy); }
.art-app-head .art-meta { margin-top: 8px; }

/* نوار پیشرفت مطالعه */
.read-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: 100% 50%; z-index: 120; pointer-events: none; }

/* ---------- نظرها ---------- */
.cm-sec { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px dashed var(--line-2); }
.cm-sec .sec-title { margin-bottom: 14px; }
.cm-list, .cm-list ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cm-list ol { margin: 12px 0 0; padding-inline-start: 22px; }
.cm-body { background: var(--bg-soft); border-radius: 16px; padding: 16px 18px; }
.cm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cm-head .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-deep); display: grid; place-items: center; font-weight: 800; }
.cm-head b { display: block; color: var(--navy); font-size: 14.5px; }
.cm-head small { color: var(--muted); font-size: 12px; }
.cm-text p { margin: .3rem 0; line-height: 2; font-size: 14.5px; }
.cm-wait { color: var(--amber-deep); font-size: 13px; }
.cm-reply a { font-size: 13px; font-weight: 700; color: var(--amber-deep); }
.comment-respond { margin-top: 24px; }
.comment-reply-title { font-size: 18px; font-weight: 800; color: var(--navy); }
.comment-reply-title small { margin-inline-start: 10px; font-size: 13px; }
.comment-form { display: grid; gap: 12px; margin-top: 12px; }
.comment-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; color: var(--navy); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--amber); border-color: transparent; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: 13px; } .comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 500; }
.cm-note { color: var(--muted); font-size: 13px; }
.comment-form .form-submit { margin: 0; }
.comment-form .btn { cursor: pointer; border: 0; }
.nav-links { display: flex; gap: 10px; margin-top: 14px; }
.nav-links a { padding: 8px 14px; border-radius: 12px; background: #fff; box-shadow: var(--card-sh); font-weight: 700; font-size: 13px; }

/* ---------- موبایل (نمای اپ) ---------- */
@media (max-width: 820px) {
  .art-app-head { display: block; }
  .art-wrap > .art-main { padding-top: 4px; }
  .art-app-head .art-hero { aspect-ratio: 1.7; margin-top: 12px; }
  .entry-content { font-size: 15.5px; line-height: 2.1; }
  .entry-content h2 { font-size: 20px; }
  .entry-content h3 { font-size: 17.5px; }
  .cta-band { padding: 18px; }
  .blog-search .btn { padding-inline: 16px; }
}

/* مقدمه‌ی نسخه‌ی اپ (موبایل) بالای فهرست‌ها */
.blog-intro { padding-block: 4px 2px; }
.blog-intro .ttl { font-size: 24px; font-weight: 900; color: var(--navy); line-height: 1.5; }
.blog-intro p:not(.ttl) { color: var(--muted); margin-top: 4px; font-size: 14px; line-height: 1.9; }
.blog-intro .blog-search { margin-top: 12px; box-shadow: var(--card-sh); }
