/* ==========================================================================
   Dragon AOP — استایل اصلی
   راست‌چین، مبتنی بر ویژگی‌های منطقی CSS (inline/block)
   ========================================================================== */

:root {
	--ink: #0e1126;
	--ink-2: #171b3a;
	--accent: #4f6bff;
	--accent-2: color-mix(in srgb, var(--accent) 55%, #8b5cf6);
	--accent-ink: color-mix(in srgb, var(--accent) 82%, #000);
	--bg: #f5f6fb;
	--surface: #ffffff;
	--text: #161a33;
	--muted: #5b6285;
	--line: #e3e6f2;
	--shadow: 0 1px 2px rgba(14, 17, 38, .05), 0 6px 20px rgba(14, 17, 38, .06);
	--shadow-lg: 0 2px 4px rgba(14, 17, 38, .06), 0 18px 40px rgba(14, 17, 38, .12);
	--radius: 20px;
	--radius-sm: 12px;
	--font: "Vazirmatn", "Vazir", Tahoma, "Segoe UI", system-ui, -apple-system, sans-serif;
	--header-h: 68px;
	--scales: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%237c8cff' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M0 24a24 24 0 0 1 48 0'/%3E%3Cpath d='M-24 12a24 24 0 0 1 48 0'/%3E%3Cpath d='M24 12a24 24 0 0 1 48 0'/%3E%3C/g%3E%3C/svg%3E");
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0a0c18;
	--surface: #12162b;
	--text: #e9ebf8;
	--muted: #9aa1c9;
	--line: #232948;
	--accent-ink: color-mix(in srgb, var(--accent) 60%, #fff);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
	--shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.85;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 800; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 2rem); margin-inline: auto; }
.site-main { min-height: 60vh; padding-block-end: 3rem; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important; inset-block-start: 8px; inset-inline-start: 8px; width: auto; height: auto; margin: 0;
	clip: auto; clip-path: none; padding: .7rem 1.1rem; background: var(--accent); color: #fff; z-index: 1000; border-radius: 10px;
}

/* ---------- دکمه‌ها و اجزای کوچک ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .75rem 1.5rem; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .95rem;
	transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e9ecff; color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }

.chip {
	display: inline-block; align-self: flex-start; padding: .1rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.9;
	background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); transition: background-color .2s;
}
.chip:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-ink); }
.chip--solid { background: var(--accent); color: #fff; }

.meta { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .84rem; color: var(--muted); }
.meta > * + * { position: relative; }
.meta > * + *::before { content: ""; position: absolute; inset-inline-end: calc(100% + .55rem); inset-block-start: 50%; width: 4px; height: 4px; margin-block-start: -2px; border-radius: 50%; background: currentColor; opacity: .55; }
.meta--lg { font-size: .92rem; align-items: center; }
.meta-avatar { border-radius: 50%; vertical-align: middle; margin-inline-end: .3rem; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
	background: var(--surface); color: var(--text); transition: background-color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }

/* ---------- هدر ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-block-end: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-block-end-color: var(--line); box-shadow: 0 8px 24px rgba(14, 17, 38, .06); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }

.brand { flex: none; }
.brand__link, .brand .custom-logo-link { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 800; font-size: 1.2rem; }
.brand__link:hover { color: var(--text); }
.brand .custom-logo { max-height: 44px; width: auto; }
.brand__mark .hex { fill: var(--accent); }
.brand__mark .arc { fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; }
.brand__link:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__mark { transition: transform .3s; }

.site-nav { flex: 1; }
.site-nav .menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; align-items: center; gap: .15rem; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a { display: block; padding: .5rem .9rem; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .95rem; }
.site-nav .menu a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_item > a { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); }
.site-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: .5rem; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem; min-width: 200px; position: absolute; inset-inline-start: 0; inset-block-start: 100%;
	background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav .menu li:hover > .sub-menu,
.site-nav .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.site-nav { margin-inline-start: 0; }

#theme-toggle .i-sun { display: none; }
[data-theme="dark"] #theme-toggle .i-sun { display: block; }
[data-theme="dark"] #theme-toggle .i-moon { display: none; }

.nav-toggle { display: none; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, background-color .25s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle__bars::before { inset-block-start: -6px; }
.nav-toggle__bars::after { inset-block-start: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.search-panel { padding-block: .25rem 1.1rem; border-block-start: 1px solid var(--line); }
.search-panel .searchform { margin-block-start: .9rem; }
.search-panel[hidden] { display: none; }

/* ---------- فرم جستجو ---------- */
.searchform { position: relative; display: flex; align-items: center; width: 100%; }
.searchform__input {
	width: 100%; height: 52px; padding-inline: 1.2rem 3.4rem; border-radius: 999px; border: 1px solid var(--line);
	background: var(--surface); color: var(--text); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.searchform__input::placeholder { color: var(--muted); }
.searchform__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.searchform__btn {
	position: absolute; inset-inline-end: 6px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
	background: var(--accent); color: #fff; transition: background-color .2s, transform .2s;
}
.searchform__btn:hover { background: var(--accent-ink); transform: scale(1.06); }

/* ---------- بخش معرفی ---------- */
.hero { margin-block-start: 1rem; }
.hero__inner {
	position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: clamp(1.5rem, 4vw, 3.5rem);
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
	background: radial-gradient(900px 420px at 0% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 65%), linear-gradient(160deg, var(--ink-2), var(--ink) 70%);
	color: #fff;
}
.hero__inner::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--scales); background-size: 48px 24px; opacity: .9;
	-webkit-mask-image: linear-gradient(200deg, #000 5%, transparent 75%); mask-image: linear-gradient(200deg, #000 5%, transparent 75%);
}
.hero__title { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.3; font-weight: 900; margin-block-end: .5em; text-wrap: balance; }
.hero__desc { font-size: clamp(1rem, 2vw, 1.15rem); color: #c3c8ee; max-width: 52ch; margin-block-end: 1.6rem; }
.hero__search { max-width: 520px; }
.hero__search .searchform__input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.hero__search .searchform__input::placeholder { color: #aab0dd; }
.hero__search .searchform__input:focus { background: rgba(255, 255, 255, .14); border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-block-start: 1.4rem; }
.stats { display: flex; gap: 1.75rem; margin: 0; }
.stats > div { display: flex; flex-direction: column-reverse; padding-inline-start: 1.75rem; border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.stats > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.stats dd { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.stats dt { font-size: .82rem; color: #aab0dd; }

.hero-card { animation: hero-in .8s cubic-bezier(.2, .7, .2, 1) both .1s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px) rotate(-1.2deg); } to { opacity: 1; transform: none; } }
.hero-card__link {
	position: relative; display: block; overflow: hidden; border-radius: 24px; color: #fff; aspect-ratio: 4 / 4.2;
	border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transition: transform .35s, box-shadow .35s;
}
.hero-card__link:hover { color: #fff; transform: translateY(-5px) rotate(.4deg); box-shadow: 0 40px 70px rgba(0, 0, 0, .45); }
.hero-card__media { position: absolute; inset: 0; }
.hero-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-card__link:hover img { transform: scale(1.05); }
.hero-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 28, .94) 8%, rgba(8, 10, 28, .1) 65%); }
.hero-card__body { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.hero-card__title { font-size: clamp(1.15rem, 2.4vw, 1.55rem); margin: 0; line-height: 1.55; }
.hero-card .meta { color: #c3c8ee; }

/* تصویر جایگزین نوشته‌های بدون تصویر شاخص */
.ph { display: block; width: 100%; height: 100%; min-height: 100%; background: var(--scales) 0 0 / 48px 24px, linear-gradient(135deg, var(--ink-2), color-mix(in srgb, var(--accent) 45%, var(--ink))); }

/* ---------- بخش‌ها ---------- */
.section { margin-block-start: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-block-end: 1.5rem; }
.section-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.more { font-weight: 700; font-size: .92rem; }
.more::after { content: " ←"; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }

/* ---------- کارت‌ها ---------- */
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .28s, box-shadow .28s, border-color .28s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; gap: .6rem; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
.card__title { margin: 0; font-size: 1.12rem; line-height: 1.7; }
.card__title a { color: var(--text); }
.card__title a:hover { color: var(--accent-ink); }
.card__excerpt { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-block-start: auto; padding-block-start: .6rem; }

/* ---------- دسته‌بندی‌ها ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cat { display: flex; align-items: center; gap: .95rem; padding: 1.1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); transition: transform .25s, border-color .25s, box-shadow .25s; }
.cat:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.cat__count {
	flex: none; display: grid; place-items: center; width: 52px; height: 58px; font-weight: 800; color: #fff; background: var(--accent);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background-color .25s, transform .3s;
}
.cat:hover .cat__count { background: var(--accent-2); transform: rotate(8deg); }
.cat__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.cat__name { font-size: 1rem; }
.cat__desc { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- مطالب منتخب ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.feature { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; box-shadow: var(--shadow); }
.feature__link { position: absolute; inset: 0; display: block; color: #fff; }
.feature__link:hover { color: #fff; }
.feature__link img, .feature__link .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature__link:hover img { transform: scale(1.05); }
.feature__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 28, .92) 5%, rgba(8, 10, 28, 0) 65%); }
.feature__body { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 1; display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; }
.feature__title { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 800; line-height: 1.6; }
.feature .meta { color: #c3c8ee; }
.featured__list { display: flex; flex-direction: column; gap: 1rem; }
.row-card { display: flex; gap: 1rem; align-items: center; flex: 1; padding: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .25s, border-color .25s, box-shadow .25s; }
.row-card:hover { transform: translateX(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.row-card__media { flex: none; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--ink-2); }
.row-card__media img { width: 100%; height: 100%; object-fit: cover; }
.row-card__title { margin: 0 0 .3rem; font-size: 1rem; line-height: 1.7; }
.row-card__title a { color: var(--text); }
.row-card__title a:hover { color: var(--accent-ink); }

/* ---------- سربرگ صفحات داخلی ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 2rem; }
.page-head__title { margin: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; }
.page-head__desc { margin-block-start: .6rem; color: var(--muted); max-width: 64ch; }
.page-head__desc p { margin: 0; }

/* ---------- صفحه‌بندی ---------- */
.pagination { margin-block-start: 2.5rem; }
.pagination .nav-links, .page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pagination .page-numbers, .page-links a, .page-links > span {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: .9rem; border-radius: 12px; border: 1px solid var(--line);
	background: var(--surface); color: var(--text); font-weight: 600; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.pagination a.page-numbers:hover, .page-links a:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.pagination .page-numbers.current, .page-links > span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .dots { border-color: transparent; background: transparent; }

/* ---------- نوشته و برگه ---------- */
.entry { padding-block-start: clamp(2rem, 5vw, 3.5rem); }
.entry-header { margin-block-end: 1.75rem; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.entry-title { margin: 0; font-size: clamp(1.8rem, 4.4vw, 2.7rem); font-weight: 900; line-height: 1.5; text-wrap: balance; }
.entry-thumb { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.entry-thumb img { display: block; width: 100%; }

.entry-content { font-size: 1.06rem; line-height: 2.1; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.6rem; margin-block: 2.2em .6em; }
.entry-content h3 { font-size: 1.3rem; margin-block: 1.8em .5em; }
.entry-content h4 { font-size: 1.1rem; margin-block: 1.5em .4em; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.5rem; margin-block-end: 1.3em; }
.entry-content li { margin-block-end: .35em; }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .wp-caption-text { margin-block-start: .6rem; font-size: .86rem; color: var(--muted); text-align: center; }
.entry-content blockquote {
	margin: 1.8em 0; padding: 1.1rem 1.4rem; border-inline-start: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--text);
}
[dir="rtl"] .entry-content blockquote { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5em; }
.entry-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin-block-end: 1.5em; font-size: .95rem; }
.entry-content th, .entry-content td { padding: .7rem 1rem; border: 1px solid var(--line); text-align: start; }
.entry-content th { background: var(--surface); font-weight: 700; }
.entry-content code, .entry-content pre { direction: ltr; text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.entry-content :not(pre) > code { padding: .15em .45em; border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.entry-content pre { padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--ink); color: #dfe3ff; overflow-x: auto; line-height: 1.7; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image img, .wp-caption { max-width: 100%; }
.entry-footer { margin-block-start: 2rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags a { padding: .2rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .88rem; transition: border-color .2s, color .2s; }
.tags a:hover { border-color: var(--accent); color: var(--accent-ink); }
.page-links { margin-block: 1.5rem; }

.post-navigation { margin-block: 2.5rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); transition: border-color .2s, transform .2s; }
.post-navigation a:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-navigation .nav-next { text-align: end; grid-column: 2; }
.post-navigation .nav-previous { grid-column: 1; }
.nav-sub { font-size: .8rem; color: var(--muted); }
.nav-title { font-weight: 700; line-height: 1.7; }

/* ---------- دیدگاه‌ها ---------- */
.comments-area { margin-block: 3rem; }
.comments-title, .comment-reply-title { font-size: 1.4rem; margin-block-end: 1.2rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-inline-start: 1.5rem; padding-inline-start: 1rem; border-inline-start: 2px solid var(--line); }
.comment-item { margin-block-end: 1rem; }
.comment-body { padding: 1.2rem 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.comment-head { display: flex; align-items: center; gap: .8rem; margin-block-end: .6rem; }
.comment-head > div { display: flex; flex-direction: column; line-height: 1.6; }
.comment-avatar { border-radius: 50%; }
.comment-date { font-size: .82rem; color: var(--muted); }
.comment-content p:last-child { margin-block-end: .4rem; }
.comment-pending, .no-comments { font-size: .9rem; color: var(--muted); }
.comment-reply a { font-size: .88rem; font-weight: 700; }
.comment-respond { margin-block-start: 2rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.comment-form label { display: block; margin-block-end: .3rem; font-weight: 600; font-size: .92rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: center; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
#cancel-comment-reply-link { font-size: .85rem; margin-inline-start: .75rem; }

/* ---------- حالت خالی / ۴۰۴ ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h1, .empty-state h2 { margin: 0; font-size: 1.5rem; }
.empty-state p { color: var(--muted); max-width: 48ch; margin: 0 0 .8rem; }
.empty-state .searchform { max-width: 460px; margin-block-end: .8rem; }
.empty-state--404 { margin-block-start: 3rem; border-style: solid; }
.code404 { font-size: clamp(4rem, 14vw, 7rem) !important; font-weight: 900; line-height: 1.1 !important; color: var(--accent-ink) !important; margin: 0 !important; }

/* ---------- فوتر ---------- */
.site-footer { position: relative; isolation: isolate; margin-block-start: clamp(3rem, 7vw, 5rem); background: var(--ink); color: #c3c8ee; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--scales); background-size: 48px 24px; opacity: .55; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.site-footer a { color: #dfe3ff; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-about p { max-width: 44ch; margin-block: 1rem; }
.brand--footer .brand__link, .brand--footer .brand__link:hover { color: #fff; }
.footer-title { font-size: 1rem; color: #fff; margin-block-end: 1rem; }
.footer-menu { display: flex; flex-direction: column; gap: .4rem; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.socials a { display: inline-block; padding: .3rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: .88rem; transition: background-color .2s, border-color .2s, transform .2s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.contact-list li { display: flex; flex-direction: column; line-height: 1.7; }
.contact-list span { font-size: .8rem; color: #8f96c6; }
.contact-list address { font-style: normal; }
.footer-bottom { border-block-start: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom p { margin: 0; padding-block: 1.2rem; font-size: .88rem; color: #8f96c6; }

.to-top {
	position: fixed; inset-block-end: 1.25rem; inset-inline-start: 1.25rem; z-index: 90; width: 46px; height: 46px; border-radius: 14px; border: 0;
	display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s, background-color .2s;
}
.to-top:hover { transform: translateY(-3px); background: var(--accent-ink); }
.to-top[hidden] { display: none; }

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 1024px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.nav-toggle { display: inline-grid; }
	.site-nav {
		position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 120; width: min(340px, 86vw); padding: calc(var(--header-h) + .5rem) 1.25rem 2rem;
		background: var(--surface); border-inline-end: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow-y: auto;
		transform: translateX(-100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
	}
	[dir="rtl"] .site-nav { transform: translateX(100%); }
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: .2rem; }
	.site-nav .menu a { padding: .8rem 1rem; font-size: 1.02rem; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; border: 0; box-shadow: none; background: transparent; padding: 0 1rem 0 0; }
	[dir="rtl"] .site-nav .sub-menu { padding: 0 1rem 0 0; }
	.site-nav .menu-item-has-children > a::after { display: none; }
	.nav-toggle { position: relative; z-index: 130; }
	.nav-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(8, 10, 28, .55); backdrop-filter: blur(2px); }
	.nav-backdrop[hidden] { display: none; }
	.nav-open { overflow: hidden; }
	.hero__inner { grid-template-columns: 1fr; border-radius: 26px; }
	.hero-card__link { aspect-ratio: 16 / 10; }
	.featured { grid-template-columns: 1fr; }
	.feature { min-height: 280px; }
}

@media (max-width: 640px) {
	body { font-size: .98rem; }
	.grid, .cat-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; }
	.section-head { align-items: center; }
	.entry-content { font-size: 1rem; line-height: 2; }
	.alignleft, .alignright { float: none; display: block; margin: 1em auto; }
	.row-card__media { width: 78px; height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
