/* ==========================================================================
   مجله سلامت ملک‌بانو — استایل اصلی
   ========================================================================== */
@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; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
	--orange: #F97316;
	--orange-700: #C2540A;
	--orange-100: #FFE7D1;
	--orange-50: #FFF6EE;

	--purple: #7C3AED;
	--purple-700: #5B21B6;
	--purple-100: #EADDFD;
	--purple-50: #F7F2FF;

	--ink: #221934;
	--text: #4B4560;
	--muted: #776F8C;
	--line: #EBE7F2;
	--soft: #FAF8FD;

	--grad: linear-gradient(120deg, var(--orange), var(--purple));

	--tone: var(--orange);
	--tone-strong: var(--orange-700);
	--tone-soft: var(--orange-50);
	--tone-100: var(--orange-100);

	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 24px;
	--r-xl: 32px;
	--r-pill: 999px;
	--shadow: 0 2px 4px rgba(34, 25, 52, .04), 0 18px 40px -26px rgba(34, 25, 52, .35);

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

	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-md: 1.0625rem;
	--fs-lg: 1.25rem;
	--fs-xl: 1.5rem;
	--fs-2xl: clamp(1.45rem, 1.1rem + 1.3vw, 2rem);
	--fs-3xl: clamp(1.8rem, 1.25rem + 2.2vw, 2.75rem);
	--article-fs: 1.1875rem;
}

.mlk-tone-orange { --tone: #F97316; --tone-strong: #C2540A; --tone-soft: #FFF6EE; --tone-100: #FFE7D1; }
.mlk-tone-purple { --tone: #7C3AED; --tone-strong: #5B21B6; --tone-soft: #F7F2FF; --tone-100: #EADDFD; }

*, *::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.mlk-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(--purple); 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; }
.mlk-skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 999; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.mlk-skip:focus { top: 12px; }
.mlk-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mlk-narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.mlk-icon { flex-shrink: 0; }

/* نوار امضای طراحی */
.mlk-bar { display: inline-block; width: 30px; height: 8px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--grad); }

/* دکمه‌ها */
.mlk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border: 1px solid transparent; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; transition: filter .2s, background-color .2s, color .2s, border-color .2s; }
.mlk-btn--grad { background-image: var(--grad); color: #fff; }
.mlk-btn--grad:hover { filter: brightness(1.08); }
.mlk-btn--tone { background: var(--tone-100); color: var(--tone-strong); }
.mlk-btn--tone:hover { background: var(--tone); color: #fff; }
.mlk-btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.mlk-btn--ghost:hover { border-color: var(--purple); color: var(--purple-700); }
.mlk-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; }
.mlk-icon-btn:hover { background: var(--soft); }
.mlk-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); color: var(--tone-strong); }
.mlk-link .mlk-icon { transition: transform .2s; }
.mlk-link:hover .mlk-icon { transform: translateX(-4px); }
[dir="ltr"] .mlk-link .mlk-icon { transform: scaleX(-1); }

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

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

/* ---------- هدر ---------- */
.mlk-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .mlk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mlk-header { top: 0; } }
.mlk-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.mlk-menu-toggle { display: none; }
.mlk-logo img { max-height: 52px; width: auto; }
.mlk-logo__link { display: inline-flex; align-items: center; gap: 10px; }
.mlk-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.mlk-logo__name { margin: 0; font-size: 1.5rem; font-weight: 900; color: var(--ink); }
.mlk-logo__tag { font-size: 11px; font-weight: 500; color: var(--purple); }
.mlk-nav { margin-inline-start: auto; }
.mlk-nav__head, .mlk-nav__search { display: none; }
.mlk-nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.mlk-nav__list > li { position: relative; }
.mlk-nav__list a { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--text); transition: background-color .2s, color .2s; }
.mlk-nav__list > li[class*="mlk-tone-"] > a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.mlk-nav__list a:hover { background: var(--tone-soft, var(--soft)); color: var(--tone-strong, var(--ink)); }
.mlk-nav__list > .current-menu-item > a, .mlk-nav__list > .current-menu-ancestor > a { background: var(--tone-100, var(--soft)); color: var(--tone-strong, var(--ink)); font-weight: 700; }
.mlk-nav__list .sub-menu { list-style: none; position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 220px; 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; }
.mlk-nav__list li:hover > .sub-menu, .mlk-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; }

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

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

/* ---------- صفحه اصلی ---------- */
.mlk-hero { position: relative; overflow: hidden; padding: clamp(30px, 4vw, 56px) 0 clamp(26px, 3vw, 44px); background: linear-gradient(180deg, var(--purple-50), #fff 70%); }
.mlk-hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--grad); opacity: .1; filter: blur(10px); inset-inline-end: -140px; top: -160px; pointer-events: none; }
.mlk-hero__top { position: relative; max-width: 720px; margin-bottom: clamp(24px, 3vw, 40px); }
.mlk-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--purple-700); }
.mlk-hero__title { margin: 12px 0 10px; font-size: var(--fs-3xl); font-weight: 900; line-height: 1.45; color: var(--ink); text-wrap: balance; }
.mlk-hero__text { font-size: var(--fs-lg); line-height: 1.95; margin-bottom: 22px; }
.mlk-hero__top .mlk-searchform { max-width: 560px; }
.mlk-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.mlk-hero__side { display: grid; align-content: space-between; gap: 4px; }

.mlk-section { padding: clamp(34px, 4.5vw, 62px) 0; }
.mlk-section--soft { background: var(--soft); }
.mlk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 24px; }
.mlk-head__title { display: flex; align-items: center; gap: 12px; font-size: var(--fs-2xl); font-weight: 900; }
.mlk-head__title a:hover { color: var(--tone-strong); }
.mlk-grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.mlk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mlk-card { display: flex; flex-direction: column; gap: 14px; }
.mlk-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); background: var(--soft); }
.mlk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mlk-card:hover .mlk-card__media img { transform: scale(1.04); }
.mlk-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.mlk-card__title { font-size: var(--fs-md); font-weight: 800; line-height: 1.8; }
.mlk-card__title a:hover { color: var(--tone-strong); }
.mlk-card__excerpt { color: var(--muted); font-size: var(--fs-sm); line-height: 1.95; }
.mlk-card--lead .mlk-card__media { border-radius: var(--r-xl); }
.mlk-card--lead .mlk-card__title { font-size: var(--fs-2xl); line-height: 1.6; }
.mlk-card--lead .mlk-card__excerpt { font-size: var(--fs-md); }

.mlk-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.mlk-row + .mlk-row { border-top: 1px solid var(--line); }
.mlk-row__media { position: relative; flex: 0 0 88px; width: 88px; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--soft); }
.mlk-row__media img { width: 100%; height: 100%; object-fit: cover; }
.mlk-row__rank { flex: 0 0 auto; min-width: 40px; font-size: 1.75rem; font-weight: 900; line-height: 1; color: var(--tone); }
.mlk-row__body { min-width: 0; }
.mlk-row__cat { font-size: var(--fs-xs); font-weight: 700; color: var(--tone-strong); }
.mlk-row__title { font-size: var(--fs-sm); font-weight: 700; line-height: 1.85; }
.mlk-row__title a:hover { color: var(--tone-strong); }

.mlk-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.mlk-tagcloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mlk-tagcloud a { display: inline-block; padding: 7px 15px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); }
.mlk-tagcloud a:hover { border-color: var(--purple); color: var(--purple-700); }

/* ---------- سربرگ آرشیو ---------- */
.mlk-page-head { padding: clamp(24px, 3.5vw, 46px) 0 clamp(20px, 2.5vw, 30px); background: var(--tone-soft, var(--soft)); border-bottom: 1px solid var(--line); }
.mlk-page-head__title { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.45; }
.mlk-page-head__desc { margin-top: 8px; max-width: 46em; }
.mlk-page-head__count { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.mlk-page-head .mlk-searchform { margin-top: 18px; max-width: 520px; }
.mlk-breadcrumbs { margin-bottom: 12px; font-size: var(--fs-xs); color: var(--muted); }
.mlk-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.mlk-breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.mlk-breadcrumbs a:hover { color: var(--purple-700); }
.mlk-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: 44px; }
.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(--purple); color: var(--purple-700); }
.pagination .page-numbers.current { background-image: var(--grad); border-color: transparent; color: #fff; }
.pagination .page-numbers.dots { border: 0; }
.mlk-empty { max-width: 560px; margin: 0 auto; padding: 44px 24px; text-align: center; }
.mlk-empty svg { margin: 0 auto 14px; }
.mlk-empty h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.mlk-empty p { color: var(--muted); margin-bottom: 18px; }

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

.mlk-single__head { padding: clamp(22px, 3vw, 42px) 0 clamp(16px, 2vw, 26px); background: linear-gradient(180deg, var(--tone-soft), #fff); }
.mlk-single__title { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.5; margin-top: 12px; text-wrap: balance; }
.mlk-single__lead { margin-top: 14px; font-size: var(--fs-lg); line-height: 2; }
.mlk-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.mlk-single__author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.mlk-single__author img { border-radius: 50%; }
.mlk-single__author a:hover { color: var(--tone-strong); }
.mlk-single__figure { margin-bottom: clamp(22px, 3vw, 34px); }
.mlk-single__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); }
.mlk-single__figure figcaption { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }

.mlk-single__layout { display: grid; grid-template-columns: 84px minmax(0, var(--narrow)); justify-content: center; gap: clamp(20px, 3vw, 44px); padding-bottom: clamp(30px, 4vw, 52px); }
.mlk-rail__inner { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.admin-bar .mlk-rail__inner { top: calc(var(--header-h) + 52px); }
.mlk-rail__label { font-size: 11px; font-weight: 700; color: var(--muted); }
.mlk-fontsize { display: flex; align-items: center; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }
.mlk-fontsize .mlk-icon-btn { width: 30px; height: 30px; }

/* اشتراک‌گذاری */
.mlk-share { display: flex; gap: 8px; }
.mlk-share__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.mlk-share__btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.mlk-share__btn--telegram:hover { background: #229ED9; }
.mlk-share__btn--whatsapp:hover { background: #25D366; }
.mlk-share__btn--eitaa:hover { background: #F2A33C; }
.mlk-share__btn--bale:hover { background: #1EAF5B; }
.mlk-share__btn--x:hover { background: #111; }
.mlk-share__btn--facebook:hover { background: #1877F2; }
.mlk-share__btn--linkedin:hover { background: #0A66C2; }
.mlk-share__btn--pinterest:hover { background: #E60023; }
.mlk-share__btn--mail:hover { background: var(--purple); }
.mlk-share__btn--sms:hover { background: var(--orange); }
.mlk-share__btn--copy:hover, .mlk-share__btn--native:hover, .mlk-share__btn--print:hover { background: var(--ink); }
.mlk-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; }
.mlk-share__btn.is-copied .mlk-share__done { opacity: 1; }
.mlk-share--rail { flex-direction: column; gap: 6px; }
.mlk-share--rail .mlk-share__btn { width: 40px; height: 40px; }
.mlk-share--block { flex-wrap: wrap; gap: 8px; }
.mlk-share--block .mlk-share__btn { width: auto; height: 44px; padding: 0 16px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 700; }
.mlk-sharebox { margin-top: 30px; padding: 22px; border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--line); }
.mlk-sharebox h2 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-md); margin-bottom: 14px; }
.mlk-sharebox h2 .mlk-icon { color: var(--purple); }

.mlk-sharebar { position: fixed; inset-inline: 0; bottom: 0; z-index: 95; display: none; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(34, 25, 52, .5); }
.mlk-sharebar > span { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); flex-shrink: 0; }
.mlk-sharebar .mlk-share { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mlk-sharebar .mlk-share::-webkit-scrollbar { display: none; }
.mlk-sharebar .mlk-share__btn { flex-shrink: 0; width: 40px; height: 40px; }

.mlk-keypoints { margin-bottom: 26px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--tone-soft); border: 1px solid var(--tone-100); }
.mlk-keypoints h2 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-md); margin-bottom: 10px; color: var(--tone-strong); }
.mlk-keypoints ul { list-style: none; display: grid; gap: 8px; }
.mlk-keypoints li { position: relative; padding-inline-start: 24px; color: var(--ink); line-height: 1.95; }
.mlk-keypoints li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 14px; height: 7px; border-radius: var(--r-pill); background: var(--grad); }

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

/* تایپوگرافی خوانا */
.mlk-content { font-size: var(--article-fs); line-height: 2.25; color: #3D3752; overflow-wrap: break-word; letter-spacing: 0; }
.mlk-content > * + * { margin-top: 1.25em; }
.mlk-content p { max-width: 68ch; }
.mlk-content h2, .mlk-content h3, .mlk-content h4 { scroll-margin-top: calc(var(--header-h) + 24px); }
.mlk-content h2 { position: relative; font-size: 1.45em; font-weight: 900; line-height: 1.65; margin-top: 2em; padding-top: .9em; }
.mlk-content h2::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 46px; height: 7px; border-radius: var(--r-pill); background: var(--grad); }
.mlk-content h3 { font-size: 1.2em; font-weight: 800; margin-top: 1.8em; color: var(--tone-strong); }
.mlk-content h4 { font-size: 1.06em; margin-top: 1.5em; }
.mlk-content :is(h2, h3, h4) + * { margin-top: .6em; }
.mlk-content a { color: var(--purple-700); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--purple-100); }
.mlk-content a:hover { text-decoration-color: var(--purple); }
.mlk-content strong, .mlk-content b { color: var(--ink); font-weight: 700; }
.mlk-content ul, .mlk-content ol { padding-inline-start: 1.5em; }
.mlk-content li + li { margin-top: .5em; }
.mlk-content ul li::marker { color: var(--orange); }
.mlk-content ol { list-style-type: persian; }
.mlk-content ol li::marker { color: var(--purple); font-weight: 700; }
.mlk-content blockquote, .mlk-content .wp-block-quote { margin-inline: 0; padding: 18px 24px; border: 0; border-radius: var(--r-md); background: var(--soft); border-inline-start: 4px solid var(--orange); color: var(--ink); font-weight: 500; }
.mlk-content blockquote cite { display: block; margin-top: 8px; font-size: .85em; font-style: normal; font-weight: 400; color: var(--muted); }
.mlk-content img { border-radius: var(--r-md); }
.mlk-content figure { margin-inline: 0; }
.mlk-content figcaption, .mlk-content .wp-element-caption { margin-top: 8px; text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.mlk-content hr { border: 0; height: 1px; margin: 2.4em 0; background: var(--line); }
.mlk-content table { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.85; }
.mlk-content .wp-block-table, .mlk-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.mlk-content th { background: var(--soft); color: var(--ink); font-weight: 700; }
.mlk-content th, .mlk-content td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); }
.mlk-content tbody tr:last-child td { border-bottom: 0; }
.mlk-content code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.mlk-content pre { direction: ltr; text-align: left; background: var(--ink); color: #fff; padding: 18px; border-radius: var(--r-md); overflow-x: auto; }
.mlk-content iframe, .mlk-content video { max-width: 100%; border-radius: var(--r-md); }
.mlk-content .aligncenter { margin-inline: auto; }
.mlk-content .wp-block-button__link { background-image: var(--grad); color: #fff; border-radius: var(--r-pill); padding: 12px 26px; font-weight: 700; text-decoration: none; }

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

.mlk-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.mlk-tags a { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); background: var(--soft); font-size: var(--fs-xs); }
.mlk-tags a:hover { background: var(--purple-100); color: var(--purple-700); }
.mlk-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 22px; border-radius: var(--r-lg); background: var(--soft); }
.mlk-author img { border-radius: 20px; flex-shrink: 0; }
.mlk-author__name { font-size: var(--fs-md); }
.mlk-author__name a:hover { color: var(--purple-700); }
.mlk-author__role { font-size: var(--fs-xs); font-weight: 700; color: var(--orange-700); }
.mlk-author__bio { margin-top: 4px; font-size: var(--fs-sm); line-height: 2; }
.mlk-after-post { margin-top: 24px; display: grid; gap: 12px; }
.mlk-widget { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.mlk-widget__title, .mlk-widget h2 { font-size: var(--fs-md); margin-bottom: 8px; }
.mlk-widget ul { list-style: none; }
.mlk-widget li { padding: 6px 0; font-size: var(--fs-sm); }
.mlk-widget li + li { border-top: 1px solid var(--line); }
.mlk-widget a:hover { color: var(--purple-700); }

/* دیدگاه‌ها */
.mlk-comments-wrap { padding-bottom: clamp(34px, 5vw, 56px); }
.mlk-comments__title { font-size: var(--fs-xl); margin-bottom: 12px; }
.mlk-comments__note { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 12px; }
.mlk-comment-list, .mlk-comment-list .children { list-style: none; }
.mlk-comment-list .children { padding-inline-start: clamp(14px, 5vw, 36px); }
.mlk-comment-list .comment-body { margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.mlk-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.mlk-comment-list .comment-author img { border-radius: 50%; }
.mlk-comment-list .says { display: none; }
.mlk-comment-list .comment-metadata { margin: 2px 0 6px; font-size: var(--fs-xs); color: var(--muted); }
.mlk-comment-list .reply a { font-size: var(--fs-xs); font-weight: 700; color: var(--purple-700); }
.bypostauthor > .comment-body { background: var(--purple-50); border-color: var(--purple-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(--purple); }
.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); }

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

/* ---------- فوتر ---------- */
.mlk-footer { background: var(--ink); color: #CFC7E0; padding-top: clamp(34px, 4vw, 52px); }
.mlk-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-bottom: clamp(28px, 4vw, 44px); }
.mlk-footer .mlk-logo__name { color: #fff; }
.mlk-footer .mlk-logo__tag { color: var(--orange); }
.mlk-footer__brand p { margin: 14px 0; font-size: var(--fs-sm); line-height: 2; max-width: 34em; }
.mlk-footer__title { font-size: var(--fs-md); color: #fff; margin-bottom: 10px; }
.mlk-footer__links { list-style: none; display: grid; gap: 7px; }
.mlk-footer__links a { font-size: var(--fs-sm); }
.mlk-footer__links a:hover, .mlk-footer__email a:hover { color: var(--orange); }
.mlk-footer__email { margin-top: 10px; font-size: var(--fs-sm); }
.mlk-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); }
.mlk-footer__disclaimer { display: inline-flex; align-items: center; gap: 6px; }
.mlk-footer__disclaimer .mlk-icon { color: var(--orange); }

.mlk-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-image: var(--grad); color: #fff; cursor: pointer; box-shadow: 0 14px 26px -14px rgba(124, 58, 237, .9); }
.mlk-top svg { transform: rotate(180deg); }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1180px) {
	.mlk-single__layout { grid-template-columns: minmax(0, var(--narrow)); }
	.mlk-rail { display: none; }
}
@media (max-width: 1024px) {
	.mlk-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mlk-hero__grid, .mlk-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 880px) {
	:root { --header-h: 66px; --article-fs: 1.125rem; }
	.mlk-menu-toggle { display: inline-grid; }
	.mlk-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"] .mlk-nav { transform: translateX(-100%); }
	.mlk-nav.is-open { transform: none; visibility: visible; }
	.mlk-nav__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 800; }
	.mlk-nav__head .mlk-icon-btn { margin-inline-start: auto; }
	.mlk-nav__search { display: block; margin-top: 14px; }
	.mlk-nav__search .mlk-btn { display: none; }
	.mlk-nav__list { flex-direction: column; align-items: stretch; gap: 3px; }
	.mlk-nav__list a { padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-md); }
	.mlk-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; border: 0; box-shadow: none; padding: 0 12px 0 0; }
	.mlk-logo { margin-inline-end: auto; }
	.mlk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mlk-footer__brand { grid-column: 1 / -1; }
	.mlk-sharebar { display: flex; }
	body.single { padding-bottom: 72px; }
	.mlk-top { bottom: 78px; }
}
@media (max-width: 600px) {
	.mlk-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.mlk-grid--3 .mlk-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.mlk-grid--3 .mlk-card__media { flex: 0 0 110px; width: 110px; aspect-ratio: 1; border-radius: var(--r-md); }
	.mlk-grid--3 .mlk-card__excerpt, .mlk-grid--3 .mlk-card .mlk-badge { display: none; }
	.mlk-grid--3 .mlk-card__title { font-size: var(--fs-sm); }
	.mlk-single__figure img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
	.mlk-share--block .mlk-share__btn span { display: none; }
	.mlk-share--block .mlk-share__btn { width: 44px; padding: 0; border-radius: 50%; }
	.mlk-author { flex-direction: column; }
	.mlk-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.mlk-searchform { flex-wrap: wrap; border-radius: var(--r-lg); padding: 8px; }
	.mlk-searchform__icon { display: none; }
	.mlk-searchform__input { flex-basis: 100%; padding: 8px; }
	.mlk-searchform .mlk-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
	.mlk-header, .mlk-footer, .mlk-top, .mlk-progress, .mlk-share, .mlk-sharebar, .mlk-sharebox, .mlk-rail, .mlk-toc, .mlk-section--soft { display: none !important; }
	.mlk-single__layout { display: block; }
}
