/* بلاگ ترای‌جیم: فقط در صفحه‌های بلاگ بارگذاری می‌شود و از توکن‌های site.css استفاده می‌کند. */

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.blog-list { padding-bottom: 72px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.post-card { overflow: hidden; }
.post-card .thumb { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: -24px -24px 8px; background: var(--surface-2); }
.post-card .meta { font-size: .82rem; color: var(--muted); }
.post-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.6; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card .more { color: var(--brand); font-weight: 800; font-size: .92rem; }

.post { max-width: 820px; padding-block: 40px 72px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.post-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.post-hero { margin: 0 0 32px; }
.post-hero img { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--surface-2); box-shadow: var(--shadow); }
.post-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 800; line-height: 1.45; }
.post-head .lead { font-size: 1.12rem; color: var(--muted); }
.post-head .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }

.toc { background: var(--brand-soft); border-radius: 18px; padding: 18px 22px; margin-bottom: 32px; }
.toc b { display: block; margin-bottom: 6px; color: var(--brand); }
.toc ol { margin: 0; padding-inline-start: 22px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

.prose { font-size: 1.07rem; line-height: 2.05; color: #22273f; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 1.45rem; font-weight: 800; color: var(--text); margin-top: 40px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-top: 28px; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-inline-start: 24px; margin-block: 0; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--brand); font-weight: 800; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand); text-underline-offset: 4px; }
.prose figure { margin: 32px 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--surface-2); }
.prose figcaption { margin-top: 10px; font-size: .9rem; line-height: 1.8; color: var(--muted); text-align: center; }
.prose .tip { background: var(--accent-soft); border-inline-start: 4px solid var(--accent); border-radius: 14px; padding: 14px 18px; color: var(--accent-ink); }

.post-cta { margin-top: 48px; background: var(--brand); color: #fff; border-radius: 24px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.post-cta b { font-size: 1.15rem; font-weight: 800; }
.post-cta p { opacity: .85; margin-top: 4px; max-width: 42ch; }
.post-cta .btn { background: #fff; color: var(--brand); }

.related { margin-top: 56px; }
.related h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; }
