/* Zenata News 2.6 additions (loaded after style.css; the 2.5 look is unchanged). */

/* White logo on the white masthead: a navy plate behind it so it stays visible. */
.zn-logo-light .zn-brand .custom-logo-link,
.zn-logo-light .zn-drawer__head .custom-logo-link { background: var(--navy); border-radius: 12px; padding: 6px 12px; }
.zn-logo-light .zn-brand .custom-logo { height: 74px; }

/* Commune tabs: small round photo of each commune. */
.zn-tabs [role=tab] { display: inline-flex; align-items: center; gap: 6px; }
.zn-tab__img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--white); }

/* Article: category + commune chips, breadcrumb list, reading tools, photo credit. */
.zn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.zn-chip--place { display: inline-flex; align-items: center; gap: 4px; background: #fff6d6; color: var(--navy-900); }
.zn-chip--place .zn-icon { width: 15px; height: 15px; }
.zn-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.zn-crumbs li + li::before { content: "/"; margin-inline-end: 4px; color: var(--line); }
.zn-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.zn-tools__btn { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper, #fff); color: var(--navy-900); font: 700 13.5px/1 var(--f-body); cursor: pointer; }
.zn-tools__btn:hover { border-color: var(--navy); }
.zn-tools__btn .zn-icon { width: 16px; height: 16px; }
.zn-tools__btn[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.zn-tools__btn[aria-pressed="true"] .zn-icon { fill: currentColor; }
.zn-content { font-size: var(--zn-fs, 19px); }
.zn-article__figure figcaption .zn-credit { display: block; font-size: 12px; opacity: .8; }
.zn-toast { position: fixed; bottom: 20px; left: 50%; z-index: 99; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--navy-900); color: #fff; padding: 9px 16px; border-radius: 8px; transition: .2s; }
.zn-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Search by commune. */
.zn-search__commune { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--white); font: inherit; }

/* Ads from زناتة Core inside the theme's spots. */
.zn-masthead__ad .znc-ad-wrap { margin: 0; width: 100%; }
.znc-ad-wrap { margin-block: 18px; }
.zn-sidebar .znc-ad-wrap, .zn-layout__side .znc-ad-wrap { margin-top: 0; }

/* «فريق العمل» inside the theme. */
.znc-team__item { border-radius: var(--radius, 14px); }
.znc-team__name a { color: var(--navy-900); }

/* 2.6.1 ------------------------------------------------------------------ */

/* Original logo: steady size, sharp on both screens (the plate keeps the white logo readable). */
.zn-brand .custom-logo { width: auto; max-width: 100%; object-fit: contain; }
.zn-logo-light .zn-brand .custom-logo { height: 70px; }
@media (max-width: 640px) {
	.zn-logo-light .zn-brand .custom-logo { height: 52px; }
	.zn-logo-light .zn-brand .custom-logo-link { padding: 5px 10px; border-radius: 10px; }
}

/* «زناتة تيفي»: in-place player and a clear play button. */
.zn-tvx__media.is-playing { position: relative; aspect-ratio: 16 / 9; background: #000; }
.zn-tvx__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zn-tvx__media[data-yt], .zn-tvx__thumb[data-yt] { cursor: pointer; }
.zn-tvx__media img, .zn-tvx__thumb img { object-fit: cover; }

/* Mini sections: equal blocks — same height in a row, same picture size, titles on a fixed number of lines. */
.zn-cols3--mini { align-items: stretch; }
.zn-cols3--mini > .zn-block { display: flex; flex-direction: column; height: 100%; }
.zn-cols3--mini .zn-block__body { flex: 1; }
.zn-cols3--mini .zn-block__body > .zn-card--row:first-child .zn-card__media { aspect-ratio: 16 / 9; height: auto; max-height: none; }
.zn-cols3--mini .zn-block__body > .zn-card--row:first-child .zn-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 3.2em; }
.zn-cols3--mini .zn-card--bullet .zn-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.zn-cols3--mini .zn-card--bullet .zn-card__title a { display: inline; }

/* Duty pharmacies: a calm green signal light on the service card. */
.zn-svc__card.is-pharmacy { position: relative; }
.zn-svc__card.is-pharmacy::after { content: ""; position: absolute; top: 12px; inset-inline-end: 12px; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: zn-duty 2.4s ease-out infinite; }
@keyframes zn-duty {
	0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
	70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* 2.6.8 — newsletter as one small row at the bottom of the footer. */
.zn-nlmini { border-top: 1px solid rgba(255, 255, 255, .1); color: #c3cdea; }
.zn-nlmini__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-block: 10px; }
.zn-nlmini h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: #fff; white-space: nowrap; }
.zn-nlmini h2 .zn-icon { width: 18px; height: 18px; color: var(--yellow, #f7c600); }
.zn-nlmini .zn-newsletter { flex: 1; min-width: 240px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.zn-nlmini .zn-input-icon { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 8px; padding: 0 10px; color: #5b6b85; }
.zn-nlmini .zn-input-icon .zn-icon { width: 16px; height: 16px; }
.zn-nlmini input[type=email] { flex: 1; min-width: 0; min-height: 36px; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: #0a1f4d; }
.zn-nlmini .zn-input-icon:focus-within { box-shadow: 0 0 0 2px var(--yellow, #f7c600); }
.zn-nlmini .zn-newsletter button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--yellow, #f7c600); color: var(--navy-900, #0a1f4d); font-weight: 800; font-size: 13.5px; cursor: pointer; }
.zn-nlmini .zn-nl-consent { flex-basis: 100%; display: flex; gap: 6px; align-items: center; margin: 0; font-size: 12px; opacity: .85; }
.zn-nlmini .zn-alert { flex-basis: 100%; margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 13px; }
/* Footer in the paper's colours. The white logo sits straight on the navy footer (a white plate hid it). */
.zn-footer { border-top: 4px solid var(--yellow, #f7c600); }
.zn-logo-light .zn-footer__logo { background: transparent; padding: 0; }
.zn-logo-light .zn-footer__logo .custom-logo { height: 64px; }
.zn-footer__col h2 { position: relative; padding-bottom: 8px; }
.zn-footer__col h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--yellow, #f7c600); }

/* 2.6.7 — compact newsletter and footer on phones (they took more than a full screen). */
@media (max-width: 640px) {
	.zn-footer__grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-block: 16px 8px; font-size: 13.5px; }
	.zn-footer__about { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
	.zn-footer__about > p { display: none; }
	.zn-footer__logo { margin: 0; }
	.zn-footer__logo .custom-logo { height: 40px !important; }
	.zn-footer__col h2 { font-size: 15px; margin: 0 0 6px; padding-bottom: 5px; }
	.zn-footer__col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin: 0; padding: 0; }
	.zn-footer__col li { line-height: 1.9; }
	.zn-footer__col:first-of-type { grid-column: 1 / -1; }
	.zn-footer__col:first-of-type ul { grid-template-columns: repeat(3, 1fr); }
	.zn-footer__col .zn-contact { display: block; }
	.zn-footer__bottom { padding: 6px 0 16px; }
	/* 2.6.8: contact on two short lines, newsletter on its small row. */
	.zn-footer__col .zn-contact { display: flex; flex-wrap: wrap; gap: 0 14px; }
	.zn-footer__col .zn-contact li:last-child { display: none; }
	.zn-footer__col li { line-height: 1.75; }
	.zn-nlmini__in { padding-block: 8px; }
	.zn-nlmini h2 { font-size: 13px; }
}
/* 2.6.8: the app banner is a slim strip, and while it shows the page gets room below so it never hides the footer. */
.zn-appbar { padding: 6px 10px; gap: 8px; }
.zn-appbar__logo img { width: 56px; }
.zn-appbar__txt strong { font-size: 13.5px; }
.zn-appbar__txt span { font-size: 11.5px; }
.zn-appbar__btn { padding: 6px 12px; font-size: 13px; }
body:has(.zn-appbar:not([hidden])) { padding-bottom: 84px; }

/* 2.6.8: a lower footer on large screens too. */
@media (min-width: 641px) {
	.zn-footer__grid { padding-block: 22px 12px; gap: 18px 28px; }
	.zn-footer__about > p { font-size: 13.5px; line-height: 1.7; margin: 6px 0; }
	.zn-footer__col h2 { font-size: 16px; margin-bottom: 8px; }
	.zn-footer__col li { line-height: 1.8; }
	.zn-logo-light .zn-footer__logo .custom-logo, .zn-footer__logo .custom-logo { height: 46px; }
}

/* 2.6.9 — the whole footer in one strip: brand | sections | newsletter + app, then one thin line. */
.zn-footer--strip { margin-top: 0; }
/* 2.7.1: no empty band above the footer (content padding + footer margin left 60px of grey). */
.zn-main:has(+ .zn-footer--strip), .zn-main:has(+ .zn-apppro) { padding-bottom: 16px; }
.zn-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(300px, 400px); gap: 14px 28px; align-items: center; padding-block: 14px; }
.zn-strip__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.zn-strip .zn-footer__logo { margin: 0; padding: 3px 8px; }
.zn-strip .zn-footer__logo .custom-logo { height: 40px !important; }
.zn-strip .zn-social { gap: 4px; }
.zn-strip .zn-social a { width: 28px; height: 28px; }
.zn-strip .zn-social .zn-icon { width: 15px; height: 15px; }
.zn-strip__links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.zn-strip__links a, .zn-strip__pages a, .zn-strip__contact a { color: #dbe3f7; text-decoration: none; }
.zn-strip__links a:hover, .zn-strip__pages a:hover, .zn-strip__contact a:hover { color: var(--yellow, #f7c600); }
.zn-strip__side { display: grid; gap: 8px; }
.zn-strip .zn-nlmini { border: 0; }
.zn-strip .zn-nlmini__in { max-width: none; padding: 0; margin: 0; }
.zn-strip .zn-nlmini h2 { display: none; }
.zn-strip .zn-newsletter button { order: 2; }
.zn-strip .zn-nl-consent { order: 3; }
.zn-strip__app { display: flex; flex-wrap: wrap; gap: 6px; }
.zn-strip__app .zn-play-btn { padding: 4px 10px; border-radius: 8px; gap: 6px; }
.zn-strip__app .zn-play-btn span { font-size: 12.5px; }
.zn-strip__app .zn-play-btn small { font-size: 9px; }
.zn-strip__app .zn-play-btn svg { width: 16px; height: 16px; }
.zn-footer--strip .zn-footer__bottom { padding: 8px 0; font-size: 12.5px; }
.zn-footer--strip .zn-footer__bottom-in { align-items: center; gap: 4px 18px; }
.zn-strip__pages { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.zn-strip__pages li { display: inline; list-style: none; }
.zn-strip__contact { display: inline-flex; flex-wrap: wrap; gap: 2px 14px; }
@media (max-width: 900px) {
	.zn-strip { grid-template-columns: 1fr; gap: 10px; padding-block: 12px; }
	.zn-strip__brand { flex-direction: row; justify-content: space-between; align-items: center; }
	.zn-strip__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 10px; font-size: 13.5px; line-height: 1.9; }
	.zn-footer--strip .zn-footer__bottom-in { justify-content: center; text-align: center; }
}

/* 2.6.5 — article page ----------------------------------------------------- */

/* Author: round picture (photo or initials) beside «بقلم» and the name. */
.zn-article__meta { align-items: center; }
.zn-author { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.zn-author__pic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--navy, #11318a), #2563eb); box-shadow: 0 0 0 3px var(--white, #fff), 0 0 0 5px #1d4ed8; }
.zn-author__img { width: 100%; height: 100%; object-fit: cover; }
.zn-author__initials { color: #fff; font: 800 16px/1 var(--f-head, inherit); letter-spacing: .5px; }
.zn-author__txt { display: flex; flex-direction: column; line-height: 1.3; }
.zn-author__txt small { font-size: 12px; color: var(--muted, #64748b); }
.zn-author__txt strong { font-size: 15.5px; color: var(--navy, #11318a); }
a.zn-author:hover strong { text-decoration: underline; text-underline-offset: 4px; }
/* The meta row styles every <span> as an icon+text row; the author parts keep their own layout. */
.zn-article__meta .zn-author__pic { display: grid; place-items: center; gap: 0; }
.zn-article__meta .zn-author__initials { display: block; width: 100%; text-align: center; }
.zn-article__meta .zn-author__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }

/* Share icons in each network's colour, everywhere. */
.zn-share a, .zn-share button { border: 0; color: #fff; }
.zn-share .is-fb { background: #1877f2; }
.zn-share .is-wa { background: #25d366; }
.zn-share .is-x { background: #111; }
.zn-share .is-tg { background: #229ed9; }
.zn-share .is-in { background: #0a66c2; }
.zn-share .is-mail { background: #ea4335; }
.zn-share .is-native { background: var(--ink-2, #2b3449); }
.zn-share .is-copy { background: var(--navy, #11318a); }
.zn-share .is-copy.is-done { background: #128c4a; }
.zn-share a:hover, .zn-share button:hover { color: #fff; filter: brightness(1.1); box-shadow: 0 6px 14px rgba(15, 23, 42, .18); }

/* 2.7.2 — one of each share action: networks under the title and at the end of the article; the
   short link only in the reading tools; no second «share» button (top row on phones, floating one). */
.zn-share .is-copy, .zn-share li:has(> .is-copy) { display: none !important; }
.zn-share--full .zn-share__native { display: none !important; }
.zn-fshare { display: none !important; }

/* «استمع إلى الخبر» stands out as the first reading tool. */
.zn-tools__listen { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.zn-tools__listen:hover { background: #11318a; border-color: #11318a; }
.zn-tools__listen .zn-icon { width: 18px; height: 18px; }
.zn-tools__listen[aria-pressed="true"] { background: #0a1f4d; border-color: #0a1f4d; }
.zn-tools__btn:focus-visible { outline: 3px solid var(--yellow, #f7c600); outline-offset: 2px; }
.zn-tools [hidden] { display: none !important; }

/* Article text: a calm reading font, comfortable size and spacing. */
.zn-content { font-family: "Noto Naskh Arabic", var(--f-body, "IBM Plex Sans Arabic"), serif; font-size: var(--zn-fs, 21px); line-height: 2.05; color: #1b2333; letter-spacing: 0; }
.zn-content p { margin: 0 0 1.25em; }
.zn-content h2, .zn-content h3, .zn-content h4 { font-family: var(--f-head, inherit); color: var(--navy-900, #0a1f4d); line-height: 1.6; }
.zn-content h2 { font-size: 1.25em; padding-inline-start: 12px; border-inline-start: 4px solid var(--yellow, #f7c600); }
.zn-content strong, .zn-content b { color: #0f172a; }
/* Text pasted from other sites: a paragraph tagged as a main heading, or carrying its own font,
   size and colour, reads like the rest of the article. */
.zn-content h1 { font-family: inherit; font-size: 1.05em; font-weight: 600; line-height: inherit; margin: 0 0 1.25em; color: inherit; }
.zn-content span[style*="font-family"], .zn-content span[style*="font-size"], .zn-content p[style*="font-family"] { font-family: inherit !important; font-size: inherit !important; }
.zn-content span[style*="color: #1f2937"], .zn-content span[style*="color: rgb(31, 41, 55)"] { color: inherit !important; }
.zn-content p:empty { display: none; }
@media (max-width: 640px) {
	.zn-content { font-size: var(--zn-fs, 19px); line-height: 2; }
}
html.zn-dark .zn-content { color: #e2e8f0; }
html.zn-dark .zn-content strong, html.zn-dark .zn-content b { color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.zn-toast { transition: none; }
	.zn-svc__card.is-pharmacy::after { animation: none; }
}
