/* ===== Amond — صفحات داخلی سرور-رندرشده (فهرست مطالب و مقاله) ===== */
.inner-page { background: var(--bg); }

.page { max-width: 1180px; margin: 0 auto; padding: calc(var(--nav-h) + 96px) var(--pad) 40px; }

/* مسیر صفحه (breadcrumb) */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .84rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); border-bottom: 1px dashed transparent; }
.breadcrumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 600; }

.page-head { margin-bottom: 1rem; }
.page-head h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.5; }
.page-head p { margin: 0; max-width: 780px; line-height: 2; }

/* مقاله */
.post-page .post { max-width: 920px; margin: 0 auto; padding: clamp(20px, 4vw, 46px); border-radius: var(--radius-xl); }
.post-head { margin-bottom: 1.4rem; }
.post-head h1 { margin: 0 0 .8rem; font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1.6; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); }
.post-meta time { background: var(--glass-weak); border: 1px solid var(--line); padding: .2rem .7rem; border-radius: 999px; }
.tag-list { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.tag { background: var(--glass-weak); border: 1px solid var(--line); padding: .2rem .65rem; border-radius: 999px; font-size: .76rem; }
.post-excerpt { margin: 1rem 0 0; font-size: 1.05rem; line-height: 2.1; color: var(--muted); border-inline-start: 3px solid var(--accent); padding-inline-start: .9rem; }
.post-cover { margin: 0 0 1.6rem; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }

.post-body { font-size: 1.02rem; line-height: 2.15; color: var(--text); }
.post-body > * + * { margin-top: 1.1rem; }
.post-body h2 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); margin-top: 2rem; line-height: 1.7; }
.post-body h3 { font-size: 1.1rem; margin-top: 1.6rem; line-height: 1.7; }
.post-body h4 { font-size: 1rem; margin-top: 1.3rem; }
.post-body ul, .post-body ol { padding-inline-start: 1.4rem; }
.post-body li { margin: .35rem 0; }
.post-body ul li::marker { color: var(--accent); }
.post-body ol li::marker { color: var(--accent); font-weight: 700; }
.post-body blockquote { margin: 1.4rem 0; padding: .85rem 1.1rem; border-inline-start: 3px solid var(--accent); background: var(--glass-weak); border-radius: var(--radius-sm); color: var(--muted); }
.post-body a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body code { background: var(--glass-strong); border: 1px solid var(--line); padding: .1rem .4rem; border-radius: 6px; font-size: .9em; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.post-body hr { border: 0; height: 1px; background: var(--line-strong); margin: 2rem 0; }
.post-body strong { font-weight: 700; }

/* بخش فراخوان اقدام */
.cta-card { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1.1rem 1.3rem; border-radius: var(--radius-lg); margin-top: 2.2rem; }
.cta-card b { display: block; font-size: 1.02rem; }
.cta-card p { margin: .3rem 0 0; font-size: .88rem; }
.cta-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.related { margin-top: 2.6rem; }
.related h2 { font-size: 1.3rem; margin: 0 0 1rem; }

@media (max-width: 640px) {
  .page { padding-top: calc(var(--nav-h) + 70px); }
  .post-body { font-size: .98rem; line-height: 2; }
  .cta-card { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-actions { justify-content: center; }
}
