/*
Theme Name: نشریه کوه ران
Theme URI: https://koohrun.company
Author: تیم کوه ران
Author URI: https://koohrun.company
Description: قالب روزنامه‌ای مدرن با پالت گرافیت تیره، فونت B Zar، و پشتیبانی کامل از RTL
Version: 30.1.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: koohrun-pro
*/

/* ============================================================
   ۰. فونت B Zar — تعریف مستقیم با مقیاس جبرانی
   ============================================================ */

@font-face {
	font-family: 'B Zar';
	src: url('https://cdn.jsdelivr.net/gh/rahatool/persian-fonts@main/Zar.regular.woff2') format('woff2'),
	     url('https://cdn.jsdelivr.net/gh/rahatool/persian-fonts@main/Zar.regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	ascent-override: 105%;
	descent-override: 30%;
	line-gap-override: 0%;
}

/* ============================================================
   ۱. توکن‌های طراحی — پالت گرافیت تیره
   ============================================================ */

:root {
	/* سطوح */
	--bg: #070709;
	--bg-deep: #040406;
	--bg-soft: #0a0a0d;
	--surface-0: #0c0c10;
	--surface-1: #121216;
	--surface-2: #18181d;
	--surface-3: #1f1f25;
	--overlay: rgba(4, 4, 6, 0.82);

	/* حاشیه‌ها */
	--border: #1e1e24;
	--border-2: #2a2a32;
	--border-3: #3a3a45;

	/* متن */
	--text-1: #efeff3;
	--text-2: #a8a8b4;
	--text-3: #787884;
	--text-4: #50505c;

	/* تاکید */
	--accent: #d8d8e2;
	--accent-2: #8a8a99;
	--accent-dim: #44444e;

	/* فونت B Zar */
	--ff: 'B Zar', 'Zar', Tahoma, 'Segoe UI', Arial, sans-serif;

	/* اندازه‌های جبران‌شده برای B Zar (~۲۰٪ بزرگ‌تر از حالت عادی) */
	--lh-body: 2;
	--lh-head: 1.5;
	--fs-xs: 0.95rem;
	--fs-sm: 1.10rem;
	--fs-base: 1.30rem;
	--fs-lg: 1.48rem;
	--fs-xl: 1.90rem;

	/* ریتم فاصله‌گذاری */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;

	/* گردی گوشه‌ها */
	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 14px;
	--r-full: 9999px;

	/* سایه‌ها فقط در سطح بلوک — نه روی متن */
	--sh-1: 0 1px 2px rgba(0, 0, 0, 0.7);
	--sh-2: 0 4px 16px rgba(0, 0, 0, 0.6);
	--sh-3: 0 14px 44px rgba(0, 0, 0, 0.75);
	--sh-inset: inset 0 1px 0 rgba(255, 255, 255, 0.03);

	/* easing */
	--ease: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
	--ease-slow: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	--ease-spring: 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
	--ease-out: 0.4s cubic-bezier(0, 0, 0.2, 1);

	/* max-width */
	--max-width: 1320px;
	--content-width: 820px;
	--wide-width: 1200px;

	/* نگاشت متغیرهای قبلی برای سازگاری */
	--color-gold: var(--accent);
	--color-gold-light: #ffffff;
	--color-gold-dark: var(--accent-2);
	--color-gold-glow: rgba(216, 216, 226, 0.12);
	--color-gold-glow-strong: rgba(216, 216, 226, 0.25);
	--color-bg-primary: var(--bg);
	--color-bg-secondary: var(--surface-0);
	--color-bg-card: var(--surface-1);
	--color-bg-card-hover: var(--surface-2);
	--color-bg-input: var(--surface-2);
	--color-bg-placeholder: var(--surface-3);
	--color-text-primary: var(--text-1);
	--color-text-secondary: var(--text-2);
	--color-text-muted: var(--text-3);
	--color-text-inverse: var(--bg-deep);
	--font-serif: var(--ff);
	--font-sans: var(--ff);
	--radius-sm: var(--r-sm);
	--radius-md: var(--r-md);
	--radius-lg: var(--r-lg);
	--radius-xl: var(--r-lg);
	--radius-full: var(--r-full);
	--shadow-card: var(--sh-1);
	--shadow-hover: var(--sh-3);
	--shadow-focus: 0 0 0 3px var(--color-gold-glow-strong);
	--shadow-md: var(--sh-2);
	--transition: var(--ease);
	--transition-slow: var(--ease-slow);
	--line-height-serif: var(--lh-body);
	--line-height-heading: var(--lh-head);
	--font-size-base: var(--fs-base);
	--font-size-small: var(--fs-sm);
	--font-size-large: var(--fs-lg);
	color-scheme: dark;
}

/* ============================================================
   ۲. ریست و پایه
   ============================================================ */

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	background: var(--bg-deep);
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-size-adjust: 100%;
}

body {
	background: var(--bg);
	color: var(--text-1);
	font-family: var(--ff);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 2rem;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: hidden;
	word-wrap: break-word;
	-webkit-tap-highlight-color: transparent;
	isolation: isolate;
	position: relative;
	text-shadow: none;
}

/* حذف سایهٔ متنی موروثی از تمام عناصر متنی */
a, h1, h2, h3, h4, h5, h6, p, span, time, div, li, strong, em, small {
	text-shadow: none;
}

/* ============================================================
   ۳. بافت پس‌زمینه — فقط روی body
   ============================================================ */

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -3;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
	opacity: 0.04;
	mix-blend-mode: screen;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 40% at 50% -8%, rgba(216, 216, 226, 0.05), transparent 70%),
		radial-gradient(ellipse 55% 40% at 18% 42%, rgba(216, 216, 226, 0.018), transparent 65%),
		radial-gradient(ellipse 65% 45% at 82% 88%, rgba(216, 216, 226, 0.014), transparent 70%),
		radial-gradient(ellipse 100% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
	animation: aurora 26s ease-in-out infinite alternate;
}

@keyframes aurora {
	0% { transform: scale(1) translate(0, 0); filter: hue-rotate(0deg) brightness(1); }
	50% { transform: scale(1.06) translate(-1%, 1%); filter: hue-rotate(6deg) brightness(1.06); }
	100% { transform: scale(1.02) translate(1%, -1%); filter: hue-rotate(-4deg) brightness(1.02); }
}

/* انیمیشن‌های کمکی */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(1.4); opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.95; } }

/* ============================================================
   ۴. نوار پیشرفت مطالعه — حذف شده (طبق درخواست کاربر)
   ============================================================ */

/* ============================================================
   ۵. سربرگ
   ============================================================ */

.site-header {
	position: relative;
	padding: 2.8rem 1.9rem 2.3rem;
	margin: 1.25rem 0 1rem;
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-0) 100%);
	box-shadow: var(--sh-2), var(--sh-inset);
	overflow: hidden;
	animation: slideDown 0.7s var(--ease-slow) both;
}

.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 70% 100% at 15% 0%, rgba(255, 255, 255, 0.055), transparent 60%);
}

.site-header .corner {
	position: absolute;
	width: 22px;
	height: 22px;
	border: 1px solid var(--border-3);
	opacity: 0.6;
	animation: fadeIn 1.2s var(--ease-slow) 0.6s both;
}

.site-header .corner--tl { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.site-header .corner--br { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }

.site-header::after {
	content: "";
	position: absolute;
	inset-inline: 1.9rem;
	bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg,
		transparent 0%, var(--border-3) 18%, var(--accent-2) 50%,
		var(--border-3) 82%, transparent 100%);
	background-size: 200% 100%;
	opacity: 0.85;
	animation: shimmer 7s linear infinite;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-5);
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
	width: 100%;
}

.header-left { min-width: 0; flex: 1 1 auto; }

.header-date-row {
	font-size: var(--fs-xs);
	color: var(--text-4);
	letter-spacing: 0.06em;
	margin-bottom: 0.6rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	animation: fadeIn 0.9s var(--ease-slow) 0.2s both;
}

.header-date-row::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent-2);
	animation: pulseDot 2.6s ease-in-out infinite;
}

.site-title {
	font-size: clamp(2.4rem, 5.2vw, 4rem);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -0.02em;
	margin-bottom: 0.5rem;
	color: var(--accent);
	text-shadow: none;
}

.site-title a {
	color: inherit;
	transition: opacity var(--ease);
	-webkit-text-fill-color: inherit;
}

.site-title a:hover { opacity: 0.78; }

.site-description,
.site-tagline {
	font-size: var(--fs-sm);
	color: var(--text-3);
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	animation: fadeIn 1s var(--ease-slow) 0.3s both;
}

.site-tagline::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 1px;
	background: var(--border-3);
}

.site-logo { margin-bottom: 0.5rem; }

.header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.8rem;
	flex: 0 0 auto;
}

.typewriter {
	display: inline-flex;
	align-items: center;
	font-size: var(--fs-base);
	font-style: italic;
	color: var(--text-2);
	letter-spacing: 0.02em;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--border);
	border-radius: var(--r-full);
	background: var(--surface-2);
	transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.typewriter:hover {
	border-color: var(--border-3);
	box-shadow: 0 0 0 4px rgba(216, 216, 226, 0.03);
	transform: translateY(-1px);
}

.typewriter::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 1.05em;
	margin-inline-start: 0.4rem;
	background: var(--accent-2);
	animation: blink 1.1s step-end infinite;
}

.typewriter[aria-live="off"]::after,
.typewriter-reduced::after {
	display: none;
}

/* ============================================================
   ۶. ساعت‌های جهانی
   ============================================================ */

.world-clocks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: flex-end;
	animation: fadeIn 1.1s var(--ease-slow) 0.45s both;
}

.world-clock {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.12rem;
	min-width: 62px;
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	background: var(--surface-2);
	transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.world-clock:hover {
	border-color: var(--border-3);
	background: var(--surface-3);
	transform: translateY(-1px);
}

.world-clock__city {
	font-size: 0.69rem;
	color: var(--text-4);
	letter-spacing: 0.04em;
	line-height: 1;
}

.world-clock__time {
	font-size: 0.92rem;
	font-weight: 400;
	color: var(--text-2);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	line-height: 1.1;
}

/* ============================================================
   ۷. ناوبری چسبان — حذف شده (طبق درخواست کاربر)
   ============================================================ */

/* ============================================================
   ۸. گرید اصلی — قفل‌شده
   ============================================================ */

.grid-row {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
	gap: var(--sp-5);
	margin-bottom: var(--sp-7);
	align-items: start;
}

.grid-row .col {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

@media (max-width: 900px) {
	.grid-row { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ============================================================
   ۹. عناوین بخش
   ============================================================ */

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sp-3);
	margin-bottom: var(--sp-4);
	padding-bottom: var(--sp-3);
	border-bottom: 1px solid var(--border);
	position: relative;
}

.section-head::after {
	content: "";
	position: absolute;
	bottom: -1px;
	inset-inline-end: 0;
	height: 1px;
	width: 0;
	background: linear-gradient(90deg, var(--accent-2), transparent);
	transition: width 1s var(--ease-slow);
}

.section-head.is-visible::after { width: 65%; }

.section-title {
	font-size: var(--fs-xl);
	font-weight: 400;
	line-height: var(--lh-head);
	letter-spacing: -0.01em;
	color: var(--text-1);
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1rem;
	padding-bottom: 0.4rem;
	position: relative;
}

.section-title::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 1.05em;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
	transition: transform var(--ease-spring);
}

.section-head:hover .section-title::before { transform: scaleY(1.4); }

.section-title--centered {
	text-align: center;
	justify-content: center;
	border-bottom: none;
}

.section-link {
	font-size: var(--fs-xs);
	color: var(--text-3);
	letter-spacing: 0.04em;
	white-space: nowrap;
	transition: color var(--ease), transform var(--ease);
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.section-link::after { content: "←"; transition: transform var(--ease-spring); }
.section-link:hover { color: var(--accent-2); }
.section-link:hover::after { transform: translateX(-4px); }

/* ============================================================
   ۱۰. کارت پایه
   ============================================================ */

.card {
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--sh-1);
	transition: border-color var(--ease), box-shadow var(--ease-slow), transform var(--ease-slow);
	will-change: transform;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.card:hover {
	border-color: var(--border-2);
	box-shadow: var(--sh-3);
	transform: translateY(-3px);
}

.card--editorial { position: relative; }

.card--editorial::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 2px;
	z-index: 2;
	background: linear-gradient(90deg, var(--accent-dim), var(--accent-2), var(--accent-dim));
	background-size: 200% 100%;
	animation: shimmer 6s linear infinite;
}

.card--empty {
	justify-content: center;
	align-items: center;
	text-align: center;
	color: var(--text-3);
	padding: 2rem;
}

.card__image {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--surface-0);
	border-bottom: 1px solid var(--border);
	margin: 0;
}

.card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--ease-slow), filter var(--ease-slow);
	filter: saturate(0.85) contrast(1.05) brightness(0.92);
}

/* کارت سرمقاله در صفحه اصلی — اجازه بده تصویر کامل و بزرگ دیده شود */
.front-page .card--editorial .card__image {
	aspect-ratio: auto;
	height: auto;
	max-height: none;
	overflow: visible;
	border-bottom: 0;
}

.front-page .card--editorial .card__image img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
	object-position: center center;
}

.front-page .card--editorial .card__image::after {
	display: none;
}

.card:hover .card__image img {
	transform: scale(1.05);
	filter: saturate(0.95) contrast(1.06) brightness(0.98);
}

.card__image::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 55%;
	background: linear-gradient(180deg, transparent, var(--surface-1));
	pointer-events: none;
	z-index: 1;
}

.card__content { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }

.card__meta-row {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	flex-wrap: wrap;
	margin-bottom: var(--sp-4);
	padding-bottom: var(--sp-4);
	border-bottom: 1px solid var(--border);
}

.card__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--fs-xs);
	font-weight: 400;
	letter-spacing: 0.05em;
	color: var(--bg-deep);
	background: linear-gradient(180deg, var(--accent), var(--accent-2));
	padding: 0.32rem 0.85rem;
	border-radius: var(--r-full);
	flex-shrink: 0;
	transition: transform var(--ease-spring), box-shadow var(--ease);
}

.card__badge::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--bg-deep);
	opacity: 0.6;
	animation: pulseDot 2.4s ease-in-out infinite;
}

.card:hover .card__badge {
	transform: scale(1.04);
	box-shadow: 0 0 0 4px rgba(216, 216, 226, 0.06);
}

.card__meta-sep {
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--border-3);
	flex-shrink: 0;
}

.card__meta {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	flex-wrap: wrap;
	font-size: var(--fs-xs);
	color: var(--text-3);
	margin-bottom: var(--sp-4);
}

.card__date,
.card__reading-time {
	font-size: var(--fs-xs);
	color: var(--text-3);
	font-variant-numeric: tabular-nums;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.card__date::before {
	content: "";
	width: 11px;
	height: 11px;
	border: 1px solid currentColor;
	border-radius: 2px;
	flex-shrink: 0;
	opacity: 0.7;
}

.card__reading-time::before {
	content: "";
	width: 11px;
	height: 11px;
	border: 1px solid currentColor;
	border-radius: 50%;
	flex-shrink: 0;
	opacity: 0.7;
}

.card__title {
	font-size: clamp(1.75rem, 3.2vw, 2.4rem);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.01em;
	margin-bottom: var(--sp-4);
	color: var(--text-1);
}

.card__title a {
	display: inline;
	background-image: linear-gradient(90deg, var(--accent), var(--accent));
	background-repeat: no-repeat;
	background-size: 0 1px;
	background-position: 0 100%;
	transition: background-size var(--ease-slow), color var(--ease);
	color: inherit;
}

.card__title a:hover { color: var(--accent); background-size: 100% 1px; }

.card__excerpt {
	color: var(--text-2);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.card__excerpt--long { -webkit-line-clamp: 8; }

.card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: var(--sp-4); }

/* ============================================================
   ۱۱. لیست نشریات
   ============================================================ */

.newspaper-list {
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--sh-1);
	display: flex;
	flex-direction: column;
	flex: 1;
}

.newspaper-item {
	position: relative;
	padding: var(--sp-4) var(--sp-4) var(--sp-4) calc(var(--sp-4) + 26px);
	border-bottom: 1px solid var(--border);
	transition: background var(--ease), padding var(--ease);
	overflow: hidden;
}

.newspaper-item:last-child,
.newspaper-item--last { border-bottom: 0; }

.newspaper-item:hover {
	background: var(--surface-2);
	padding-inline-end: calc(var(--sp-4) + 4px);
}

.newspaper-item::before {
	content: attr(data-index);
	position: absolute;
	right: var(--sp-4);
	top: var(--sp-4);
	font-size: var(--fs-xs);
	font-weight: 400;
	color: var(--text-4);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.05em;
	transition: color var(--ease), transform var(--ease-spring);
}

.newspaper-item:hover::before { color: var(--accent-2); transform: scale(1.15); }

.newspaper-item::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, var(--accent-2), var(--accent-dim));
	transform: scaleY(0);
	transform-origin: top;
	transition: transform var(--ease-slow);
}

.newspaper-item:hover::after { transform: scaleY(1); }

.newspaper-item__image {
	margin: 0 0 0.8rem;
	overflow: hidden;
	border-radius: var(--r-sm);
	background: var(--surface-0);
}

.newspaper-item__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.newspaper-item__title {
	display: block;
	font-weight: 400;
	font-size: var(--fs-lg);
	line-height: 1.6;
	margin-bottom: var(--sp-2);
	color: var(--text-1);
	transition: color var(--ease), transform var(--ease);
}

.newspaper-item:hover .newspaper-item__title { color: var(--accent); transform: translateX(-2px); }

.newspaper-item__excerpt {
	font-size: var(--fs-sm);
	color: var(--text-2);
	line-height: 1.9;
	margin-bottom: var(--sp-2);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.newspaper-item__meta {
	font-size: var(--fs-xs);
	color: var(--text-3);
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.newspaper-item__meta::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 1px;
	background: var(--border-3);
	transition: width var(--ease), background var(--ease);
}

.newspaper-item:hover .newspaper-item__meta::before { width: 24px; background: var(--accent-2); }

/* لینک آرشیو بخش‌ها */
.newspaper-archive-link,
.articles-archive-link,
.notes-archive-link,
.booklets-archive-link {
	margin-top: var(--sp-4);
	text-align: center;
}

.newspaper-archive-link__btn,
.articles-archive-link__btn,
.notes-archive-link__btn,
.booklets-archive-link__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: var(--fs-sm);
	font-weight: 400;
	color: var(--text-2);
	border: 1px solid var(--border-2);
	padding: 0.6rem 1.35rem;
	border-radius: var(--r-full);
	background: var(--surface-2);
	transition: all var(--ease);
	position: relative;
	overflow: hidden;
}

.newspaper-archive-link__btn::after,
.articles-archive-link__btn::after,
.notes-archive-link__btn::after,
.booklets-archive-link__btn::after {
	content: "←";
	font-size: 1.05em;
	transition: transform var(--ease-spring);
}

.newspaper-archive-link__btn:hover,
.articles-archive-link__btn:hover,
.notes-archive-link__btn:hover,
.booklets-archive-link__btn:hover {
	color: var(--text-1);
	border-color: var(--accent-dim);
	background: var(--surface-3);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.newspaper-archive-link__btn:hover::after,
.articles-archive-link__btn:hover::after,
.notes-archive-link__btn:hover::after,
.booklets-archive-link__btn:hover::after { transform: translateX(-5px); }

/* ============================================================
   ۱۲. لیست مقالات
   ============================================================ */

.articles-list {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	flex: 1;
}

.article-item {
	display: flex;
	gap: var(--sp-4);
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: var(--sp-4);
	transition: all var(--ease);
	position: relative;
	overflow: hidden;
}

.article-item::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, var(--accent-2), var(--accent-dim));
	transform: scaleY(0);
	transform-origin: top;
	transition: transform var(--ease-slow);
}

.article-item:hover {
	background: var(--surface-2);
	border-color: var(--border-2);
	transform: translateX(-3px);
}

.article-item:hover::before { transform: scaleY(1); }

.article-item__image {
	width: 160px;
	aspect-ratio: 4 / 3;
	flex-shrink: 0;
	border-radius: var(--r-sm);
	overflow: hidden;
	background: var(--surface-0);
	border: 1px solid var(--border);
	position: relative;
	margin: 0;
	height: fit-content;
}

.article-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85) brightness(0.9);
	transition: transform 1s var(--ease-slow), filter var(--ease-slow);
}

.article-item:hover .article-item__image img {
	transform: scale(1.08);
	filter: saturate(0.95) brightness(1);
}

.article-item__content { flex: 1 1 auto; min-width: 0; }

.article-item__meta-top {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.5rem;
	font-size: var(--fs-xs);
	color: var(--text-3);
}

.article-item__category {
	color: var(--text-2);
	font-weight: 400;
	letter-spacing: 0.04em;
	padding: 0.1rem 0.55rem;
	border: 1px solid var(--border-2);
	border-radius: var(--r-full);
	font-size: 0.87rem;
	transition: border-color var(--ease), color var(--ease);
}

.article-item:hover .article-item__category { border-color: var(--accent-dim); color: var(--accent-2); }

.article-item__title {
	font-weight: 400;
	font-size: var(--fs-lg);
	line-height: 1.6;
	margin-bottom: var(--sp-2);
	color: var(--text-1);
}

.article-item__title a { transition: color var(--ease); color: inherit; }
.article-item__title a:hover { color: var(--accent); }

.article-item__excerpt {
	font-size: var(--fs-sm);
	color: var(--text-2);
	line-height: 1.9;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-item__meta {
	font-size: var(--fs-xs);
	color: var(--text-3);
	margin-top: var(--sp-3);
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.article-item__meta::before { content: ""; width: 12px; height: 1px; background: var(--border-3); }

.btn-continue {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: var(--sp-3);
	font-size: var(--fs-xs);
	font-weight: 400;
	color: var(--accent-2);
	padding: 0.25rem 2rem 0.25rem 2rem;
	border: 1px solid var(--border-2);
	border-radius: var(--r-full);
	transition: all var(--ease);
	align-self: flex-start;
	background: transparent;
}

.btn-continue::after { content: "←"; transition: transform var(--ease-spring); }

.btn-continue:hover {
	color: var(--accent);
	border-color: var(--accent-dim);
	background: rgba(216, 216, 226, 0.06);
}

.btn-continue:hover::after { transform: translateX(-4px); }

.btn-continue--small { font-size: 0.87rem; padding: 0.2rem 1.4rem; }

/* ============================================================
   ۱۳. یادداشت‌ها
   ============================================================ */

.notes-list {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	flex: 1;
}

.note-item {
	position: relative;
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: var(--sp-4);
	transition: all var(--ease);
	overflow: hidden;
}

.note-item:hover {
	background: var(--surface-2);
	border-color: var(--border-2);
	transform: translateY(-2px);
}


.note-item__image {
	margin: 0 0 0.8rem;
	overflow: hidden;
	border-radius: var(--r-sm);
	background: var(--surface-0);
}

.note-item__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.note-item__content,
.note-item__excerpt {
	font-size: var(--fs-sm);
	color: var(--text-2);
	line-height: 1.85;
	position: relative;
	z-index: 1;
}

.note-item__content p { margin-bottom: 0.3rem; }
.note-item__content p:last-child { margin-bottom: 0; }

/* ============================================================
   ۱۴. جزوه‌ها
   ============================================================ */

.booklets-section .section-head {
	justify-content: center;
	border-bottom: 0;
	margin-bottom: var(--sp-3);
	padding-bottom: 0;
}

.booklets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--sp-4);
	text-align: right;
}

.booklet-item {
	display: flex;
	gap: var(--sp-4);
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: var(--sp-4);
	transition: all var(--ease);
	align-items: flex-start;
}

.booklet-item:hover {
	background: var(--surface-2);
	border-color: var(--border-2);
	transform: translateY(-3px);
	box-shadow: var(--sh-3);
}

.booklet-item__cover {
	flex-shrink: 0;
	width: 90px;
	height: 120px;
	border-radius: var(--r-sm);
	overflow: hidden;
	background: var(--surface-0);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.24rem;
	color: var(--text-3);
	margin: 0;
}

.booklet-item__cover img { width: 100%; height: 100%; object-fit: cover; }
.booklet-item__cover--placeholder { background: var(--surface-3); }

.booklet-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.booklet-item__title {
	font-size: var(--fs-lg);
	font-weight: 400;
	margin-bottom: 0.2rem;
	color: var(--text-1);
}

.booklet-item__title a { color: inherit; transition: color var(--ease); }
.booklet-item__title a:hover { color: var(--accent); }

.booklet-item__excerpt {
	font-size: var(--fs-sm);
	color: var(--text-2);
	line-height: 1.9;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.booklet-item__meta {
	font-size: var(--fs-xs);
	color: var(--text-3);
	margin-top: var(--sp-3);
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.8rem;
}

.btn-download {
	display: inline-block;
	font-size: 0.87rem;
	color: var(--accent);
	border: 1px solid var(--accent-dim);
	background: var(--surface-3);
	padding: 0.25rem 1.2rem;
	border-radius: var(--r-full);
	transition: all var(--ease);
}

.btn-download:hover { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }

.booklets-empty {
	color: var(--text-3);
	font-size: var(--fs-sm);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	animation: float 3.6s ease-in-out infinite;
}

.booklets-empty::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 1px solid currentColor;
	border-radius: 3px;
	opacity: 0.5;
	flex-shrink: 0;
}

/* ============================================================
   ۱۵. گرید پست‌ها (آرشیو، جستجو، ایندکس)
   ============================================================ */

.posts-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.post-card {
	background: var(--surface-1);
	border-radius: var(--r-md);
	border: 1px solid var(--border);
	transition: all var(--ease);
	overflow: hidden;
}

.post-card:hover {
	background: var(--surface-2);
	border-color: var(--border-2);
	transform: translateY(-3px);
	box-shadow: var(--sh-3);
}

.post-card-link { display: block; padding: 1.2rem; text-decoration: none; color: inherit; }

.post-card .entry-title {
	font-size: 1.4rem;
	font-weight: 400;
	margin-bottom: 0.3rem;
}

.post-card .entry-title a { color: var(--text-1); transition: color var(--ease); }
.post-card .entry-title a:hover { color: var(--accent); }

.entry-meta { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 0.5rem; }
.entry-meta a { color: var(--text-3); }

.entry-summary {
	font-size: var(--fs-sm);
	color: var(--text-2);
	line-height: var(--lh-body);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.read-more-link {
	display: inline-block;
	margin-top: 0.5rem;
	color: var(--accent-2);
	font-weight: 400;
	font-size: var(--fs-xs);
	border-bottom: 1px solid transparent;
	transition: border-color var(--ease), color var(--ease);
}

.read-more-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

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

.pagination {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
	padding: 0.5rem 0;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

.pagination a,
.pagination span {
	color: var(--text-2);
	padding: 0.3rem 1rem;
	border: 1px solid var(--border-2);
	border-radius: var(--r-full);
	font-size: var(--fs-sm);
	transition: all var(--ease);
	font-weight: 400;
	display: inline-block;
	background: transparent;
}

.pagination a:hover {
	border-color: var(--accent-dim);
	color: var(--text-1);
	background: var(--surface-2);
}

.pagination .current {
	background: var(--accent);
	color: var(--bg-deep);
	border-color: var(--accent);
}

/* ============================================================
   ۱۶.b کارت پست ساده (index/archive/search)
   ============================================================ */

.post-card-link {
	display: block;
	padding: 1.2rem;
	text-decoration: none;
	color: inherit;
}

.post-card-content {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

/* ============================================================
   ۱۶.c صفحهٔ ۴۰۴
   ============================================================ */

.error-404-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
}

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

.comments-area {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.comments-title,
.comment-reply-title {
	font-size: var(--fs-xl);
	font-weight: 400;
	color: var(--text-1);
	margin-bottom: 1rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.comment-list .comment {
	margin-bottom: 1rem;
	padding: 1rem;
	background: var(--surface-0);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
}

.comment-list .children {
	list-style: none;
	margin: 0.8rem 0 0;
	padding-inline-start: 1.5rem;
}

.comment-meta,
.comment-metadata {
	font-size: var(--fs-xs);
	color: var(--text-3);
}

.comment-content {
	margin-top: 0.75rem;
	color: var(--text-2);
}

.comment-respond {
	margin-top: 1.5rem;
}

.comment-notes {
	font-size: var(--fs-sm);
	color: var(--text-3);
	margin-bottom: 0.8rem;
}

.comment-form label {
	display: block;
	font-size: var(--fs-sm);
	color: var(--text-2);
	margin-bottom: 0.3rem;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
	width: 100%;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--border-2);
	border-radius: var(--r-sm);
	background: var(--surface-2);
	color: var(--text-1);
	font-family: var(--ff);
	font-size: var(--fs-sm);
	transition: border-color var(--ease);
}

.comment-form input:not([type="submit"]):focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--accent-dim);
}

.comment-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.comment-form .form-submit {
	margin-top: 1rem;
}

.comment-form .submit,
.comment-form .btn {
	background: var(--accent);
	color: var(--bg-deep);
	border: 1px solid var(--accent);
	padding: 0.5rem 1.5rem;
	border-radius: var(--r-full);
	font-family: var(--ff);
	font-size: var(--fs-sm);
	cursor: pointer;
	transition: all var(--ease);
}

.comment-form .submit:hover,
.comment-form .btn:hover {
	background: var(--accent-2);
	border-color: var(--accent-2);
}

.no-comments {
	font-size: var(--fs-sm);
	color: var(--text-3);
	padding: 1rem 0;
}

/* ============================================================
   ۱۷. صفحات ثابت و تکی
   ============================================================ */

.content-area { width: 100%; }

.page-content {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 1rem 0;
}

.page-header { margin-bottom: 1.5rem; }

.page-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 400;
	color: var(--text-1);
}

.taxonomy-description {
	margin-top: 0.5rem;
	color: var(--text-2);
	font-size: var(--fs-sm);
}

.entry-page,
.entry-single {
	background: var(--surface-1);
	border-radius: var(--r-md);
	padding: 2rem;
	border: 1px solid var(--border);
}

.entry-header { margin-bottom: 1.5rem; }
.entry-header .entry-title {
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 400;
	color: var(--text-1);
	margin-bottom: 0.5rem;
}

.entry-content {
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	color: var(--text-1);
}

.entry-content p { margin-bottom: 1rem; }

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	font-size: var(--fs-sm);
	color: var(--text-3);
}

.entry-footer .cat-links,
.entry-footer .tags-links { display: inline-block; margin-inline-end: 1rem; }

.single-page { max-width: min(1120px, 100%); margin: 0 auto; padding: 1.5rem 0 3rem; }

.post-thumbnail {
	margin-bottom: 1rem;
	overflow: hidden;
	border-radius: var(--r-sm);
	background: var(--surface-0);
}

.post-thumbnail img,
.single-thumbnail {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.page-links { clear: both; margin: 1.5rem 0; text-align: center; }

.page-links .page-link {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	margin: 0 0.2rem;
	border: 1px solid var(--border-2);
	border-radius: var(--r-sm);
	color: var(--text-2);
	transition: all var(--ease);
}

.page-links .page-link:hover { border-color: var(--accent-dim); color: var(--text-1); }
.page-links .page-link.current { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }

/* ============================================================
   ۱۷.۱ تایپوگرافی محتوای پست تکی (رفع به‌هم‌ریختگی)
   ============================================================ */

.single-page { padding-inline: 1.25rem; }

.entry-content {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.entry-content > * + * { margin-top: 1.1rem; }
.entry-content p { margin-bottom: 1.1rem; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--text-1);
	font-weight: 500;
	line-height: 1.5;
	margin: 2rem 0 0.9rem;
}
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.entry-content h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.entry-content h4 { font-size: clamp(1.1rem, 2vw, 1.2rem); }

.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.6rem;
	margin: 0 0 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}
.entry-content li { color: var(--text-2); line-height: var(--lh-body); }
.entry-content ul li::marker { color: var(--accent-dim); }
.entry-content ol li::marker { color: var(--accent-dim); }

.entry-content a {
	color: var(--accent-2);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color var(--ease);
}
.entry-content a:hover { color: var(--accent); }

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: var(--r-sm);
}
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; }

.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 0.5rem;
	font-size: var(--fs-sm);
	color: var(--text-3);
	text-align: center;
}

.entry-content hr {
	border: 0;
	height: 1px;
	margin: 2rem auto;
	width: min(16rem, 60%);
	background: linear-gradient(90deg, transparent, var(--border-3), transparent);
}

.entry-content > blockquote,
.entry-content .wp-block-quote { margin: 1.5rem 0; }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: var(--fs-sm);
}
.entry-content th,
.entry-content td {
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--border);
	text-align: start;
}
.entry-content th { background: var(--surface-0); color: var(--text-1); font-weight: 500; }
.entry-content td { color: var(--text-2); }

@media (max-width: 768px) {
	.single-page { padding-inline: 0.9rem; }
	.entry-single { padding: 1.1rem; }
}

/* ============================================================
   ۱۸. صفحه ۴۰۴ و جستجو
   ============================================================ */

.error-404 {
	text-align: center;
	padding: 4rem 1rem;
	max-width: 600px;
	margin: 0 auto;
}

.error-404-title {
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: 400;
	line-height: 1;
	color: var(--accent-2);
	text-shadow: none;
}

.error-404-sub {
	font-size: clamp(1.4rem, 3vw, 2.4rem);
	color: var(--text-1);
	margin: 0.5rem 0;
	font-weight: 400;
}

.error-404-text {
	color: var(--text-2);
	font-size: var(--fs-base);
	margin-bottom: 1.5rem;
}

.error-404-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	border: 1px solid var(--border-2);
	border-radius: var(--r-full);
	padding: 0.5rem 2.2rem;
	color: var(--accent);
	font-weight: 400;
	transition: all var(--ease);
}

.error-404-btn:hover {
	background: var(--surface-2);
	border-color: var(--accent-dim);
	color: var(--text-1);
	transform: translateY(-2px);
}

.error-404-search { margin: 1.5rem auto 0; max-width: 400px; }

.error-404-suggestions { margin-top: 2rem; }

.error-404-suggestions-title {
	font-size: var(--fs-base);
	color: var(--text-2);
	margin-bottom: 0.8rem;
}

.error-404-suggestions-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.2rem;
}

.error-404-suggestions-list a { color: var(--text-3); font-size: var(--fs-sm); transition: color var(--ease); }
.error-404-suggestions-list a:hover { color: var(--accent); }

.search-page .page-header { margin-bottom: 2rem; }
.search-page .search-query { color: var(--accent); }
.search-page .search-results-count { color: var(--text-3); font-size: var(--fs-sm); margin-top: 0.2rem; }

.no-posts,
.no-results {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--text-3);
}

.no-posts .search-form,
.no-results .search-form { margin: 1rem auto 0; }

/* ============================================================
   ۱۹. فرم جستجو
   ============================================================ */

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 400px;
	margin: 1rem auto 0;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--border-2);
	border-radius: var(--r-sm);
	background: var(--surface-2);
	color: var(--text-1);
	font-family: var(--ff);
	font-size: var(--fs-sm);
	transition: border-color var(--ease);
}

.search-form input[type="search"]:focus { outline: none; border-color: var(--accent-dim); }
.search-form input[type="search"]::placeholder { color: var(--text-4); }

.search-form input[type="submit"] {
	padding: 0.5rem 1.2rem;
	border: 1px solid var(--accent);
	border-radius: var(--r-sm);
	background: var(--accent);
	color: var(--bg-deep);
	cursor: pointer;
	font-family: var(--ff);
	font-weight: 400;
	font-size: var(--fs-sm);
	transition: all var(--ease);
}

.search-form input[type="submit"]:hover { background: var(--accent-2); border-color: var(--accent-2); }

input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ============================================================
   ۲۰. فوتر ویجت‌ها
   ============================================================ */

.footer-widgets {
	background: var(--surface-0);
	padding: var(--sp-6) 0;
	margin-top: var(--sp-6);
	border-top: 1px solid var(--border);
	position: relative;
}

.footer-widgets::before {
	content: "◆";
	position: absolute;
	top: -0.8rem;
	inset-inline-start: 0;
	color: var(--border-3);
	font-size: 0.78rem;
	background: var(--bg);
	padding: 0 0.5rem;
	line-height: 1;
}

.footer-widgets-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--sp-6) var(--sp-5);
	padding: 0 2rem;
}

.widget { margin-bottom: 0; }

.widget h2,
.widget .widget-title {
	font-size: var(--fs-sm);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-3);
	margin-bottom: var(--sp-3);
	padding-bottom: var(--sp-2);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.widget h2::before,
.widget .widget-title::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--accent-dim);
	flex-shrink: 0;
}

.widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.widget ul li { padding: 0; border: none; color: var(--text-2); }

.widget a {
	font-size: var(--fs-sm);
	color: var(--text-2);
	transition: color var(--ease), transform var(--ease);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.widget a::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--border-3);
	flex-shrink: 0;
	transition: background var(--ease), transform var(--ease-spring);
}

.widget a:hover { color: var(--text-1); transform: translateX(-3px); }
.widget a:hover::before { background: var(--accent-2); transform: scale(1.6); }

/* ============================================================
   ۲۱. فوتر اصلی
   ============================================================ */

.footer {
	border-top: 1px solid var(--border);
	padding: var(--sp-6) 0 var(--sp-7);
	margin-top: var(--sp-5);
	text-align: center;
	position: relative;
}

.footer::before {
	content: "";
	display: block;
	width: min(18rem, 55vw);
	height: 1px;
	margin: 0 auto 1.5rem;
	background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
	opacity: 0.6;
}

.footer-inner {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-4);
}

.footer-quote {
	font-size: 1.57rem;
	font-style: italic;
	color: var(--accent-2);
	letter-spacing: 0.02em;
	position: relative;
	padding: 0 var(--sp-5);
	animation: breathe 5s ease-in-out infinite;
}

.footer-quote::before,
.footer-quote::after {
	content: "—";
	color: var(--border-3);
	margin: 0 0.6rem;
	font-style: normal;
}

.footer-nav { margin-top: 0.5rem; }

.footer-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
}

.footer-menu a { font-size: var(--fs-sm); color: var(--text-3); transition: color var(--ease); position: relative; }
.footer-menu a:hover { color: var(--accent-2); }

.footer-menu a::after {
	content: "";
	position: absolute;
	bottom: -2px;
	inset-inline-start: 0;
	width: 0;
	height: 1px;
	background: var(--accent-2);
	transition: width var(--ease-slow);
}

.footer-menu a:hover::after { width: 100%; }

.footer-copy {
	font-size: var(--fs-xs);
	color: var(--text-4);
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
	justify-content: center;
}

.footer-copy a { color: var(--text-3); }
.footer-copy a:hover { color: var(--accent-2); }

.footer-privacy { margin-top: 0.3rem; }
.footer-privacy a { color: var(--text-4); font-size: var(--fs-xs); }

/* ============================================================
   ۲۲. دکمه بازگشت به بالا
   ============================================================ */

.back-to-top {
	position: fixed;
	inset-inline-start: 1.25rem;
	bottom: 1.25rem;
	z-index: 60;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	color: var(--text-3);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all var(--ease-slow);
	box-shadow: var(--sh-2);
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.back-to-top:hover {
	color: var(--text-1);
	border-color: var(--accent-dim);
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.back-to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   ۲۳. دسترسی‌پذیری
   ============================================================ */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
}

.screen-reader-text:focus {
	background: var(--surface-2);
	border-radius: var(--r-sm);
	clip: auto !important;
	color: var(--text-1);
	display: block;
	font-size: var(--fs-sm);
	height: auto;
	padding: 0.8rem 1.2rem;
	position: absolute !important;
	width: auto;
	z-index: 100000;
	box-shadow: var(--sh-2);
}

.skip-link {
	position: absolute;
	top: -100%;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	background: var(--accent);
	color: var(--bg-deep);
	padding: 0.6rem 1.5rem;
	border-radius: var(--r-sm);
	z-index: 100000;
	font-weight: 400;
	transition: top var(--ease-slow);
}

.skip-link:focus { top: 0.5rem; }

/* اسکرول بار سفارشی */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
	background: var(--border-3);
	border-radius: 5px;
	border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }
* { scrollbar-width: thin; scrollbar-color: var(--border-3) var(--bg-deep); }

::selection { background: var(--accent); color: var(--bg-deep); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 3px; }

/* ============================================================
   ۲۴. تصاویر و ویدیو
   ============================================================ */

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

/* ============================================================
   ۲۵. جداول
   ============================================================ */

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { padding: 0.5rem 0.8rem; border: 1px solid var(--border); text-align: start; }
th { background: var(--surface-0); font-weight: 400; color: var(--text-1); }
td { color: var(--text-2); }

/* ============================================================
   ۲۶. بلوک نقل قول
   ============================================================ */

blockquote,
.wp-block-quote {
	border-inline-start: 3px solid var(--accent-dim);
	padding: 0.8rem 1.5rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: var(--text-2);
	background: var(--surface-0);
	border-radius: var(--r-sm);
}

blockquote p:last-child { margin-bottom: 0; }

cite { font-style: normal; color: var(--text-3); font-size: var(--fs-sm); }

.wp-block-pullquote {
	border-top: 3px solid var(--accent-dim);
	border-bottom: 3px solid var(--accent-dim);
	padding: 2rem;
	text-align: center;
}

.wp-block-pullquote blockquote { border: none; padding: 0; margin: 0; background: transparent; }

/* ============================================================
   ۲۷. کد
   ============================================================ */

code, kbd, pre, samp {
	font-family: "Courier New", monospace;
	font-size: 0.9em;
	background: var(--surface-0);
	padding: 0.1rem 0.4rem;
	border-radius: var(--r-sm);
	color: var(--text-2);
}

pre { padding: 1rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

/* ============================================================
   ۲۸. موبایل
   ============================================================ */

@media (max-width: 1024px) {
	.grid-row { grid-template-columns: 1fr; gap: var(--sp-5); }
	.booklets-grid { grid-template-columns: 1fr; }
	.posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
	/* منوی موبایل حذف شده — قواعد مربوطه نیز برداشته شدند */
}

@media (max-width: 900px) {
	.grid-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	body { padding: 0 1rem; }
	.site-header { padding: 1.9rem 1.35rem 1.6rem; }
	.header-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
	.header-right { width: 100%; align-items: stretch; }
	.typewriter { width: 100%; justify-content: center; }
	.world-clocks { justify-content: center; margin-top: 0.4rem; }
	.world-clock { min-width: 56px; padding: 0.35rem 0.5rem; }
	.world-clock__time { font-size: 0.85rem; }
	.article-item { flex-direction: column; }
	.article-item__image { width: 100%; aspect-ratio: 16 / 9; height: auto; }
	.booklet-item { flex-direction: column; align-items: center; text-align: center; }
	.booklet-item__cover { width: 100%; height: auto; aspect-ratio: 3 / 4; max-width: 120px; margin: 0 auto; }
	.posts-grid { grid-template-columns: 1fr; }
	.entry-page, .entry-single { padding: 1rem; }
	.back-to-top { inset-inline-start: 0.75rem; bottom: 0.75rem; }
}

@media (max-width: 480px) {
	.site-title { font-size: 2.24rem; }
	.card__content { padding: var(--sp-4); }
	.newspaper-item { padding: var(--sp-3) var(--sp-3) var(--sp-3) calc(var(--sp-3) + 22px); }
	.card__meta-sep { display: none; }
	.world-clock__city { font-size: 0.65rem; }
	.search-form { flex-direction: column; max-width: 100%; }
	.search-form input[type="submit"] { width: 100%; }
}

@media (min-width: 1920px) {
	body { padding: 0 4rem; }
	:root { --fs-base: 1.40rem; }
}

/* ============================================================
   ۲۹. state ورود کارت‌ها (koohrun-motion-ready)
   ============================================================ */

.koohrun-motion-ready .koohrun-reveal {
	opacity: 0;
	transform: translateY(22px) scale(0.985);
	transition:
		opacity 0.8s var(--ease-slow) var(--reveal-delay, 0ms),
		transform 0.8s var(--ease-slow) var(--reveal-delay, 0ms);
}

.koohrun-motion-ready .koohrun-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ============================================================
   ۳۰. کاهش انیمیشن
   ============================================================ */

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

	body::after { animation: none !important; }
	.typewriter::after { animation: none !important; opacity: 0.5; }
	.card:hover, .post-card:hover, .article-item:hover,
	.note-item:hover, .newspaper-item:hover, .booklet-item:hover,
	.entry-page:hover { transform: none !important; }

	.koohrun-motion-ready .koohrun-reveal,
	.koohrun-motion-ready .koohrun-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* ============================================================
   ۳۱. چاپ
   ============================================================ */

@media print {
	body { background: #fff; color: #000; font-size: 12pt; max-width: 100%; padding: 0.5in; }
	.site-title a { color: #000; }
	.typewriter, .btn, .btn-continue, .btn-download,
	.search-form, .pagination, .screen-reader-text, .skip-link,
	.world-clocks, .back-to-top { display: none !important; }
	.card, .article-item, .note-item, .newspaper-item, .booklet-item, .post-card, .entry-page {
		background: #f5f5f5; border: 1px solid #ddd; box-shadow: none;
	}
	a { color: #000; text-decoration: underline; }
	img { max-width: 80% !important; height: auto; }
	h1, h2, h3, h4, h5, h6, .entry-title, .error-404-title, .error-404-sub { color: #000; }
}

/* ============================================================
   دکمهٔ عمومی + جزئیات کارت (تکمیل گرافیت)
   ============================================================ */

/* دکمهٔ عمومی — برای دکمهٔ ارسال دیدگاه (comments.php) و بازگشت به صفحهٔ اصلی (single.php) */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-top: var(--sp-3);
	padding: 0.55rem 1.8rem;
	font-family: var(--ff);
	font-size: var(--fs-sm);
	font-weight: 400;
	line-height: 1.6;
	color: var(--accent);
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	border-radius: var(--r-full);
	cursor: pointer;
	text-decoration: none;
	text-shadow: none;
	align-self: flex-start;
	transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.btn:hover,
.btn:focus-visible {
	color: var(--accent);
	background: var(--surface-3);
	border-color: var(--accent-dim);
	transform: translateY(-1px);
}

.btn:focus-visible {
	outline: 2px solid var(--accent-dim);
	outline-offset: 2px;
}

.btn:active {
	transform: translateY(0);
}

.btn[disabled],
.btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* درخشش مورب روی تصویر کارت سرمقاله — مربوط به content-editorial.php */

/* براکت گوشه‌ای روی تصویر کارت سرمقاله — مربوط به content-editorial.php */

@media (prefers-reduced-motion: reduce) {
	.btn { transition: none; }
	.btn:hover, .btn:focus-visible { transform: none; }
}

/* ============================================================
   پلیس‌هولدر تصویر (بدون featured image)
   ============================================================ */
.ph {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 60px;
	background:
		radial-gradient(circle at 30% 30%, rgba(240,185,84,.06), transparent 55%),
		radial-gradient(circle at 70% 70%, rgba(216,216,226,.03), transparent 50%),
		linear-gradient(135deg, #121216 0%, #1f1f25 100%);
	position: relative;
	overflow: hidden;
}

.ph::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		-45deg,
		transparent 0px,
		transparent 10px,
		rgba(240,185,84,.03) 10px,
		rgba(240,185,84,.03) 11px
	);
	pointer-events: none;
}
