/* Rasta Academy — وبلاگ: آرشیو و تک‌مطلب */

/* ================= آرشیو ================= */
.rasta-bl .rasta-ca__chip small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 8px; background: var(--t-soft); color: var(--t-muted); font-size: 11.5px; font-weight: 600; }
.rasta-bl .rasta-ca__chip.is-active small { background: rgba(255, 255, 255, .2); color: #fff; }
.rasta-bl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; margin-top: 24px; }

/* ================= کارت مطلب ================= */
.rasta-pc { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--t-line); border-radius: 26px; background: #fff; transition: transform .45s var(--t-ease), box-shadow .45s var(--t-ease), border-color .3s ease; }
.rasta-pc:hover { border-color: var(--t-blue-100); box-shadow: 0 34px 56px -40px rgba(16, 24, 40, .5); transform: translateY(-4px); }
.rasta-pc a { text-decoration: none; }
.rasta-pc__media { position: relative; display: block; aspect-ratio: 16 / 10; margin: 8px 8px 0; overflow: hidden; border-radius: 20px; background: var(--t-blue-50); }
.rasta-pc__media img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; transition: transform .8s var(--t-ease); }
.rasta-pc:hover .rasta-pc__media img { transform: scale(1.06); }
.rasta-pc__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(47, 107, 255, .35); }
.rasta-pc__ph svg { width: 44px; height: 44px; }
.rasta-pc__cat { position: absolute; top: 12px; right: 12px; max-width: calc(100% - 24px); overflow: hidden; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--t-blue); font-size: 12px; font-weight: 600; line-height: 1.8; text-overflow: ellipsis; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rasta-pc__body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.rasta-pc__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--t-muted); font-size: 12px; line-height: 1.8; }
.rasta-pc__meta span { display: inline-flex; align-items: center; gap: 5px; }
.rasta-pc__meta svg { width: 15px; height: 15px; }
.rasta-pc__title { display: -webkit-box; margin: 0; padding: 0; overflow: hidden; color: var(--t-ink); font-family: inherit; font-size: 16.5px; font-weight: 700; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rasta-pc__title a, .rasta-pc__title a:visited { color: inherit; transition: color .2s ease; }
.rasta-pc__title a:hover { color: var(--t-blue); }
.rasta-pc__excerpt { display: -webkit-box; margin: 0; overflow: hidden; color: var(--t-muted); font-size: 13.5px; line-height: 2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rasta-pc__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.rasta-pc__more, .rasta-pc__more:visited { display: inline-flex; align-items: center; gap: 6px; color: var(--t-blue); font-size: 13px; font-weight: 600; }
.rasta-pc__more svg { width: 16px; height: 16px; transition: transform .3s var(--t-ease); }
.rasta-pc:hover .rasta-pc__more svg { transform: translateX(-4px); }

/* مطلب ویژه */
.rasta-pc.is-featured { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: 32px; }
.rasta-pc.is-featured .rasta-pc__media { aspect-ratio: auto; min-height: 360px; margin: 10px; border-radius: 24px; }
.rasta-pc.is-featured .rasta-pc__media img { position: absolute; inset: 0; }
.rasta-pc.is-featured .rasta-pc__body { justify-content: center; gap: 12px; padding: clamp(26px, 3.4vw, 44px); }
.rasta-pc.is-featured .rasta-pc__body::before { content: ""; position: absolute; inset: 14px 4px 14px 14px; border: 1.5px dashed rgba(47, 107, 255, .2); border-radius: 22px; pointer-events: none; }
.rasta-pc__labels { display: flex; flex-wrap: wrap; gap: 8px; }
.rasta-pc__badge, .rasta-pc__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.8; }
.rasta-pc__badge { background: var(--t-blue); color: #fff; box-shadow: 0 10px 20px -12px rgba(47, 107, 255, .9); }
.rasta-pc__badge svg { width: 14px; height: 14px; }
.rasta-pc__chip { background: var(--t-blue-50); color: var(--t-blue); }
.rasta-pc.is-featured .rasta-pc__title { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.65; -webkit-line-clamp: 3; }
.rasta-pc.is-featured .rasta-pc__excerpt { font-size: 14.5px; -webkit-line-clamp: 3; }
.rasta-pc.is-featured .rasta-pc__foot { padding-top: 12px; }
.rasta-pc__author { display: inline-flex; align-items: center; gap: 8px; color: var(--t-ink-2); font-size: 13px; font-weight: 600; }
.rasta-pc__author img { width: 32px; height: 32px; margin: 0; border-radius: 50%; }
.rasta-pc.is-featured .rasta-pc__more, .rasta-pc.is-featured .rasta-pc__more:visited { height: 46px; padding: 0 20px; border-radius: 14px; background: var(--t-blue); color: #fff; box-shadow: 0 14px 26px -14px rgba(47, 107, 255, .9); transition: background .2s ease; }
.rasta-pc.is-featured .rasta-pc__more:hover { background: var(--t-blue-600); }

/* ================= تک‌مطلب ================= */
.rasta-post { direction: rtl; padding-bottom: 30px; color: var(--t-ink); }
.rasta-post *, .rasta-post *::before, .rasta-post *::after { box-sizing: border-box; }
.rasta-post a { text-decoration: none; }

/* نوار پیشرفت (نخ آبی) */
.rasta-post__progress { position: fixed; top: 0; right: 0; left: 0; z-index: 9990; height: 3px; pointer-events: none; }
.admin-bar .rasta-post__progress { top: 32px; }
.rasta-post__progress span { display: block; height: 100%; background: linear-gradient(to left, var(--t-blue), #8DB2FF); border-radius: 0 0 0 3px; transform: scaleX(0); transform-origin: right center; }

.rasta-post__hero { position: relative; margin-top: 14px; padding: clamp(28px, 4.4vw, 56px) clamp(20px, 5vw, 80px) clamp(30px, 4vw, 48px); overflow: hidden; border: 1px solid rgba(220, 230, 255, .9); border-radius: 36px; background: radial-gradient(50% 90% at 50% 0%, rgba(47, 107, 255, .13), transparent 65%), linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 100%); text-align: center; isolation: isolate; }
.rasta-post__hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(47, 107, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 107, 255, .07) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(50% 80% at 50% 0%, #000 0%, transparent 100%); mask-image: radial-gradient(50% 80% at 50% 0%, #000 0%, transparent 100%); }
.rasta-post__hero .rasta-ca__crumbs { justify-content: center; }
.rasta-post__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.rasta-post__cats a, .rasta-post__cats a:visited { padding: 4px 14px; border-radius: 999px; background: var(--t-blue-50); color: var(--t-blue); font-size: 12.5px; font-weight: 600; line-height: 1.8; transition: background .2s ease, color .2s ease; }
.rasta-post__cats a:hover { background: var(--t-blue); color: #fff; }
.rasta-post__title { max-width: 900px; margin: 0 auto 12px; padding: 0; color: var(--t-ink); font-family: inherit; font-size: clamp(25px, 3.3vw, 42px); font-weight: 800; line-height: 1.55; }
.rasta-post__lead { max-width: 720px; margin: 0 auto 6px; color: var(--t-muted); font-size: 15.5px; line-height: 2.1; }
.rasta-post__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; margin-top: 20px; color: var(--t-muted); font-size: 13px; line-height: 1.8; }
.rasta-post__meta > span, .rasta-post__meta > a { display: inline-flex; align-items: center; gap: 6px; color: var(--t-muted); }
.rasta-post__meta > a:hover { color: var(--t-blue); }
.rasta-post__meta svg { width: 16px; height: 16px; }
.rasta-post__meta .rasta-post__by { gap: 10px; padding: 4px 4px 4px 14px; border: 1px solid var(--t-line); border-radius: 999px; background: #fff; }
.rasta-post__by img { width: 40px; height: 40px; margin: 0; border-radius: 50%; }
.rasta-post__by span { display: flex; flex-direction: column; text-align: right; line-height: 1.5; }
.rasta-post__by small { color: var(--t-muted); font-size: 11px; }
.rasta-post__by b { color: var(--t-ink); font-size: 13.5px; font-weight: 700; }

.rasta-post__cover { max-width: 1100px; margin: -18px auto 0; padding: 0 clamp(0px, 3vw, 40px); }
.rasta-post__cover img { display: block; width: 100%; height: auto; max-height: 560px; margin: 0; border-radius: 30px; object-fit: cover; box-shadow: 0 40px 70px -50px rgba(16, 24, 40, .6); }

/* چیدمان متن و فهرست */
.rasta-post__layout { display: grid; grid-template-columns: minmax(0, 780px); justify-content: center; gap: 40px; margin-top: clamp(30px, 4vw, 48px); }
.rasta-post__layout.has-toc { grid-template-columns: 270px minmax(0, 780px); grid-template-areas: "side main"; justify-content: center; }
.rasta-post__layout.has-toc .rasta-post__side { grid-area: side; }
.rasta-post__layout.has-toc .rasta-post__main { grid-area: main; }
.rasta-post__side[hidden] { display: none; }
.rasta-post__main { min-width: 0; }

/* فهرست مطالب */
.rasta-post__side { position: sticky; top: 24px; align-self: start; }
.admin-bar .rasta-post__side { top: 56px; }
.rasta-toc { border: 1px solid var(--t-line); border-radius: 22px; background: #fff; }
.rasta-toc summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: var(--t-ink); font-size: 14.5px; font-weight: 700; list-style: none; cursor: pointer; }
.rasta-toc summary::-webkit-details-marker { display: none; }
.rasta-toc summary svg { width: 18px; height: 18px; color: var(--t-blue); }
.rasta-toc summary i { width: 8px; height: 8px; margin-inline-start: auto; border-right: 2px solid var(--t-muted); border-bottom: 2px solid var(--t-muted); transform: rotate(45deg); transition: transform .25s ease; }
.rasta-toc[open] summary i { transform: rotate(-135deg); }
.rasta-toc__list { position: relative; max-height: calc(100vh - 160px); margin: 0; padding: 0 16px 14px; overflow-y: auto; list-style: none; counter-reset: toc; }
.rasta-toc__list::before { content: ""; position: absolute; top: 4px; right: 22px; bottom: 18px; width: 0; border-right: 1.5px dashed rgba(47, 107, 255, .3); }
.rasta-toc__list li { position: relative; margin: 0; padding: 0; }
.rasta-toc__list a, .rasta-toc__list a:visited { position: relative; display: block; padding: 6px 22px 6px 4px; color: var(--t-ink-2); font-size: 13px; line-height: 1.8; transition: color .2s ease; }
.rasta-toc__list a::before { content: ""; position: absolute; top: 15px; right: 2px; width: 9px; height: 9px; border: 2px solid #C9D6F5; border-radius: 50%; background: #fff; transition: border-color .2s ease, background .2s ease; }
.rasta-toc__list li.is-sub a { padding-right: 34px; color: var(--t-muted); font-size: 12.5px; }
.rasta-toc__list li.is-sub a::before { right: 3.5px; width: 6px; height: 6px; border-width: 1.5px; top: 16px; }
.rasta-toc__list a:hover { color: var(--t-blue); }
.rasta-toc__list a.is-active { color: var(--t-blue); font-weight: 600; }
.rasta-toc__list a.is-active::before { border-color: var(--t-blue); background: var(--t-blue); box-shadow: 0 0 0 4px rgba(47, 107, 255, .14); }

/* ================= تایپوگرافی متن ================= */
.rasta-post__content { color: #2B3445; font-size: 16px; line-height: 2.15; overflow-wrap: break-word; }
.rasta-post__content > *:first-child { margin-top: 0; }
.rasta-post__content p { margin: 0 0 1.35em; }
.rasta-post__content h2, .rasta-post__content h3, .rasta-post__content h4 { margin: 1.9em 0 .7em; padding: 0; color: var(--t-ink); font-family: inherit; font-weight: 800; line-height: 1.65; scroll-margin-top: 90px; }
.rasta-post__content h2 { position: relative; padding-right: 18px; font-size: clamp(21px, 2.2vw, 25px); }
.rasta-post__content h2::before { content: ""; position: absolute; top: .45em; right: 0; bottom: .45em; width: 5px; border-radius: 5px; background: linear-gradient(180deg, var(--t-blue), #8DB2FF); }
.rasta-post__content h3 { font-size: clamp(18px, 1.8vw, 20px); }
.rasta-post__content h4 { font-size: 17px; }
.rasta-post__content a { color: var(--t-blue); text-decoration: underline; text-decoration-color: rgba(47, 107, 255, .35); text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
.rasta-post__content a:hover { text-decoration-color: var(--t-blue); }
.rasta-post__content strong, .rasta-post__content b { color: var(--t-ink); font-weight: 700; }
.rasta-post__content ul, .rasta-post__content ol { margin: 0 0 1.4em; padding: 0 1.4em 0 0; }
.rasta-post__content li { margin: 0 0 .45em; padding-right: 4px; }
.rasta-post__content ul li::marker { color: var(--t-blue); }
.rasta-post__content ol li::marker { color: var(--t-blue); font-weight: 700; }
.rasta-post__content blockquote { position: relative; margin: 1.8em 0; padding: 22px 26px 22px 22px; border: 0; border-right: 4px solid var(--t-blue); border-radius: 4px 22px 22px 4px; background: var(--t-soft); color: var(--t-ink-2); font-size: 16.5px; font-style: normal; }
.rasta-post__content blockquote::after { content: ""; position: absolute; inset: 8px 12px 8px 8px; border: 1.5px dashed rgba(47, 107, 255, .2); border-radius: 16px; pointer-events: none; }
.rasta-post__content blockquote p:last-child { margin-bottom: 0; }
.rasta-post__content blockquote cite { display: block; margin-top: 8px; color: var(--t-muted); font-size: 13px; font-style: normal; }
.rasta-post__content img { max-width: 100%; height: auto; border-radius: 20px; }
.rasta-post__content figure { max-width: 100%; margin: 1.8em 0; }
.rasta-post__content figcaption { margin-top: 10px; color: var(--t-muted); font-size: 13px; line-height: 1.9; text-align: center; }
.rasta-post__content hr { height: 2px; margin: 2.2em 0; border: 0; background: repeating-linear-gradient(to left, rgba(47, 107, 255, .45) 0 8px, transparent 8px 14px); }
.rasta-post__content table { width: 100%; margin: 1.6em 0; overflow: hidden; border: 1px solid var(--t-line); border-collapse: separate; border-spacing: 0; border-radius: 16px; font-size: 14px; }
.rasta-post__content th, .rasta-post__content td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--t-line); text-align: right; }
.rasta-post__content th { background: var(--t-soft); color: var(--t-ink); font-weight: 700; }
.rasta-post__content tr:last-child td { border-bottom: 0; }
.rasta-post__content .wp-block-table { overflow-x: auto; }
.rasta-post__content code { padding: 2px 7px; border-radius: 7px; background: var(--t-soft); color: var(--t-ink); font-size: .88em; direction: ltr; unicode-bidi: isolate; }
.rasta-post__content pre { margin: 1.6em 0; padding: 18px 20px; overflow-x: auto; border-radius: 18px; background: var(--t-ink); color: #E4E9F2; font-size: 13.5px; line-height: 1.9; direction: ltr; text-align: left; }
.rasta-post__content pre code { padding: 0; background: none; color: inherit; }
.rasta-post__content iframe, .rasta-post__content video { max-width: 100%; border-radius: 20px; }
.rasta-post__content .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.rasta-post__content .alignleft { float: left; margin: .4em 0 1em 1.4em; }
.rasta-post__content .alignright { float: right; margin: .4em 1.4em 1em 0; }
.rasta-post__content .aligncenter { margin-right: auto; margin-left: auto; text-align: center; }
.rasta-post__content::after { content: ""; display: table; clear: both; }
.rasta-post__pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; font-size: 14px; }
.rasta-post__pages a, .rasta-post__pages > span:not(:first-child) { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--t-line); border-radius: 12px; text-decoration: none; }

/* برچسب‌ها و اشتراک‌گذاری */
.rasta-post__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 34px; padding: 16px 0; border-top: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); }
.rasta-post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rasta-post__tags > svg { width: 18px; height: 18px; margin-left: 2px; color: var(--t-muted); }
.rasta-post__tags a, .rasta-post__tags a:visited { padding: 3px 12px; border: 1px solid var(--t-line); border-radius: 999px; color: var(--t-ink-2); font-size: 12.5px; line-height: 1.9; transition: border-color .2s ease, color .2s ease; }
.rasta-post__tags a:hover { border-color: var(--t-blue); color: var(--t-blue); }
.rasta-post__share { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.rasta-post__share > span { margin-left: 4px; color: var(--t-muted); font-size: 13px; }
.rasta-post__share a, .rasta-post__share button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--t-line); border-radius: 13px; background: #fff; color: var(--t-ink-2); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.rasta-post__share button { width: auto; padding: 0 14px; }
.rasta-post__share a:hover, .rasta-post__share button:hover { border-color: var(--t-blue); color: var(--t-blue); }
.rasta-post__share button.is-done { border-color: #12B76A; background: #ECFDF3; color: #067647; }
.rasta-post__share svg { width: 18px; height: 18px; }

/* نویسنده */
.rasta-post__author { display: flex; align-items: flex-start; gap: 16px; margin-top: 28px; padding: 22px; border: 1px solid var(--t-line); border-radius: 26px; background: #fff; }
.rasta-post__author > img { flex: 0 0 72px; width: 72px; height: 72px; margin: 0; border-radius: 22px; object-fit: cover; }
.rasta-post__author small { display: block; color: var(--t-muted); font-size: 12px; }
.rasta-post__author b { display: block; color: var(--t-ink); font-size: 16px; font-weight: 700; line-height: 1.7; }
.rasta-post__author p { margin: 6px 0 0; color: var(--t-muted); font-size: 13.5px; line-height: 2; }
.rasta-post__author a, .rasta-post__author a:visited { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--t-blue); font-size: 13px; font-weight: 600; }
.rasta-post__author a svg { width: 16px; height: 16px; }

/* دعوت به دوره‌ها */
.rasta-post__cta { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 22px 24px; overflow: hidden; border-radius: 26px; background: radial-gradient(60% 120% at 0% 0%, rgba(141, 178, 255, .35), transparent 60%), linear-gradient(135deg, #1F4FD8 0%, var(--t-blue) 100%); color: #fff; isolation: isolate; }
.rasta-post__cta::before { content: ""; position: absolute; inset: 9px; z-index: -1; border: 1.5px dashed rgba(255, 255, 255, .28); border-radius: 19px; }
.rasta-post__cta-icon { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .16); }
.rasta-post__cta-icon svg { width: 26px; height: 26px; }
.rasta-post__cta > div { flex: 1; min-width: 0; }
.rasta-post__cta b { display: block; font-size: 16px; font-weight: 700; line-height: 1.7; }
.rasta-post__cta p { margin: 2px 0 0; color: rgba(255, 255, 255, .8); font-size: 13.5px; line-height: 1.9; }
.rasta-post__cta > a, .rasta-post__cta > a:visited { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 46px; padding: 0 20px; border-radius: 14px; background: #fff; color: var(--t-blue); font-size: 14px; font-weight: 700; transition: transform .3s var(--t-ease); }
.rasta-post__cta > a:hover { transform: translateY(-2px); }
.rasta-post__cta > a svg { width: 16px; height: 16px; }

/* قبلی و بعدی */
.rasta-post__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.rasta-post__nav a, .rasta-post__nav a:visited { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--t-line); border-radius: 20px; background: #fff; transition: border-color .2s ease, box-shadow .3s ease; }
.rasta-post__nav a:hover { border-color: var(--t-blue-100); box-shadow: 0 20px 36px -28px rgba(16, 24, 40, .5); }
.rasta-post__nav a.is-next { grid-column: 2; text-align: left; }
.rasta-post__nav a.is-next small { justify-content: flex-end; }
.rasta-post__nav small { display: flex; align-items: center; gap: 4px; color: var(--t-muted); font-size: 12px; }
.rasta-post__nav small svg { width: 15px; height: 15px; }
.rasta-post__nav b { display: -webkit-box; overflow: hidden; color: var(--t-ink); font-size: 14px; font-weight: 700; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* مرتبط */
.rasta-post__related { margin-top: clamp(40px, 5vw, 64px); }
.rasta-post__related header { text-align: center; }
.rasta-post__related h2 { margin: 10px 0 0; padding: 0; color: var(--t-ink); font-family: inherit; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.6; }

/* ================= دیدگاه‌ها ================= */
.rasta-cm { margin-top: 36px; }
.rasta-cm__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rasta-cm__top h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; color: var(--t-ink); font-family: inherit; font-size: 20px; font-weight: 800; line-height: 1.6; }
.rasta-cm__top h2 svg { width: 22px; height: 22px; color: var(--t-blue); }
.rasta-cm__top > span { padding: 3px 12px; border-radius: 999px; background: var(--t-blue-50); color: var(--t-blue); font-size: 12.5px; font-weight: 600; }
.rasta-cm__list, .rasta-cm__list .children { margin: 0; padding: 0; list-style: none; }
.rasta-cm__list .children { margin-top: 10px; padding-right: clamp(16px, 4vw, 48px); border-right: 1.5px dashed rgba(47, 107, 255, .25); }
.rasta-cm__item { margin: 0 0 10px; padding: 0; }
.rasta-cm__card { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--t-line); border-radius: 22px; background: #fff; }
.rasta-cm__item.bypostauthor > .rasta-cm__card { border-color: var(--t-blue-100); background: linear-gradient(180deg, #F7FAFF, #fff); }
.rasta-cm__avatar img { width: 48px; height: 48px; margin: 0; border-radius: 16px; }
.rasta-cm__body { flex: 1; min-width: 0; }
.rasta-cm__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rasta-cm__head b { color: var(--t-ink); font-size: 14px; font-weight: 700; }
.rasta-cm__head time { margin-inline-start: auto; color: var(--t-muted); font-size: 12px; }
.rasta-cm__badge { padding: 1px 9px; border-radius: 999px; background: var(--t-blue); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.9; }
.rasta-cm__pending { margin: 6px 0 0; color: #B54708; font-size: 12.5px; }
.rasta-cm__text { margin-top: 6px; color: var(--t-ink-2); font-size: 14.5px; line-height: 2.05; overflow-wrap: anywhere; }
.rasta-cm__text p { margin: 0 0 .6em; }
.rasta-cm__text p:last-child { margin-bottom: 0; }
.rasta-cm__reply a, .rasta-cm__reply a:visited { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--t-blue); font-size: 12.5px; font-weight: 600; }
.rasta-cm__reply svg { width: 15px; height: 15px; }
.rasta-cm__empty, .rasta-cm__closed { margin: 0 0 16px; padding: 14px 18px; border: 1px dashed var(--t-line); border-radius: 18px; color: var(--t-muted); font-size: 14px; }
.rasta-cm .comments-pagination, .rasta-cm .navigation.comments-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 16px; }
.rasta-cm .page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--t-line); border-radius: 12px; color: var(--t-ink-2); font-size: 13px; }
.rasta-cm .page-numbers.current { border-color: var(--t-blue); background: var(--t-blue); color: #fff; }
.rasta-cm .page-numbers svg { width: 15px; height: 15px; }

/* فرم دیدگاه */
.rasta-cm .comment-respond { margin-top: 18px; padding: clamp(18px, 2.6vw, 26px); border: 1px solid var(--t-line); border-radius: 26px; background: #fff; }
.rasta-cm__list .comment-respond { margin: 10px 0; }
.rasta-cm__title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 4px; padding: 0; color: var(--t-ink); font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.7; }
.rasta-cm__title small a, .rasta-cm__title small a:visited { color: #B42318; font-size: 12.5px; font-weight: 400; }
.rasta-cm__note { margin: 0 0 14px; color: var(--t-muted); font-size: 12.5px; }
.rasta-cm__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.rasta-cm__form > p { margin: 0; }
.rasta-cm__form .comment-notes, .rasta-cm__form .rasta-cm__note, .rasta-cm__form .comment-form-comment, .rasta-cm__form .form-submit, .rasta-cm__form .comment-form-cookies-consent, .rasta-cm__form .logged-in-as { grid-column: 1 / -1; }
.rasta-cm__form label { display: block; margin: 0 0 6px; color: var(--t-ink-2); font-size: 13px; font-weight: 600; }
.rasta-cm__form .required { color: #F04438; }
.rasta-cm__form input[type="text"], .rasta-cm__form input[type="email"], .rasta-cm__form textarea { width: 100%; min-height: 50px; margin: 0; padding: 12px 14px; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-soft); color: var(--t-ink); box-shadow: none; font: inherit; font-size: 14.5px; line-height: 1.8; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.rasta-cm__form textarea { min-height: 130px; resize: vertical; }
.rasta-cm__form input:focus, .rasta-cm__form textarea:focus { border-color: var(--t-blue); outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); }
.rasta-cm__form input[type="email"] { text-align: right; }
.rasta-cm__form .form-submit { display: flex; justify-content: flex-end; }
.rasta-cm__submit, .rasta-cm__submit:hover, .rasta-cm__submit:focus { height: 50px; margin: 0; padding: 0 26px; border: 0; border-radius: 15px; background: var(--t-blue); color: #fff; box-shadow: 0 16px 30px -16px rgba(47, 107, 255, .9); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .2s ease; }
.rasta-cm__submit:hover { background: var(--t-blue-600); }

/* ================= واکنش‌گرا ================= */
@media (max-width: 1100px) {
    .rasta-post__layout.has-toc { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 1024px) {
    .rasta-bl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .rasta-post__layout.has-toc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; gap: 20px; }
    .rasta-post__side { position: static; }
    .rasta-toc__list { max-height: none; }
}

@media (max-width: 860px) {
    .rasta-pc.is-featured { grid-template-columns: minmax(0, 1fr); }
    .rasta-pc.is-featured .rasta-pc__media { aspect-ratio: 16 / 10; min-height: 0; margin: 8px 8px 0; border-radius: 22px; }
    .rasta-pc.is-featured .rasta-pc__media img { position: static; }
    .rasta-pc.is-featured .rasta-pc__body { padding: 22px 22px 24px; }
    .rasta-pc.is-featured .rasta-pc__body::before { inset: 10px; }
}

@media (max-width: 720px) {
    .rasta-bl .rasta-ca__bar { flex-direction: row; }
    .rasta-bl .rasta-ca__chips { display: flex; gap: 4px; overflow-x: auto; }
    .rasta-bl .rasta-ca__chip { flex: 0 0 auto; padding: 0 12px; }
    .rasta-bl__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }

    .admin-bar .rasta-post__progress { top: 46px; }
    .rasta-post__hero { margin: 0 -14px; padding: 24px 16px 40px; border-width: 0 0 1px; border-radius: 0; }
    .rasta-post__title { font-size: 24px; }
    .rasta-post__lead { font-size: 14.5px; }
    .rasta-post__meta { gap: 8px 14px; font-size: 12.5px; }
    .rasta-post__meta .rasta-post__by { flex-basis: auto; }
    .rasta-post__cover { margin-top: -22px; padding: 0; }
    .rasta-post__cover img { border-radius: 22px; }
    .rasta-post__content { font-size: 15.5px; line-height: 2.1; }
    .rasta-post__content .alignleft, .rasta-post__content .alignright { float: none; margin: 1em auto; }
    .rasta-post__share { margin-inline-start: 0; }
    .rasta-post__author { flex-direction: column; align-items: center; text-align: center; }
    .rasta-post__cta { flex-direction: column; text-align: center; }
    .rasta-post__cta > a { justify-content: center; width: 100%; }
    .rasta-post__nav { grid-template-columns: minmax(0, 1fr); }
    .rasta-post__nav a.is-next { grid-column: auto; }
    .rasta-cm__card { padding: 14px; gap: 10px; }
    .rasta-cm__avatar img { width: 40px; height: 40px; border-radius: 13px; }
    .rasta-cm__form { grid-template-columns: minmax(0, 1fr); }
    .rasta-cm__submit { width: 100%; }
}