/* ==========================================================
   نِبْرَا | Nibra News — main stylesheet (RTL)
   ========================================================== */

@font-face {
	font-family: "Nibra Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/noto-sans-arabic-arabic-wght-normal.woff2") format("woff2-variations"), url("../fonts/noto-sans-arabic-arabic-wght-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Nibra Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/roboto-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/roboto-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brand tokens (colors are overridable from Appearance → Customize → Nibra settings → Colors) */
:root {
	--navy: #111d38;
	--navy-2: #192844;
	--navy-3: #0b1426;
	--header: var(--navy);
	--gold: #d5b36a;
	--gold-2: #e6c98d;
	--red: #b52632;
	--red-2: #9c1f27;
	--pill-bg: #dceeff;
	--pill-ink: #1c4c74;
	--pill-hover: #cfe3f8;
	--ink: #161616;
	--ink-2: #2b2f36;
	--content: #1d2026;
	--muted: #5c5c5c;
	--muted-2: #8a8f98;
	--line: #e8e8e6;
	--page: #f2f3f5;
	--surface: #fdfdfc;
	--surface-2: #f7f8fa;
	--ph-bg: #e7ebf1;
	--input-bg: #ffffff;
	--input-line: #d9dde4;
	--band: var(--navy);
	--radius-shell: 22px;
	--radius: 14px;
	--radius-sm: 10px;
	--gutter: 14px;
	--font: "Nibra Sans", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
	--shadow: 0 1px 2px rgba(17, 29, 53, .04), 0 8px 28px rgba(17, 29, 53, .06);
	color-scheme: light;
}

/* Dark mode: chosen in the header (☾) or following the device ("system") */
html[data-theme="dark"] {
	--header: #0d1730;
	--pill-bg: #1d3354;
	--pill-ink: #bfdbff;
	--pill-hover: #25406a;
	--ink: #eceef3;
	--ink-2: #c9cfda;
	--content: #dde2ea;
	--muted: #a3adbf;
	--muted-2: #7f8aa0;
	--line: #24314c;
	--page: #070d1a;
	--surface: #0e172b;
	--surface-2: #152138;
	--ph-bg: #1a2640;
	--input-bg: #152138;
	--input-line: #2b3a5a;
	--band: #13213f;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	html:not([data-theme]) {
		--header: #0d1730; --pill-bg: #1d3354; --pill-ink: #bfdbff; --pill-hover: #25406a;
		--ink: #eceef3; --ink-2: #c9cfda; --content: #dde2ea; --muted: #a3adbf; --muted-2: #7f8aa0;
		--line: #24314c; --page: #070d1a; --surface: #0e172b; --surface-2: #152138; --ph-bg: #1a2640;
		--input-bg: #152138; --input-line: #2b3a5a; --band: #13213f; color-scheme: dark;
	}
}
html.theme-anim body, html.theme-anim .site-shell, html.theme-anim .card, html.theme-anim .pill { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.75;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.45; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; top: -60px; right: 16px; z-index: 1000;
	background: var(--gold); color: var(--navy); padding: 8px 16px; border-radius: 0 0 10px 10px; font-weight: 700;
}
.skip-link:focus { top: 0; }

.icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* ---------- Shell (the rounded card from the design) ---------- */
.site-shell {
	margin: 10px 18px 18px;
	background: var(--surface);
	border-radius: var(--radius-shell);
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(17, 29, 53, .05), var(--shadow);
	min-height: calc(100vh - 36px);
	display: flex;
	flex-direction: column;
}
.site-main { flex: 1; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { background: var(--header); color: #fff; }
.header-top {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 89px; padding-block: 12px 10px;
}
.site-logo { margin: 0; line-height: 1; font-size: inherit; }
.site-logo a { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.site-logo a:hover { color: #fff; }
.site-logo .logo-ar { font-size: 33px; font-weight: 700; line-height: 1; padding-bottom: 4px; color: #fff; }
.site-logo .logo-bar { width: 2.5px; height: 37px; background: var(--gold); border-radius: 2px; }
.site-logo .logo-en {
	font-size: 36px; font-weight: 700; color: var(--gold); letter-spacing: 0; line-height: 1;
	direction: ltr; unicode-bidi: isolate;
}
.site-logo img { max-height: 54px; width: auto; }

.header-tools { display: flex; align-items: center; gap: 6px; }
.header-date { display: none; font-size: 14px; color: rgba(255, 255, 255, .72); margin-inline-end: 10px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border: 0; background: transparent; color: #fff; border-radius: 12px;
	transition: background .2s;
}
.icon-btn .icon { width: 26px; height: 26px; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.search-toggle { display: inline-grid; }
.search-toggle .icon { width: 22px; height: 22px; }

.header-rule { height: 1px; background: rgba(255, 255, 255, .28); }

.main-nav { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-list { list-style: none; display: flex; gap: 18px; justify-content: space-between; white-space: nowrap; }
.nav-list li { flex: none; }
.nav-list a {
	display: block; padding: 21px 0 13px; font-size: 14px; font-weight: 400; color: #fff;
	position: relative; transition: color .2s;
}
.nav-list a:hover { color: var(--gold-2); }
.nav-list .is-active > a,
.nav-list .current-menu-item > a { color: var(--gold); font-weight: 600; }
.main-nav.is-overflowing { -webkit-mask-image: linear-gradient(to left, #000 88%, transparent); mask-image: linear-gradient(to left, #000 88%, transparent); }
.main-nav.is-overflowing.is-end { -webkit-mask-image: none; mask-image: none; }

.header-search { background: var(--navy-2); padding-block: 14px; }
.header-search .search-form { max-width: 640px; margin-inline: auto; }

/* ---------- Breaking bar ---------- */
.breaking { background: var(--red); color: #fff; }
.breaking-inner { display: flex; align-items: center; gap: 12px; min-height: 42px; padding-block: 8px; }
.breaking-badge {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	height: 23px; padding: 0 10px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .22);
	background: rgba(0, 0, 0, .1);
	color: #f3c0c3; font-size: 12.5px; font-weight: 600; line-height: 1;
	animation: nibra-pulse 2.4s ease-in-out infinite;
}
@keyframes nibra-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.breaking-track { position: relative; flex: 1; min-width: 0; height: 26px; overflow: hidden; }
.breaking-item {
	position: absolute; inset: 0; display: block;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	font-size: 14.5px; font-weight: 500; line-height: 26px; color: #fff;
	opacity: 0; transform: translateY(100%); transition: opacity .45s, transform .45s;
}
.breaking-item.is-active { opacity: 1; transform: none; }
.breaking-item.is-leaving { opacity: 0; transform: translateY(-100%); }
a.breaking-item:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Pills, meta, section heads ---------- */
.pill {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--pill-bg); color: var(--pill-ink);
	font-size: 14px; font-weight: 500; line-height: 1;
	padding: 5px 14px 6px; border-radius: 999px;
}
.pill a { color: inherit; }
.pill a:hover { color: var(--red); }
a.pill:hover { background: var(--pill-hover); color: var(--pill-ink); }
.pill-dot { font-weight: 700; }

.meta { color: var(--muted); font-size: 15px; line-height: 1.7; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.meta-sep { color: var(--muted-2); }

.section { padding-block: 26px; }
.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
	position: relative;
}
.section-head::after {
	content: ""; position: absolute; bottom: -1px; inset-inline-start: 0;
	width: 54px; height: 3px; background: var(--gold); border-radius: 3px;
}
.section-title { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.section-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--pill-ink); }
.section-more .icon { width: 16px; height: 16px; }

/* ---------- Media ---------- */
.lead-media, .card-media, .article-figure {
	position: relative; display: block; overflow: hidden; background: var(--ph-bg);
	aspect-ratio: 16 / 9;
}
.media-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a:hover .media-img { transform: scale(1.03); }
.media-ph {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: radial-gradient(120% 120% at 80% 0%, #24365e 0%, var(--navy) 55%, var(--navy-3) 100%);
}
.media-ph__logo { font-size: 30px; font-weight: 800; color: rgba(212, 176, 104, .55); }
.media-credit {
	position: absolute; bottom: 8px; inset-inline-start: 14px;
	font-size: 14px; font-weight: 700; color: #fff; unicode-bidi: plaintext;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .65);
}

/* ---------- Lead story (الخبر الرئيسي) ---------- */
.hero { padding-block: 12px 8px; }
.lead { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lead .pill { margin-bottom: 10px; }
.lead-media { border-radius: 14px; }
.lead-title { font-size: 27px; line-height: 1.7; font-weight: 700; margin-top: 6px; }
.lead-title a:hover { color: var(--navy-2); }
.lead-excerpt { color: var(--ink-2); font-size: 17px; margin: 10px 0 0; display: none; }
.lead .meta { margin-top: 12px; }

.hero-side { margin-top: 26px; }

/* ---------- Cards ---------- */
.card { position: relative; min-width: 0; }
.card-media { border-radius: var(--radius-sm); }
.card-body { min-width: 0; }
.card-cat { display: inline-block; font-size: 13px; font-weight: 700; color: var(--red); margin-top: 10px; line-height: 1.4; }
.card-title { font-size: 18px; line-height: 1.6; font-weight: 700; margin-top: 4px; }
.card-title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a:hover { color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.card-excerpt { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 13px; margin-top: 6px; }
.card-meta .icon { width: 14px; height: 14px; }

/* row card: thumbnail beside the title */
.card--row { display: flex; gap: 12px; align-items: flex-start; }
.card--row .card-media { flex: none; width: 118px; border-radius: 10px; }
.card--row .card-cat { margin-top: 0; }
.card--row .card-title { font-size: 16px; line-height: 1.6; margin-top: 0; }
.card--row .card-cat + .card-title { margin-top: 2px; }

.list-rows { display: flex; flex-direction: column; }
.list-rows > .card { padding-block: 14px; border-bottom: 1px solid var(--line); }
.list-rows > .card:first-child { padding-top: 0; }
.list-rows > .card:last-child { border-bottom: 0; }

/* feature card */
.card--feature .card-media { border-radius: var(--radius); }
.card--feature .card-title { font-size: 22px; line-height: 1.55; margin-top: 12px; font-weight: 800; }

/* card grid — on phones the cards become rows */
.grid-cards { display: grid; gap: 0; }
.grid-cards > .card {
	display: flex; gap: 12px; align-items: flex-start;
	padding-block: 14px; border-bottom: 1px solid var(--line);
}
.grid-cards > .card:first-child { padding-top: 0; }
.grid-cards > .card:last-child { border-bottom: 0; }
.grid-cards > .card .card-media { flex: none; width: 118px; border-radius: 10px; }
.grid-cards > .card .card-cat { margin-top: 0; }
.grid-cards > .card .card-title { font-size: 16px; margin-top: 2px; }
.grid-cards > .card .card-excerpt { display: none; }

/* ---------- Category blocks ---------- */
.cat-block { border-top: 1px solid var(--line); }
.cat-grid { display: grid; gap: 18px; }
.cat-block--dark { background: var(--band); color: #fff; border-top: 0; }
.cat-block--dark .section-head { border-color: rgba(255, 255, 255, .14); }
.cat-block--dark .section-title { color: #fff; }
.cat-block--dark .section-more { color: var(--gold); }
.cat-block--dark .card-title a:hover { color: var(--gold-2); }
.cat-block--dark .card-excerpt, .cat-block--dark .card-meta { color: rgba(255, 255, 255, .62); }
.cat-block--dark .list-rows > .card { border-color: rgba(255, 255, 255, .12); }
.cat-block--dark a:hover { color: var(--gold-2); }

/* ---------- Article ---------- */
.article-wrap { padding-block: 18px 8px; }
.article-layout { display: grid; gap: 30px; }
.article { min-width: 0; }
.article-head .pill { margin-bottom: 12px; }
.article-title { font-size: 29px; line-height: 1.5; font-weight: 800; }
.article-lead { font-size: 18px; line-height: 1.9; color: var(--ink-2); margin: 12px 0 0; font-weight: 500; }
.article-meta { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.article-meta .meta { font-size: 15px; }
.article-meta .meta-lead { font-weight: 700; color: var(--ink-2); }
.meta--sub { font-size: 14px !important; color: var(--muted-2); }
.article-figure { margin: 18px 0 0; border-radius: var(--radius); aspect-ratio: auto; background: none; }
.article-figure .media-img { border-radius: var(--radius); aspect-ratio: 16 / 9; }
.article-figure figcaption { font-size: 14px; color: var(--muted); padding: 8px 2px 0; line-height: 1.6; }

.entry-content { font-size: 18.5px; line-height: 2.05; color: var(--content); margin-top: 22px; overflow-wrap: break-word; }
.entry-content > * { margin-block: 0 1.15em; }
.entry-content h2 { font-size: 24px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content a { color: var(--pill-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-inline: 0; padding: 14px 20px; border-inline-start: 4px solid var(--gold);
	background: var(--surface-2); border-radius: 0; border-start-end-radius: 12px; border-end-end-radius: 12px; font-weight: 600; color: var(--navy);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; font-size: 14px; color: var(--muted); font-style: normal; margin-top: 6px; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: 14px; color: var(--muted); text-align: start; margin-top: 6px; }
.entry-content iframe { width: 100%; border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; }
.entry-content strong { font-weight: 800; color: var(--ink); }

.article-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; padding: 4px 12px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tag-list a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* share */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.share-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.share-list { list-style: none; display: flex; gap: 8px; }
.share-btn {
	position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px;
	border-radius: 50%; border: 0; background: var(--surface-2); color: var(--navy);
	box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, transform .2s;
}
.share-btn .icon { width: 18px; height: 18px; }
.share-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: none; }
.share-whatsapp:hover { background: #25d366; }
.share-facebook:hover { background: #1877f2; }
.share-x:hover { background: #000; }
.share-telegram:hover { background: #229ed9; }
.share-copy:hover { background: var(--navy); }
.share-copied {
	position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
	background: var(--navy); color: #fff; font-size: 12px; white-space: nowrap; padding: 2px 8px; border-radius: 6px;
	opacity: 0; pointer-events: none; transition: opacity .2s;
}
.share-copied.is-visible { opacity: 1; }

.article-side .section-head { margin-bottom: 14px; }
.related { border-top: 1px solid var(--line); margin-top: 10px; }

/* comments */
.comments { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 14px 0; }
.comment-list .comment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-inline-start: 24px; }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--muted-2); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; padding: 10px 14px; border: 1px solid var(--input-line); border-radius: 12px; background: var(--input-bg); color: var(--ink);
}
.comment-form .submit, .btn {
	display: inline-block; border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: 700;
	padding: 10px 26px 12px; border-radius: 999px; cursor: pointer;
}
.comment-form .submit:hover, .btn:hover { background: var(--red); color: #fff; }

/* ---------- Archive / search ---------- */
.archive-head { margin-bottom: 22px; }
.archive-head .pill { margin-bottom: 10px; }
.archive-title { font-size: 30px; font-weight: 800; }
.archive-desc { color: var(--muted); margin-top: 6px; font-size: 16px; }
.archive-desc p { margin: 0; }
.archive-search { margin-top: 14px; max-width: 560px; }
.archive-lead { margin-bottom: 22px; }
.archive-lead .lead { border-bottom: 0; padding-bottom: 6px; }

.pagination { margin-top: 26px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center;
	border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700;
}
.pagination .page-numbers.current { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.pagination a.page-numbers:hover { background: var(--pill-bg); color: var(--pill-ink); }

.empty-state { padding: 40px 0; color: var(--muted); text-align: center; }
.empty-state h2 { margin-bottom: 8px; color: var(--ink); }
.not-found { text-align: center; padding-block: 50px; }
.not-found-code { display: block; font-size: 88px; font-weight: 900; color: var(--gold); line-height: 1; }
.not-found .archive-search { margin: 18px auto; }

/* ---------- Search form ---------- */
.search-form { position: relative; display: flex; }
.search-field {
	width: 100%; font: inherit; font-size: 16px; padding: 10px 18px 12px 52px;
	border-radius: 999px; border: 1px solid var(--input-line); background: var(--input-bg); color: var(--ink);
	-webkit-appearance: none; appearance: none;
}
.search-field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 176, 104, .25); }
.search-submit {
	position: absolute; inset-inline-end: 5px; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy); color: #fff;
	display: grid; place-items: center;
}
.search-submit .icon { width: 18px; height: 18px; }
.search-submit:hover { background: var(--red); }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 900; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 28, .55); opacity: 0; transition: opacity .3s; }
.drawer-panel {
	position: absolute; top: 0; bottom: 0; inset-inline-start: 0;
	width: min(86vw, 360px); background: var(--header); color: #fff;
	display: flex; flex-direction: column; padding: 18px 20px 24px; overflow-y: auto;
	transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.drawer-head .logo-ar { font-size: 26px; }
.drawer-head .logo-en { font-size: 28px; }
.drawer-head .logo-bar { height: 28px; }
.drawer-head .site-logo a { gap: 12px; }
.drawer-search { margin: 16px 0 6px; }
.drawer-list { list-style: none; }
.drawer-list a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 13px 4px; font-size: 18px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.drawer-list a:hover, .drawer-list .is-active > a, .drawer-list .current-menu-item > a { color: var(--gold); }
.drawer-foot { margin-top: auto; padding-top: 20px; display: grid; gap: 12px; }
.drawer-date { color: rgba(255, 255, 255, .6); font-size: 14px; }
body.drawer-open { overflow: hidden; }

/* social */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, color .2s;
}
.social a:hover { background: var(--gold); color: var(--navy); }
.social .icon { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--header); color: rgba(255, 255, 255, .74); margin-top: 26px; }
.footer-grid { display: grid; gap: 28px; padding-block: 34px 26px; }
.footer-brand .site-logo .logo-ar { font-size: 30px; }
.footer-brand .site-logo .logo-en { font-size: 32px; }
.footer-brand .site-logo .logo-bar { height: 30px; }
.footer-about { margin: 16px 0; font-size: 15px; line-height: 1.9; max-width: 460px; }
.footer-title { font-size: 17px; color: #fff; margin-bottom: 12px; }
.footer-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; }
.footer-list a { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.footer-list a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 14px; }
.to-top {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 700;
}
.to-top:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 380px) {
	.site-shell { margin: 10px; }
	.site-logo .logo-ar { font-size: 29px; }
	.site-logo .logo-en { font-size: 32px; }
	.lead-title { font-size: 25px; }
	.nav-list { gap: 22px; }
}

@media (min-width: 640px) {
	:root { --gutter: 24px; }
	.grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
	.grid-cards > .card { display: block; padding: 0; border: 0; }
	.grid-cards > .card .card-media { width: auto; border-radius: var(--radius-sm); }
	.grid-cards > .card .card-cat { margin-top: 10px; }
	.grid-cards > .card .card-title { font-size: 18px; }
	.grid-cards > .card .card-excerpt { display: -webkit-box; }
	.lead-title { font-size: 36px; }
	.lead-excerpt { display: block; }
	.article-title { font-size: 36px; }
	.footer-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 1024px) {
	:root { --gutter: 32px; --radius-shell: 26px; }
	.site-shell { max-width: 1320px; margin: 24px auto; min-height: calc(100vh - 48px); }
	.header-top { min-height: 104px; }
	.header-date { display: inline; }
	.site-logo .logo-ar { font-size: 40px; }
	.site-logo .logo-en { font-size: 44px; }
	.site-logo .logo-bar { height: 44px; }
	.nav-list { justify-content: flex-start; gap: 38px; }
	.nav-list a { font-size: 17px; font-weight: 500; padding-block: 16px 17px; }
	.nav-list .is-active > a::after,
	.nav-list .current-menu-item > a::after {
		content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0;
	}
	.breaking-inner { min-height: 46px; }

	.hero { padding-block: 28px 10px; }
	.hero-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 40px; align-items: start; }
	.lead { border-bottom: 0; padding-bottom: 0; }
	.lead-media { border-radius: 18px; }
	.lead-title { font-size: 42px; line-height: 1.4; }
	.lead-excerpt { font-size: 18px; }
	.hero-side { margin-top: 0; padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
	.hero-side .card--row .card-media { width: 128px; }

	.section { padding-block: 34px; }
	.section-title { font-size: 24px; }
	.grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
	.grid-cards--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cat-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
	.cat-grid .card--row .card-media { width: 150px; }
	.cat-grid .card--row .card-title { font-size: 17px; }
	.card--feature .card-title { font-size: 26px; }

	.article-wrap { padding-block: 34px 10px; }
	.article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; }
	.article-title { font-size: 42px; line-height: 1.45; }
	.article-lead { font-size: 20px; }
	.entry-content { font-size: 19.5px; }
	.sticky-side { position: sticky; top: 24px; }
	.article--page { max-width: 820px; margin-inline: auto; }
	.footer-grid { padding-block: 44px 34px; }
	.footer-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.archive-lead .lead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto auto auto 1fr; column-gap: 34px; }
	.archive-lead .lead .pill { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
	.archive-lead .lead .lead-media { grid-column: 1; grid-row: 2 / 7; }
	.archive-lead .lead .lead-title { grid-column: 2; grid-row: 3; margin-top: 0; font-size: 34px; }
	.archive-lead .lead .lead-excerpt { grid-column: 2; grid-row: 4; }
	.archive-lead .lead .meta { grid-column: 2; grid-row: 5; }
}

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

/* ==========================================================
   v1.1 — tools, dark mode, bilingual, new homepage blocks
   ========================================================== */

body { background: var(--page); color: var(--ink); }
.site-shell { background: var(--surface); }
.card-title a, .lead-title a, .article-title, .section-title, .archive-title { color: var(--ink); }

/* Header tools */
.header-tools { gap: 2px; }
.header-tools .icon-btn { width: 38px; height: 38px; }
.header-tools .icon-btn .icon { width: 22px; height: 22px; }
.header-tools .menu-toggle .icon { width: 26px; height: 26px; }
.theme-toggle .icon { display: none; }
html[data-theme-pref="system"] .theme-toggle .icon-auto,
html:not([data-theme-pref]) .theme-toggle .icon-auto,
html[data-theme-pref="light"] .theme-toggle .icon-sun,
html[data-theme-pref="dark"] .theme-toggle .icon-moon { display: inline-flex; }

.lang-switch { display: inline-flex; align-items: center; }
.lang-switch__link {
	display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px;
	border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
.lang-switch__link:hover { border-color: var(--gold); color: var(--gold); }
.header-top .lang-switch { margin-inline-end: 4px; }
.lang-switch--footer .lang-switch__link { height: 28px; }

/* Drawer: language + theme choice */
.drawer-prefs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.theme-choice { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; gap: 2px; }
.theme-choice button {
	display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: rgba(255, 255, 255, .8);
	font-size: 13px; padding: 6px 10px; border-radius: 999px;
}
.theme-choice .icon { width: 15px; height: 15px; }
.theme-choice button[aria-checked="true"] { background: var(--gold); color: var(--navy); font-weight: 700; }

/* LTR (English) adjustments */
[dir="ltr"] .icon-arrow svg, [dir="ltr"] .author-box__more .icon svg { transform: scaleX(-1); }
[dir="ltr"] .main-nav.is-overflowing { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
[dir="ltr"] .drawer-panel { transform: translateX(-100%); }
[dir="ltr"] .drawer.is-open .drawer-panel { transform: none; }
[dir="ltr"] .lead-title, [dir="ltr"] .article-title { letter-spacing: -.3px; }
[dir="ltr"] .lead-title { line-height: 1.3; }
[dir="ltr"] .article-title { line-height: 1.25; }
[dir="ltr"] .entry-content { line-height: 1.8; }
[dir="ltr"] .entry-content blockquote, [dir="ltr"] .entry-content .wp-block-quote { border-radius: 0; border-start-end-radius: 12px; border-end-end-radius: 12px; }

/* Ads */
.ad-wrap { padding-block: 12px; }
.ad-slot { text-align: center; margin: 18px 0; }
.ad-slot__label { display: block; font-size: 11px; letter-spacing: .5px; color: var(--muted-2); margin-bottom: 4px; }
.ad-slot__body { display: flex; justify-content: center; overflow: hidden; }
.ad-slot__body img { border-radius: 8px; }

/* Latest + most read */
.latest { display: grid; gap: 26px; }
.most-read { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 6px; }
.most-read__tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.most-read__tab {
	border: 0; background: none; padding: 6px 4px 10px; margin-inline-end: 14px; font-size: 16px; font-weight: 800; color: var(--muted);
	border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.most-read__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.most-read__list { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.most-read__list li { counter-increment: mr; display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.most-read__list li:last-child { border-bottom: 0; }
.most-read__list li::before { content: counter(mr); grid-row: span 2; font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--gold); font-family: var(--font); }
.most-read__list a { font-weight: 700; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.most-read__list a:hover { color: var(--red); }
.most-read__meta { font-size: 12.5px; color: var(--muted-2); }
.article-side .most-read { margin-bottom: 24px; }

/* Editor's picks (horizontal on phones) */
.picks-row { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.picks-row > .card { scroll-snap-align: start; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.picks-row .card-media { border-radius: 0; }
.picks-row .card-body { padding: 4px 14px 14px; }
.picks-row .card-title { font-size: 17px; }

/* Video center */
.media-band--video { background: var(--band); color: #fff; }
.media-band--video .section-head { border-color: rgba(255, 255, 255, .14); }
.media-band--video .section-title { color: #fff; }
.media-band--video .section-more { color: var(--gold); }
.video-grid { display: grid; gap: 18px; }
.video-card__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b1426; }
.video-card__play {
	position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(181, 38, 50, .92); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
	transition: transform .2s;
}
.video-card__play .icon { width: 26px; height: 26px; margin-inline-start: 3px; }
[dir="rtl"] .video-card__play .icon { margin-inline-start: 0; margin-inline-end: 3px; }
.video-card__media:hover .video-card__play { transform: scale(1.08); }
.video-card__title { font-size: 17px; line-height: 1.6; margin-top: 10px; }
.video-card__title a { color: #fff; }
.video-card__title a:hover { color: var(--gold-2); }
.video-card:not(.video-card--main) .video-card__play { width: 42px; height: 42px; }
.video-card:not(.video-card--main) .video-card__play .icon { width: 20px; height: 20px; }

/* Photo gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--ph-bg); }
.gallery-tile--big { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery-tile .media-img { position: absolute; inset: 0; }
.gallery-tile__cap {
	position: absolute; inset-inline: 0; bottom: 0; display: flex; gap: 6px; align-items: flex-end;
	padding: 28px 12px 10px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.5;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
}
.gallery-tile__cap .icon { flex: none; width: 18px; height: 18px; opacity: .9; }
.gallery-tile:not(.gallery-tile--big) .gallery-tile__cap span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-tile:hover { color: #fff; }

/* Opinion */
.opinion-grid { display: grid; gap: 12px; }
.opinion-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.opinion-card__author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); font-size: 14px; }
.opinion-card__avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); }
.opinion-card__title { font-size: 17px; line-height: 1.6; margin-top: 10px; }
.opinion-card__title a { color: var(--ink); }

/* Newsletter */
.newsletter { background: var(--surface-2); border-top: 1px solid var(--line); margin-top: 26px; }
.newsletter-inner { display: grid; gap: 14px; padding-block: 26px; }
.newsletter-copy { display: flex; gap: 12px; align-items: flex-start; }
.newsletter-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.newsletter-icon .icon { width: 24px; height: 24px; }
.newsletter-title { font-size: 20px; }
.newsletter-text { margin: 2px 0 0; color: var(--muted); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form input[type="email"] {
	flex: 1 1 220px; min-width: 0; font: inherit; padding: 10px 16px; border-radius: 999px;
	border: 1px solid var(--input-line); background: var(--input-bg); color: var(--ink);
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(213, 179, 106, .25); }
.nl-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--navy); color: var(--gold); }
.newsletter-msg { flex-basis: 100%; margin: 0; font-size: 14px; min-height: 1.4em; }
.newsletter-msg.is-ok { color: #1f7a4d; }
.newsletter-msg.is-error { color: var(--red); }
html[data-theme="dark"] .newsletter-msg.is-ok { color: #7fd6a4; }
.site-footer { margin-top: 0; }

/* Breadcrumb */
.breadcrumb ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13.5px; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-inline-start: 6px; color: var(--muted-2); }
[dir="rtl"] .breadcrumb li:not(:last-child)::after { content: "‹"; }
.breadcrumb a { color: var(--pill-ink); font-weight: 600; }
.breadcrumb [aria-current] span { color: var(--muted); }

/* Article additions */
.article-subtitle { font-size: 19px; line-height: 1.75; font-weight: 600; color: var(--ink-2); margin: 10px 0 0; }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 4px; }
.byline__avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); }
.byline__text { display: flex; flex-direction: column; line-height: 1.4; }
.byline__name { font-weight: 800; }
.byline__place { font-size: 13.5px; color: var(--muted); }
.byline:hover .byline__name { color: var(--red); }
.meta-views { display: inline-flex; align-items: center; gap: 4px; }
.meta-views .icon { width: 15px; height: 15px; }
.figure-credit { display: inline-block; margin-inline-start: 6px; color: var(--muted-2); }
.share-print:hover { background: var(--navy); }
.author-box { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.author-box__avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; border: 2px solid var(--gold); }
.author-box__name { font-size: 17px; font-weight: 800; color: var(--ink); }
.author-box__role { display: block; font-size: 13.5px; color: var(--muted); }
.author-box__bio { margin: 6px 0; font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.author-box__more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--pill-ink); }
.author-box__more .icon { width: 16px; height: 16px; }
.archive-author { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); }
.archive-author img { border-radius: 50%; border: 2px solid var(--gold); }

/* Dark-mode polish */
html[data-theme="dark"] .site-shell { box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), var(--shadow); }
html[data-theme="dark"] .breaking-badge { background: rgba(0, 0, 0, .2); }
html[data-theme="dark"] .share-btn { color: var(--ink); }
html[data-theme="dark"] .media-credit { color: #fff; }
html[data-theme="dark"] .entry-content blockquote, html[data-theme="dark"] .entry-content .wp-block-quote { color: var(--ink); }
html[data-theme="dark"] .entry-content a, html[data-theme="dark"] .section-more, html[data-theme="dark"] .author-box__more, html[data-theme="dark"] .breadcrumb a { color: #9cc8ff; }
html[data-theme="dark"] .card-cat { color: #ff8a93; }
html[data-theme="dark"] .pagination .page-numbers.current { background: var(--gold); color: var(--navy); border-color: var(--gold); }
html[data-theme="dark"] img.media-img { filter: brightness(.94); }

@media (min-width: 640px) {
	.picks-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
	.video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.video-card--main { grid-column: 1 / -1; }
	.gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gallery-tile--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
	.opinion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.newsletter-inner { grid-template-columns: 1fr minmax(320px, 1fr); align-items: center; }
}

@media (min-width: 1024px) {
	.latest--with-side { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
	.grid-cards--latest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.video-grid { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, auto); }
	.video-card--main { grid-column: 1; grid-row: 1 / span 3; }
	.video-card--main .video-card__title { font-size: 24px; }
	.video-card:not(.video-card--main) { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
	.video-card:not(.video-card--main) .video-card__title { margin-top: 0; font-size: 15.5px; }
	.opinion-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.picks-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1.3fr 1fr 0.8fr; }
}

@media (max-width: 400px) {
	.header-tools .icon-btn { width: 34px; height: 34px; }
	.header-tools .icon-btn .icon { width: 20px; height: 20px; }
	.header-top .lang-switch { display: none; }
}

/* Print: the article only */
@media print {
	.site-header, .breaking, .drawer, .share, .article-side, .related, .newsletter, .site-footer, .ad-slot, .ad-wrap, .breadcrumb, .author-box__more, .comments, .skip-link { display: none !important; }
	body, .site-shell { background: #fff !important; color: #000 !important; margin: 0; box-shadow: none; border-radius: 0; }
	.site-shell::before { content: "نِبْرَا | NIBRA — nibranews.com"; display: block; font-weight: 800; font-size: 14pt; border-bottom: 2px solid #000; padding-bottom: 6pt; margin-bottom: 12pt; }
	.article-layout { display: block; }
	.article-title { font-size: 22pt; color: #000; }
	.entry-content { font-size: 12pt; line-height: 1.8; color: #000; }
	.entry-content a { color: #000; text-decoration: underline; }
	.entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
	.article-figure img { max-height: 9cm; width: auto; }
	.author-box { border: 1px solid #999; background: none; }
}
.cat-block--dark .card-title a, .cat-block--dark .card-title { color: #fff; }
