/* ==========================================================================
   مجله‌ی اپ‌جی‌پی‌تی — استایل اصلی
   ترتیب: توکن‌ها، پایه، دکمه‌ها، هدر، سرتیتر، بخش‌ها، کارت‌ها، صفحه‌ی اصلی،
   بایگانی‌ها، تک‌مطلب، متن مطلب، دیدگاه‌ها، فوتر، حرکت.
   ========================================================================== */

:root {
	--font-sans: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

	--bg: #FFFFFF;
	--bg-alt: #F6F7F9;
	--surface: #FFFFFF;
	--surface-2: #F1F3F6;
	--border: #E4E7EC;
	--border-strong: #DCDFE4;
	--text: #111318;
	--text-2: #4A4E57;
	--text-3: #6B6F78;
	--accent: #3D63F5;
	--accent-soft: #EBEFFE;
	--accent-ink: #2A3FB0;
	--inverse: #111318;
	--on-inverse: #FFFFFF;
	--header-bg: rgba(255, 255, 255, 0.86);
	--success: #22A06B;

	--ok-bg: #E8F5EE; --ok-bd: #C6E6D4; --ok-ink: #1E6A45;
	--bad-bg: #FDEDEB; --bad-bd: #F6CFCB; --bad-ink: #A3221A;
	--warn-bg: #FDF3E1; --warn-bd: #F2DDB4; --warn-ink: #7A4A00;

	--outline: 1.5px solid var(--text);
	--r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 24px; --r-2xl: 28px; --r-pill: 999px;
	--container: 1180px;
	--shell: 1228px;
	--gutter: 24px;
	--header-h: 72px;
}

:root[data-theme="dark"] {
	--bg: #0D0E12;
	--bg-alt: #121419;
	--surface: #16181D;
	--surface-2: #1F2128;
	--border: #2A2D35;
	--border-strong: #3A3E48;
	--text: #F2F3F5;
	--text-2: #B9BDC7;
	--text-3: #8E929C;
	--accent: #7C96FF;
	--accent-soft: #1B2142;
	--accent-ink: #AEBBFF;
	--inverse: #F2F3F5;
	--on-inverse: #0D0E12;
	--header-bg: rgba(13, 14, 18, 0.82);
	--ok-bg: #12261C; --ok-bd: #1F4A34; --ok-ink: #7FD3A8;
	--bad-bg: #2A1513; --bad-bd: #5A2520; --bad-ink: #F59A92;
	--warn-bg: #2A2110; --warn-bd: #5A4516; --warn-ink: #F2C56B;
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { direction: rtl; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.8;
	color: var(--text);
	background: var(--bg);
	overflow-x: hidden;
	transition: background 240ms ease, color 240ms ease;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; letter-spacing: 0; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; right: 16px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--inverse); color: var(--on-inverse); }
.skip:focus { top: 12px; color: var(--on-inverse); }
.ico { flex: 0 0 auto; }
.only-light, .only-dark { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: inline-flex; }
[data-theme="dark"] .only-light { display: none; }

.mark { flex: 0 0 auto; }
.mark__body { fill: var(--inverse); }
.mark--light .mark__body { fill: #F2F3F5; }
.tail { position: absolute; bottom: 0; right: -9px; fill: var(--inverse); }

.wrap { max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(860px + var(--gutter) * 2); }
.wrap--article { max-width: calc(720px + var(--gutter) * 2); }
.stack-32, .stack-36, .stack-40, .stack-64 { display: flex; flex-direction: column; }
.stack-32 { gap: 32px; } .stack-36 { gap: 36px; } .stack-40 { gap: 40px; } .stack-64 { gap: 64px; }
.empty { margin: 0; padding: 48px 0; text-align: center; color: var(--text-3); }

/* ---------- دکمه‌ها ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border-radius: var(--r-pill); border: 1px solid transparent;
	font-size: 15px; font-weight: 600; line-height: 1.4; white-space: nowrap;
	background: transparent; color: var(--text);
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, scale 140ms ease;
}
.btn:active { scale: .97; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--md { min-height: 48px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.btn--dark:hover { color: var(--on-inverse); opacity: .9; }
.btn--line { border-color: var(--border-strong); }
.btn--line:hover { border-color: var(--text); color: var(--text); }
.btn--light { background: #F2F3F5; color: #0B0C10; }
.btn--light:hover { color: #0B0C10; background: #FFFFFF; }
.btn--ghost-dark { border-color: #363A45; color: #F2F3F5; }
.btn--ghost-dark:hover { border-color: #5B5F6B; color: #FFFFFF; }
.btn[aria-pressed="true"] { background: var(--surface-2); border-color: var(--border); color: var(--text); }

.icon-btn {
	width: 44px; height: 44px; flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--r-pill); border: none; background: transparent; color: var(--text-2);
	transition: background 160ms ease;
}
.icon-btn:hover { background: rgba(127, 127, 127, .12); color: inherit; }
.icon-btn--line { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.icon-btn[aria-pressed="true"] { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.round-btn {
	width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
	transition: background 160ms ease;
}
.round-btn:hover { background: var(--surface-2); }

.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); font-size: 14px; font-weight: 600; }
.badge__dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--accent); display: inline-block; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--text-2); font-size: 14px; font-weight: 600; }
.pill--accent { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.pill__dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips--center { justify-content: center; }
.chips__k { font-size: 13px; color: var(--text-3); padding-inline-end: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 14px; transition: border-color 160ms ease; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip__n { font-size: 12px; color: var(--text-3); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: transparent; color: var(--text); font-size: 14px; font-weight: 500; }
.tab:hover { border-color: var(--text); color: var(--text); }
.tab[aria-pressed="true"], .tab[aria-current="true"] { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.caret { display: inline-block; width: 3px; height: .9em; margin-inline-start: 8px; border-radius: 2px; background: var(--accent); vertical-align: -.1em; animation: agm-blink 1s step-end infinite; }
.caret--hero { height: .82em; margin-inline-start: 10px; vertical-align: -.08em; }
.dots3 { display: inline-flex; gap: 4px; }
.dots3 span { width: 6px; height: 6px; border-radius: var(--r-pill); background: #F2A33A; }
.dots3 span:nth-child(2) { background: #5B7CFF; }
.dots3 span:nth-child(3) { background: #F0567F; }

/* ---------- لوگوی مدل‌ها ---------- */
.mstack { display: inline-flex; padding-inline-start: 8px; }
.mstack__i { width: 26px; height: 26px; border-radius: 8px; background: #FFFFFF; color: #111318; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; box-shadow: 0 0 0 3px #0B0C10; margin-inline-start: -8px; }
.mstack__i img { width: 72%; height: 72%; object-fit: contain; }
.mstack__i--mono { background: #EBEFFE; color: #2A3FB0; }
.mstack--lg .mstack__i { width: 34px; height: 34px; border-radius: 11px; font-size: 11px; }
.mlogo { width: 24px; height: 24px; border-radius: 8px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--border); display: inline-flex; align-items: center; justify-content: center; }
.mlogo img { width: 68%; height: 68%; object-fit: contain; }
.mlogo--lg { width: 34px; height: 34px; border-radius: 11px; }

/* ---------- نوار اعلان ---------- */
.annc { background: #0B0C10; color: #F2F3F5; }
.annc__in { position: relative; max-width: var(--shell); margin-inline: auto; min-height: 40px; padding: 4px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; font-size: 13px; }
.annc__label { color: #A9ADB7; }
.annc__link { color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.annc__link:hover { color: #FFFFFF; }
.annc__x { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: var(--r-pill); border: none; background: transparent; color: #A9ADB7; display: flex; align-items: center; justify-content: center; }

/* ---------- هدر ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.hdr__nav { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.hdr__brand { justify-self: start; display: flex; align-items: center; gap: 10px; color: var(--text); }
.hdr__brand:hover { color: var(--text); }
.hdr__name { font-size: 18px; font-weight: 600; }
.hdr__badge { padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.hdr__links { list-style: none; margin: 0; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 14px; }
.hdr__links a { display: block; padding: 8px 16px; border-radius: var(--r-pill); color: var(--text-2); white-space: nowrap; transition: background 160ms ease; }
.hdr__links a:hover { background: rgba(127, 127, 127, .12); color: inherit; }
.hdr__links .current-menu-item > a, .hdr__links .current_page_item > a, .hdr__links .current-menu-parent > a { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(17, 19, 24, .08), 0 0 0 1px var(--border); }
.hdr__acts { justify-self: end; display: flex; align-items: center; gap: 6px; }
.hdr__sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }
.hdr__burger { display: none; }
.hdr__brand:hover .mark circle { animation: agm-dot 700ms ease; transform-box: fill-box; }
.hdr__brand:hover .mark circle:nth-of-type(2) { animation-delay: 90ms; }
.hdr__brand:hover .mark circle:nth-of-type(3) { animation-delay: 180ms; }

.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__back { position: absolute; inset: 0; background: rgba(8, 9, 12, .5); }
.drawer__panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(340px, 88vw); background: var(--bg); padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; animation: agm-drawer 260ms cubic-bezier(.2, .8, .2, 1) both; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.drawer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.drawer__links a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--border); font-size: 17px; font-weight: 500; }
.drawer__cta { margin-top: auto; }

/* ---------- سرتیتر ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero--post { border-bottom: none; }
.hero__dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__in { position: relative; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding: 80px var(--gutter) 56px; display: flex; flex-direction: column; gap: 16px; }
.hero__in--center { max-width: 900px; align-items: center; text-align: center; gap: 24px; }
.hero--home .hero__in { padding: 104px var(--gutter) 80px; }
.hero__in--post { padding: 44px var(--gutter) 36px; gap: 22px; }
.hero__in--page { padding: 64px var(--gutter) 48px; }
.hero__in--search { max-width: 820px; padding: 72px var(--gutter) 56px; }
.hero__in--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; padding-top: 88px; padding-bottom: 64px; }
.hero__in--author { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 32px; padding-top: 72px; }
.hero__title { font-size: clamp(40px, 8.4vw, 120px); line-height: 1.15; font-weight: 700; }
.hero__desc { margin: 0; max-width: 620px; font-size: clamp(17px, 2vw, 20px); line-height: 1.95; color: var(--text-2); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); }
.hero__in--center .crumbs { justify-content: center; }

.search { width: 100%; }
.search--hero { max-width: 580px; }
.search__field { display: flex; align-items: center; gap: 10px; min-height: 60px; padding-block: 0; padding-inline: 22px 8px; border-radius: var(--r-pill); background: var(--surface); border: var(--outline); color: var(--text-3); transition: box-shadow 160ms ease, border-color 160ms ease; }
.search__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search__field input { flex: 1 1 auto; min-width: 0; height: 56px; border: none; outline: none; background: transparent; color: var(--text); font-size: 16px; text-align: right; }
.search__field input::-webkit-search-cancel-button { display: none; }

/* ---------- بخش‌ها ---------- */
.sec { padding: 96px 0; }
.sec--tight { padding: 56px 0 96px; }
.sec--feat { padding: 80px 0 96px; overflow-x: clip; }
.sec--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.sec--banner { padding-bottom: 32px; border-bottom: none; }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.sec__tools { display: flex; align-items: center; gap: 12px; }
.sec__arrows { display: flex; gap: 8px; }
.sec__title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; font-weight: 500; }
.sec__link { font-size: 16px; font-weight: 600; color: var(--accent-ink); }
.sec__count { font-size: 14px; color: var(--text-3); }
.sec__more { align-self: center; }
.bubble-h { position: relative; align-self: flex-start; margin: 0 9px 0 0; padding: 12px 24px 14px; border-radius: var(--r-xl); background: var(--inverse); color: var(--on-inverse); font-size: clamp(22px, 2.5vw, 32px); line-height: 1.5; font-weight: 600; }

/* ---------- کاور و کارت ---------- */
.cover { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover__pat { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .3; transition: scale 600ms cubic-bezier(.2, .8, .2, 1); }
.cover--fill { aspect-ratio: auto; position: absolute; inset: 0; border-radius: 0; background: transparent; }

.card { display: flex; flex-direction: column; gap: 16px; padding: 14px; border-radius: var(--r-xl); border: var(--outline); background: var(--surface); color: var(--text); transition: transform 200ms ease, box-shadow 200ms ease; }
.card:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 28px 52px -30px rgba(17, 19, 24, .5); }
.card:hover .cover__pat, .card:hover .cover img { scale: 1.06; }
.cover img { transition: scale 600ms cubic-bezier(.2, .8, .2, 1); }
.card__meta { padding-inline: 8px; font-size: 13px; color: var(--text-3); }
.card__body { padding: 0 8px 14px; display: flex; flex-direction: column; gap: 8px; }
.card__title { margin: 0; font-size: 19px; line-height: 1.65; font-weight: 600; }
.card__ex { font-size: 15px; line-height: 1.85; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px 20px; }
.slider { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 28px; margin: 0 -2px -28px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.card--slide { flex: 0 0 min(346px, 84vw); scroll-snap-align: start; }

.feat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 16px; border-radius: var(--r-2xl); border: var(--outline); background: var(--surface); color: var(--text); transition: transform 200ms ease, box-shadow 200ms ease; }
.feat:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 28px 52px -30px rgba(17, 19, 24, .5); }
.feat__cover { border-radius: var(--r-lg); }
.feat__body { display: flex; flex-direction: column; gap: 14px; padding: 8px 8px 8px 16px; }
.feat__body .card__meta { padding: 0; }
.feat__title { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.5; font-weight: 600; }
.feat__ex { font-size: 16px; line-height: 1.95; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feat__more { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

.row { display: flex; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.row:hover { color: var(--text); }
.row__cover { flex: 0 0 150px; }
.row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.row__body .card__meta { padding: 0; }
.row__title { font-size: 20px; line-height: 1.6; font-weight: 600; }
.row__title mark { background: #FCE7C2; color: inherit; padding: 0 3px; border-radius: 6px; }
[data-theme="dark"] .row__title mark { background: #3A2C10; }
.row__ex { font-size: 15px; line-height: 1.85; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.results__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.noresult { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.noresult__t { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.4; }
.noresult__d { font-size: 15px; color: var(--text-2); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding-top: 32px; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); font-size: 15px; color: var(--text); }
.pager .page-numbers:hover { background: var(--surface-2); color: var(--text); }
.pager .page-numbers.current { background: var(--inverse); color: var(--on-inverse); }

/* ---------- صفحه‌ی اصلی: مطالب برگزیده ---------- */
.cf { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.cf__chat { width: 100%; max-width: 620px; min-height: 250px; display: flex; flex-direction: column; gap: 12px; }
.cf__q { align-self: flex-start; max-width: 88%; padding: 14px 22px; border-radius: 24px 24px 8px 24px; background: var(--surface-2); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.6; font-weight: 600; }
.cf__a { align-self: flex-end; max-width: 92%; display: flex; align-items: flex-end; gap: 10px; }
.cf__a-b { padding: 16px 22px; border-radius: 24px 24px 24px 8px; background: var(--inverse); color: var(--on-inverse); display: flex; flex-direction: column; gap: 10px; }
.cf__a-b p { margin: 0; font-size: 16px; line-height: 1.9; }
.cf__link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.cf__link:hover { color: var(--on-inverse); opacity: .8; }
.cf__chat.is-swap .cf__q { animation: agm-msg 420ms cubic-bezier(.2, .8, .2, 1) both; }
.cf__chat.is-swap .cf__a { animation: agm-msg 420ms cubic-bezier(.2, .8, .2, 1) 220ms both; }
.cf__stage { --cf-w: 244px; --cf-step: 128px; --cf-h: 320px; position: relative; width: 100%; height: var(--cf-h); }
.cf__card { display: block; position: absolute; left: 50%; top: 56px; width: var(--cf-w); aspect-ratio: 1 / 1; padding: 0; border: 5px solid var(--bg); border-radius: var(--r-2xl); overflow: hidden; background: var(--surface-2); color: var(--text-2); box-shadow: 0 22px 44px -24px rgba(17, 19, 24, .45); transform: translateX(-50%); transition: transform 600ms cubic-bezier(.2, .8, .2, 1); }
.cf__card--alt { background: var(--border-strong); }
.cf__nav { display: flex; align-items: center; gap: 16px; }
.cf__dots { display: flex; gap: 6px; }
.cf__dots span { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--border-strong); transition: width 300ms ease, background 300ms ease; }
.cf__dots span.is-on { width: 22px; background: var(--text); }

/* ---------- صفحه‌ی اصلی: نویسندگان، پرامپت‌ها، رتبه‌بندی ---------- */
.grid-authors { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.acard { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--r-xl); border: var(--outline); background: var(--surface); }
.acard__top { display: flex; align-items: center; gap: 14px; color: var(--text); }
.acard__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acard__name { font-size: 18px; font-weight: 600; }
.acard__topic { font-size: 13px; color: var(--text-3); }
.acard__stats { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-block: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.acard__fav { display: inline-flex; align-items: center; gap: 6px; }
.acard .btn { margin-top: auto; min-height: 46px; font-size: 14px; }
.ava { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); font-weight: 400; }
.ava--sq { width: 60px; height: 60px; border-radius: var(--r-md); font-size: 24px; }
.ava--round { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ava--lg { width: 68px; height: 68px; font-size: 26px; }
.ava--xl { width: 140px; height: 140px; border-radius: var(--r-2xl); background: var(--accent-soft); color: var(--accent-ink); font-size: 56px; font-weight: 300; }

.pcard { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-xl); border: var(--outline); background: var(--surface); }
.pcard[hidden] { display: none; }
.pcard__head { display: flex; flex-direction: column; gap: 4px; }
.pcard__kind { font-size: 13px; color: var(--text-3); }
.pcard__title { font-size: 19px; line-height: 1.6; font-weight: 600; }
.pcard__text { margin: 0; flex: 1 1 auto; padding: 14px 16px; border-radius: 18px 18px 5px 18px; background: var(--surface-2); font-size: 15px; line-height: 1.95; }
.pcard__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pcard__acts .btn { font-weight: 500; padding: 0 16px; }
.js-copy.is-done { color: var(--success); }

.rank { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 24px; }
.rank__i { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border-strong); color: var(--text); }
.rank__n { font-size: 44px; line-height: 1; font-weight: 300; color: var(--text-3); }
.rank__i:first-child .rank__n { color: var(--accent); }
.rank__t { font-size: 17px; line-height: 1.7; font-weight: 600; }
.rank__m { font-size: 13px; color: var(--text-3); }

/* ---------- بنر پهن و باکس اعلان ---------- */
.adw { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); border-radius: var(--r-2xl); background: #0B0C10; color: #F2F3F5; }
.adw__tag, .ads__tag { position: absolute; top: 14px; left: 18px; padding: 2px 10px; border-radius: var(--r-pill); border: 1px solid #2A2D36; font-size: 11px; color: #8E929C; }
.adw__main { flex: 1 1 420px; display: flex; align-items: center; gap: 20px; }
.adw__logo { flex: 0 0 auto; width: 72px; height: 72px; border-radius: var(--r-lg); background: #16181D; border: 1px solid #24262E; display: flex; align-items: center; justify-content: center; }
.adw__text { display: flex; flex-direction: column; gap: 6px; }
.adw__title { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.45; font-weight: 500; }
.adw__desc { font-size: 15px; line-height: 1.8; color: #A9ADB7; }
.adw__side { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.adw__side .btn { min-height: 50px; padding: 0 24px; }

.push { padding: 96px var(--gutter); }
.push--alt { background: var(--bg-alt); }
.sec--banner + .push--alt { padding-top: 0; }
.push__box { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; width: 100%; max-width: var(--container); margin-inline: auto; padding: 34px 38px; border-radius: var(--r-2xl); border: var(--outline); background: var(--surface); color: var(--text); text-align: right; transition: transform 200ms ease, box-shadow 200ms ease; }
.push__box:hover { transform: translateY(-3px); box-shadow: 0 28px 52px -30px rgba(17, 19, 24, .5); }
.push__tile { position: relative; flex: 0 0 auto; width: 68px; height: 68px; border-radius: 22px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; transition: background 200ms ease, color 200ms ease; }
.push__dot { position: absolute; top: 14px; left: 16px; width: 12px; height: 12px; border-radius: var(--r-pill); background: var(--accent); border: 2.5px solid var(--surface-2); }
.push__text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.push__title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.5; font-weight: 600; }
.push__desc { font-size: 16px; line-height: 1.9; color: var(--text-2); }
.push__note { flex: 0 1 290px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); }
.push__note > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.push__note-top { font-size: 12px; color: var(--text-3); }
.push__note-title { font-size: 14px; line-height: 1.6; font-weight: 600; }
.push__btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); background: var(--inverse); color: var(--on-inverse); border: 1.5px solid var(--inverse); font-size: 15px; font-weight: 600; }
.push__box[aria-pressed="true"] .push__tile { background: var(--inverse); color: var(--on-inverse); }
.push__box[aria-pressed="true"] .push__btn { background: var(--surface); color: var(--text); border-color: var(--text); }

/* ---------- بایگانی‌ها ---------- */
.arch__main { flex: 1 1 480px; max-width: 680px; display: flex; flex-direction: column; gap: 18px; }
.arch__head { display: flex; align-items: center; gap: 18px; }
.arch__icon { flex: 0 0 auto; width: 72px; height: 72px; border-radius: var(--r-lg); background: var(--surface-2); color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.arch__title { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.2; font-weight: 400; }
.arch__title--xl { font-size: clamp(42px, 7vw, 88px); line-height: 1.15; }
.arch__hash { color: var(--accent); }
.arch__desc { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.9; color: var(--text-2); }
.arch__count { font-size: 14px; color: var(--text-3); }
.chatm { flex: 0 1 400px; min-width: 280px; display: flex; flex-direction: column; gap: 10px; }
.chatm__q { align-self: flex-start; max-width: 88%; padding: 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--surface-2); font-size: 15px; line-height: 1.8; text-align: right; animation: agm-msg 400ms ease both; }
.chatm__a { align-self: flex-end; max-width: 96%; display: flex; align-items: flex-end; gap: 8px; animation: agm-msg 400ms ease 500ms both; }
.chatm__a > span { padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--inverse); color: var(--on-inverse); font-size: 15px; line-height: 1.8; text-align: right; }
.pstrip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 26px 28px; border-radius: var(--r-xl); background: var(--accent-soft); }
.pstrip__head { flex: 0 1 230px; display: flex; flex-direction: column; gap: 8px; }
.pstrip__k { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.pstrip__t { font-size: 21px; line-height: 1.55; font-weight: 600; }
.pstrip__text { flex: 1 1 380px; margin: 0; padding: 16px 20px; border-radius: 22px 22px 6px 22px; background: var(--surface); font-size: 16px; line-height: 2; }
.pstrip__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pstrip__acts .btn--line { background: var(--surface); }
.others { display: flex; flex-direction: column; gap: 16px; padding-top: 56px; border-top: 1px solid var(--border); }
.others__k { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.others__k .badge__dot { width: 6px; height: 6px; }
.others__row { display: flex; flex-wrap: wrap; gap: 12px; }
.ocard { flex: 1 1 240px; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); border: var(--outline); background: var(--surface); color: var(--text); transition: transform 200ms ease; }
.ocard:hover { color: var(--text); transform: translateY(-3px); }
.ocard__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.ocard__text { display: flex; flex-direction: column; }
.ocard__name { font-size: 17px; font-weight: 600; }
.ocard__n { font-size: 13px; color: var(--text-3); }

.auth__main { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.auth__k { font-size: 14px; color: var(--text-3); }
.auth__name { font-size: clamp(38px, 5.5vw, 68px); line-height: 1.2; font-weight: 400; }
.auth__follow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; }
.auth__followers { font-size: 14px; color: var(--text-3); }
.auth__links { display: flex; flex-wrap: wrap; gap: 8px; }
.auth__links .chip { min-height: 40px; }
.stats { flex: 0 1 380px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 18px; border-radius: var(--r-lg); border: var(--outline); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.stat__v { font-size: 30px; line-height: 1.2; font-weight: 300; }
.stat__v--icon { display: inline-flex; align-items: center; gap: 8px; }
.stat__fav { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font-size: 20px; font-weight: 500; }
.stat__k { font-size: 13px; color: var(--text-3); }

.nf { padding: 72px var(--gutter) 88px; gap: 28px; }
.nf__num { font-size: clamp(140px, 26vw, 300px); line-height: .95; font-weight: 200; }
.nf .chatm { flex: 0 0 auto; width: 100%; max-width: 460px; margin-top: -8px; }
.nf__text { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nf__title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.3; font-weight: 400; }
.nf__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- تک‌مطلب ---------- */
.progress { position: sticky; top: var(--header-h); z-index: 19; height: 0; }
.progress__bar { display: block; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right center; }
.pm { width: 100%; max-width: 860px; display: flex; flex-direction: column; gap: 18px; padding: 6px 0; }
.composer { display: flex; align-items: flex-end; gap: 14px; padding: 28px 36px 28px 20px; border-radius: 32px; border: var(--outline); background: var(--surface); animation: agm-in 480ms cubic-bezier(.2, .8, .2, 1) both; }
.composer__title { flex: 1 1 auto; min-width: 0; font-size: clamp(26px, 3.3vw, 44px); line-height: 1.6; font-weight: 600; text-align: right; }
.composer__send { flex: 0 0 auto; width: 46px; height: 46px; margin-bottom: 4px; border-radius: var(--r-pill); background: var(--inverse); color: var(--on-inverse); display: flex; align-items: center; justify-content: center; }
.lead { display: flex; align-items: flex-end; gap: 12px; padding: 0 14px; animation: agm-in 480ms cubic-bezier(.2, .8, .2, 1) 320ms both; }
.lead__b { position: relative; flex: 0 1 auto; min-width: 0; margin: 0 9px 0 0; padding: 16px 24px; border-radius: var(--r-xl); background: var(--inverse); color: var(--on-inverse); font-size: clamp(17px, 1.7vw, 20px); line-height: 2; text-align: right; }
.lead__text { display: block; }
.js .lead__w { opacity: 0; transition: opacity 180ms ease; }
.js .lead__w.is-in { opacity: 1; }
.lead__dots { position: absolute; top: 30px; right: 24px; display: none; gap: 6px; }
.lead__dots span { width: 8px; height: 8px; border-radius: var(--r-pill); background: currentColor; opacity: .45; animation: agm-bounce 1s ease-in-out infinite; }
.lead__dots span:nth-child(2) { animation-delay: 150ms; }
.lead__dots span:nth-child(3) { animation-delay: 300ms; }
.lead.is-typing .lead__dots { display: inline-flex; }

.post-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-3); }
.post-meta__who { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.post-meta__name { font-weight: 600; }

.post-layout { display: flex; gap: 56px; align-items: flex-start; padding-bottom: 96px; }
.post-aside { flex: 0 0 300px; position: sticky; top: 104px; display: flex; flex-direction: column; gap: 32px; }
.post-main { flex: 1 1 auto; min-width: 0; max-width: 720px; }
.aside-h { font-size: 13px; font-weight: 600; color: var(--text-3); }
.toc { display: flex; flex-direction: column; gap: 4px; }
.toc .aside-h { padding-bottom: 10px; }
.toc a { font-size: 15px; line-height: 1.7; padding-block: 6px; padding-inline: 14px 0; border-inline-start: 2px solid var(--border); color: var(--text-3); }
.toc a:hover { color: var(--text); }
.toc a.is-on { border-color: var(--accent); color: var(--text); font-weight: 600; }
.share { display: flex; flex-direction: column; gap: 12px; }
.share__row { display: flex; gap: 8px; }
.ads { position: relative; overflow: hidden; flex: 0 0 auto; display: flex; flex-direction: column; gap: 16px; min-height: 320px; padding: 26px 24px 24px; border-radius: var(--r-lg); background: #0B0C10; color: #F2F3F5; }
.ads__tag { top: 12px; left: 12px; padding: 1px 8px; font-size: 10px; }
.ads__title { font-size: 20px; line-height: 1.6; font-weight: 600; }
.ads__lead { margin-top: -6px; font-size: 14px; line-height: 1.95; color: #B9BEC8; }
.ads__btn { margin-top: auto; }

.post-fig { margin: 0 0 36px; display: flex; flex-direction: column; gap: 12px; }
.post-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-2xl); border: var(--outline); }
.post-fig figcaption { font-size: 14px; color: var(--text-3); text-align: center; }

.ask-ai-wrap { margin: 28px 0 0 !important; }
.ask-ai { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 18px; border-radius: var(--r-pill); border: var(--outline); font-size: 14px; line-height: 1.7; font-weight: 600; color: var(--text); text-decoration: none !important; transition: background 160ms ease; }
.prose a.ask-ai { color: var(--text); }
.ask-ai:hover { background: rgba(128, 132, 140, .14); color: var(--text); }
.intro { margin: 56px 0 36px; display: flex; align-items: flex-end; gap: 12px; }
.intro__b { position: relative; display: block; flex: 0 1 auto; min-width: 0; margin: 0 9px 0 0; padding: 18px 24px; border-radius: var(--r-xl); background: var(--inverse); color: var(--on-inverse); font-size: 17px; line-height: 2; transition: translate 180ms ease; }
.intro__b:hover { color: var(--on-inverse); translate: 0 -2px; }
.intro__link { font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; }
.tags a { padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 14px; color: var(--text-2); }
.helpful { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-block: 1px solid var(--border); }
.helpful__q { font-size: 16px; font-weight: 600; }
.helpful__btns { display: flex; gap: 8px; }
.abox { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 26px; border-radius: var(--r-xl); border: var(--outline); }
.abox__text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.abox__k { font-size: 13px; color: var(--text-3); }
.abox__name { font-size: 19px; font-weight: 600; }
.abox__bio { margin: 0; font-size: 15px; line-height: 1.8; color: var(--text-2); }

/* نوار ابزار پایین */
.tb { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 46; max-width: calc(100vw - 24px); }
.tb__bar { display: flex; align-items: center; gap: 4px; padding: 8px; border-radius: var(--r-md); background: #111318; color: #FFFFFF; box-shadow: 0 20px 44px -18px rgba(17, 19, 24, .55); }
[data-theme="dark"] .tb__bar, [data-theme="dark"] .tb__open { background: #1F2128; box-shadow: 0 0 0 1px #3A3E48, 0 20px 44px -18px rgba(0, 0, 0, .7); }
.tb__i { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: none; background: transparent; color: #FFFFFF; transition: background 160ms ease; }
.tb__i:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
.tb__i--ai, .tb__i--ai:hover { background: #3D63F5; }
.tb__i[aria-pressed="true"] { color: #F0567F; }
.tb__i[aria-pressed="true"] svg { fill: currentColor; }
.tb__sep { width: 1px; height: 24px; margin: 0 4px; background: currentColor; opacity: .18; }
.tb__open { display: none; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: var(--r-md); border: none; background: #111318; color: #FFFFFF; box-shadow: 0 20px 44px -18px rgba(17, 19, 24, .55); }
.tb.is-closed .tb__bar { display: none; }
.tb.is-closed .tb__open { display: inline-flex; }
.tb.is-closed { left: 20px; transform: none; }

.tocfab { display: none; position: fixed; bottom: 20px; right: 16px; z-index: 45; align-items: center; gap: 10px; min-height: 52px; padding-block: 0; padding-inline: 8px 18px; border-radius: var(--r-pill); border: none; background: #111318; color: #FFFFFF; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); }
.tocfab__ring { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: #7C96FF; }
.tocfab__ring > svg:first-child { position: absolute; inset: 0; transform: rotate(-90deg); }
.tocfab__ring .ico { color: #FFFFFF; }
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet__back { position: absolute; inset: 0; background: rgba(8, 9, 12, .5); }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 72vh; overflow-y: auto; padding: 16px 20px 28px; border-radius: 24px 24px 0 0; background: var(--bg); display: flex; flex-direction: column; animation: agm-sheet 260ms cubic-bezier(.2, .8, .2, 1) both; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.sheet__h { font-size: 17px; font-weight: 600; }
.sheet__panel > a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--border); font-size: 16px; }

/* ---------- متن مطلب ---------- */
.prose { font-size: 18px; line-height: 2.05; color: var(--text-2); overflow-wrap: break-word; }
.prose > * { margin-block: 0 28px; }
.prose > *:last-child { margin-bottom: 0; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 5px; }
.prose strong { font-weight: 600; color: var(--text); }
.prose > p:first-of-type, .prose p.is-style-agm-lead { font-size: 21px; line-height: 1.95; font-weight: 600; color: var(--text); }
.prose h2 { margin: 56px 0 18px; padding-top: 48px; border-top: 1px solid var(--border); font-size: 32px; line-height: 1.45; font-weight: 600; color: var(--text); }
.prose h3 { margin: 40px 0 14px; font-size: 24px; line-height: 1.5; font-weight: 600; color: var(--text); }
.prose h4 { margin: 32px 0 12px; font-size: 20px; font-weight: 600; color: var(--text); }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--r-lg); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--text-3); text-align: center; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.prose code { font-family: var(--font-mono); font-size: .88em; direction: ltr; unicode-bidi: embed; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); }
.prose blockquote, .prose .wp-block-pullquote { margin: 48px 0; padding: 32px 0; border: none; border-block: 1px solid var(--border); }
.prose blockquote::before { content: ''; display: block; width: 34px; height: 34px; margin-bottom: 14px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c.6 4.6 2.9 6.9 9.5 9.5-6.6 2.6-8.9 4.9-9.5 9.5-.6-4.6-2.9-6.9-9.5-9.5 6.6-2.6 8.9-4.9 9.5-9.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c.6 4.6 2.9 6.9 9.5 9.5-6.6 2.6-8.9 4.9-9.5 9.5-.6-4.6-2.9-6.9-9.5-9.5 6.6-2.6 8.9-4.9 9.5-9.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.prose blockquote p { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.7; font-weight: 600; color: var(--text); }
.prose blockquote cite { display: block; margin-top: 12px; font-size: 15px; font-style: normal; color: var(--text-3); }

/* جدول */
.prose .wp-block-table { border-radius: var(--r-lg); border: var(--outline); overflow-x: auto; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.8; text-align: right; }
.prose th, .prose td { padding: 14px 18px; border: none; border-bottom: 1px solid var(--border); }
.prose thead th { background: var(--bg-alt); color: var(--text); font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose td:first-child { color: var(--text); font-weight: 600; }

/* کد */
.prose pre, .codebox pre { margin: 0; padding: 20px 22px; overflow-x: auto; direction: ltr; text-align: left; font-family: var(--font-mono); font-size: 14px; line-height: 1.85; color: #E6E8EE; background: #0F1117; border-radius: var(--r-lg); }
.prose pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; }
.codebox { border-radius: var(--r-lg); background: #0F1117; overflow: hidden; }
.codebox__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 10px; padding-inline: 18px 14px; border-bottom: 1px solid #1C1F28; }
.codebox__name { font-family: var(--font-mono); font-size: 13px; color: #8E929C; }
.codebox__copy { min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid #2E313A; background: transparent; color: #E6E8EE; font-size: 13px; font-weight: 600; }
.codebox pre { border-radius: 0; }

/* باکس‌ها */
.prose .is-style-agm-summary { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; margin-bottom: 40px; border-radius: var(--r-lg); border: var(--outline); background: var(--bg-alt); font-size: 16px; line-height: 1.9; }
.prose .is-style-agm-summary::before { content: 'خلاصه در ۳۰ ثانیه'; font-size: 15px; font-weight: 600; color: var(--text); padding-inline-start: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D63F5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") right center / 20px no-repeat; }
.prose .is-style-agm-summary > * { margin: 0; }
.prose .is-style-agm-summary ul { padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose .is-style-agm-summary li { margin: 0; }

.prose .is-style-agm-prompt { padding: 0; border-radius: var(--r-lg); border: var(--outline); background: var(--surface); overflow: hidden; }
.prose .is-style-agm-prompt > p, .prose .is-style-agm-prompt > .wp-block-group__inner-container > p { margin: 0; padding: 20px 22px; font-size: 17px; line-height: 2; color: var(--text); font-weight: 400; }
.pbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; padding-inline: 18px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.pbar__k { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.pbar__k .ico { color: var(--accent); }
.pbar__acts { display: flex; gap: 6px; }
.pbar__acts .btn { min-height: 36px; padding: 0 14px; font-size: 13px; text-decoration: none; }
.pbar__acts .btn--line { background: var(--surface); border-color: var(--border); color: var(--text); }
.pbar__acts .btn--dark { color: var(--on-inverse); }

.prose .is-style-agm-tip, .prose .is-style-agm-warning { position: relative; display: flex; flex-direction: column; gap: 4px; padding-block: 20px; padding-inline: 58px 22px; border-radius: var(--r-lg); background: var(--accent-soft); font-size: 16px; line-height: 1.9; color: var(--text); }
.prose .is-style-agm-tip > *, .prose .is-style-agm-warning > * { margin: 0; }
.prose .is-style-agm-tip::before, .prose .is-style-agm-warning::before { content: 'نکته'; font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.prose .is-style-agm-tip::after, .prose .is-style-agm-warning::after { content: ''; position: absolute; top: 24px; right: 22px; width: 22px; height: 22px; background: var(--accent-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.4 1 1.1 1 1.8V16h5v-.3c0-.7.4-1.4 1-1.8A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.4 1 1.1 1 1.8V16h5v-.3c0-.7.4-1.4 1-1.8A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.prose .is-style-agm-warning { background: var(--warn-bg); border: 1px solid var(--warn-bd); }
.prose .is-style-agm-warning::before { content: 'مراقب باشید'; color: var(--warn-ink); }
.prose .is-style-agm-warning::after { background: var(--warn-ink); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2zM12 10v5M12 18v.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2zM12 10v5M12 18v.01'/%3E%3C/svg%3E"); }

.prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 14px; }
.prose .wp-block-column { flex: 1 1 260px; min-width: 0; }
.prose .agm-compare { gap: 14px; margin-bottom: 32px; }
.prose .is-style-agm-good, .prose .is-style-agm-bad { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--ok-bd); background: var(--ok-bg); font-size: 16px; line-height: 1.9; color: var(--text); }
.prose .is-style-agm-good > *, .prose .is-style-agm-bad > * { margin: 0; }
.prose .is-style-agm-good::before { content: '✓  دقیق و روشن'; font-size: 13px; font-weight: 600; color: var(--ok-ink); }
.prose .is-style-agm-bad { border-color: var(--bad-bd); background: var(--bad-bg); }
.prose .is-style-agm-bad::before { content: '✕  کلی و مبهم'; font-size: 13px; font-weight: 600; color: var(--bad-ink); }

.prose .is-style-agm-chat { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-xl); border: var(--outline); background: var(--bg-alt); }
.prose .is-style-agm-chat::before { content: 'نمونه‌ی گفتگو'; font-size: 13px; font-weight: 600; color: var(--text-3); }
.prose .is-style-agm-chat > p { margin: 0; max-width: 85%; padding: 14px 18px; font-size: 16px; line-height: 1.9; font-weight: 400; }
.prose .is-style-agm-chat > p:nth-of-type(odd) { align-self: flex-start; border-radius: 20px 20px 6px 20px; background: var(--inverse); color: var(--on-inverse); }
.prose .is-style-agm-chat > p:nth-of-type(even) { align-self: flex-end; border-radius: 20px 20px 20px 6px; background: var(--surface); border: var(--outline); color: var(--text); }

/* چک‌لیست */
.prose ul.is-style-agm-checklist { list-style: none; padding: 10px; border-radius: var(--r-xl); background: var(--bg-alt); display: flex; flex-direction: column; gap: 6px; }
.prose ul.is-style-agm-checklist li { margin: 0; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; border-radius: var(--r-md); background: var(--surface); color: var(--text); font-size: 16px; line-height: 1.7; cursor: pointer; }
.prose ul.is-style-agm-checklist li::before { content: ''; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--border-strong); transition: background 160ms ease; }
.prose ul.is-style-agm-checklist li[aria-checked="true"] { color: var(--text-3); text-decoration: line-through; }
.prose ul.is-style-agm-checklist li[aria-checked="true"]::before { border-color: var(--success); background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.prose ul.is-style-agm-checklist .cl-head { cursor: default; min-height: 0; padding: 4px 4px 6px; background: transparent; justify-content: space-between; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); }
.prose ul.is-style-agm-checklist .cl-head::before { display: none; }
.cl-track { width: 140px; height: 6px; border-radius: var(--r-pill); background: var(--border); display: flex; }
.cl-track span { height: 6px; border-radius: var(--r-pill); background: var(--success); transition: width 240ms ease; }

/* پرسش‌های پرتکرار */
.prose details { margin: 0; border-bottom: 1px solid var(--border); }
.prose details:first-of-type, .prose :not(details) + details { border-top: 1px solid var(--border); }
.prose details + details { border-top: none; }
.prose summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; font-size: 18px; font-weight: 600; color: var(--text); cursor: pointer; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: '+'; flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 400; }
.prose details[open] summary::after { content: '−'; }
.prose details > *:not(summary) { margin: 0; padding-block: 0 22px; padding-inline: 0 48px; font-size: 16px; line-height: 1.95; color: var(--text-2); }

/* ---------- دیدگاه‌ها (به شکل گفت‌وگو) ---------- */
.comments { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 24px; }
.comments__h { font-size: 26px; font-weight: 500; }
.comments__n { font-size: 16px; font-weight: 600; color: var(--text-3); }

/* کادر نوشتن دیدگاه: مثل کادر پیام */
#respond { margin: 0; }
.cform { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px 12px; border-radius: var(--r-2xl); border: var(--outline); background: var(--surface); transition: box-shadow 160ms ease; }
.cform:focus-within { box-shadow: 0 0 0 4px var(--accent-soft); }
.cform p { margin: 0; }
.cform__main { flex: 1 1 100%; }
.cform textarea { display: block; width: 100%; min-height: 96px; padding: 12px 12px 4px; border: none; outline: none; resize: none; field-sizing: content; max-height: 420px; background: transparent; color: var(--text); font-size: 17px; line-height: 1.95; }
.cform textarea::placeholder, .cform input::placeholder { color: var(--text-3); opacity: 1; }
.cform__f { flex: 1 1 170px; min-width: 0; }
.cform input[type="text"], .cform input[type="email"], .cform input[type="url"] { width: 100%; height: 46px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid transparent; background: var(--surface-2); color: var(--text); font-size: 15px; text-align: right; transition: border-color 160ms ease, background 160ms ease; }
.cform input:focus { outline: none; border-color: var(--text); background: var(--surface); }
.cform__send { flex: 0 0 auto; margin-inline-start: auto !important; display: flex; align-items: center; }
.cform__btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding-block: 0; padding-inline: 20px 14px; border-radius: var(--r-pill); border: none; background: var(--inverse); color: var(--on-inverse); font-size: 15px; font-weight: 600; transition: scale 140ms ease, opacity 160ms ease; }
.cform__btn:hover { opacity: .9; }
.cform__btn:active { scale: .97; }
.cform .comment-form-cookies-consent, .cform .must-log-in, .cform .logged-in-as { flex: 1 1 100%; padding-inline: 12px; font-size: 13px; color: var(--text-3); }
.cform .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
#reply-title { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
#reply-title:empty { display: none; }
#reply-title small a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 13px; font-weight: 500; color: var(--text-2); }
.comments .must-log-in, .comments .no-comments { margin: 0; font-size: 15px; color: var(--text-2); }

.cmt-empty { display: flex; align-items: flex-end; gap: 10px; }
.cmt-empty > span { padding: 12px 18px; border-radius: 20px 20px 6px 20px; background: var(--surface-2); font-size: 15px; line-height: 1.8; color: var(--text-2); }

/* فهرست دیدگاه‌ها: هر دیدگاه یک حباب */
.cmts, .cmts .children { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.cmts .children { margin-top: 18px; margin-inline-start: 26px; padding-inline-start: 26px; border-inline-start: 2px solid var(--border); }
.cmt__in { display: flex; align-items: flex-start; gap: 12px; }
.cmt__ava { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.cmt__ava--author { background: var(--inverse); }
.mark--flip .mark__body { fill: var(--on-inverse); }
.cmt__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cmt__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-inline: 6px; font-size: 14px; font-weight: 600; }
.cmt__badge { padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; }
.cmt__time { font-weight: 400; font-size: 13px; color: var(--text-3); }
.cmt__text { max-width: 100%; padding: 12px 18px; border-radius: 6px 20px 20px 20px; background: var(--surface-2); font-size: 16px; line-height: 1.9; color: var(--text); overflow-wrap: anywhere; }
[dir="rtl"] .cmt__text, html .cmt__text { border-radius: 20px 6px 20px 20px; }
.cmt__in--author .cmt__text { background: var(--inverse); color: var(--on-inverse); }
.cmt__in--author .cmt__text a { color: inherit; text-decoration: underline; }
.cmt__text p { margin: 0 0 8px; }
.cmt__text p:last-child { margin-bottom: 0; }
.cmt__reply { padding-inline: 6px; }
.cmt__reply a { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.cmt__reply a:hover { color: var(--accent); }
.cmt__wait { margin: 0; padding-inline: 6px; font-size: 13px; color: var(--warn-ink); }
.cmts #respond { margin-top: 12px; }

/* ---------- فوتر ---------- */
.ftr { background: #0B0C10; color: #F2F3F5; overflow: hidden; }
.ftr a:hover { color: #FFFFFF; }
.ftr__in { max-width: var(--shell); margin-inline: auto; padding: 96px var(--gutter) 0; display: flex; flex-direction: column; gap: 72px; }
.ftr__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 48px; }
.ftr__about { flex: 1 1 420px; max-width: 540px; display: flex; flex-direction: column; gap: 22px; }
.ftr__brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; }
.ftr__tag { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.6; color: #D9DCE3; }
.ftr__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ftr__btns .btn { min-height: 50px; padding: 0 24px; }
.ftr__push { flex: 1 1 380px; max-width: 460px; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: #14161C; border: 1px solid #22252D; }
.ftr__push-h { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.ftr__push-t { font-size: 14px; line-height: 1.8; color: #A9ADB7; }
.ftr__push .btn { align-self: flex-start; }
.ftr__push .btn[aria-pressed="true"] { background: transparent; border-color: #363A45; color: #F2F3F5; }
.ftr__rule { height: 1px; background: #1F2128; }
.ftr__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 44px 32px; }
.ftr__col { display: flex; flex-direction: column; gap: 16px; }
.ftr__h { font-size: 13px; font-weight: 600; }
.ftr__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ftr__list a { color: #A9ADB7; font-size: 15px; line-height: 1.6; }
.ftr__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; border-block: 1px solid #1F2128; }
.ftr__social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ftr__follow { font-size: 14px; color: #8E929C; padding-inline-end: 8px; }
.ftr__pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid #2A2D36; color: #D9DCE3; font-size: 14px; }
.ftr__pill:hover { border-color: #5B5F6B; }
.ftr__pill--top { min-height: 44px; padding: 0 18px; color: #F2F3F5; }
.ftr__word { max-width: 1440px; margin: 48px auto -.12em; padding: 0 16px; font-size: clamp(110px, 21vw, 320px); line-height: 1; font-weight: 200; text-align: center; color: #1F2229; white-space: nowrap; }
.ftr__legal { background: #08090C; border-top: 1px solid #1A1C22; }
.ftr__legal-in { max-width: var(--shell); margin-inline: auto; padding: 20px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: #8E929C; }
.ftr__legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }

/* پیام کوتاه پایین صفحه */
.toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 80; padding: 10px 18px; border-radius: var(--r-pill); background: var(--inverse); color: var(--on-inverse); font-size: 14px; font-weight: 600; animation: agm-in 240ms ease both; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 980px) {
	.hdr__links { display: none; }
	.hdr__burger { display: inline-flex; }
	.hdr__nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 900px) {
	.post-aside { display: none; }
	.tocfab { display: inline-flex; }
	.tb { left: 16px; transform: none; }
	.tb.is-closed { left: 16px; }
	.cf__stage { --cf-w: 150px; --cf-step: 52px; --cf-h: 226px; }
	.feat { grid-template-columns: 1fr; gap: 16px; }
	.feat__body { padding: 0 8px 12px; }
	.push__box { padding: 24px 20px; }
	.push__note { flex: 1 1 100%; }
	.sec { padding: 72px 0; }
	.sec--tight { padding: 40px 0 72px; }
	.push { padding-block: 72px; }
	.ftr__in { padding-top: 72px; gap: 56px; }
}
@media (max-width: 640px) {
	.grid-cards { grid-template-columns: 1fr; }
	.hero--home .hero__in { padding: 64px var(--gutter) 56px; }
	.hero__in--split, .hero__in--author { padding-top: 56px; padding-bottom: 44px; gap: 28px; }
	.composer { padding: 20px 22px 20px 14px; border-radius: 26px; }
	.lead { padding: 0 4px; }
	.prose { font-size: 17px; }
	.prose h2 { font-size: 26px; margin-top: 44px; padding-top: 36px; }
	.prose > p:first-of-type { font-size: 19px; }
	.row__cover { flex-basis: 104px; }
	.cmts .children { margin-inline-start: 10px; padding-inline-start: 14px; }
	.cform__send { flex: 1 1 100%; }
	.cform__send .cform__btn { width: 100%; justify-content: center; }
	.search__field .btn { padding: 0 14px; }
	.ava--xl { width: 96px; height: 96px; font-size: 40px; border-radius: 24px; }
	.stats { flex-basis: 100%; }
}
@media (max-width: 560px) {
	:root { --gutter: 20px; }
	.hdr__app { display: none; }
	.ask-ai { font-size: 13px; padding: 9px 16px; border-radius: 20px; }
	.ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sec__tools .btn { display: none; }
	.abox { padding: 20px; }
}

/* ---------- حرکت ---------- */
@keyframes agm-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes agm-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: none; } }
@keyframes agm-msg { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: none; } }
@keyframes agm-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: none; } }
@keyframes agm-dot { 0%, 100% { transform: none; } 40% { transform: translateY(-6px); } }
@keyframes agm-bounce { 0%, 100% { transform: none; opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes agm-drawer { from { translate: 100% 0; } to { translate: none; } }
@keyframes agm-sheet { from { translate: 0 100%; } to { translate: none; } }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
	.hero--home .hero__in > *, .hero--arch .hero__in--center > * { animation: agm-rise 800ms cubic-bezier(.2, .8, .2, 1) both; }
	.hero__in > *:nth-child(2) { animation-delay: 90ms; }
	.hero__in > *:nth-child(3) { animation-delay: 180ms; }
	.hero__in > *:nth-child(4) { animation-delay: 270ms; }
	.hero__in > *:nth-child(5) { animation-delay: 360ms; }
	@supports (animation-timeline: view()) {
		body:not(.single) .sec > .wrap { animation: agm-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
	}
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* وردپرس */
.alignwide { margin-inline: -40px; max-width: none; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sticky, .bypostauthor, .gallery-caption { outline: none; }
@media (max-width: 900px) { .alignwide { margin-inline: 0; } }

/* نوار مدیریت وردپرس (کاربر واردشده) */
.admin-bar .hdr { top: 32px; }
.admin-bar .progress { top: calc(var(--header-h) + 32px); }
.admin-bar .post-aside { top: 136px; }
.admin-bar .drawer, .admin-bar .sheet { z-index: 100000; }
@media (max-width: 782px) { .admin-bar .hdr { top: 46px; } .admin-bar .progress { top: calc(var(--header-h) + 46px); } }
@media (max-width: 600px) { .admin-bar .hdr { top: 0; } .admin-bar .progress { top: var(--header-h); } }

/* هماهنگی با استایل پیش‌فرض بلوک‌های وردپرس */
.prose .wp-block-button__link { color: #FFFFFF; text-decoration: none; border-radius: var(--r-pill); background: var(--inverse); }
[data-theme="dark"] .prose .wp-block-button__link { color: var(--on-inverse); }
.prose .wp-block-pullquote { text-align: right; }
.prose .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.prose .wp-block-table thead, .prose .wp-block-table tfoot { border: 0; }
.prose .wp-block-table td, .prose .wp-block-table th { border-inline: 0; border-top: 0; }
.prose .wp-block-verse, .prose .wp-block-preformatted { direction: rtl; text-align: right; font-family: inherit; background: var(--surface-2); color: var(--text); }

/* صفحه‌بندی مطلب چندصفحه‌ای و دیدگاه‌ها */
.pager .post-page-numbers { min-width: 44px; height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); font-size: 15px; color: var(--text); }
.pager .post-page-numbers.current { background: var(--inverse); color: var(--on-inverse); }
.comments .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding-top: 16px; }
.comments .nav-links .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); font-size: 15px; }
.comments .nav-links .page-numbers.current { background: var(--inverse); color: var(--on-inverse); }
