/**
 * Nosakh — استایل اصلی
 * تم اسلامی–فرهنگی، نقوش اسلیمی و گره‌چینی، رنگ سبز سدری
 */

/* ================================================================== *
 *  ۱. نقش‌مایه‌های اسلامی (گره‌چینی و اسلیمی)
 * ================================================================== */

/* گره هشت‌پر (شمسه و صلیب) — بافت زمینه‌ی بخش‌ها */
.pattern-girih {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23246148' stroke-width='1' stroke-linejoin='round'%3E%3Cpath d='M8 8H32V32H8Z'/%3E%3Cpath d='M20 4L36 20L20 36L4 20Z'/%3E%3Cpath d='M0 0L8 8M40 0L32 8M0 40L8 32M40 40L32 32'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 40px 40px;
}

/*
 * روی زمینه‌های سبز تیره، نقش سبز دیده نمی‌شود؛
 * همان گره را با قلم طلایی می‌کشیم.
 */
.hero .pattern-girih,
.page-hero .pattern-girih,
.section--deep .pattern-girih,
.cta-band .pattern-girih,
.widget--cta .pattern-girih,
.site-footer .pattern-girih {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23d6b163' stroke-width='1' stroke-linejoin='round'%3E%3Cpath d='M8 8H32V32H8Z'/%3E%3Cpath d='M20 4L36 20L20 36L4 20Z'/%3E%3Cpath d='M0 0L8 8M40 0L32 8M0 40L8 32M40 40L32 32'/%3E%3C/g%3E%3C/svg%3E");
}

/* در حالت تیره هم نقش زمینه بخش‌های روشن باید کم‌رنگ‌تر و طلایی باشد */
:root[data-theme="dark"] .pattern-girih {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23d6b163' stroke-width='1' stroke-linejoin='round'%3E%3Cpath d='M8 8H32V32H8Z'/%3E%3Cpath d='M20 4L36 20L20 36L4 20Z'/%3E%3Cpath d='M0 0L8 8M40 0L32 8M0 40L8 32M40 40L32 32'/%3E%3C/g%3E%3C/svg%3E");
}

/* گره ریزتر برای هدر و فوتر */
.pattern-khatam {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23c19a3b' stroke-width='.9'%3E%3Cpath d='M14 1L17 8L24 5L21 12L27 14L21 16L24 23L17 20L14 27L11 20L4 23L7 16L1 14L7 12L4 5L11 8Z'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 28px 28px;
}

/* بافت کاغذ کهن */
.pattern-paper {
	background-image:
		radial-gradient(circle at 18% 22%, rgba(193, 154, 59, .05) 0, transparent 42%),
		radial-gradient(circle at 82% 78%, rgba(36, 97, 72, .05) 0, transparent 42%);
}

/* لایه‌ی نقش پس‌زمینه با محوشدگی لبه‌ها */
.pattern-layer {
	position: absolute;
	inset: 0;
	opacity: .06;
	pointer-events: none;
	-webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
	mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
}

/* طاق‌نما — ماسک قوس اسلامی برای تصاویر */
.arch-mask {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M50 0C72 0 90 20 90 46V140H10V46C10 20 28 0 50 0Z' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M50 0C72 0 90 20 90 46V140H10V46C10 20 28 0 50 0Z' fill='%23000'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* قوس نوک‌تیز (شاخ بزی) */
.arch-pointed {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M50 0C60 22 90 26 90 52V140H10V52C10 26 40 22 50 0Z' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M50 0C60 22 90 26 90 52V140H10V52C10 26 40 22 50 0Z' fill='%23000'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* کادر تذهیب — قاب دوخطی طلایی */
.frame-gold {
	position: relative;
	border: 1px solid var(--n-gold-400);
	border-radius: var(--n-radius);
}
.frame-gold::after {
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px solid color-mix(in srgb, var(--n-gold-400) 45%, transparent);
	border-radius: calc(var(--n-radius) - 4px);
	pointer-events: none;
}

/* ================================================================== *
 *  ۲. چیدمان پایه
 * ================================================================== */

.container {
	width: 100%;
	max-width: var(--n-container);
	margin-inline: auto;
	padding-inline: var(--n-gutter);
}

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

.section { padding-block: clamp(48px, 6vw, 88px); position: relative; }
.section--tint { background: var(--n-paper-2); }
.section--deep {
	background: linear-gradient(160deg, var(--n-green-900), var(--n-green-700));
	color: #fff;
}
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.section--deep p { color: var(--n-green-100); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ================================================================== *
 *  ۳. عنوان بخش‌ها با سرلوح
 * ================================================================== */

.section-head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(32px, 4vw, 52px);
}
.section-head__ornament { color: var(--n-gold-500); margin-bottom: 10px; }
.section-head__ornament svg { display: inline-block; }
.section-head__eyebrow {
	display: inline-block;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--n-gold-600);
	margin-bottom: 8px;
}
.section-head h2 { margin-bottom: .4em; }
.section-head p { color: var(--n-ink-2); margin: 0; }

.section--deep .section-head__eyebrow { color: var(--n-gold-400); }
.section--deep .section-head__ornament { color: var(--n-gold-400); }

/* سرلوح کوچک کنار عنوان‌های داخلی */
.title-rule {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
}
.title-rule h2, .title-rule h3 { margin: 0; white-space: nowrap; }
.title-rule::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(to left, transparent, var(--n-gold-400), transparent);
}

/* جداکننده شمسه */
.divider-rosette {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: var(--n-gold-500);
	margin-block: 36px;
}
.divider-rosette::before,
.divider-rosette::after {
	content: "";
	width: min(180px, 26vw);
	height: 1px;
	background: linear-gradient(to left, transparent, var(--n-gold-400));
}
.divider-rosette::after { background: linear-gradient(to right, transparent, var(--n-gold-400)); }

/* ================================================================== *
 *  ۴. دکمه‌ها و نشان‌ها
 * ================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.4;
	text-align: center;
	transition: all .22s var(--n-ease);
	white-space: nowrap;
}
.btn--primary {
	background: linear-gradient(180deg, var(--n-green-500), var(--n-green-700));
	color: #fff;
	box-shadow: 0 4px 14px rgba(27, 78, 58, .28);
}
.btn--primary:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(27, 78, 58, .36);
}
.btn--gold {
	background: linear-gradient(180deg, var(--n-gold-400), var(--n-gold-600));
	color: #2a1f05;
	box-shadow: 0 4px 14px rgba(165, 128, 44, .3);
}
.btn--gold:hover { color: #2a1f05; transform: translateY(-2px); }
.btn--ghost {
	background: transparent;
	border-color: var(--n-gold-400);
	color: var(--n-gold-600);
}
.btn--ghost:hover { background: var(--n-gold-50); color: var(--n-gold-700); }
.btn--outline {
	background: transparent;
	border-color: var(--n-line);
	color: var(--n-ink);
}
.btn--outline:hover { border-color: var(--n-primary); color: var(--n-primary); }
.btn--sm { padding: 8px 18px; font-size: .85rem; }
.btn--block { width: 100%; }

.section--deep .btn--ghost { border-color: var(--n-gold-400); color: var(--n-gold-200); }
.section--deep .btn--ghost:hover { background: rgba(214, 177, 99, .14); color: #fff; }

.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: .74rem;
	font-weight: 700;
	line-height: 1.7;
	background: var(--n-green-100);
	color: var(--n-green-800);
}
.badge--gold { background: var(--n-gold-100); color: var(--n-gold-700); }
.badge--lapis { background: #e3e9f5; color: var(--n-lapis); }
.badge--outline { background: transparent; border: 1px solid var(--n-line); color: var(--n-ink-2); }

/* ================================================================== *
 *  ۵. نوار بالا و هدر
 * ================================================================== */

.topbar {
	background: var(--n-green-900);
	color: var(--n-green-100);
	font-size: .82rem;
	position: relative;
	overflow: hidden;
}
.topbar .pattern-khatam {
	position: absolute; inset: 0; opacity: .1; pointer-events: none;
}
.topbar__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 40px;
	flex-wrap: wrap;
}
.topbar a { color: var(--n-gold-300, var(--n-gold-400)); }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__spacer { margin-inline-start: auto; }
.topbar__socials { display: flex; gap: 10px; }
.topbar__socials a { color: var(--n-green-200); display: inline-flex; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: color-mix(in srgb, var(--n-paper) 88%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--n-line);
}
.site-header.is-stuck { box-shadow: var(--n-shadow-2); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 78px;
}

.site-branding { flex-shrink: 0; }
.site-logo { display: inline-flex; align-items: center; gap: 12px; }
.site-logo__mark {
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border-radius: 12px;
	background: linear-gradient(150deg, var(--n-green-600), var(--n-green-800));
	color: var(--n-gold-400);
	box-shadow: var(--n-shadow-1);
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.35; }
.site-logo__name { font-weight: 900; font-size: 1.12rem; color: var(--n-ink); }
.site-logo__desc { font-size: .72rem; color: var(--n-ink-3); font-weight: 500; }
.custom-logo { max-height: 56px; width: auto; }

/* لوگوی جاسازی‌شدهٔ مؤسسه — وقتی لوگوی سفارشی تنظیم نشده باشد */
.site-logo--brand { padding-block: 6px; }
.site-logo__img {
	display: block;
	height: auto;
	width: 240px;
	max-width: 100%;
}
@media (max-width: 640px) {
	.site-logo__img { width: 180px; }
}
/* در حالت تیره سبز لوگو کمی روشن‌تر می‌شود تا خوانا بماند */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .site-logo__img { filter: brightness(1.45) saturate(1.1); }
}
:root[data-theme="dark"] .site-logo__img { filter: brightness(1.45) saturate(1.1); }

.header-search { flex: 1; max-width: 460px; margin-inline: auto; }
.header-search .search-form {
	display: flex;
	align-items: center;
	background: var(--n-paper-2);
	border: 1px solid var(--n-line);
	border-radius: 999px;
	padding: 4px 6px 4px 4px;
	transition: border-color .2s var(--n-ease);
}
.header-search .search-form:focus-within { border-color: var(--n-green-400); }
.header-search .search-field {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 8px 14px;
	font-size: .9rem;
	outline: none;
	min-width: 0;
}
.header-search .search-submit {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	border: 0; border-radius: 50%;
	background: var(--n-green-600);
	color: #fff;
	transition: background .2s var(--n-ease);
}
.header-search .search-submit:hover { background: var(--n-green-800); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.header-action {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 12px;
	border-radius: var(--n-radius-sm);
	color: var(--n-ink-2);
	font-size: .7rem;
	font-weight: 500;
	transition: background .2s var(--n-ease), color .2s var(--n-ease);
}
.header-action:hover { background: var(--n-green-50); color: var(--n-green-700); }
.cart-count {
	position: absolute;
	top: 2px; inset-inline-end: 4px;
	min-width: 19px; height: 19px;
	display: grid; place-items: center;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--n-gold-500);
	color: #23190a;
	font-size: .68rem;
	font-weight: 700;
}

.theme-toggle, .nav-toggle, .icon-btn {
	display: grid; place-items: center;
	width: 42px; height: 42px;
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-sm);
	background: transparent;
	color: var(--n-ink-2);
	transition: all .2s var(--n-ease);
}
.theme-toggle:hover, .nav-toggle:hover, .icon-btn:hover { border-color: var(--n-green-400); color: var(--n-green-700); }

/* آیکون ماه/خورشید بسته به حالت جاری */
.theme-toggle .n-icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .n-icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .n-icon--moon { display: none; }
.nav-toggle { display: none; }

/* ناوبری اصلی */
.main-navigation { border-top: 1px solid var(--n-line); background: var(--n-paper); }
.main-navigation .menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-navigation .menu > li { position: relative; }
.main-navigation .menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 14px 16px;
	font-size: .93rem;
	font-weight: 500;
	color: var(--n-ink);
	position: relative;
}
.main-navigation .menu > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 16px;
	bottom: 8px;
	height: 2px;
	border-radius: 2px;
	background: var(--n-gold-500);
	transform: scaleX(0);
	transition: transform .25s var(--n-ease);
}
.main-navigation .menu > li:hover > a::after,
.main-navigation .menu > li.current-menu-item > a::after { transform: scaleX(1); }
.main-navigation .menu > li.current-menu-item > a { color: var(--n-green-700); font-weight: 700; }

/* زیرمنو */
.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 230px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--n-paper);
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius);
	box-shadow: var(--n-shadow-3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .22s var(--n-ease);
	z-index: 70;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.main-navigation .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: var(--n-radius-sm);
	font-size: .88rem;
	color: var(--n-ink-2);
}
.main-navigation .sub-menu a:hover { background: var(--n-green-50); color: var(--n-green-700); }

/* ================================================================== *
 *  ۶. قهرمان صفحه اصلی
 * ================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(155deg, var(--n-green-900) 0%, var(--n-green-700) 55%, var(--n-green-800) 100%);
	color: #fff;
	padding-block: clamp(56px, 8vw, 110px);
}
.hero .pattern-layer { opacity: .12; }
.hero::after {
	content: "";
	position: absolute;
	inset-inline: 0; bottom: 0;
	height: 90px;
	background: linear-gradient(to top, var(--n-paper), transparent);
	pointer-events: none;
}
.hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border: 1px solid rgba(214, 177, 99, .4);
	border-radius: 999px;
	background: rgba(214, 177, 99, .1);
	color: var(--n-gold-200);
	font-size: .8rem;
	font-weight: 500;
	margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 .accent { color: var(--n-gold-400); }
.hero__lead {
	font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
	color: var(--n-green-100);
	max-width: 54ch;
	margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(20px, 4vw, 44px);
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__stat strong {
	display: block;
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
	font-weight: 900;
	color: var(--n-gold-400);
	line-height: 1.3;
}
.hero__stat span { font-size: .82rem; color: var(--n-green-200); }

/* قاب تصویر قهرمان با طاق‌نما */
.hero__figure { position: relative; }
.hero__frame {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 200px 200px var(--n-radius-lg) var(--n-radius-lg);
	overflow: hidden;
	border: 1px solid rgba(214, 177, 99, .45);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame--empty {
	display: grid;
	place-items: center;
	background:
		linear-gradient(160deg, rgba(214, 177, 99, .14), rgba(0, 0, 0, .2)),
		var(--n-green-800);
	color: rgba(214, 177, 99, .5);
}
.hero__frame::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(214, 177, 99, .3);
	border-radius: 190px 190px var(--n-radius) var(--n-radius);
	pointer-events: none;
}
/* مهر تزئینی گوشه */
.hero__seal {
	position: absolute;
	inset-inline-start: -18px;
	bottom: 34px;
	width: 104px; height: 104px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--n-paper);
	color: var(--n-green-700);
	box-shadow: var(--n-shadow-3);
	text-align: center;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.5;
	padding: 10px;
}

/* ================================================================== *
 *  ۷. کارت خدمات / ویژگی‌ها
 * ================================================================== */

.feature-card {
	position: relative;
	padding: 28px 24px;
	background: var(--n-paper);
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-lg);
	transition: transform .25s var(--n-ease), box-shadow .25s var(--n-ease), border-color .25s var(--n-ease);
	overflow: hidden;
}
.feature-card::before {
	content: "";
	position: absolute;
	top: 0; inset-inline-end: 0;
	width: 96px; height: 96px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23c19a3b' stroke-width='1.1'%3E%3Cpath d='M96 0v34c-20 0-34-14-34-34Z'/%3E%3Cpath d='M96 10v20c-12 0-20-8-20-20Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
	opacity: .35;
	pointer-events: none;
}
.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--n-shadow-2);
	border-color: var(--n-green-300);
}
.feature-card__icon {
	width: 54px; height: 54px;
	display: grid; place-items: center;
	border-radius: 16px;
	background: var(--n-green-50);
	color: var(--n-green-600);
	margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: .5em; }
.feature-card p { color: var(--n-ink-2); font-size: .91rem; margin: 0; }

/* ================================================================== *
 *  ۸. کارت نسخه خطی
 * ================================================================== */

.ms-card {
	display: flex;
	flex-direction: column;
	background: var(--n-paper);
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-lg);
	overflow: hidden;
	transition: transform .25s var(--n-ease), box-shadow .25s var(--n-ease);
}
.ms-card:hover { transform: translateY(-4px); box-shadow: var(--n-shadow-2); }

.ms-card__media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--n-paper-3);
}
.ms-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s var(--n-ease);
}
.ms-card:hover .ms-card__media img { transform: scale(1.05); }
.ms-card__media--empty {
	display: grid; place-items: center;
	color: var(--n-green-300);
	background:
		linear-gradient(135deg, var(--n-paper-2), var(--n-paper-3));
}
.ms-card__era {
	position: absolute;
	top: 12px; inset-inline-start: 12px;
	z-index: 2;
}
.ms-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ms-card__title { font-size: 1.02rem; margin-bottom: 8px; }
.ms-card__title a { color: var(--n-ink); }
.ms-card__title a:hover { color: var(--n-green-600); }
.ms-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: .8rem;
	color: var(--n-ink-3);
	margin-bottom: 14px;
}
.ms-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ms-card__foot {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px dashed var(--n-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: .82rem;
}
.ms-card__code { color: var(--n-ink-3); font-variant-numeric: tabular-nums; }

/* نوار پالایش نسخ */
.ms-filter {
	background: var(--n-paper);
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-lg);
	padding: 20px 22px;
	margin-bottom: 30px;
	display: grid;
	gap: 14px;
}
.ms-filter__group { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.ms-filter__label { font-size: .84rem; font-weight: 700; color: var(--n-ink-3); min-width: 74px; }
.ms-filter__chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.ms-filter__chips .badge { transition: all .2s var(--n-ease); }
.ms-filter__chips .badge--outline:hover { border-color: var(--n-green-400); color: var(--n-green-700); }

/* ================================================================== *
 *  ۹. کارت مقاله
 * ================================================================== */

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--n-paper);
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-lg);
	overflow: hidden;
	transition: transform .25s var(--n-ease), box-shadow .25s var(--n-ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--n-shadow-2); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--n-paper-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--n-ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__media--empty { display: grid; place-items: center; color: var(--n-green-300); }
.post-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__cats { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.post-card__title { font-size: 1.06rem; margin-bottom: 10px; }
.post-card__title a { color: var(--n-ink); }
.post-card__title a:hover { color: var(--n-green-600); }
.post-card__excerpt { font-size: .89rem; color: var(--n-ink-2); margin-bottom: 16px; }
.post-card__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: .8rem;
	color: var(--n-ink-3);
	padding-top: 14px;
	border-top: 1px dashed var(--n-line);
}
.post-card__foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ================================================================== *
 *  ۱۰. دستاوردها (تایم‌لاین)
 * ================================================================== */

.timeline { position: relative; padding-inline-start: 30px; }
.timeline::before {
	content: "";
	position: absolute;
	inset-block: 6px;
	inset-inline-start: 5px;
	width: 2px;
	background: linear-gradient(to bottom, var(--n-gold-400), var(--n-green-300), transparent);
}
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item::before {
	content: "";
	position: absolute;
	inset-inline-start: -30px;
	top: 8px;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--n-paper);
	border: 2px solid var(--n-gold-500);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--n-gold-400) 20%, transparent);
}
.timeline__year {
	font-size: .82rem;
	font-weight: 700;
	color: var(--n-gold-600);
	font-variant-numeric: tabular-nums;
}
.timeline__item h3 { font-size: 1.02rem; margin: 4px 0 6px; }
.timeline__item p { font-size: .9rem; color: var(--n-ink-2); margin: 0; }

/* آمار */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stat {
	text-align: center;
	padding: 26px 16px;
	border-radius: var(--n-radius-lg);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(214, 177, 99, .22);
}
.stat strong {
	display: block;
	font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
	font-weight: 900;
	color: var(--n-gold-400);
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}
.stat span { font-size: .85rem; color: var(--n-green-100); }

/* ================================================================== *
 *  ۱۱. فراخوان و خبرنامه
 * ================================================================== */

.cta-band {
	position: relative;
	overflow: hidden;
	border-radius: var(--n-radius-lg);
	background: linear-gradient(140deg, var(--n-green-800), var(--n-green-600));
	color: #fff;
	padding: clamp(30px, 5vw, 54px);
	text-align: center;
}
.cta-band .pattern-layer { opacity: .13; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--n-green-100); max-width: 60ch; margin-inline: auto; }

.newsletter-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
	margin: 24px auto 0;
	flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
	flex: 1;
	min-width: 200px;
	padding: 13px 20px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	outline: none;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .55); }
.newsletter-form input[type="email"]:focus { border-color: var(--n-gold-400); }

/* ================================================================== *
 *  ۱۲. تک‌نوشته و برگه
 * ================================================================== */

.page-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(150deg, var(--n-green-800), var(--n-green-600));
	color: #fff;
	padding-block: clamp(38px, 5vw, 66px);
	text-align: center;
}
.page-hero .pattern-layer { opacity: .1; }
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: var(--n-green-100); margin: 0; }

.breadcrumbs {
	font-size: .82rem;
	color: var(--n-ink-3);
	padding-block: 14px;
}
.breadcrumbs a { color: var(--n-ink-2); }
.breadcrumbs a:hover { color: var(--n-green-600); }
.breadcrumbs .sep { margin-inline: 7px; opacity: .5; }
.page-hero .breadcrumbs { color: var(--n-green-200); }
.page-hero .breadcrumbs a { color: var(--n-gold-200); }

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(28px, 4vw, 48px);
	padding-block: clamp(36px, 5vw, 64px);
	align-items: start;
}
.content-layout--full { grid-template-columns: minmax(0, 1fr); }

.entry {
	background: var(--n-paper);
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-lg);
	padding: clamp(22px, 3.5vw, 44px);
}
.entry-header { margin-bottom: 26px; }
.entry-title { margin-bottom: 14px; }
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: .84rem;
	color: var(--n-ink-3);
	padding-bottom: 18px;
	border-bottom: 1px solid var(--n-line);
}
.entry-meta span { display: inline-flex; align-items: center; gap: 6px; }
.entry-thumb { margin: 0 0 26px; border-radius: var(--n-radius); overflow: hidden; }

.entry-content { font-size: 1.02rem; line-height: 2.05; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--n-gold-400); }
.entry-content img { border-radius: var(--n-radius); }
.entry-content blockquote {
	position: relative;
	margin: 1.8em 0;
	padding: 22px 28px;
	border-inline-start: 3px solid var(--n-gold-500);
	border-radius: var(--n-radius);
	background: var(--n-gold-50);
	color: var(--n-ink-2);
	font-size: 1.02rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code {
	background: var(--n-paper-3);
	padding: 2px 7px;
	border-radius: 6px;
	font-size: .9em;
}
.entry-content pre {
	background: var(--n-green-950, #081913);
	color: #dfeee5;
	padding: 18px;
	border-radius: var(--n-radius);
	overflow-x: auto;
	direction: ltr;
	text-align: left;
}
.entry-content table { margin: 1.6em 0; font-size: .93rem; }
.entry-content th, .entry-content td { padding: 11px 14px; border: 1px solid var(--n-line); }
.entry-content th { background: var(--n-green-50); font-weight: 700; text-align: start; }
.entry-content ul li, .entry-content ol li { margin-bottom: .5em; }
.entry-content hr { border: 0; height: 1px; background: var(--n-line); margin: 2em 0; }

/* آیه/عبارت شاخص */
.pull-quote {
	text-align: center;
	font-family: var(--n-font-nastaliq);
	font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
	line-height: 2.2;
	color: var(--n-green-700);
	padding: 26px 20px;
	margin: 2em 0;
	border-block: 1px solid var(--n-gold-400);
}

.entry-footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid var(--n-line);
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.share-list { display: flex; gap: 8px; align-items: center; }
.share-list a {
	width: 36px; height: 36px;
	display: grid; place-items: center;
	border: 1px solid var(--n-line);
	border-radius: 50%;
	color: var(--n-ink-2);
}
.share-list a:hover { border-color: var(--n-green-400); color: var(--n-green-600); background: var(--n-green-50); }

/* ================================================================== *
 *  ۱۳. مشخصات نسخه خطی (شناسنامه)
 * ================================================================== */

.ms-single {
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	gap: clamp(24px, 4vw, 44px);
	align-items: start;
}
.ms-gallery {
	position: sticky;
	top: 100px;
	border-radius: var(--n-radius-lg);
	overflow: hidden;
	border: 1px solid var(--n-line);
	background: var(--n-paper);
	padding: 12px;
}
.ms-gallery__main { border-radius: var(--n-radius); overflow: hidden; background: var(--n-paper-3); }
.ms-gallery__main img { width: 100%; }
.ms-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.ms-gallery__thumbs img { border-radius: 8px; cursor: pointer; aspect-ratio: 1; object-fit: cover; }
.ms-gallery__thumbs img:hover { outline: 2px solid var(--n-gold-500); }

.ms-specs {
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius);
	overflow: hidden;
	margin: 24px 0;
}
.ms-specs table { font-size: .92rem; }
.ms-specs th, .ms-specs td { padding: 12px 16px; border-bottom: 1px solid var(--n-line); text-align: start; }
.ms-specs tr:last-child th, .ms-specs tr:last-child td { border-bottom: 0; }
.ms-specs th {
	width: 34%;
	background: var(--n-green-50);
	font-weight: 700;
	color: var(--n-green-800);
	white-space: nowrap;
}
.ms-specs td { color: var(--n-ink-2); }

/* ================================================================== *
 *  ۱۴. ستون کناری و ابزارک‌ها
 * ================================================================== */

.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget {
	background: var(--n-paper);
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-lg);
	padding: 22px;
}
.widget-title {
	font-size: 1rem;
	margin-bottom: 16px;
	padding-bottom: 12px;
	position: relative;
}
.widget-title::after {
	content: "";
	position: absolute;
	bottom: 0; inset-inline-start: 0;
	width: 44px; height: 2px;
	border-radius: 2px;
	background: var(--n-gold-500);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--n-line); font-size: .9rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--n-ink-2); }
.widget a:hover { color: var(--n-green-600); }

.widget--cta {
	background: linear-gradient(150deg, var(--n-green-800), var(--n-green-600));
	color: #fff;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.widget--cta .pattern-layer { opacity: .14; }
.widget--cta > * { position: relative; z-index: 2; }
.widget--cta .widget-title { color: #fff; }
.widget--cta .widget-title::after { inset-inline-start: 50%; transform: translateX(50%); }
.widget--cta p { color: var(--n-green-100); font-size: .88rem; }

/* ================================================================== *
 *  ۱۵. صفحه‌بندی
 * ================================================================== */

.pagination { display: flex; justify-content: center; margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.pagination .page-numbers {
	min-width: 42px; height: 42px;
	display: grid; place-items: center;
	padding: 0 12px;
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-sm);
	color: var(--n-ink-2);
	font-size: .9rem;
	font-weight: 500;
	transition: all .2s var(--n-ease);
}
.pagination .page-numbers:hover { border-color: var(--n-green-400); color: var(--n-green-700); }
.pagination .page-numbers.current {
	background: var(--n-green-600);
	border-color: var(--n-green-600);
	color: #fff;
}

/* ================================================================== *
 *  ۱۶. دیدگاه‌ها
 * ================================================================== */

.comments-area {
	margin-top: 34px;
	background: var(--n-paper);
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-lg);
	padding: clamp(20px, 3vw, 36px);
}
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: clamp(16px, 3vw, 42px); }
.comment-body {
	padding: 18px;
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius);
	margin-bottom: 16px;
	background: var(--n-paper-2);
}
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .78rem; color: var(--n-ink-3); margin-bottom: 10px; }
.comment-content { font-size: .93rem; color: var(--n-ink-2); }
.reply a { font-size: .82rem; font-weight: 700; }

.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: .86rem; font-weight: 500; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-sm);
	background: var(--n-paper-2);
	outline: none;
	transition: border-color .2s var(--n-ease);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--n-green-400); }
.comment-form .submit {
	justify-self: start;
	padding: 12px 30px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--n-green-500), var(--n-green-700));
	color: #fff;
	font-weight: 700;
}

/* ================================================================== *
 *  ۱۷. ووکامرس
 * ================================================================== */

.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	background: var(--n-paper);
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-lg);
	overflow: hidden;
	padding: 0 !important;
	transition: transform .25s var(--n-ease), box-shadow .25s var(--n-ease);
	text-align: start;
	display: flex;
	flex-direction: column;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--n-shadow-2); }
.woocommerce ul.products li.product a img {
	margin: 0 !important;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: .98rem !important;
	font-weight: 700;
	padding: 16px 16px 6px !important;
	margin: 0;
	color: var(--n-ink);
	line-height: 1.7;
}
.woocommerce ul.products li.product .price {
	display: block;
	padding: 0 16px 12px;
	color: var(--n-green-700) !important;
	font-weight: 700;
	font-size: 1rem;
}
.woocommerce ul.products li.product .price del { color: var(--n-ink-3) !important; font-weight: 400; font-size: .85em; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .star-rating { margin: 0 16px 10px !important; color: var(--n-gold-500); font-size: .8em; }
.woocommerce ul.products li.product .button {
	margin: auto 16px 16px !important;
	display: block;
	text-align: center;
	border-radius: 999px !important;
	background: var(--n-green-600) !important;
	color: #fff !important;
	padding: 10px 18px !important;
	font-size: .87rem !important;
	font-weight: 700 !important;
	transition: background .2s var(--n-ease);
}
.woocommerce ul.products li.product .button:hover { background: var(--n-green-800) !important; }
.woocommerce span.onsale {
	background: var(--n-shanjarf) !important;
	color: #fff !important;
	border-radius: 999px !important;
	min-height: auto !important;
	min-width: auto !important;
	line-height: 1.9 !important;
	padding: 2px 14px !important;
	top: 12px !important;
	inset-inline-start: 12px !important;
	inset-inline-end: auto !important;
	margin: 0 !important;
	font-size: .76rem;
	font-weight: 700;
}

.woocommerce div.product .product_title { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price {
	color: var(--n-green-700) !important;
	font-size: 1.5rem;
	font-weight: 900;
}
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; border-bottom: 1px solid var(--n-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--n-line) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 14px 20px !important;
	font-weight: 700;
	color: var(--n-ink-2) !important;
	border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--n-green-700) !important;
	border-bottom-color: var(--n-gold-500);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--n-green-600) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 12px 28px !important;
	font-weight: 700 !important;
	transition: background .2s var(--n-ease);
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--n-green-800) !important; color: #fff !important; }
.woocommerce a.button.alt, .woocommerce button.button.alt {
	background: linear-gradient(180deg, var(--n-gold-400), var(--n-gold-600)) !important;
	color: #2a1f05 !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { filter: brightness(1.06); color: #2a1f05 !important; }

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	border-top-color: var(--n-green-600) !important;
	background: var(--n-green-50) !important;
	border-radius: var(--n-radius) !important;
	color: var(--n-ink) !important;
}
.woocommerce .woocommerce-error { border-top-color: var(--n-shanjarf) !important; background: #fbeceb !important; }
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before { color: var(--n-green-600) !important; }

.woocommerce table.shop_table {
	border-radius: var(--n-radius) !important;
	border-color: var(--n-line) !important;
}
.woocommerce table.shop_table th { background: var(--n-green-50); color: var(--n-green-800); }

.shop-wrap { padding-block: clamp(28px, 4vw, 52px); }
.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
	padding: 10px 14px;
	border: 1px solid var(--n-line);
	border-radius: var(--n-radius-sm);
	background: var(--n-paper-2);
}

/* ================================================================== *
 *  ۱۸. فوتر
 * ================================================================== */

.site-footer {
	position: relative;
	overflow: hidden;
	margin-top: clamp(40px, 6vw, 80px);
	background: linear-gradient(170deg, var(--n-green-900), var(--n-green-950, #081913));
	color: var(--n-green-100);
}
.site-footer .pattern-layer {
	opacity: .07;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent);
	mask-image: linear-gradient(to bottom, #000, transparent);
}
/* نوار تزئینی بالای فوتر */
.footer-band {
	height: 8px;
	background: repeating-linear-gradient(
		-45deg,
		var(--n-gold-500) 0 10px,
		var(--n-green-700) 10px 20px
	);
}
.site-footer__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: clamp(24px, 4vw, 48px);
	padding-block: clamp(38px, 5vw, 62px);
}
.site-footer h3, .site-footer .widget-title { color: #fff; font-size: 1rem; }
.site-footer .widget-title::after { background: var(--n-gold-500); }
.site-footer a { color: var(--n-green-200); }
.site-footer a:hover { color: var(--n-gold-400); }
.site-footer .widget { background: transparent; border: 0; padding: 0; }
.site-footer .widget li { border-bottom-color: rgba(255, 255, 255, .08); }
.footer-about p { font-size: .9rem; color: var(--n-green-200); }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.footer-contact li { display: flex; gap: 9px; padding: 7px 0; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 5px; color: var(--n-gold-400); }

.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 12px;
	color: var(--n-green-200);
	transition: all .2s var(--n-ease);
}
.social-row a:hover { border-color: var(--n-gold-400); color: var(--n-gold-400); background: rgba(214, 177, 99, .1); }

.site-footer__bottom {
	position: relative;
	z-index: 2;
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding-block: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	font-size: .83rem;
	color: var(--n-green-200);
}
.site-footer__bottom .menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ================================================================== *
 *  ۱۹. حالت‌های خالی و ۴۰۴
 * ================================================================== */

.empty-state {
	text-align: center;
	padding: clamp(40px, 6vw, 80px) 20px;
	color: var(--n-ink-2);
}
.empty-state__icon { color: var(--n-green-300); margin-bottom: 18px; }
.empty-state h2 { margin-bottom: .5em; }

.error-404 { text-align: center; padding-block: clamp(50px, 8vw, 100px); }
.error-404__code {
	font-size: clamp(4rem, 3rem + 8vw, 9rem);
	font-weight: 900;
	line-height: 1;
	color: var(--n-green-100);
	margin-bottom: 10px;
}

/* ================================================================== *
 *  ۲۰. کشوی موبایل
 * ================================================================== */

.mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
	pointer-events: none;
}
.mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.mobile-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 25, 19, .55);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .28s var(--n-ease);
}
.mobile-drawer.is-open .mobile-drawer__backdrop { opacity: 1; }
.mobile-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(330px, 86vw);
	background: var(--n-paper);
	box-shadow: var(--n-shadow-3);
	padding: 20px;
	overflow-y: auto;
	/* پنل روی لبه inline-end است؛ translateX فیزیکی است پس هر جهت مقدار خودش را دارد */
	transform: translateX(100%);
	transition: transform .3s var(--n-ease);
}
html[dir="rtl"] .mobile-drawer__panel { transform: translateX(-100%); }
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0) !important; }
.mobile-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--n-line);
}
.mobile-drawer .menu { list-style: none; margin: 0; padding: 0; }
.mobile-drawer .menu a {
	display: block;
	padding: 12px 10px;
	border-radius: var(--n-radius-sm);
	color: var(--n-ink);
	font-weight: 500;
	border-bottom: 1px solid var(--n-line);
}
.mobile-drawer .menu a:hover { background: var(--n-green-50); color: var(--n-green-700); }
.mobile-drawer .sub-menu { padding-inline-start: 14px; }
.mobile-drawer .sub-menu a { font-size: .88rem; color: var(--n-ink-2); }

/* دکمه بازگشت به بالا */
.to-top {
	position: fixed;
	inset-inline-end: 20px;
	bottom: 20px;
	z-index: 80;
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--n-green-700);
	color: var(--n-gold-400);
	box-shadow: var(--n-shadow-2);
	opacity: 0;
	transform: translateY(14px);
	pointer-events: none;
	transition: all .28s var(--n-ease);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--n-green-900); }

/* ================================================================== *
 *  ۲۱. واکنش‌گرایی
 * ================================================================== */

@media (max-width: 1080px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__figure { max-width: 420px; margin-inline: auto; }
	.hero__seal { inset-inline-start: 0; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.ms-single { grid-template-columns: 1fr; }
	.ms-gallery { position: static; max-width: 460px; }
}

@media (max-width: 960px) {
	.content-layout { grid-template-columns: minmax(0, 1fr); }
	.main-navigation { display: none; }
	.nav-toggle { display: grid; }
	.header-search { display: none; }
}

@media (max-width: 640px) {
	:root { --n-gutter: 16px; }
	.site-header__inner { min-height: 64px; gap: 10px; }
	.header-action__label { display: none; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.topbar__inner { justify-content: center; font-size: .76rem; }
	.topbar__spacer { margin-inline-start: 0; }
	.hero__stats { gap: 20px; }
	.hero__stat { flex: 1 1 40%; }
	.entry-content { font-size: .97rem; }
	.grid { gap: 16px; }
	.timeline { padding-inline-start: 22px; }
	.timeline__item::before { inset-inline-start: -22px; }
}

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

/* چاپ */
@media print {
	.topbar, .site-header, .site-footer, .to-top, .sidebar, .comments-area { display: none !important; }
	body { background: #fff; color: #000; }
	.entry { border: 0; padding: 0; }
}
