/* مجلهٔ ارجسل (/blog) — همان توکن‌های app.css (طلاییِ تاج، زمینهٔ کاغذی/تیره، گوشهٔ ۱۲ و ۱۶). فقط روی صفحه‌های مجله بار می‌شود.
   عنصرِ شاخص: «نوارِ طلاییِ کناری» روی کارتِ اصلی و سرتیترهای متن، تا مجله از ویترینِ فروشگاه جدا خوانده شود. */
.blog { gap: 24px; }
.chips a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips a small { color: inherit; opacity: .7; font-weight: 500; margin-inline-start: 4px; }

/* ── کارتِ مطلب */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.post-card-img { aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-img b { font-size: 1.5rem; color: var(--brand-ink); font-weight: 900; }
.post-card-body { display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; }
.post-card h3 { font-size: 1.0625rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-body > p.muted:not(.post-meta) { font-size: .875rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-cat { position: relative; z-index: 2; justify-self: start; font-size: .75rem; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; }
.post-meta { margin-top: 2px; }
/* کارتِ اصلیِ صفحهٔ اول: افقی و پهن، با نوارِ طلایی */
.post-lead .post-card { grid-template-rows: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-inline-start: 4px solid var(--brand); }
.post-lead .post-card-img { aspect-ratio: auto; min-height: 260px; }
.post-lead .post-card-body { padding: 22px 24px; align-content: center; gap: 10px; }
.post-lead .post-card h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); -webkit-line-clamp: 3; }
@media (max-width: 760px) { .post-lead .post-card { grid-template-columns: 1fr; } .post-lead .post-card-img { aspect-ratio: 16 / 9; min-height: 0; } .post-lead .post-card-body { padding: 14px 16px 16px; } }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.feed-links { display: flex; align-items: center; gap: 6px; }

/* ── صفحهٔ مطلب */
.blog-post { gap: 18px; padding-top: 20px; }
.post-head { display: grid; gap: 10px; max-width: 880px; }
.post-head h1 { font-size: clamp(1.625rem, 1.15rem + 1.9vw, 2.5rem); line-height: 1.4; }
.post-head .post-cat { font-size: .8125rem; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); align-items: center; }
.byline b { color: var(--text); font-weight: 700; }
.byline svg { vertical-align: -3px; }
.post-cover { margin: 0; max-width: 1040px; display: grid; gap: 6px; }
.post-cover img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; background: var(--surface-2); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.post-layout > .post-toc { order: 2; position: sticky; top: 150px; }
.post-main { display: grid; gap: 22px; min-width: 0; }
.post-layout:not(:has(.post-toc)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; gap: 16px; } .post-layout > .post-toc { order: 0; position: static; } }
.post-toc details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px 10px; }
.post-toc summary { cursor: pointer; font-weight: 800; padding: 8px 0; min-height: 40px; }
.post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .875rem; max-height: 60vh; overflow-y: auto; }
.post-toc a { display: block; padding: 4px 0; color: var(--muted); line-height: 1.6; }
.post-toc a:hover { color: var(--brand-ink); }
.post-toc .lv3 a { padding-inline-start: 14px; font-size: .8125rem; }

.post-body { font-size: 1.0625rem; max-width: 72ch; }
.post-body h2 { border-inline-start: 4px solid var(--brand); padding-inline-start: 12px; scroll-margin-top: 150px; }
.post-body h3 { scroll-margin-top: 150px; }
.post-body img { border-radius: var(--r); height: auto; }
.post-body figure { margin: 1.2em 0; display: grid; gap: 6px; }
.post-body figcaption { font-size: .8125rem; color: var(--muted); }
.post-body iframe, .post-body video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r); }
.post-body .nr-copyright { font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.post-body code { background: var(--surface-2); border-radius: 6px; padding: 0 5px; font-size: .9em; }
.post-body hr { border: 0; border-top: 1px solid var(--line); }
.post-note { background: var(--surface-2); border-radius: var(--r); padding: 10px 14px; color: var(--muted); max-width: 72ch; }
.post-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; display: grid; gap: 8px; max-width: 72ch; }
.post-box h2 { font-size: 1.0625rem; }
.post-box ul, .post-box ol { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 4px; font-size: .9375rem; }
.refs a { overflow-wrap: anywhere; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-shop { display: grid; gap: 12px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); border-radius: var(--r-lg); padding: 18px; }
.post-shop h2 { font-size: 1.125rem; display: flex; align-items: center; gap: 8px; }
.post-shop .grid-pass { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .post-shop .grid-pass { grid-template-columns: 1fr; } }
.related { padding-top: 12px; }
