/* سما مگ — لیست مقالات، صفحه مقاله و بخش مگ صفحه اصلی */

@font-face {
    font-family: 'Lalezar';
    src: url('fonts/lalezar/Lalezar.woff2') format('woff2');
    font-display: swap;
}

.mag {
    --mag-ink: #1d2433;
    --mag-text: #3a4252;
    --mag-muted: #7b8494;
    --mag-line: #edf0f4;
    --mag-accent: #336699;
    --mag-accent-soft: #eef4fa;
    --mag-warm: #ffd60a;
    --mag-radius: 18px;
    color: var(--mag-text);
}
.mag a { transition: color .2s ease; }

/* ---------- برچسب دسته ---------- */
.mag-chip {
    display: inline-flex;
    align-items: center;
    padding: .35rem 1.1rem;
    border-radius: 999px;
    background: var(--mag-accent-soft);
    color: var(--mag-accent);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.8;
    white-space: nowrap;
}
a.mag-chip:hover { background: var(--mag-accent); color: #fff; }
.mag-chip--glass {
    background: rgba(255, 255, 255, .92);
    color: var(--mag-ink);
    backdrop-filter: blur(6px);
}

/* ---------- متا (نویسنده / تاریخ / زمان مطالعه) ---------- */
.mag-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem .9rem;
    font-size: 1.2rem;
    color: var(--mag-muted);
}
.mag-meta__author { display: inline-flex; align-items: center; gap: .6rem; color: var(--mag-ink); font-weight: 600; }
.mag-meta__author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.mag-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: #c3c8d0; }
.mag-meta i { margin-left: .3rem; font-size: 1.1rem; }

/* ---------- کارت مقاله ---------- */
.mag-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--mag-line);
    border-radius: var(--mag-radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
    .mag-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(29, 36, 51, .1); }
    .mag-card:hover .mag-card__media img { transform: scale(1.05); }
    .mag-card:hover .mag-card__title a { color: var(--mag-accent); }
}
.mag-card__media {
    position: relative;
    display: block;
    aspect-ratio: 31 / 20;
    overflow: hidden;
    background: #eef0f3;
}
.mag-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mag-card__media .mag-chip { position: absolute; top: 1.2rem; right: 1.2rem; }
.mag-card__body { display: flex; flex-direction: column; gap: .9rem; flex: 1 1 auto; padding: 1.6rem 1.8rem 1.8rem; }
.mag-card__title { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.75; }
.mag-card__title a {
    color: var(--mag-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mag-card__excerpt {
    margin: 0;
    flex: 1 1 auto;
    font-size: 1.3rem;
    line-height: 2;
    color: var(--mag-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mag-card .mag-meta { padding-top: 1rem; border-top: 1px solid var(--mag-line); }

/* کارت ویژه (بزرگ، متن روی عکس) */
.mag-card--feature { position: relative; border: 0; min-height: 100%; }
.mag-card--feature .mag-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.mag-card--feature .mag-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 16, 32, .88) 0%, rgba(10, 16, 32, .35) 50%, rgba(10, 16, 32, 0) 75%);
}
.mag-card--feature .mag-card__body {
    position: relative;
    z-index: 1;
    justify-content: flex-end;
    min-height: 420px;
    padding: 2.6rem;
    pointer-events: none;
}
.mag-card--feature .mag-card__body a { pointer-events: auto; }
.mag-card--feature .mag-card__title { font-size: clamp(2rem, 2.4vw, 2.8rem); line-height: 1.6; }
.mag-card--feature .mag-card__title a { color: #fff; -webkit-line-clamp: 3; }
.mag-card--feature .mag-card__excerpt { flex: 0 0 auto; color: rgba(255, 255, 255, .82); max-width: 640px; }
.mag-card--feature .mag-meta { border-top-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .78); }
.mag-card--feature .mag-meta__author { color: #fff; }
.mag-card--feature .mag-chip { position: static; align-self: flex-start; }
@media (hover: hover) {
    .mag-card--feature:hover .mag-card__title a { color: var(--mag-warm); }
}

/* کارت افقی کوچک */
.mag-card--row { flex-direction: row; align-items: stretch; border-radius: 16px; }
.mag-card--row .mag-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 118px; }
.mag-card--row .mag-card__body { padding: 1.2rem 1.4rem; gap: .6rem; justify-content: center; }
.mag-card--row .mag-card__title { font-size: 1.4rem; line-height: 1.8; }
.mag-card--row .mag-card__excerpt { display: none; }
.mag-card--row .mag-meta { padding-top: 0; border-top: 0; font-size: 1.1rem; }
.mag-card--row .mag-chip { padding: .1rem .9rem; font-size: 1.05rem; align-self: flex-start; }

/* ---------- صفحه لیست ---------- */
.mag-hero {
    position: relative;
    padding: 2.4rem 0 2.6rem;
    margin-bottom: 3rem;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 214, 10, .22) 0, transparent 38%),
        radial-gradient(circle at 95% 100%, rgba(51, 102, 153, .16) 0, transparent 42%),
        linear-gradient(180deg, #f5f8fc 0%, #fff 100%);
    border-bottom: 1px solid var(--mag-line);
}
.mag-crumbs { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 0 0 1.8rem; font-size: 1.2rem; color: var(--mag-muted); }
.mag-crumbs li + li::before { content: "/"; margin-left: .6rem; color: #c3c8d0; }
.mag-crumbs a { color: var(--mag-muted); }
.mag-crumbs a:hover { color: var(--mag-accent); }
.mag-hero__inner > div { min-width: 0; }
.mag-hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.mag-hero__kicker { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: .3em; color: var(--mag-accent); direction: ltr; text-align: right; }
.mag-hero__title {
    margin: .2rem 0 .4rem;
    font-family: 'Lalezar', 'IRANSans', sans-serif;
    font-weight: normal;
    font-size: clamp(3.6rem, 5vw, 5.4rem);
    line-height: 1.3;
    color: var(--mag-ink);
}
.mag-hero__title span { color: var(--mag-accent); }
.mag-hero__sub { margin: 0; font-size: 1.45rem; color: var(--mag-muted); max-width: 520px; line-height: 2; }
.mag-search { position: relative; width: min(100%, 360px); }
.mag-search input {
    width: 100%;
    height: 48px;
    padding: 0 1.6rem 0 4.8rem;
    border: 1px solid #dfe4ea;
    border-radius: 999px;
    background: #fff;
    font-size: 1.35rem;
    box-shadow: 0 6px 18px rgba(29, 36, 51, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.mag-search input:focus { outline: none; border-color: var(--mag-accent); box-shadow: 0 0 0 3px rgba(51, 102, 153, .12); }
.mag-search button {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--mag-accent);
    color: #fff;
    cursor: pointer;
}
.mag-filters { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.mag-cats { min-width: 0; max-width: 100%; display: flex; gap: .8rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mag-cats::-webkit-scrollbar { display: none; }
.mag-cats a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid #e1e6ec;
    background: #fff;
    color: var(--mag-ink);
    font-size: 1.3rem;
    font-weight: 600;
}
.mag-cats a span { font-size: 1.1rem; color: var(--mag-muted); }
.mag-cats a:hover { border-color: var(--mag-accent); color: var(--mag-accent); }
.mag-cats a.is-active { background: var(--mag-ink); border-color: var(--mag-ink); color: #fff; }
.mag-cats a.is-active span { color: rgba(255, 255, 255, .7); }
.mag-sort { display: inline-flex; padding: 4px; border-radius: 999px; background: #eef1f5; flex: 0 0 auto; }
.mag-sort a { padding: .5rem 1.4rem; border-radius: 999px; font-size: 1.25rem; font-weight: 600; color: var(--mag-muted); }
.mag-sort a.is-active { background: #fff; color: var(--mag-ink); box-shadow: 0 2px 8px rgba(29, 36, 51, .08); }

.mag-result-note { margin: 0 0 2rem; font-size: 1.35rem; color: var(--mag-muted); }
.mag-result-note b { color: var(--mag-ink); }
.mag-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.mag-featured__side { display: grid; grid-template-rows: 1fr 1fr; gap: 2rem; }
.mag-featured__side .mag-card__body { padding: 1.4rem 1.6rem; }
.mag-featured__side .mag-card__media { aspect-ratio: 2 / 1; }
.mag-featured__side .mag-card__excerpt { display: none; }
.mag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.mag-empty {
    text-align: center;
    padding: 6rem 1rem;
    border: 1px dashed #dfe4ea;
    border-radius: var(--mag-radius);
    color: var(--mag-muted);
    font-size: 1.4rem;
}
.mag-empty b { display: block; font-size: 1.8rem; color: var(--mag-ink); margin-bottom: .6rem; }
.mag-pagination { display: flex; justify-content: center; align-items: center; gap: .6rem; margin: 4rem 0 6rem; flex-wrap: wrap; }
.mag-pagination a,
.mag-pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 999px;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--mag-ink);
}
.mag-pagination a { border: 1px solid #e1e6ec; background: #fff; }
.mag-pagination a:hover { border-color: var(--mag-accent); color: var(--mag-accent); }
.mag-pagination .is-current { background: var(--mag-ink); color: #fff; }

@media (max-width: 991px) {
    .mag-featured { grid-template-columns: minmax(0, 1fr); }
    .mag-featured__side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .mag-hero { padding: 1.6rem 0 2rem; margin-bottom: 2rem; }
    .mag-search { width: 100%; }
    .mag-filters { flex-direction: column; align-items: stretch; }
    .mag-sort { align-self: flex-start; }
    .mag-featured__side { grid-template-columns: minmax(0, 1fr); }
    .mag-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .mag-card--feature .mag-card__body { min-height: 340px; padding: 1.8rem; }
}

/* ---------- صفحه مقاله ---------- */
.mag-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10000;
    height: 3px;
    background: transparent;
    pointer-events: none;
}
.mag-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--mag-warm, #ffd60a), #336699);
    transform-origin: right center;
    transform: scaleX(0);
}
.mag-article__hero { padding-top: 2.4rem; text-align: center; }
.mag-article__hero .mag-crumbs { justify-content: center; }
.mag-article__title {
    max-width: 880px;
    margin: 1.4rem auto 1.2rem;
    font-size: clamp(2.6rem, 3.4vw, 4rem);
    font-weight: 900;
    line-height: 1.6;
    color: var(--mag-ink);
}
.mag-article__lead { max-width: 720px; margin: 0 auto 1.8rem; font-size: 1.55rem; line-height: 2.1; color: var(--mag-muted); }
.mag-article__hero .mag-meta { justify-content: center; font-size: 1.3rem; }
.mag-article__hero .mag-meta__author img { width: 34px; height: 34px; }
.mag-article__cover {
    max-width: 980px;
    margin: 2.8rem auto 0;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 31 / 16;
    background: #eef0f3;
    box-shadow: 0 24px 50px rgba(29, 36, 51, .14);
}
.mag-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.mag-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 4rem;
    margin-top: 4rem;
}
.mag-article__main { min-width: 0; }

/* فهرست مطالب — ستون کناری چسبان */
.mag-toc-wrap { position: relative; }
.mag-toc {
    position: sticky;
    top: 100px;
    border: 1px solid var(--mag-line);
    border-radius: var(--mag-radius);
    background: #fafbfd;
    padding: 1.6rem 1.4rem;
}
.mag-toc summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--mag-ink);
}
.mag-toc summary::-webkit-details-marker { display: none; }
.mag-toc summary::after { content: "\25BE"; font-size: 1.2rem; color: var(--mag-muted); transition: transform .2s ease; }
.mag-toc[open] summary::after { transform: rotate(180deg); }
.mag-toc ol { list-style: none; counter-reset: toc; margin: 1.2rem 0 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.mag-toc li { counter-increment: toc; }
.mag-toc a {
    display: flex;
    gap: .8rem;
    padding: .7rem .8rem;
    border-radius: 10px;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--mag-text);
}
.mag-toc a::before { content: counter(toc); flex: 0 0 auto; min-width: 2.2rem; height: 2.2rem; margin-top: .2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e8edf3; font-size: 1.05rem; font-weight: 700; color: var(--mag-muted); }
.mag-toc a:hover { background: #fff; color: var(--mag-accent); }
.mag-toc a.is-active { background: #fff; color: var(--mag-accent); font-weight: 700; box-shadow: 0 2px 8px rgba(29, 36, 51, .06); }
.mag-toc a.is-active::before { background: var(--mag-accent); color: #fff; }

/* متن مقاله */
.mag-prose { font-size: 1.6rem; line-height: 2.3; color: var(--mag-text); overflow-wrap: anywhere; }
.mag-prose > * + * { margin-top: 1.4rem; }
.mag-prose p { margin: 0 0 1.4rem; }
.mag-prose h2,
.mag-prose h3,
.mag-prose h4 { color: var(--mag-ink); font-weight: 800; line-height: 1.7; scroll-margin-top: 110px; }
.mag-prose h2 {
    position: relative;
    margin: 4rem 0 1.6rem;
    padding-right: 1.6rem;
    font-size: 2.2rem;
}
.mag-prose .mag-empty-heading { margin: 0; padding: 0; }
.mag-prose .mag-empty-heading::before { display: none; }
.mag-prose h2::before {
    content: "";
    position: absolute;
    right: 0;
    top: .5em;
    bottom: .5em;
    width: 5px;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--mag-warm), var(--mag-accent));
}
.mag-prose h3 { margin: 3rem 0 1.2rem; font-size: 1.85rem; }
.mag-prose h4 { margin: 2.4rem 0 1rem; font-size: 1.65rem; }
.mag-prose strong { color: var(--mag-ink); }
.mag-prose a { color: var(--mag-accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(51, 102, 153, .35); }
.mag-prose a:hover { text-decoration-color: currentColor; }
.mag-prose ul,
.mag-prose ol { padding-right: 2.2rem; margin: 0 0 1.6rem; }
.mag-prose li { margin-bottom: .6rem; }
.mag-prose ul li::marker { color: var(--mag-accent); }
.mag-prose figure { margin: 2.6rem 0; text-align: center; }
.mag-prose figure.image,
.mag-prose .image.image-style-align-center { display: flex; flex-direction: column; align-items: center; }
.mag-prose img { max-width: 100% !important; height: auto !important; border-radius: 16px; }
.mag-prose figcaption { margin-top: .8rem; font-size: 1.2rem; color: var(--mag-muted); }
.mag-prose blockquote {
    margin: 2.6rem 0;
    padding: 1.8rem 2.2rem;
    border-radius: 16px;
    background: var(--mag-accent-soft);
    border-right: 4px solid var(--mag-accent);
    font-size: 1.7rem;
    color: var(--mag-ink);
}
.mag-prose table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 1.35rem; display: block; overflow-x: auto; }
.mag-prose th,
.mag-prose td { border: 1px solid var(--mag-line); padding: .9rem 1.2rem; }
.mag-prose th { background: #f5f7fa; color: var(--mag-ink); }
.mag-prose__intro {
    font-size: 1.7rem;
    color: var(--mag-ink);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--mag-line);
}

/* اشتراک‌گذاری */
.mag-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 4rem;
    padding: 1.6rem 2rem;
    border-radius: var(--mag-radius);
    background: #f7f9fc;
    border: 1px solid var(--mag-line);
}
.mag-share b { font-size: 1.45rem; color: var(--mag-ink); }
.mag-share__buttons { display: flex; gap: .8rem; }
.mag-share__buttons a,
.mag-share__buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    height: 40px;
    min-width: 40px;
    padding: 0 1.2rem;
    border: 1px solid #e1e6ec;
    border-radius: 999px;
    background: #fff;
    color: var(--mag-ink);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
}
.mag-share__buttons a:hover,
.mag-share__buttons button:hover { border-color: var(--mag-accent); color: var(--mag-accent); }
.mag-share__buttons .is-copied { background: #eafaf1; border-color: #12a05c; color: #12a05c; }

/* نویسنده */
.mag-author {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    margin-top: 2.4rem;
    padding: 2.2rem;
    border-radius: var(--mag-radius);
    background: linear-gradient(135deg, #1d2b53, #336699);
    color: rgba(255, 255, 255, .85);
}
.mag-author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .5); flex: 0 0 auto; }
.mag-author small { display: block; font-size: 1.15rem; opacity: .7; }
.mag-author b { display: block; font-size: 1.7rem; color: #fff; margin-bottom: .4rem; }
.mag-author p { margin: 0; font-size: 1.3rem; line-height: 2; }

/* بخش‌های پایین مقاله */
.mag-section { margin-top: 6rem; }
.mag-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; }
.mag-section__title { margin: 0; font-size: 2.2rem; font-weight: 900; color: var(--mag-ink); }
.mag-section__more { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 700; color: var(--mag-accent); }

/* نظرات مقاله */
.mag-comments { max-width: none; }
.mag-comment { display: flex; gap: 1.2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--mag-line); }
.mag-comment--reply { margin-right: 5rem; padding-top: 0; border-bottom: 0; }
.mag-comment__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #336699, #5b8fc7);
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
}
.mag-comment--reply .mag-comment__avatar { background: linear-gradient(135deg, #f59e0b, #ef394e); }
.mag-comment__body { flex: 1 1 auto; min-width: 0; }
.mag-comment__head { display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; }
.mag-comment__head b { font-size: 1.35rem; color: var(--mag-ink); }
.mag-comment__head span { font-size: 1.15rem; color: var(--mag-muted); }
.mag-comment__badge { padding: .1rem .8rem; border-radius: 999px; background: #fff3e0; color: #c26a00 !important; font-weight: 700; }
.mag-comment p { margin: .6rem 0 0; font-size: 1.4rem; line-height: 2; white-space: pre-line; }
.mag-comment-form {
    margin-top: 2.4rem;
    padding: 2rem;
    border-radius: var(--mag-radius);
    border: 1px solid #e3e8ef;
    background: #fff;
    box-shadow: 0 8px 24px rgba(29, 36, 51, .05);
}
.mag-comment-form h4 { margin: 0 0 1.2rem; font-size: 1.6rem; font-weight: 800; color: var(--mag-ink); }
.mag-comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1.2rem 1.4rem;
    border: 1px solid #dfe4ea;
    border-radius: 14px;
    background: #fbfcfd;
    font-size: 1.4rem;
    line-height: 1.9;
    resize: vertical;
}
.mag-comment-form textarea:focus { outline: none; border-color: var(--mag-accent); box-shadow: 0 0 0 3px rgba(51, 102, 153, .12); background: #fff; }
.mag-comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; flex-wrap: wrap; font-size: 1.2rem; color: var(--mag-muted); }
.mag-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 2.4rem;
    border: 0;
    border-radius: 999px;
    background: var(--mag-ink);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}
.mag-btn:hover { background: var(--mag-accent); color: #fff; }
.mag-btn:disabled { opacity: .6; cursor: wait; }

@media (max-width: 991px) {
    .mag-article__layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2.8rem; }
    .mag-toc-wrap { order: -1; }
    .mag-toc { position: static; }
    .mag-toc ol { max-height: none; }
}
@media (max-width: 575px) {
    .mag-article__hero { text-align: right; }
    .mag-article__hero .mag-crumbs,
    .mag-article__hero .mag-meta { justify-content: flex-start; }
    .mag-article__cover { border-radius: 16px; margin-top: 2rem; }
    .mag-prose { font-size: 1.5rem; line-height: 2.2; }
    .mag-prose h2 { font-size: 1.9rem; margin-top: 3rem; }
    .mag-author { flex-direction: column; text-align: center; }
    .mag-comment--reply { margin-right: 2.4rem; }
    .mag-section { margin-top: 4rem; }
    .mag-section__title { font-size: 1.8rem; }
}

/* ---------- صفحه اصلی: بخش سما مگ ---------- */
.mag-home { margin-bottom: 4rem; }
.mag-home__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.mag-home__kicker { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: .3em; color: var(--mag-accent); direction: ltr; text-align: right; }
.mag-home__title { margin: 0; font-family: 'Lalezar', 'IRANSans', sans-serif; font-weight: normal; font-size: 3.2rem; line-height: 1.4; color: var(--mag-ink); }
.mag-home__title a { color: inherit; }
.mag-home__sub { margin: 0; font-size: 1.3rem; color: var(--mag-muted); }
.mag-home__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .7rem 1.6rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--mag-accent);
    white-space: nowrap;
}
.mag-home__more:hover { background: var(--mag-accent); border-color: var(--mag-accent); color: #fff; }
.mag-home__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; }
.mag-home__list { display: grid; grid-template-rows: repeat(4, 1fr); gap: 1.4rem; }
.mag-home__list .mag-card--row .mag-card__media { flex-basis: 34%; min-height: 104px; }
@media (max-width: 991px) {
    .mag-home__grid { grid-template-columns: minmax(0, 1fr); }
    .mag-home__list { grid-template-rows: none; }
}
@media (max-width: 575px) {
    .mag-home__title { font-size: 2.6rem; }
    .mag-home__more { padding: .55rem 1.1rem; font-size: 1.15rem; }
}
