/* =====================================================
   Ouldooz News v2.0 — قالب خبری مدرن، مشکی مات، RTL
   ===================================================== */

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- توکن‌های طراحی (مشکی مات) ---------- */
:root {
	--onw-primary: #e11d33;
	--onw-breaking: #f5b31a;
	--onw-bg: #0b0b0d;
	--onw-surface: #141417;
	--onw-surface-2: #1b1b1f;
	--onw-surface-3: #232329;
	--onw-text: #f2f3f5;
	--onw-text-2: #9b9ba4;
	--onw-border: #26262c;
	--onw-border-2: #323239;
	--onw-up: #2fbd7a;
	--onw-down: #f04a5e;
	--onw-radius: 14px;
	--onw-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 32px rgba(0, 0, 0, .35);
	--onw-container: 1280px;
}

/* حالت روشن (اختیاری — پیش‌فرض قالب تاریک مات است) */
html[data-theme="light"] {
	--onw-primary: #c4172c;
	--onw-breaking: #d99406;
	--onw-bg: #f3f4f6;
	--onw-surface: #ffffff;
	--onw-surface-2: #f6f7f9;
	--onw-surface-3: #ebedf0;
	--onw-text: #17181c;
	--onw-text-2: #5d6470;
	--onw-border: #e4e6ea;
	--onw-border-2: #d5d8de;
	--onw-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.onw-theme {
	margin: 0;
	background:
		radial-gradient(1100px 500px at 85% -140px, rgba(225, 29, 51, .07), transparent 60%),
		radial-gradient(900px 420px at 8% -120px, rgba(66, 99, 235, .05), transparent 55%),
		var(--onw-bg);
	color: var(--onw-text);
	font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.9;
	direction: rtl;
	transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--onw-primary); }
img { max-width: 100%; height: auto; }
ul, ol { padding: 0; }
::selection { background: rgba(225, 29, 51, .35); color: #fff; }

/* اسکرول‌بار مات */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--onw-bg); }
::-webkit-scrollbar-thumb { background: var(--onw-surface-3); border-radius: 8px; border: 2px solid var(--onw-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--onw-border-2); }

.onw-container {
	max-width: var(--onw-container);
	margin: 0 auto;
	padding: 0 18px;
}

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

/* ---------- نوار قیمت بازار ---------- */
.onw-market {
	background: rgba(10, 10, 12, .92);
	border-bottom: 1px solid var(--onw-border);
	overflow: hidden;
	direction: ltr;
	backdrop-filter: blur(8px);
}
.onw-market-inner {
	max-width: var(--onw-container);
	margin: 0 auto;
	padding: 0 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	height: 42px;
}
.onw-market-title {
	background: linear-gradient(135deg, var(--onw-primary), #8f0f22);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 14px;
	border-radius: 8px;
	flex-shrink: 0;
	letter-spacing: .3px;
}
.onw-market-list {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
	animation: onw-ticker 45s linear infinite;
	white-space: nowrap;
	width: max-content;
}
.onw-market:hover .onw-market-list { animation-play-state: paused; }
.onw-market-item {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12.5px; direction: rtl;
	padding: 3px 10px;
	border-radius: 8px;
	border: 1px solid transparent;
	transition: border-color .2s ease, background .2s ease;
}
.onw-market-item:hover { border-color: var(--onw-border); background: var(--onw-surface); }
.onw-market-name { font-weight: 500; }
.onw-market-price { opacity: .85; font-variant-numeric: tabular-nums; }
.onw-dir-up .onw-market-change { color: var(--onw-up); }
.onw-dir-down .onw-market-change { color: var(--onw-down); }
.onw-dir-flat .onw-market-change { opacity: .6; }
.onw-market-change { font-variant-numeric: tabular-nums; }
@keyframes onw-ticker {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

/* آب‌وهوا در هدر */
.onm-weather { font-size: 12.5px; color: var(--onw-text-2); white-space: nowrap; }
.onm-weather b { color: var(--onw-text); font-size: 13.5px; }
.onm-weather-icon { font-size: 14px; }

/* ---------- هدر ---------- */
.onw-header {
	background: rgba(15, 15, 18, .88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--onw-border);
	position: sticky;
	top: 0;
	z-index: 50;
}
html[data-theme="light"] .onw-header { background: rgba(255, 255, 255, .9); }
.onw-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.onw-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.onw-brand img { max-height: 52px; width: auto; }
.onw-site-name {
	font-size: 24px;
	font-weight: 700;
	background: linear-gradient(120deg, #fff 20%, #b9bcc4 90%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	white-space: nowrap;
}
html[data-theme="light"] .onw-site-name {
	background: linear-gradient(120deg, #17181c 20%, #565b66 90%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.onw-site-desc { font-size: 12px; color: var(--onw-text-2); }
.onw-header-tools { display: flex; align-items: center; gap: 8px; }
.onw-header-date { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--onw-text-2); margin-left: 6px; }
.onw-clock {
	font-variant-numeric: tabular-nums; direction: ltr;
	background: var(--onw-surface-2); border: 1px solid var(--onw-border);
	padding: 1px 10px; border-radius: 8px; color: var(--onw-text);
}
.onw-icon-btn {
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	color: var(--onw-text);
	width: 40px; height: 40px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.onw-icon-btn:hover { background: var(--onw-primary); color: #fff; border-color: var(--onw-primary); transform: translateY(-1px); }
html[data-theme="light"] .onw-icon-moon { display: none; }
html[data-theme="dark"] .onw-icon-sun { display: none; }
.onw-burger { display: none; }

.onw-header-nav { border-top: 1px solid var(--onw-border); }
.onw-menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}
.onw-menu > li { position: relative; }
.onw-menu > li > a {
	display: block;
	padding: 11px 18px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--onw-text-2);
	border-bottom: 2px solid transparent;
	transition: color .18s ease, border-color .18s ease;
}
.onw-menu > li > a:hover,
.onw-menu > li.current-menu-item > a,
.onw-menu > li.current_page_item > a {
	color: var(--onw-text);
	border-bottom-color: var(--onw-primary);
}
.onw-menu ul {
	display: none;
	position: absolute;
	top: 100%; right: 0;
	min-width: 190px;
	background: var(--onw-surface);
	border: 1px solid var(--onw-border);
	border-radius: 0 0 12px 12px;
	box-shadow: var(--onw-shadow);
	list-style: none;
	margin: 0;
	padding: 8px;
	z-index: 60;
}
.onw-menu li:hover > ul { display: block; }
.onw-menu ul a { display: block; padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.onw-menu ul a:hover { background: var(--onw-surface-2); }

/* ---------- جستجو ---------- */
.onw-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(5, 5, 7, .72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 100;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 18px 0;
}
.onw-search-overlay[hidden] { display: none !important; }
.onw-search-box {
	position: relative;
	width: 100%;
	max-width: 640px;
	background: var(--onw-surface);
	border: 1px solid var(--onw-border-2);
	border-radius: 18px;
	padding: 22px;
	box-shadow: var(--onw-shadow);
}
.onw-searchform { display: flex; gap: 10px; }
.onw-search-input {
	flex: 1;
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	border-radius: 12px;
	color: var(--onw-text);
	padding: 12px 16px;
	font: inherit;
	outline: none;
	transition: border-color .2s ease;
}
.onw-search-input:focus { border-color: var(--onw-primary); }
.onw-search-submit {
	background: var(--onw-primary);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 12px 24px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: filter .2s ease;
}
.onw-search-submit:hover { filter: brightness(1.12); }
.onw-search-results { margin-top: 14px; }
.onw-search-results a {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	border: 1px solid transparent;
}
.onw-search-results a:hover { background: var(--onw-surface-2); border-color: var(--onw-border); }
.onw-search-close {
	position: absolute;
	top: -16px; left: -16px;
	background: var(--onw-surface-3);
	border: 1px solid var(--onw-border-2);
	border-radius: 50%;
	width: 38px; height: 38px;
	cursor: pointer;
	color: var(--onw-text);
	font-size: 15px;
}

/* ---------- نوار خبر فوری ---------- */
.onw-breaking {
	background: var(--onw-surface);
	border-bottom: 1px solid var(--onw-border);
}
.onw-breaking-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
}
.onw-breaking-label {
	background: linear-gradient(135deg, var(--onw-breaking), #c78a00);
	color: #241a00;
	font-size: 12.5px;
	font-weight: 700;
	padding: 3px 16px;
	border-radius: 8px;
	flex-shrink: 0;
}
.onw-breaking-viewport { overflow: hidden; flex: 1; direction: ltr; }
.onw-breaking-list {
	display: inline-flex;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 9px 0;
	white-space: nowrap;
	animation: onw-ticker 70s linear infinite;
	width: max-content;
}
.onw-breaking:hover .onw-breaking-list { animation-play-state: paused; }
.onw-breaking-list li { direction: rtl; }
.onw-breaking-list a { font-size: 13.5px; }
.onw-breaking-dot {
	display: inline-block;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--onw-primary);
	margin-left: 8px;
	vertical-align: middle;
	box-shadow: 0 0 0 3px rgba(225, 29, 51, .18);
}

/* ---------- چیدمان عمومی ---------- */
.onw-main { padding: 26px 0 56px; min-height: 60vh; }
.onw-layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 26px;
	align-items: start;
}
.onw-section { margin-bottom: 44px; }
.onw-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.onw-section-title {
	position: relative;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 18px;
	padding-right: 16px;
}
.onw-section-head .onw-section-title { margin: 0; }
.onw-section-title::before {
	content: '';
	position: absolute;
	right: 0; top: 5px; bottom: 5px;
	width: 5px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--onw-primary), color-mix(in srgb, var(--onw-primary) 45%, var(--onw-breaking)));
}
.onw-more {
	font-size: 13px; color: var(--onw-text-2); font-weight: 500;
	background: var(--onw-surface-2); border: 1px solid var(--onw-border);
	padding: 4px 14px; border-radius: 20px;
	transition: all .2s ease;
}
.onw-more:hover { color: var(--onw-primary); border-color: var(--onw-primary); }

/* ---------- گرید کارت‌ها ---------- */
.onw-grid { display: grid; gap: 20px; }
.onw-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.onw-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.onw-card {
	position: relative;
	background: var(--onw-surface);
	border: 1px solid var(--onw-border);
	border-radius: var(--onw-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.onw-card:hover {
	transform: translateY(-4px);
	border-color: var(--onw-border-2);
	box-shadow: var(--onw-shadow);
}
.onw-card::after {
	content: '';
	position: absolute;
	top: 0; right: 0; left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--onw-primary), transparent 70%);
	opacity: 0;
	transition: opacity .2s ease;
}
.onw-card:hover::after { opacity: 1; }
.onw-card-thumb { display: block; aspect-ratio: 4 / 2.6; overflow: hidden; background: var(--onw-surface-2); position: relative; }
.onw-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s ease; }
.onw-card:hover .onw-card-thumb img { transform: scale(1.06); }
.onw-card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--onw-surface-2), var(--onw-surface-3)); }
.onw-card-placeholder-lg { }
.onw-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.onw-card-cat, .onw-badge {
	align-self: flex-start;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--onw-primary);
	background: color-mix(in srgb, var(--onw-primary) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--onw-primary) 25%, transparent);
	padding: 2px 12px;
	border-radius: 20px;
	transition: all .2s ease;
}
.onw-card-cat:hover { background: var(--onw-primary); color: #fff; border-color: var(--onw-primary); }
.onw-badge-breaking { color: #241a00; background: var(--onw-breaking); border-color: var(--onw-breaking); }
.onw-card-title { margin: 0; font-size: 15.5px; line-height: 1.75; font-weight: 700; }
.onw-card-title a { display: block; transition: color .18s ease; }
.onw-card-excerpt { margin: 0; font-size: 13px; color: var(--onw-text-2); }
.onw-card-meta { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--onw-text-2); padding-top: 6px; border-top: 1px solid var(--onw-border); }
.onw-meta-sep { opacity: .4; }

/* ---------- هیرو ---------- */
.onw-hero {
	display: grid;
	grid-template-columns: 2.1fr 1fr;
	gap: 20px;
	margin-bottom: 44px;
}
.onw-hero-card {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	min-height: 510px;
	display: flex;
	align-items: flex-end;
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	box-shadow: var(--onw-shadow);
}
.onw-hero-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(200deg, rgba(225, 29, 51, .16), transparent 45%);
	z-index: 1;
	pointer-events: none;
}
.onw-hero-thumb { position: absolute; inset: 0; }
.onw-hero-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.onw-hero-card:hover .onw-hero-thumb img { transform: scale(1.03); }
.onw-hero-body {
	position: relative;
	width: 100%;
	padding: 28px;
	background: linear-gradient(to top, rgba(6, 6, 8, .96) 0%, rgba(6, 6, 8, .72) 50%, rgba(6, 6, 8, 0) 100%);
	color: #fff;
	z-index: 2;
}
.onw-hero-title { margin: 10px 0; font-size: 26px; line-height: 1.55; font-weight: 700; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.onw-hero-title a:hover { color: #fff; opacity: .92; }
.onw-hero-excerpt { margin: 0 0 10px; font-size: 14px; opacity: .88; }
.onw-hero-body .onw-card-meta { color: rgba(255, 255, 255, .8); border-top-color: rgba(255, 255, 255, .14); }
.onw-hero-body .onw-card-cat { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); }
.onw-hero-side {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.onw-hero-side-title {
	font-size: 13px; font-weight: 700; color: var(--onw-text-2);
	text-transform: uppercase; letter-spacing: 1px;
	margin: 0 0 2px; display: flex; align-items: center; gap: 8px;
}
.onw-hero-side-title::after { content: ''; flex: 1; height: 1px; background: var(--onw-border); }
.onw-list-item {
	display: flex;
	gap: 14px;
	background: var(--onw-surface);
	border: 1px solid var(--onw-border);
	border-radius: 14px;
	padding: 12px;
	flex: 1;
	transition: border-color .2s ease, transform .18s ease;
}
.onw-list-item:hover { border-color: var(--onw-border-2); transform: translateX(-3px); }
.onw-list-thumb { flex-shrink: 0; width: 104px; height: 78px; border-radius: 10px; overflow: hidden; background: var(--onw-surface-2); }
.onw-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.onw-list-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.onw-list-title { margin: 0; font-size: 13.5px; line-height: 1.7; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- پربازدید شماره‌دار (ترند) ---------- */
.onw-trending-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: onw-trend;
}
.onw-trending-list li {
	counter-increment: onw-trend;
	position: relative;
	background: var(--onw-surface);
	border: 1px solid var(--onw-border);
	border-radius: 12px;
	padding: 14px 56px 14px 16px;
	transition: border-color .2s ease;
}
.onw-trending-list li:hover { border-color: var(--onw-border-2); }
.onw-trending-list li::before {
	content: counter(onw-trend);
	position: absolute;
	right: 12px; top: 50%;
	transform: translateY(-50%);
	width: 32px; height: 32px;
	border-radius: 10px;
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	color: var(--onw-primary);
	font-size: 14px;
	font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.onw-trending-list li:nth-child(-n+3)::before {
	background: linear-gradient(135deg, var(--onw-primary), #8f0f22);
	color: #fff;
	border-color: transparent;
}
.onw-trending-list a { font-weight: 600; font-size: 14px; display: block; }
.onw-trending-list .onw-trend-meta { font-size: 11.5px; color: var(--onw-text-2); }

/* ---------- سایدبار و ابزارک ---------- */
.onw-sidebar { display: flex; flex-direction: column; gap: 22px; }
.onw-widget {
	background: var(--onw-surface);
	border: 1px solid var(--onw-border);
	border-radius: var(--onw-radius);
	padding: 20px;
}
.onw-widget-title {
	position: relative;
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	padding-right: 13px;
}
.onw-widget-title::before {
	content: '';
	position: absolute;
	right: 0; top: 3px; bottom: 3px;
	width: 4px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--onw-primary), color-mix(in srgb, var(--onw-primary) 45%, var(--onw-breaking)));
}
.onw-widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.onw-widget a { font-size: 13.5px; }
.onw-popular-list { list-style: none; margin: 0; padding: 0; counter-reset: onw-pop; }
.onw-popular-list li { counter-increment: onw-pop; position: relative; padding-right: 32px; line-height: 1.85; }
.onw-popular-list li::before {
	content: counter(onw-pop);
	position: absolute; right: 0; top: 4px;
	width: 23px; height: 23px;
	border-radius: 8px;
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	color: var(--onw-primary);
	font-size: 12px;
	font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.onw-ads { margin-bottom: 20px; }

/* آمار در ابزارک‌ها */
.osk-stats-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.osk-stats-list li {
	display: flex; align-items: center; justify-content: space-between;
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	border-radius: 10px;
	padding: 8px 14px;
	font-size: 13px;
}
.osk-stats-list li b { color: var(--onw-primary); font-variant-numeric: tabular-nums; font-size: 14.5px; }

/* ---------- باکس جمع‌وجور آمار (پایین سایدبار) ---------- */
.onw-stats-mini .osk-stats-list { gap: 0; }
.onw-stats-mini .osk-stats-list li {
	display: flex; align-items: center; justify-content: space-between;
	background: transparent;
	border: 0;
	border-bottom: 1px dashed var(--onw-border);
	border-radius: 0;
	padding: 7px 2px;
	font-size: 12.5px;
}
.onw-stats-mini .osk-stats-list li:last-child { border-bottom: 0; }
.onw-stats-mini .osk-stats-list li b { color: var(--onw-text); font-variant-numeric: tabular-nums; font-size: 14px; }

/* ---------- صفحه خبر ---------- */
.onw-single-container { max-width: 1120px; }
.onw-breadcrumb {
	font-size: 12.5px;
	color: var(--onw-text-2);
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.onw-bc-sep { opacity: .4; }
.onw-single-layout { display: block; }
.onw-article {
	background: var(--onw-surface);
	border: 1px solid var(--onw-border);
	border-radius: 18px;
	padding: 30px 32px;
}
.onw-article-header { margin-bottom: 20px; }
.onw-article-title { font-size: 28px; line-height: 1.55; font-weight: 700; margin: 14px 0 12px; }
.onw-article-lead {
	font-size: 16px;
	color: var(--onw-text-2);
	background: var(--onw-surface-2);
	border-right: 4px solid var(--onw-primary);
	border-radius: 10px;
	padding: 14px 18px;
	margin: 0 0 18px;
}
.onw-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	font-size: 12.5px;
	color: var(--onw-text-2);
}
.onw-article-tools { display: flex; gap: 8px; margin-top: 14px; }
.onw-tool-btn {
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	color: var(--onw-text);
	border-radius: 10px;
	padding: 4px 14px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: all .2s ease;
}
.onw-tool-btn:hover { border-color: var(--onw-primary); color: var(--onw-primary); }
.onw-article-thumb { margin: 0 0 24px; }
.onw-article-thumb img { width: 100%; border-radius: 14px; display: block; }
.onw-article-thumb figcaption { font-size: 12px; color: var(--onw-text-2); margin-top: 10px; text-align: center; }

/* دکمه علاقه‌مندی */
.onw-bookmark-btn {
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	color: var(--onw-text-2);
	border-radius: 10px;
	padding: 4px 14px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: all .2s ease;
}
.onw-bookmark-btn:hover { border-color: var(--onw-primary); color: var(--onw-primary); }
.onw-bookmark-btn.onw-active { background: color-mix(in srgb, var(--onw-primary) 16%, transparent); border-color: var(--onw-primary); color: var(--onw-primary); }

.onw-entry-content { font-size: 16px; line-height: 2.15; }
.onw-entry-content p { margin: 0 0 20px; }
.onw-entry-content h2, .onw-entry-content h3, .onw-entry-content h4 { line-height: 1.7; margin: 30px 0 14px; }
.onw-entry-content h2 { font-size: 21px; }
.onw-entry-content h3 { font-size: 18px; }
.onw-entry-content img { border-radius: 12px; }
.onw-entry-content figure { margin: 22px 0; }
.onw-entry-content figcaption { font-size: 12.5px; color: var(--onw-text-2); text-align: center; margin-top: 8px; }
.onw-entry-content blockquote {
	margin: 22px 0;
	padding: 16px 22px;
	background: var(--onw-surface-2);
	border-right: 4px solid var(--onw-primary);
	border-radius: 10px;
	color: var(--onw-text);
}
.onw-entry-content ul, .onw-entry-content ol { padding-right: 24px; margin: 0 0 20px; }
.onw-entry-content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.onw-entry-content th, .onw-entry-content td { border: 1px solid var(--onw-border); padding: 9px 14px; text-align: right; }
.onw-entry-content th { background: var(--onw-surface-2); }
.onw-entry-content a { color: var(--onw-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--onw-primary) 40%, transparent); }

.onw-source-box {
	margin-top: 24px;
	font-size: 13px;
	color: var(--onw-text-2);
	background: var(--onw-surface-2);
	border: 1px dashed var(--onw-border-2);
	border-radius: 10px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.onw-source-link { color: var(--onw-primary); font-weight: 500; }
.onw-tags { margin-top: 20px; font-size: 13px; color: var(--onw-text-2); }
.onw-tags a {
	color: var(--onw-text-2);
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	padding: 2px 12px;
	border-radius: 18px;
	display: inline-block;
	margin: 2px;
}
.onw-tags a:hover { color: var(--onw-primary); border-color: var(--onw-primary); }

.onw-share {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--onw-border);
	flex-wrap: wrap;
}
.onw-share-label { font-size: 13px; color: var(--onw-text-2); }
.onw-share-btn {
	border: 1px solid var(--onw-border);
	background: var(--onw-surface-2);
	color: var(--onw-text);
	border-radius: 20px;
	padding: 5px 18px;
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
	transition: all .2s ease;
}
.onw-share-btn:hover { background: var(--onw-primary); border-color: var(--onw-primary); color: #fff; }

.onw-progress {
	position: fixed;
	top: 0; right: 0; left: 0;
	height: 3px;
	background: transparent;
	z-index: 200;
	pointer-events: none;
}
#onw-progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--onw-breaking), var(--onw-primary));
}

/* ---------- مرتبط و دیدگاه ---------- */
.onw-related { margin-top: 34px; }
.onw-comment-list { list-style: none; padding: 0; margin: 0 0 26px; }
.onw-comment-list li { margin-bottom: 14px; }
.onw-comment-list .comment-body {
	background: var(--onw-surface);
	border: 1px solid var(--onw-border);
	border-radius: var(--onw-radius);
	padding: 16px 18px;
}
.onw-comment-list .comment-meta { font-size: 12px; color: var(--onw-text-2); margin-bottom: 8px; }
.onw-comment-list .avatar { border-radius: 50%; margin-left: 8px; vertical-align: middle; }
.onw-comment-list ul.children { list-style: none; margin: 14px 0 0 0; padding-right: 28px; }
.comment-form p { margin: 0 0 14px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
	width: 100%;
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	border-radius: 12px;
	color: var(--onw-text);
	font: inherit;
	padding: 11px 15px;
	outline: none;
	transition: border-color .2s ease;
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--onw-primary); }
.onw-submit-btn, .comment-form .submit {
	background: linear-gradient(135deg, var(--onw-primary), color-mix(in srgb, var(--onw-primary) 72%, #6d0c20));
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 11px 30px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: filter .2s ease, transform .15s ease;
}
.onw-submit-btn:hover, .comment-form .submit:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* ---------- صفحه‌بندی / خالی / ۴۰۴ ---------- */
.pagination, .onw-pagination { margin: 30px 0; }
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers {
	display: inline-block;
	padding: 7px 16px;
	background: var(--onw-surface);
	border: 1px solid var(--onw-border);
	border-radius: 10px;
	font-size: 13.5px;
	color: var(--onw-text);
	transition: all .2s ease;
}
.page-numbers.current { background: var(--onw-primary); border-color: var(--onw-primary); color: #fff; }
.page-numbers:hover:not(.current) { border-color: var(--onw-primary); color: var(--onw-primary); }
.onw-empty {
	background: var(--onw-surface);
	border: 1px solid var(--onw-border);
	border-radius: var(--onw-radius);
	padding: 48px 20px;
	text-align: center;
	color: var(--onw-text-2);
}
.onw-empty .onw-searchform { max-width: 420px; margin: 18px auto 0; }
.onw-404 { text-align: center; padding: 40px 0; }
.onw-404-code {
	font-size: 100px;
	font-weight: 700;
	background: linear-gradient(180deg, var(--onw-primary), color-mix(in srgb, var(--onw-primary) 30%, transparent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin: 0;
	line-height: 1.2;
}
.onw-404 .onw-searchform { max-width: 440px; margin: 22px auto 44px; }
.onw-archive-head { margin-bottom: 26px; }
.onw-archive-desc { color: var(--onw-text-2); font-size: 14px; margin: 0; }

/* ---------- فوتر ---------- */
.onw-footer {
	background: #08080a;
	border-top: 1px solid var(--onw-border);
	margin-top: 24px;
}
html[data-theme="light"] .onw-footer { background: #101116; }
.onw-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 32px;
	padding-top: 42px;
	padding-bottom: 32px;
}
.onw-footer-name {
	font-size: 19px; font-weight: 700; color: #fff;
	display: block; margin-bottom: 6px;
}
.onw-footer-about p { color: #8d8d97; font-size: 13.5px; }
.onw-footer h4 { font-size: 15px; margin: 0 0 16px; color: #fff; }
.onw-footer-menu, .onw-socials { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.onw-footer-menu a, .onw-socials a { font-size: 13.5px; color: #8d8d97; }
.onw-footer-menu a:hover, .onw-socials a:hover { color: var(--onw-primary); }
.onw-footer-bottom { border-top: 1px solid var(--onw-border); padding: 16px 0; }
.onw-footer-bottom p { margin: 0; font-size: 12.5px; color: #77777f; text-align: center; }

.onw-back-top {
	position: fixed;
	bottom: 24px; left: 24px;
	width: 46px; height: 46px;
	border-radius: 14px;
	background: var(--onw-surface);
	border: 1px solid var(--onw-border-2);
	color: var(--onw-text);
	font-size: 18px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .25s ease;
	z-index: 90;
	box-shadow: var(--onw-shadow);
}
.onw-back-top:hover { background: var(--onw-primary); border-color: var(--onw-primary); color: #fff; }
.onw-back-top.onw-show { opacity: 1; visibility: visible; transform: none; }

/* ---------- بنرها ---------- */
.osk-banner { margin: 18px 0; }
.osk-banner:first-child { margin-top: 0; }
.osk-banner img { border-radius: 14px; box-shadow: var(--onw-shadow); }
#onm-sources-panel + .osk-banner { margin-top: 10px; }

/* ---------- ورود / عضویت / حساب کاربری ---------- */
.osk-auth-wrap { max-width: 940px; margin: 34px auto; }
.osk-auth-box {
	background: var(--onw-surface);
	border: 1px solid var(--onw-border);
	border-radius: 18px;
	padding: 30px;
	box-shadow: var(--onw-shadow);
}
.osk-auth-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.osk-auth-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
.osk-auth-col { min-width: 0; }
.osk-field { display: block; margin-bottom: 14px; }
.osk-field span { display: block; font-size: 13px; color: var(--onw-text-2); margin-bottom: 6px; }
.osk-field input[type="text"], .osk-field input[type="password"], .osk-field input[type="email"], .osk-field textarea {
	width: 100%;
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	border-radius: 11px;
	color: var(--onw-text);
	padding: 11px 14px;
	font: inherit;
	outline: none;
	transition: border-color .2s ease;
}
.osk-field input:focus, .osk-field textarea:focus { border-color: var(--onw-primary); }
.osk-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--onw-text-2); margin-bottom: 14px; cursor: pointer; }
.osk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: linear-gradient(135deg, var(--onw-primary), color-mix(in srgb, var(--onw-primary) 72%, #6d0c20));
	color: #fff;
	border: 0;
	border-radius: 11px;
	padding: 11px 26px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: filter .2s ease, transform .15s ease;
	text-decoration: none;
}
.osk-btn:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }
.osk-btn-ghost {
	background: var(--onw-surface-2);
	color: var(--onw-text);
	border: 1px solid var(--onw-border);
}
.osk-btn-ghost:hover { color: var(--onw-primary); border-color: var(--onw-primary); filter: none; }
.osk-msg { padding: 11px 16px; border-radius: 11px; font-size: 13.5px; margin-bottom: 14px; border: 1px solid transparent; }
.osk-msg.ok { background: color-mix(in srgb, var(--onw-up) 12%, transparent); color: var(--onw-up); border-color: color-mix(in srgb, var(--onw-up) 30%, transparent); }
.osk-msg.err { background: color-mix(in srgb, var(--onw-down) 12%, transparent); color: var(--onw-down); border-color: color-mix(in srgb, var(--onw-down) 30%, transparent); }
.osk-auth-note { font-size: 12.5px; color: var(--onw-text-2); margin: 10px 0 0; }

/* پروفایل */
.osk-profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.osk-profile-avatar img { border-radius: 50%; border: 2px solid var(--onw-border-2); display: block; }
.osk-profile-id { flex: 1; min-width: 200px; }
.osk-profile-name { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.osk-bookmark-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.osk-bookmark-list li {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	border-radius: 11px;
	padding: 10px 14px;
}
.osk-bookmark-list a { font-size: 13.5px; font-weight: 500; flex: 1; min-width: 0; }
.osk-bookmark-list .onw-bookmark-btn { padding: 3px 12px; flex-shrink: 0; }

/* دکمه ورود در هدر */
.onw-login-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: linear-gradient(135deg, var(--onw-primary), color-mix(in srgb, var(--onw-primary) 70%, #7a1030));
	color: #fff;
	border-radius: 11px;
	padding: 9px 20px;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--onw-primary) 30%, transparent);
	transition: transform .15s ease, box-shadow .15s ease, filter .2s ease;
	white-space: nowrap;
}
.onw-login-btn:hover {
	color: #fff;
	transform: translateY(-1px);
	filter: brightness(1.1);
	box-shadow: 0 7px 18px color-mix(in srgb, var(--onw-primary) 40%, transparent);
}
.onw-login-btn-ghost {
	background: var(--onw-surface-2);
	color: var(--onw-text);
	border: 1px solid var(--onw-border);
	box-shadow: none;
}
.onw-login-btn-ghost:hover { color: var(--onw-primary); box-shadow: none; filter: none; }
.onw-login-btn-user { background: var(--onw-surface-2); color: var(--onw-text); border: 1px solid var(--onw-border); box-shadow: none; font-weight: 500; }
.onw-login-btn-user:hover { color: var(--onw-primary); box-shadow: none; transform: none; filter: none; }
@media (max-width: 480px) {
	.onw-login-btn { padding: 8px 13px; font-size: 12.5px; }
}

/* قبلی / بعدی */
.onw-prevnext {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 26px 0 8px;
}
.onw-prevnext-item {
	background: var(--onw-surface-2);
	border: 1px solid var(--onw-border);
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 13px;
	line-height: 1.8;
	overflow: hidden;
	transition: border-color .2s ease;
}
.onw-prevnext-item:hover { border-color: var(--onw-border-2); }
.onw-prevnext-item a { display: block; color: var(--onw-text); font-weight: 500; }
.onw-prevnext-item a:hover { color: var(--onw-primary); }
.onw-prevnext-next { text-align: left; }
@media (max-width: 640px) { .onw-prevnext { grid-template-columns: 1fr; } }

/* لود بیشتر */
.onm-loading-dots::after {
	content: '…';
	animation: onw-dots 1.2s infinite steps(4);
}
@keyframes onw-dots {
	0% { content: ''; }
	25% { content: '.'; }
	50% { content: '..'; }
	75% { content: '...'; }
}

/* انیمیشن ورود کارت‌ها */
@keyframes onw-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}
.onw-card, .onw-list-item { animation: onw-rise .45s ease both; }

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 1024px) {
	.onw-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.onw-hero { grid-template-columns: 1fr; }
	.onw-hero-card { min-height: 330px; }
	.onw-layout-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.onw-grid-3, .onw-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.onw-header-date { display: none; }
	.onw-site-desc { display: none; }
	.onw-burger { display: inline-flex; }
	.onw-header-nav { display: none; border-top: 1px solid var(--onw-border); }
	.onw-header-nav.onw-open { display: block; }
	.onw-menu { flex-direction: column; }
	.onw-menu > li > a { padding: 12px 8px; border-bottom: 1px solid var(--onw-border); }
	.onw-menu ul { position: static; display: block; border: 0; box-shadow: none; padding-right: 16px; }
	.onw-article { padding: 20px 18px; }
	.onw-article-title { font-size: 21px; }
	.onw-footer-grid { grid-template-columns: 1fr; gap: 22px; }
	.onw-market-inner { height: auto; padding: 8px 18px; }
	.onw-trending-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.onw-grid-3, .onw-grid-4 { grid-template-columns: 1fr; }
	.onw-hero-title { font-size: 20px; }
	.onw-search-overlay { padding-top: 8vh; }
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
	.onw-market-list, .onw-breaking-list { animation: none; }
	.onw-card, .onw-list-item { animation: none; }
	* { transition: none !important; }
}

/* ویرایشگر پرونده پوسته و بلوک‌ها */
.alignwide { width: 100%; max-width: none; }
.aligncenter { margin-inline: auto; }
.wp-block-image img { border-radius: 12px; }

.onw-grid .onw-card .onw-card-title::before { content: none; }

/* ---------- پخش‌کننده ویدیوی خبرخوان (افزونه News Manager) ---------- */
.onm-video { margin: 0 0 1.5em; clear: both; }
.onm-video-player,
.onm-video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.onm-video-player video { width: 100%; height: 100%; display: block; object-fit: contain; }
.onm-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.onm-video-caption { font-size: .85rem; color: #6b7280; margin-top: .5rem; text-align: center; }
.onm-video-caption a { color: inherit; text-decoration: underline; }
