/* ==========================================================================
   جریان مگ — استایل اصلی
   ========================================================================== */
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
	--green: #0F7A4B;
	--green-700: #0A5C38;
	--green-500: #16A34A;
	--green-100: #D6F2E3;
	--green-50: #EFFBF4;

	--yellow: #FACC15;
	--yellow-600: #C79A05;
	--yellow-100: #FEF3C7;
	--yellow-50: #FFFBEB;

	--blue: #2563EB;
	--blue-700: #1D4ED8;
	--blue-100: #DBEAFE;
	--blue-50: #EFF6FF;

	--ink: #14211C;
	--text: #465049;
	--muted: #6E7A72;
	--line: #E4EAE6;
	--soft: #F6F9F7;

	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 24px;
	--r-xl: 30px;
	--r-pill: 999px;
	--shadow: 0 2px 4px rgba(20, 33, 28, .04), 0 18px 36px -24px rgba(20, 33, 28, .3);

	--wrap: 1220px;
	--narrow: 780px;
	--gutter: clamp(16px, 4vw, 30px);
	--header-h: 76px;

	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-md: 1.0625rem;
	--fs-lg: 1.1875rem;
	--fs-xl: 1.4375rem;
	--fs-2xl: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
	--fs-3xl: clamp(1.75rem, 1.2rem + 2.1vw, 2.6rem);
	--article-fs: 1.125rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 1rem; line-height: 1.95; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
body.jm-lock { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); line-height: 1.6; font-weight: 800; }
p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.jm-skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 999; background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.jm-skip:focus { top: 12px; }
.jm-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.jm-narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.jm-icon { flex-shrink: 0; }

.jm-topline { display: flex; height: 5px; }
.jm-topline span { flex: 1; }
.jm-topline span:nth-child(1) { background: var(--green); }
.jm-topline span:nth-child(2) { background: var(--yellow); }
.jm-topline span:nth-child(3) { background: var(--blue); }

/* دکمه‌ها */
.jm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border: 2px solid transparent; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.jm-btn--green { background: var(--green); color: #fff; }
.jm-btn--green:hover { background: var(--green-700); }
.jm-btn--yellow { background: var(--yellow); color: #3A2E00; }
.jm-btn--yellow:hover { background: #EAB308; }
.jm-btn--blue { background: var(--blue); color: #fff; }
.jm-btn--blue:hover { background: var(--blue-700); }
.jm-btn--outline { background: #fff; border-color: var(--line); color: var(--ink); }
.jm-btn--outline:hover { border-color: var(--green); color: var(--green); }
.jm-btn--ghost { background: var(--soft); color: var(--ink); }
.jm-icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.jm-icon-btn:hover { background: var(--soft); }
.jm-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); color: var(--green); }
.jm-link:hover { color: var(--green-700); }
.jm-link .jm-icon { transition: transform .2s; }
.jm-link:hover .jm-icon { transform: translateX(-4px); }
[dir="ltr"] .jm-link .jm-icon, [dir="ltr"] .jm-card__more .jm-icon { transform: scaleX(-1); }

.jm-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 15px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; }
.jm-pill--yellow { background: var(--yellow); color: #3A2E00; }
.jm-badge { display: inline-flex; align-items: center; padding: 4px 13px; border-radius: var(--r-pill); background: var(--green-100); color: var(--green-700); font-size: var(--fs-xs); font-weight: 700; }
.jm-badge:hover { background: var(--green); color: #fff; }
.jm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: var(--fs-xs); color: var(--muted); }
.jm-meta > span + span { margin-inline-start: 10px; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); line-height: 1.1; }
.jm-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--soft); }

.jm-social { list-style: none; display: flex; gap: 6px; }
.jm-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s, color .2s; }
.jm-social a:hover { background: var(--yellow); color: #3A2E00; }

/* ---------- هدر ---------- */
.jm-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .jm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .jm-header { top: 0; } }
.jm-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.jm-menu-toggle { display: none; }
.jm-logo img { max-height: 52px; width: auto; }
.jm-logo__link { display: inline-flex; align-items: center; gap: 11px; }
.jm-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.jm-logo__name { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.jm-logo__tag { font-size: 11px; font-weight: 500; color: var(--green); }
.jm-nav { margin-inline-start: auto; }
.jm-nav__head, .jm-nav__search { display: none; }
.jm-nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.jm-nav__list > li { position: relative; }
.jm-nav__list a { display: block; padding: 9px 15px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--text); transition: background-color .2s, color .2s; }
.jm-nav__list a:hover { background: var(--green-50); color: var(--green-700); }
.jm-nav__list > .current-menu-item > a, .jm-nav__list > .current-menu-ancestor > a { background: var(--green-100); color: var(--green-700); font-weight: 700; }
.jm-nav__list .sub-menu { list-style: none; position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 210px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.jm-nav__list li:hover > .sub-menu, .jm-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.jm-header__actions { display: flex; align-items: center; gap: 6px; }
.jm-header__cta { min-height: 42px; padding-inline: 18px; }

.jm-overlay { position: fixed; inset: 0; z-index: 105; background: rgba(20, 33, 28, .45); }
.jm-search { position: fixed; inset-inline: 0; top: 0; z-index: 130; padding: 24px 0 28px; background: #fff; box-shadow: 0 26px 50px -30px rgba(20, 33, 28, .5); }
.admin-bar .jm-search { top: 32px; }
.jm-search__inner { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.jm-search__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.jm-search__title { font-weight: 800; font-size: var(--fs-lg); color: var(--ink); }
.jm-search__tags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; font-size: var(--fs-sm); }
.jm-search__tags > span { color: var(--muted); }
.jm-search__tags a { color: var(--blue); font-weight: 500; }
.jm-search__tags a:hover { color: var(--green); }

.jm-searchform { display: flex; align-items: center; gap: 10px; padding: 7px; padding-inline-start: 16px; border: 2px solid var(--line); border-radius: var(--r-pill); background: #fff; transition: border-color .2s; }
.jm-searchform:focus-within { border-color: var(--green); }
.jm-searchform__icon { color: var(--muted); display: grid; place-items: center; }
.jm-searchform__input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 8px 0; font-size: var(--fs-md); }

/* ---------- صفحه اصلی ---------- */
.jm-hero { padding: clamp(24px, 3.5vw, 46px) 0 clamp(20px, 3vw, 32px); }
.jm-hero__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(18px, 2.4vw, 30px); align-items: start; }
.jm-hero__block { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-xl); background: var(--green); color: #E8F5EE; }
.jm-hero__block::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(250, 204, 21, .18); inset-inline-start: -90px; bottom: -110px; }
.jm-hero__title { position: relative; margin: 14px 0 12px; font-size: var(--fs-3xl); font-weight: 800; line-height: 1.5; color: #fff; text-wrap: balance; }
.jm-hero__text { position: relative; font-size: var(--fs-md); line-height: 2; margin-bottom: 20px; }
.jm-hero__block .jm-searchform { position: relative; border-color: transparent; }
.jm-hero__lead { grid-column: 2; }
.jm-hero__list { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.jm-tip { padding-bottom: clamp(20px, 3vw, 34px); }
.jm-tip__inner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--yellow-50); border: 2px dashed var(--yellow); }
.jm-tip__icon { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #3A2E00; }
.jm-tip strong { display: block; color: var(--ink); font-size: var(--fs-md); }
.jm-tip p { font-size: var(--fs-sm); line-height: 1.95; }

.jm-section { padding: clamp(32px, 4.5vw, 58px) 0; }
.jm-section--soft { background: var(--soft); }
.jm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 24px; }
.jm-head__title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-2xl); font-weight: 800; }
.jm-head__title::before { content: ""; width: 12px; height: 26px; border-radius: var(--r-pill); background: var(--green); }
.jm-head__title--light { color: #fff; }
.jm-head__title--light::before { background: var(--yellow); }
.jm-grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.jm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jm-more { margin-top: 28px; }
.jm-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* کارت */
.jm-card { display: flex; flex-direction: column; gap: 12px; }
.jm-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); background: var(--soft); }
.jm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.jm-card:hover .jm-card__media img { transform: scale(1.04); }
.jm-card__time { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 11px; font-weight: 700; }
.jm-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.jm-card__date { font-size: var(--fs-xs); font-weight: 700; color: var(--green); }
.jm-grid--3 .jm-card:nth-child(3n+2) .jm-card__date { color: var(--yellow-600); }
.jm-grid--3 .jm-card:nth-child(3n) .jm-card__date { color: var(--blue); }
.jm-card__title { font-size: var(--fs-md); font-weight: 800; line-height: 1.8; }
.jm-card__title a:hover { color: var(--green); }
.jm-card__excerpt { color: var(--muted); font-size: var(--fs-sm); line-height: 1.95; }
.jm-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--blue); }
.jm-card:hover .jm-card__more { color: var(--green); }
.jm-card--lead .jm-card__media { aspect-ratio: 16 / 8.5; border-radius: var(--r-xl); }
.jm-card--lead .jm-card__title { font-size: var(--fs-2xl); line-height: 1.6; }
.jm-card--lead .jm-card__excerpt { font-size: var(--fs-md); }

.jm-hero__list .jm-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; border: 0; }
.jm-hero__list .jm-row__media { width: 100%; flex: none; aspect-ratio: 16 / 10; border-radius: var(--r-md); }
.jm-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.jm-row + .jm-row { border-top: 1px solid var(--line); }
.jm-row__media { position: relative; flex: 0 0 76px; width: 76px; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--soft); }
.jm-row__media img { width: 100%; height: 100%; object-fit: cover; }
.jm-row__rank { flex: 0 0 auto; min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #3A2E00; font-size: var(--fs-sm); font-weight: 800; }
.jm-row__body { min-width: 0; }
.jm-row__title { font-size: var(--fs-sm); font-weight: 700; line-height: 1.85; margin-bottom: 2px; }
.jm-row__title a:hover { color: var(--green); }

.jm-blue { padding: clamp(34px, 4.5vw, 58px) 0; background: var(--blue); color: #DDE9FF; }
.jm-blue__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 54px); align-items: start; }
.jm-blue .jm-row { border-color: rgba(255, 255, 255, .18); }
.jm-blue .jm-row__title a { color: #fff; }
.jm-blue .jm-row__title a:hover { color: var(--yellow); }
.jm-blue .jm-meta { color: #B9CFFB; }
.jm-blue .jm-meta > span + span { border-color: rgba(255, 255, 255, .25); }
.jm-tagcloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jm-tagcloud a { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--fs-sm); }
.jm-tagcloud a:hover { border-color: var(--green); color: var(--green); }
.jm-blue .jm-tagcloud a { border-color: rgba(255, 255, 255, .3); color: #fff; }
.jm-blue .jm-tagcloud a:hover { background: var(--yellow); border-color: var(--yellow); color: #3A2E00; }

/* ---------- سربرگ آرشیو ---------- */
.jm-page-head { padding: clamp(24px, 3.5vw, 44px) 0 clamp(20px, 2.5vw, 28px); background: var(--green-50); border-bottom: 1px solid var(--line); }
.jm-page-head__title { font-size: var(--fs-3xl); font-weight: 800; line-height: 1.45; }
.jm-page-head__desc { margin-top: 8px; max-width: 46em; }
.jm-page-head__count { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.jm-page-head .jm-searchform { margin-top: 18px; max-width: 520px; }
.jm-breadcrumbs { margin-bottom: 12px; font-size: var(--fs-xs); color: var(--muted); }
.jm-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.jm-breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.jm-breadcrumbs a:hover { color: var(--green); }
.jm-breadcrumbs li[aria-current] span { display: inline-block; max-width: 40ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: bottom; }

.pagination { margin-top: 42px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-md); font-weight: 700; }
.pagination a.page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .page-numbers.dots { border: 0; }
.jm-empty { max-width: 560px; margin: 0 auto; padding: 44px 24px; text-align: center; }
.jm-empty svg { margin: 0 auto 14px; }
.jm-empty h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.jm-empty p { color: var(--muted); margin-bottom: 18px; }

/* ---------- صفحه مقاله ---------- */
.jm-progress { position: fixed; top: 0; inset-inline: 0; z-index: 120; height: 4px; pointer-events: none; }
.jm-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--yellow) 55%, var(--blue)); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .jm-progress span { transform-origin: left; }

.jm-single__head { padding: clamp(22px, 3vw, 40px) 0 clamp(16px, 2vw, 24px); }
.jm-single__title { font-size: var(--fs-3xl); font-weight: 800; line-height: 1.5; margin-top: 12px; text-wrap: balance; }
.jm-single__lead { margin-top: 14px; font-size: var(--fs-lg); line-height: 2; padding-inline-start: 16px; border-inline-start: 4px solid var(--yellow); }
.jm-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.jm-single__author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.jm-single__author img { border-radius: 50%; }
.jm-single__author a:hover { color: var(--green); }
.jm-single__tools { display: inline-flex; gap: 2px; margin-inline-start: auto; }
.jm-single__tools .jm-icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.jm-single__figure { margin-bottom: clamp(20px, 3vw, 32px); }
.jm-single__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); }
.jm-single__figure figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.jm-single__body { padding-bottom: clamp(30px, 4vw, 48px); }

.jm-keypoints { margin-bottom: 26px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--green-50); border: 1px solid var(--green-100); }
.jm-keypoints h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); margin-bottom: 10px; color: var(--green-700); }
.jm-keypoints ul { list-style: none; display: grid; gap: 8px; }
.jm-keypoints li { position: relative; padding-inline-start: 24px; color: var(--ink); line-height: 1.95; }
.jm-keypoints li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); transform: rotate(45deg); }

.jm-toc { margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--r-md); }
.jm-toc summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.jm-toc summary::-webkit-details-marker { display: none; }
.jm-toc summary .jm-icon--chevron { margin-inline-start: auto; transition: transform .2s; }
.jm-toc[open] summary .jm-icon--chevron { transform: rotate(180deg); }
.jm-toc__list { list-style: none; padding: 0 8px 10px; }
.jm-toc__item a { display: block; padding: 6px 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text); }
.jm-toc__item--h3 a { padding-inline-start: 30px; font-size: var(--fs-xs); color: var(--muted); }
.jm-toc__item a:hover { color: var(--green); }
.jm-toc__item a.is-active { background: var(--green-50); color: var(--green-700); font-weight: 700; }

.jm-content { font-size: var(--article-fs); line-height: 2.2; color: #414B45; overflow-wrap: break-word; }
.jm-content > * + * { margin-top: 1.2em; }
.jm-content p { max-width: 70ch; }
.jm-content h2, .jm-content h3, .jm-content h4 { scroll-margin-top: calc(var(--header-h) + 24px); }
.jm-content h2 { position: relative; font-size: 1.42em; font-weight: 800; margin-top: 2em; padding-top: .85em; line-height: 1.6; }
.jm-content h2::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 54px; height: 6px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--green) 40%, var(--yellow) 40% 70%, var(--blue) 70%); }
.jm-content h3 { font-size: 1.18em; margin-top: 1.7em; color: var(--green-700); }
.jm-content h4 { font-size: 1.05em; margin-top: 1.4em; }
.jm-content :is(h2, h3, h4) + * { margin-top: .6em; }
.jm-content a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--blue-100); }
.jm-content a:hover { text-decoration-color: var(--blue); }
.jm-content strong, .jm-content b { color: var(--ink); font-weight: 700; }
.jm-content ul, .jm-content ol { padding-inline-start: 1.5em; }
.jm-content li + li { margin-top: .45em; }
.jm-content ul li::marker { color: var(--green); }
.jm-content ol { list-style-type: persian; }
.jm-content ol li::marker { color: var(--blue); font-weight: 700; }
.jm-content blockquote, .jm-content .wp-block-quote { margin-inline: 0; padding: 16px 22px; border: 0; border-inline-start: 4px solid var(--yellow); background: var(--yellow-50); border-radius: var(--r-md); color: var(--ink); font-weight: 500; }
.jm-content blockquote cite { display: block; margin-top: 8px; font-size: .85em; font-style: normal; font-weight: 400; color: var(--muted); }
.jm-content img { border-radius: var(--r-md); }
.jm-content figure { margin-inline: 0; }
.jm-content figcaption, .jm-content .wp-element-caption { margin-top: 8px; text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.jm-content hr { border: 0; height: 1px; margin: 2.2em 0; background: var(--line); }
.jm-content table { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.85; }
.jm-content .wp-block-table, .jm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.jm-content th { background: var(--green-50); color: var(--green-700); font-weight: 700; }
.jm-content th, .jm-content td { padding: 11px 15px; text-align: start; border-bottom: 1px solid var(--line); }
.jm-content tbody tr:last-child td { border-bottom: 0; }
.jm-content code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.jm-content pre { direction: ltr; text-align: left; background: var(--ink); color: #fff; padding: 16px; border-radius: var(--r-md); overflow-x: auto; }
.jm-content iframe, .jm-content video { max-width: 100%; border-radius: var(--r-md); }
.jm-content .aligncenter { margin-inline: auto; }
.jm-content .wp-block-button__link { background: var(--green); color: #fff; border-radius: var(--r-pill); padding: 12px 26px; font-weight: 700; text-decoration: none; }

.jm-evidence { display: grid; gap: 12px; margin-top: 32px; }
.jm-evidence__review { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: var(--blue-50); font-size: var(--fs-sm); line-height: 1.9; }
.jm-evidence__review .jm-icon { color: var(--blue); }
.jm-evidence__review strong { color: var(--ink); }
.jm-evidence__sources { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.jm-evidence__sources h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); margin-bottom: 8px; }
.jm-evidence__sources ol { padding-inline-start: 22px; font-size: var(--fs-xs); line-height: 2.1; color: var(--muted); }
.jm-evidence__sources a { color: var(--blue); word-break: break-word; }
.jm-disclaimer { display: flex; gap: 10px; margin-top: 12px; padding: 14px 18px; border-radius: var(--r-md); background: var(--yellow-50); color: #6B5200; font-size: var(--fs-sm); line-height: 1.95; }
.jm-disclaimer .jm-icon { margin-top: 5px; }

.jm-single__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.jm-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.jm-tags a { display: inline-block; padding: 5px 13px; border-radius: var(--r-pill); background: var(--soft); font-size: var(--fs-xs); }
.jm-tags a:hover { background: var(--green-100); color: var(--green-700); }
.jm-single__share { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--muted); }
.jm-share { display: flex; gap: 6px; }
.jm-share__btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.jm-share__btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.jm-share__done { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.jm-share__btn.is-copied .jm-share__done { opacity: 1; }

.jm-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 20px; border-radius: var(--r-lg); background: var(--soft); }
.jm-author img { border-radius: 50%; flex-shrink: 0; }
.jm-author__name { font-size: var(--fs-md); }
.jm-author__name a:hover { color: var(--green); }
.jm-author__role { font-size: var(--fs-xs); font-weight: 700; color: var(--blue); }
.jm-author__bio { margin-top: 4px; font-size: var(--fs-sm); line-height: 2; }
.jm-widget { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.jm-widget__title, .jm-widget h2 { font-size: var(--fs-md); margin-bottom: 8px; }
.jm-widget ul { list-style: none; }
.jm-widget li { padding: 6px 0; font-size: var(--fs-sm); }
.jm-widget li + li { border-top: 1px solid var(--line); }
.jm-widget a:hover { color: var(--green); }

/* دیدگاه‌ها */
.jm-comments-wrap { padding-bottom: clamp(34px, 5vw, 56px); }
.jm-comments__title { font-size: var(--fs-xl); margin-bottom: 12px; }
.jm-comments__note { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 12px; }
.jm-comment-list, .jm-comment-list .children { list-style: none; }
.jm-comment-list .children { padding-inline-start: clamp(14px, 5vw, 36px); }
.jm-comment-list .comment-body { margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.jm-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.jm-comment-list .comment-author img { border-radius: 50%; }
.jm-comment-list .says { display: none; }
.jm-comment-list .comment-metadata { margin: 2px 0 6px; font-size: var(--fs-xs); color: var(--muted); }
.jm-comment-list .reply a { font-size: var(--fs-xs); font-weight: 700; color: var(--blue); }
.bypostauthor > .comment-body { background: var(--green-50); border-color: var(--green-100); }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 700; font-size: var(--fs-sm); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); outline: 0; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--green); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; font-size: var(--fs-xs); }

/* برگه و ۴۰۴ */
.jm-page__body { padding-block: 26px 56px; }
.jm-page__figure img { width: 100%; border-radius: var(--r-xl); margin-bottom: 22px; }
.jm-404 { padding: clamp(48px, 8vw, 92px) 0; text-align: center; }
.jm-404__mark { display: inline-block; margin-bottom: 16px; }
.jm-404__mark svg { margin-inline: auto; }
.jm-404 .jm-page-head__desc { margin-inline: auto; margin-bottom: 20px; }
.jm-404 .jm-searchform { max-width: 460px; margin-inline: auto; }
.jm-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* ---------- فوتر ---------- */
.jm-footer { background: var(--ink); color: #C8D6CE; padding-top: clamp(32px, 4vw, 48px); }
.jm-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 30px; padding-bottom: clamp(26px, 4vw, 40px); }
.jm-footer .jm-logo__name { color: #fff; }
.jm-footer .jm-logo__tag { color: var(--yellow); }
.jm-footer__brand p { margin: 14px 0; font-size: var(--fs-sm); line-height: 2; max-width: 34em; }
.jm-footer__title { font-size: var(--fs-md); color: #fff; margin-bottom: 10px; }
.jm-footer__links { list-style: none; display: grid; gap: 7px; }
.jm-footer__links a { font-size: var(--fs-sm); }
.jm-footer__links a:hover, .jm-footer__email a:hover { color: var(--yellow); }
.jm-footer__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.jm-footer__tags a { display: inline-block; padding: 3px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-pill); font-size: var(--fs-xs); }
.jm-footer__tags a:hover { background: var(--yellow); border-color: var(--yellow); color: #3A2E00; }
.jm-footer__email { margin-top: 12px; font-size: var(--fs-sm); }
.jm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 16px 0 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-xs); }
.jm-footer__disclaimer { display: inline-flex; align-items: center; gap: 6px; }
.jm-footer__disclaimer .jm-icon { color: var(--yellow); }

.jm-top { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 80; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--green); color: #fff; cursor: pointer; box-shadow: 0 14px 26px -14px rgba(15, 122, 75, .9); }
.jm-top svg { transform: rotate(180deg); }
.jm-top:hover { background: var(--green-700); }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1080px) {
	.jm-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.jm-hero__lead, .jm-hero__list { grid-column: 1; }
	.jm-blue__grid { grid-template-columns: minmax(0, 1fr); }
	.jm-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
	:root { --header-h: 66px; }
	.jm-menu-toggle { display: inline-grid; }
	.jm-header__cta span { display: none; }
	.jm-header__cta { width: 42px; padding: 0; }
	.jm-nav { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 110; width: min(86vw, 330px); margin: 0; padding: 16px; background: #fff; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
	[dir="ltr"] .jm-nav { transform: translateX(-100%); }
	.jm-nav.is-open { transform: none; visibility: visible; }
	.jm-nav__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 800; }
	.jm-nav__head .jm-icon-btn { margin-inline-start: auto; }
	.jm-nav__search { display: block; margin-top: 14px; }
	.jm-nav__search .jm-btn { display: none; }
	.jm-nav__list { flex-direction: column; align-items: stretch; gap: 3px; }
	.jm-nav__list a { padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-md); }
	.jm-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; border: 0; box-shadow: none; padding: 0 12px 0 0; }
	.jm-logo { margin-inline-end: auto; }
	.jm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jm-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
	.jm-hero__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.jm-hero__list .jm-row { flex-direction: row; align-items: center; padding: 12px 0; }
	.jm-hero__list .jm-row + .jm-row { border-top: 1px solid var(--line); }
	.jm-hero__list .jm-row__media { flex: 0 0 90px; width: 90px; aspect-ratio: 1; }
	.jm-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.jm-grid--3 .jm-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.jm-grid--3 .jm-card__media { flex: 0 0 110px; width: 110px; aspect-ratio: 1; border-radius: var(--r-md); }
	.jm-grid--3 .jm-card__excerpt, .jm-grid--3 .jm-card__more, .jm-grid--3 .jm-card__time { display: none; }
	.jm-grid--3 .jm-card__title { font-size: var(--fs-sm); }
	.jm-tip__inner { flex-direction: column; align-items: flex-start; }
	.jm-widgets { grid-template-columns: minmax(0, 1fr); }
	.jm-single__figure img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
	.jm-single__tools { margin-inline-start: 0; }
	.jm-single__footer { flex-direction: column; align-items: flex-start; }
	.jm-author { flex-direction: column; }
	.jm-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.jm-searchform { flex-wrap: wrap; border-radius: var(--r-lg); padding: 8px; }
	.jm-searchform__icon { display: none; }
	.jm-searchform__input { flex-basis: 100%; padding: 8px; }
	.jm-searchform .jm-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
	.jm-header, .jm-topline, .jm-footer, .jm-top, .jm-progress, .jm-share, .jm-toc, .jm-blue { display: none !important; }
}
