/* ==========================================================
   وبلاگ ماریسا (The Marissa Journal)
   فقط در صفحات وبلاگ بارگذاری می‌شود؛ از توکن‌ها و کلاس‌های
   مشترک site.css (breadcrumb، kicker، rule، content) استفاده می‌کند.
   ========================================================== */

.blog,
.post-page { background: var(--brand-ink); }

/* ---------- سربرگ فهرست ---------- */
.blog-hero {
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
    background:
        radial-gradient(55rem 28rem at 12% 0%, rgba(201, 162, 39, .09), transparent 60%),
        var(--brand-ink-2);
}

.blog-hero__title {
    margin: .5rem 0 0;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--brand-text);
}

.blog-hero__lead {
    max-width: 36rem;
    margin: 0;
    line-height: 2;
    color: var(--brand-muted);
}

/* جست‌وجو: یک خط باریک طلایی، نه یک فرم سنگین */
.blog-search {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--brand-line);
    transition: border-color .3s var(--ease);
}

.blog-search:focus-within { border-color: var(--brand-gold); }

.blog-search__input {
    flex: 1;
    min-width: 0;
    padding: .85rem 0;
    border: 0;
    background: transparent;
    color: var(--brand-text);
    font: inherit;
}

.blog-search__input::placeholder { color: var(--brand-muted); }
.blog-search__input:focus { outline: none; }
.blog-search__input::-webkit-search-cancel-button { filter: invert(.7); }

.blog-search__button {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: var(--brand-gold-soft);
}

.blog-search__button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* ---------- نوار دسته‌بندی ---------- */
.blog-cats {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    background: rgba(15, 13, 11, .92);
    backdrop-filter: blur(10px);
    border-block: 1px solid var(--brand-line);
}

.blog-cats__list {
    display: flex;
    gap: .5rem;
    margin: 0;
    padding: .8rem 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.blog-cats__list::-webkit-scrollbar { display: none; }
.blog-cats__list > li { flex: none; scroll-snap-align: start; }

.blog-cats__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1rem;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    font-size: .85rem;
    white-space: nowrap;
    color: var(--brand-text);
    transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}

.blog-cats__link:hover { border-color: var(--brand-gold); color: var(--brand-gold-soft); }

.blog-cats__link.is-active {
    border-color: transparent;
    background: linear-gradient(180deg, var(--brand-gold-soft), var(--brand-gold));
    color: #221b0e;
    font-weight: 600;
}

.blog-cats__count {
    min-width: 1.4rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: .7rem;
    line-height: 1.4rem;
    text-align: center;
    color: var(--brand-muted);
}

.blog-cats__link.is-active .blog-cats__count { background: rgba(34, 27, 14, .15); color: #221b0e; }

/* ---------- بدنهٔ فهرست ---------- */
.blog__wrap { padding-block: clamp(2rem, 5vw, 3.5rem); }

.blog__section-title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem);
    font-weight: 600;
}

.blog__section-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
    margin-top: .7rem;
    background: var(--brand-gold);
}

.blog-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.75rem;
    padding: .9rem 1.2rem;
    border: 1px dashed var(--brand-line);
    color: var(--brand-muted);
}

.blog-result p { margin: 0; }
.blog-result strong { color: var(--brand-text); }
.blog-result a { font-size: .85rem; color: var(--brand-gold-soft); }
.blog-result a:hover { text-decoration: underline; }

/* ---------- مطلب ویژه ---------- */
.blog-featured {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
    border-bottom: 1px solid var(--brand-line);
}

@media (min-width: 992px) {
    .blog-featured { grid-template-columns: 7fr 5fr; }
}

.blog-featured__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
}

/* همان قاب طلایی جابه‌جاشدهٔ صفحهٔ دسته‌بندی؛ امضای بصری برند */
.blog-featured__media::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(-14px, 14px);
    border: 1px solid var(--brand-gold);
    pointer-events: none;
}

.blog-featured__media img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--brand-line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}

.blog-featured__badge {
    display: block;
    margin-bottom: .9rem;
    font-family: "Times New Roman", Georgia, serif;
    font-size: .65rem;
    letter-spacing: .4em;
    color: var(--brand-muted);
}

.blog-featured__title {
    margin: .5rem 0 1rem;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.55;
}

.blog-featured__title a { transition: color .25s var(--ease); }
.blog-featured__title a:hover { color: var(--brand-gold-soft); }

.blog-featured__excerpt {
    margin: 0 0 1.25rem;
    line-height: 2;
    color: var(--brand-muted);
}

.blog-featured__cta { margin-top: 1.75rem; padding: .6rem 1.5rem; }

/* ---------- شبکهٔ مطالب ---------- */
.blog-grid {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--brand-line);
    background: linear-gradient(180deg, var(--brand-surface), var(--brand-ink-2));
    transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}

.post-card__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.1rem;
}

.post-card__category {
    align-self: flex-start;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--brand-gold-soft);
}

.post-card__category:hover { text-decoration: underline; text-underline-offset: .3em; }

.post-card__title {
    margin: .5rem 0 .6rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* کل کارت قابل کلیک؛ لینک دسته بالای این لایه می‌ماند */
.post-card { position: relative; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__category { position: relative; z-index: 1; }

.post-card__excerpt {
    margin: 0 0 1rem;
    font-size: .88rem;
    line-height: 1.95;
    color: var(--brand-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px dashed var(--brand-line);
    font-size: .75rem;
    color: var(--brand-muted);
}

.blog-featured .post-card__meta { border-top: 0; padding-top: 0; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .post-card:hover {
        border-color: rgba(201, 162, 39, .6);
        transform: translateY(-4px);
        box-shadow: 0 24px 48px rgba(0, 0, 0, .4);
    }

    .post-card:hover .post-card__media img { transform: scale(1.05); }
}

.post-card:focus-within { border-color: var(--brand-gold); }

/* ---------- صفحه‌بندی ---------- */
.blog-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: clamp(2rem, 5vw, 3rem);
}

.blog-pager__list {
    display: flex;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-pager__link,
.blog-pager__step {
    display: grid;
    place-items: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding-inline: .75rem;
    border: 1px solid var(--brand-line);
    font-size: .85rem;
    color: var(--brand-text);
    transition: border-color .25s var(--ease), color .25s var(--ease);
}

.blog-pager__link:hover,
.blog-pager__step:hover { border-color: var(--brand-gold); color: var(--brand-gold-soft); }

.blog-pager__link.is-active {
    border-color: var(--brand-gold);
    background: rgba(201, 162, 39, .12);
    color: var(--brand-gold-soft);
}

/* ---------- حالت خالی ---------- */
.blog-empty {
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding-block: clamp(3rem, 8vw, 5rem);
    text-align: center;
    color: var(--brand-muted);
}

.blog-empty svg {
    width: 56px;
    height: 56px;
    fill: none;
    stroke: var(--brand-gold);
    stroke-width: 1.4;
    opacity: .7;
}

.blog-empty p { margin: 0; }

/* ---------- دعوت به عمل ---------- */
.blog-cta {
    padding-block: clamp(2rem, 5vw, 3rem);
    background: var(--brand-ink-2);
    border-top: 1px solid var(--brand-line);
}

.blog-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.blog-cta__title {
    margin: 0 0 .35rem;
    font-size: clamp(1.1rem, 1rem + .8vw, 1.5rem);
    font-weight: 600;
    color: var(--brand-gold-soft);
}

.blog-cta__text { margin: 0; color: var(--brand-muted); }
.blog-cta .btn { padding: .7rem 1.6rem; }

/* ==========================================================
   صفحهٔ مطلب
   ========================================================== */

.post-progress {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1040;
    height: 2px;
    pointer-events: none;
}

.post-progress span {
    display: block;
    height: 100%;
    background: var(--brand-gold);
    transform: scaleX(0);
    transform-origin: right;   /* RTL: از راست پر می‌شود */
}

.post-page__hero {
    padding-top: calc(var(--header-h) + 1.25rem);
    background:
        radial-gradient(60rem 30rem at 50% 0%, rgba(201, 162, 39, .08), transparent 60%),
        var(--brand-ink-2);
}

.post-page__head {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
}

.post-page__category {
    display: inline-block;
    padding: .3rem .9rem;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    font-size: .78rem;
    color: var(--brand-gold-soft);
}

.post-page__category:hover { border-color: var(--brand-gold); }

.post-page__title {
    margin: 1.1rem 0 0;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.6;
}

.post-page__lead {
    max-width: 42rem;
    margin: 1rem auto 0;
    font-size: clamp(1rem, 1rem + .2vw, 1.1rem);
    line-height: 2;
    color: var(--brand-muted);
}

.post-page__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem 1.25rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .8rem;
    color: var(--brand-muted);
}

.post-page__meta li + li::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-inline-end: 1.25rem;
    border-radius: 50%;
    background: var(--brand-gold);
    vertical-align: middle;
}

/* کاور تا نیمه روی بدنه می‌آید تا سربرگ و متن به هم دوخته شوند */
.post-page__cover {
    position: relative;
    max-width: 1100px;
    margin: clamp(2rem, 5vw, 3rem) auto 0;
    aspect-ratio: 16 / 9;
    transform: translateY(clamp(1.5rem, 4vw, 3rem));
}

.post-page__cover::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(-14px, 14px);
    border: 1px solid var(--brand-gold);
    pointer-events: none;
}

.post-page__cover img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--brand-line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}

.post-page__body { padding-block: clamp(4rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem); }

/* متن کمی درشت‌تر از صفحهٔ دسته‌بندی؛ برای مطالعهٔ طولانی */
.post-content { font-size: 1.04rem; }
.post-content > p:first-of-type { font-size: 1.1rem; color: var(--brand-text); }
.post-content h2 { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.post-content figure { margin: 1.75rem 0; }
.post-content figcaption { margin-top: .5rem; font-size: .8rem; text-align: center; color: var(--brand-muted); }
.post-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 1px solid var(--brand-line); }

/* ---------- اشتراک‌گذاری ---------- */
.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brand-line);
}

.post-share__label { font-size: .85rem; color: var(--brand-muted); }

.post-share__list { position: relative; display: flex; gap: .5rem; }

.post-share__btn {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--brand-line);
    border-radius: 50%;
    background: transparent;
    color: var(--brand-gold-soft);
    transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

.post-share__btn:hover { border-color: var(--brand-gold); background: rgba(201, 162, 39, .1); }

.post-share__btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-share__toast {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + .5rem);
    padding: .3rem .75rem;
    background: var(--brand-gold);
    color: #221b0e;
    font-size: .75rem;
    white-space: nowrap;
}

/* ---------- ستون کناری ---------- */
.post-aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    display: grid;
    gap: 1.25rem;
}

.post-aside__block,
.post-toc {
    padding: 1.4rem 1.3rem;
    border: 1px solid var(--brand-line);
    background: linear-gradient(180deg, var(--brand-surface), var(--brand-ink-2));
}

.post-aside__title {
    margin: 0 0 1rem;
    font-size: .95rem;
    font-weight: 600;
}

.post-aside__title::after {
    content: "";
    display: block;
    width: 2rem;
    height: 1px;
    margin-top: .6rem;
    background: var(--brand-gold);
}

.post-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.post-toc__list li { counter-increment: toc; }

.post-toc__list a {
    display: flex;
    gap: .6rem;
    padding: .4rem 0;
    font-size: .83rem;
    line-height: 1.8;
    color: var(--brand-muted);
    transition: color .2s var(--ease);
}

.post-toc__list a::before {
    content: counter(toc, persian);
    flex: none;
    color: var(--brand-gold);
}

.post-toc__list a:hover,
.post-toc__list a.is-active { color: var(--brand-text); }

.post-aside__cats { margin: 0; padding: 0; list-style: none; }

.post-aside__cats a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px dashed var(--brand-line);
    font-size: .85rem;
    color: var(--brand-muted);
    transition: color .2s var(--ease);
}

.post-aside__cats li:last-child a { border-bottom: 0; }
.post-aside__cats a:hover,
.post-aside__cats a.is-active { color: var(--brand-gold-soft); }
.post-aside__count { font-size: .75rem; }

.post-aside__promo p {
    margin: .6rem 0 1rem;
    font-size: .9rem;
    line-height: 1.9;
    color: var(--brand-text);
}

.post-aside__promo .contact-cta { margin-top: .6rem; }
.post-aside__promo .contact-cta__text { margin: 0; }

/* ---------- مطالب مرتبط ---------- */
.post-related {
    padding-block: clamp(2.5rem, 6vw, 4rem);
    background: var(--brand-ink-2);
    border-top: 1px solid var(--brand-line);
}

/* ---------- واکنش‌گرایی و دسترس‌پذیری ---------- */
@media (max-width: 991.98px) {
    .post-aside { position: static; }
    .post-toc { display: none; }
    .blog-featured__media::before,
    .post-page__cover::before { transform: translate(-10px, 10px); }
}

@media (prefers-reduced-motion: reduce) {
    .post-card,
    .post-card__media img,
    .post-progress span { transition: none; }
    .post-page__cover img,
    .blog-featured__media img { box-shadow: none; }
}

/* ==========================================================
   قالب یکدست مقاله‌های آموزشی وبلاگ (mj-*  = Marissa Journal)
   همهٔ مقاله‌ها با همین کلاس‌ها نوشته می‌شوند و CSS اختصاصی
   برای هر مطلب لازم نیست. ساختار پیشنهادی:
   معرفی (mj-lead) ← خلاصه (mj-summary) ← فصل‌ها با H2 ←
   تصویر (mj-figure) ← کارت‌ها (mj-types) ← مزایا/معایب (mj-props) ←
   جدول (mj-table) ← نکته (mj-note) ← مراحل (mj-steps) ← جمع‌بندی ← mj-cta
   نکته: کلاس mj-cta خودکار به دکمهٔ «تماس با ما» تبدیل می‌شود.
   ========================================================== */

/* --- معرفی --- */
.mj-intro { margin-bottom: 1.75rem; }

.post-content .mj-lead,
.post-content > .mj-intro:first-child .mj-lead {
    font-size: clamp(1.05rem, 1rem + .3vw, 1.18rem);
    line-height: 2.15;
    color: var(--brand-text);
}

.post-content strong { color: var(--brand-text); font-weight: 600; }

/* --- خلاصه در یک نگاه --- */
.post-content .mj-summary {
    position: relative;
    margin: 0 0 2.5rem;
    padding: 1.4rem 1.5rem 1.1rem;
    border: 1px solid var(--brand-line);
    border-inline-start: 2px solid var(--brand-gold);
    background: linear-gradient(180deg, var(--brand-surface), var(--brand-ink-2));
}

.post-content .mj-summary__title,
.post-content .mj-note__title,
.post-content .mj-props__title {
    margin: 0 0 .75rem;
    font-size: .95rem;
    font-weight: 600;
    color: var(--brand-gold-soft);
}

.post-content .mj-summary ul { margin-bottom: 0; }
.post-content .mj-summary li { font-size: .95rem; }

/* --- تصویر با قاب طلایی جابه‌جاشده (همان امضای کاور) --- */
.post-content .mj-figure {
    position: relative;
    margin: 2.25rem 0 2.5rem;
    padding: 0 0 14px 14px;
}

.post-content .mj-figure::before {
    content: "";
    position: absolute;
    inset: 14px 14px 0 0;   /* در RTL: قاب به سمت چپ-پایین */
    border: 1px solid var(--brand-gold);
    pointer-events: none;
}

.post-content .mj-figure img {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    border: 1px solid var(--brand-line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
}

.post-content .mj-figure figcaption { margin-top: 1.1rem; line-height: 1.9; }

/* --- کارت‌های دسته‌بندی (مثلاً سه نوع لیف) --- */
.post-content .mj-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 2rem;
}

.post-content .mj-type {
    padding: 1.2rem 1.1rem 1.1rem;
    border: 1px solid var(--brand-line);
    border-top: 2px solid var(--brand-gold);
    background: rgba(255, 255, 255, .02);
    text-align: center;
}

.post-content .mj-type__tag {
    display: block;
    font-family: "Times New Roman", Georgia, serif;
    font-size: .62rem;
    letter-spacing: .3em;
    color: var(--brand-muted);
}

.post-content .mj-type__title {
    margin: .55rem 0 .45rem;
    padding: 0;
    border: 0;
    font-size: 1.02rem;
    color: var(--brand-gold-soft);
}

.post-content .mj-type p { margin: 0; font-size: .86rem; line-height: 1.9; }

/* نسخهٔ دوستونی کارت‌ها برای مقایسهٔ دو گزینه (مثلاً دو شاخهٔ یک بافت) */
.post-content .mj-types--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-content .mj-types--2 .mj-type { text-align: start; }

/* نسخهٔ چهارتایی کارت‌ها (مثلاً چهار الیاف)؛ در تبلت دو در دو */
.post-content .mj-types--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 991.98px) {
    .post-content .mj-types--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- شناسنامهٔ کوتاه (مشخصات کلیدی یک موضوع به شکل کلید/مقدار) --- */
.post-content .mj-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.5rem 0 1.75rem;
    border: 1px solid var(--brand-line);
    border-top: 2px solid var(--brand-gold);
    background: rgba(255, 255, 255, .02);
}

.post-content .mj-facts__item {
    margin: 0;
    padding: .85rem 1.1rem;
    border-bottom: 1px dashed var(--brand-line);
}

.post-content .mj-facts__item:nth-child(odd) { border-inline-end: 1px dashed var(--brand-line); }
.post-content .mj-facts__item:nth-last-child(-n + 2) { border-bottom: 0; }

.post-content .mj-facts dt {
    margin-bottom: .2rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--brand-gold-soft);
}

.post-content .mj-facts dd {
    margin: 0;
    font-size: .92rem;
    line-height: 1.85;
    color: var(--brand-text);
}

/* --- مزایا و محدودیت‌ها --- */
.post-content .mj-props {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 2rem;
}

.post-content .mj-props__col {
    padding: 1.2rem 1.25rem .6rem;
    border: 1px solid var(--brand-line);
    background: rgba(255, 255, 255, .02);
}

.post-content .mj-props__col ul { margin-bottom: .6rem; list-style: none; padding-inline-start: 0; }
.post-content .mj-props__col li { position: relative; padding-inline-start: 1.4rem; font-size: .92rem; }

.post-content .mj-props__col li::before {
    position: absolute;
    inset-inline-start: 0;
    font-weight: 700;
}

.post-content .mj-props__col--plus li::before { content: "+"; color: var(--brand-gold); }
.post-content .mj-props__col--minus li::before { content: "−"; color: var(--brand-muted); }
.post-content .mj-props__col--minus .mj-props__title { color: var(--brand-text); }

/* --- جدول (روی موبایل افقی اسکرول می‌خورد) --- */
.post-content .mj-table {
    display: block;
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    font-size: .9rem;
    -webkit-overflow-scrolling: touch;
}

.post-content .mj-table thead th {
    background: rgba(201, 162, 39, .1);
    color: var(--brand-gold-soft);
    font-weight: 600;
    white-space: nowrap;
}

.post-content .mj-table tbody th {
    white-space: nowrap;
    color: var(--brand-text);
    font-weight: 600;
    background: rgba(255, 255, 255, .02);
}

.post-content .mj-table td { line-height: 1.9; min-width: 9rem; }
.post-content .mj-table tbody tr:hover td { background: rgba(201, 162, 39, .04); }

/* --- نکته / هشدار --- */
.post-content .mj-note {
    margin: 2rem 0;
    padding: 1.2rem 1.4rem .3rem;
    border: 1px dashed var(--brand-line);
    background: rgba(201, 162, 39, .05);
}

.post-content .mj-note--warn { border-style: solid; border-inline-start: 2px solid var(--brand-gold); background: rgba(255, 255, 255, .03); }
.post-content .mj-note p:not(.mj-note__title) { font-size: .95rem; }

/* --- مراحل شماره‌دار --- */
.post-content .mj-steps {
    margin: 1.5rem 0 2rem;
    padding: 0;
    list-style: none;
    counter-reset: mj-step;
}

.post-content .mj-steps li {
    position: relative;
    margin-bottom: .85rem;
    padding: .9rem 3.4rem .9rem 1rem;
    border: 1px solid var(--brand-line);
    background: rgba(255, 255, 255, .02);
    counter-increment: mj-step;
}

.post-content .mj-steps li::before {
    content: counter(mj-step, persian);
    position: absolute;
    top: 50%;
    inset-inline-start: 1rem;
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    transform: translateY(-50%);
    border: 1px solid var(--brand-gold);
    border-radius: 50%;
    font-size: .85rem;
    color: var(--brand-gold-soft);
}

/* --- واکنش‌گرایی --- */
@media (max-width: 767.98px) {
    .post-content .mj-types,
    .post-content .mj-props,
    .post-content .mj-facts { grid-template-columns: 1fr; }
    .post-content .mj-facts__item:nth-child(odd) { border-inline-end: 0; }
    .post-content .mj-facts__item:nth-last-child(2) { border-bottom: 1px dashed var(--brand-line); }
    .post-content .mj-figure { padding: 0 0 10px 10px; }
    .post-content .mj-figure::before { inset: 10px 10px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .post-content .mj-figure img { box-shadow: none; }
}
