/**
 * زناتة نيوز — طبقة 2.1: شريط المناطق، مسافات الرئيسية، أقسام ملوّنة، قراءة مريحة في الهاتف.
 * تُحمَّل بعد theme.css. كل الأبعاد الجديدة ثابتة من الخادم فلا تقفز الصفحة عند التحميل.
 */

/* ========== 1) شريط المناطق ========== */
.zn2d-regions {
	background: #fff;
	border-block-end: 1px solid var(--zn-line, #e3e7ef);
}
.zn2d-regions__in {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
}
.zn2d-regions__label {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--zn-font-head, Cairo, "IBM Plex Sans Arabic", Tahoma, sans-serif);
	font-weight: 800;
	font-size: 14px;
	color: var(--zn-brand, #11318a);
	white-space: nowrap;
}
.zn2d-regions__list {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	min-width: 0;
}
.zn2d-regions__list::-webkit-scrollbar { display: none; }
.zn2d-regions__list li { flex: none; margin: 0; }
.zn2d-regions__list a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--zn-line, #e3e7ef);
	border-radius: 999px;
	background: #f5f7fb;
	color: var(--zn-ink, #101828);
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.zn2d-regions__list a:hover,
.zn2d-regions__list a:focus-visible,
.zn2d-regions__list a[aria-current] {
	background: var(--zn-brand, #11318a);
	border-color: var(--zn-brand, #11318a);
	color: #fff;
}
@media (max-width: 900px) {
	.zn2d-regions__in { gap: 8px; padding-inline-end: 0; }
	.zn2d-regions__label { font-size: 13px; }
	.zn2d-regions__label svg { display: none; }
	.zn2d-regions__list { padding-inline-end: 16px; }
	.zn2d-regions__list a { min-height: 44px; }
}

/* ========== 2) أعلى الرئيسية ========== */
/* «آخر الأخبار» يكرر عناوين الواجهة و«24 ساعة» الملاصقتين له: يُخفى في الرئيسية فقط. */
.zn2d-no-home-ticker .zn-ticker { display: none; }

/* العاجل المنتهي */
.zn-breaking[hidden] { display: none !important; }

/* الهاتف: الإعلان فوق الشعار، فيمرّ مع التمرير ويبقى الشعار والقائمة والبحث ملتصقة. */
@media (max-width: 900px) {
	.zn2d-adtop .zn-masthead { grid-template-areas: "ad ad ad" "menu brand search"; }
}

/* «24 ساعة»: زر «جميع المستجدات» بحجم لمس مريح. */
.zn2d .zn-day__all { min-height: 44px; }

/* تبويبات «زناتة والنواحي»: سطر واحد يُسحب أفقياً بدل أربعة أسطر في الهاتف. */
@media (max-width: 900px) {
	.zn2d .zn-local2 .zn-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-block-end: 4px;
	}
	.zn2d .zn-local2 .zn-tabs::-webkit-scrollbar { display: none; }
	.zn2d .zn-local2 .zn-tabs button { flex: none; white-space: nowrap; min-height: 44px; }
}

/* ========== 3) الأقسام: خلفية خفيفة بلون القسم على كامل الوحدة ========== */
.zn2d .zn-block--mini {
	background: color-mix(in srgb, var(--tone, #11318a) 4%, #fff);
	border-color: color-mix(in srgb, var(--tone, #11318a) 20%, #fff);
}
.zn2d .zn-block--mini > .zn-sec-head {
	background: color-mix(in srgb, var(--tone, #11318a) 9%, #fff);
	border-start-start-radius: inherit;
	border-start-end-radius: inherit;
}

/* ========== 4) زناتة TV: مدة الفيديو والفيديو المختار ========== */
.zn2d-dur {
	position: absolute;
	inset-block-end: 6px;
	inset-inline-end: 6px;
	z-index: 3;
	padding: 3px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, .8);
	color: #fff;
	font: 600 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	direction: ltr;
	pointer-events: none;
}
.znx-stage > .zn2d-dur { inset-block-end: 12px; inset-inline-end: 12px; font-size: 13px; padding: 4px 8px; }
.znx-stage.is-playing > .zn2d-dur,
.znx-stage:has(.znx-msg, .znr-yt-consent, iframe) > .zn2d-dur { display: none; }

/* الهاتف: عمود المشغّل كان يتمدد إلى 372px داخل حاوية 273px فيُقصّ الفيديو ونافذة التشغيل من اليسار. */
@media (max-width: 781px) {
	.zn2d .znx-player { grid-template-columns: minmax(0, 1fr); }
	.zn2d .znx-stage-wrap { min-width: 0; max-width: 100%; }
}
.znx-thumb { position: relative; }

/* ========== 5) المقال والبحث ========== */
.zn2d-rel { margin-block-start: 28px; }
.zn2d .zn-card--row .zn2d-chip { margin-block-end: 6px; }

/* نموذج البحث في الهاتف: خانة الكتابة في سطر كامل، ثم الجماعة وزر البحث (كانت الخانة تنضغط إلى 36px). */
@media (max-width: 600px) {
	.zn2d .zn-archive-head .zn-search--block { flex-wrap: wrap; border-radius: 16px; }
	.zn2d .zn-archive-head .zn-search--block input[type="search"] {
		flex: 1 1 100%;
		min-height: 48px;
		border-block-end: 1px solid var(--zn-line, #e3e7ef);
	}
	.zn2d .zn-archive-head .zn-search--block .zn-search__commune { flex: 1 1 0; min-width: 0; min-height: 48px; }
	.zn2d .zn-archive-head .zn-search--block button { flex: none; min-height: 48px; }
}

@media (pointer: coarse) {
	.zn2d [class*="zn-share"] a,
	.zn2d [class*="zn-share"] button { min-width: 44px; min-height: 44px; }
	.zn2d .zn-totop { width: 44px; height: 44px; }
}

/* ========== 6) «24 ساعة»: توقيت مقروء وقائمة تدخل كاملة ========== */
/* كان التوقيت أبيض على أصفر فاتح (غير مقروء)، والوقت يظهر بلا تاريخ، والخبران الأخيران مقصوصان. */
.zn2d .zn-day__list { overflow-y: auto; scrollbar-width: none; }
.zn2d .zn-day__list::-webkit-scrollbar { display: none; }
.zn2d .zn-day__list li {
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	padding: 5px 0;
	align-items: center;
}
.zn2d .zn-day__list li a { line-height: 1.55; }
.zn2d .zn-day__list time { width: auto; min-width: 58px; padding: 0; background: transparent; }
.zn2d .zn-day__list .zn-flip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: auto;
	height: auto;
}
.zn2d .zn-day__list .zenata-time-pill {
	display: flex !important;
	background: var(--zn-brand, #11318a);
	color: #fff;
	font-size: 12px;
	padding: 3px 9px;
}
.zn2d .zn-day__list .zn-b {
	display: block !important;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	color: #475467;
	direction: ltr;
}
/* ========== 7) إعلان التهنئة فوق الهيدر ========== */
.zn2h-greet { text-align: center; }
.zn2h-greet--gold { background: #fdf0c4; color: #4a3200; }
.zn2h-greet--green { background: #0f7a3d; color: #fff; }
.zn2h-greet--navy { background: #0d1b45; color: #fff; }
.zn2h-greet--red { background: #c8102e; color: #fff; }
.zn2h-greet--text .zn-wrap { padding-block: 10px; }
.zn2h-greet__text { display: block; font-family: var(--zn-font-head, Cairo, "IBM Plex Sans Arabic", Tahoma, sans-serif); font-weight: 800; font-size: 18px; line-height: 1.6; }
.zn2h-greet__link { display: block; color: inherit; text-decoration: none; }
.zn2h-greet--image .zn-wrap { padding-block: 8px; }
.zn2h-greet__img { display: block; width: auto; max-width: 100%; height: auto; max-height: 170px; margin-inline: auto; border-radius: 10px; }
@media (max-width: 700px) {
	.zn2h-greet__text { font-size: 15px; }
	.zn2h-greet__img { max-height: 110px; }
}