/* =========================================================
   رادار — نظام تصميم. هوية داكنة/برتقالية (نفس شعار RADAR
   الحالي). ترتيب الصفحة الرئيسية: هيرو، فانفو العراق بارز،
   فالتحقيقات، فالأخبار العامة أخيرًا.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400..700&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
	--orange:      #f4623a;
	--orange-dark: #c94a26;
	--ink:         #14141a;
	--ink-soft:    #2a2a33;
	--paper:       #f8f7f5;
	--paper-alt:   #efece8;
	--charcoal-soft: #5c5c66;
	--line:        rgba(20,20,26,.12);
	--line-strong: rgba(20,20,26,.26);

	--font-display: 'Tajawal', sans-serif;
	--font-body: 'Noto Naskh Arabic', 'Traditional Arabic', serif;

	--container: 1240px;
	--radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--font-body); font-size: 17px; line-height: 1.75; direction: rtl;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.3; margin: 0; }

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Masthead ---------- */
.masthead { background: var(--ink); border-bottom: 3px solid var(--orange); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 8px; gap: 20px; flex-wrap: wrap; }
.masthead__logo { display: flex; align-items: center; gap: 8px; }
.masthead__logo img { height: 26px; width: auto; }
.masthead__wordmark { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: #fff; }
.masthead__wordmark-ar { font-family: var(--font-display); font-size: 19px; font-weight: 900; color: #fff; letter-spacing: .3px; }

.primary-nav { flex: 1; min-width: 0; }
.primary-nav .wrap { display: flex; align-items: center; gap: 4px; padding-inline: 0; overflow-x: auto; max-width: 100%; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a {
	display: block; padding: 8px 14px; font-family: var(--font-display); font-weight: 700;
	font-size: 14.5px; white-space: nowrap; border-radius: var(--radius); color: rgba(255,255,255,.85);
}
.primary-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.primary-nav .current-menu-item > a { background: var(--orange); color: #fff; }
/* A parent menu item's own <ul class="sub-menu"> is a normal block list by
   default — inside the nav's flex row that just adds a second wrapped
   line instead of a dropdown. Hidden until hover/focus, it behaves like
   one instead. */
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
	display: none; position: absolute; top: 100%; inset-inline-start: 0;
	background: var(--ink); min-width: 190px; padding: 6px; border-radius: var(--radius);
	box-shadow: 0 12px 28px rgba(0,0,0,.35); z-index: 30;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a { white-space: normal; }
.primary-nav__search { flex-shrink: 0; position: relative; }
.primary-nav__search button {
	background: rgba(255,255,255,.1); border: none; cursor: pointer; width: 38px; height: 38px;
	border-radius: var(--radius); color: #fff; display: flex; align-items: center; justify-content: center;
}
.primary-nav__search button:hover { background: var(--orange); }
.primary-nav__search .search-form { display: none; }
.primary-nav__search.is-open .search-form { display: block; position: absolute; inset-inline-end: 0; margin-top: 8px; z-index: 20; }
.primary-nav__search.is-open .search-form input {
	width: 260px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
	font-family: var(--font-body); font-size: 15px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

/* ---------- Kickers ---------- */
.kicker {
	display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
	letter-spacing: .02em; padding: 3px 9px; border-radius: var(--radius);
	background: var(--paper-alt); color: var(--charcoal-soft); margin-bottom: 8px;
}
/* تحقيقات (مكتوبة/فيديو) عليها كيكر داكن موحّد؛ اخبار رمادي محايد */
.kicker--3 { background: var(--paper-alt); color: var(--charcoal-soft); } /* اخبار */
.kicker--8 { background: var(--ink); color: #fff; }                      /* تحقيقات مكتوبة */
.kicker--7 { background: var(--ink); color: #fff; }                      /* تحقيقات فيديو */

/* ---------- Section scaffold ---------- */
.section { padding-block: 40px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; border-top: 3px solid var(--orange); padding-top: 14px; margin-bottom: 22px; }
.section__title { font-size: clamp(22px, 2.4vw, 30px); }
.section__more { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: var(--orange-dark); white-space: nowrap; }
.section__more:hover { text-decoration: underline; }
.section--tint { background: var(--paper-alt); }
/* انفو العراق يبرز بخلفية داكنة مختلفة كليًا عن باقي الصفحة — القسم
   الوحيد المتعمد إبرازه بهذا الشكل، بطلب صريح انه "بارز بالصفحة الرئيسية" */
.section--infoiraq { background: var(--ink); color: #fff; }
.section--infoiraq .section__head { border-top-color: var(--orange); }
.section--infoiraq .section__title { color: #fff; }
.section--infoiraq .post-card__title a { color: #fff; }
.section--infoiraq .post-card__meta { color: rgba(255,255,255,.65); }
.section--infoiraq .kicker { background: var(--orange); color: #fff; }

/* ---------- Feature grid (انفو العراق: قطعة كبيرة + بطاقات) ---------- */
.feature-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.feature-grid .post-card--lead { grid-row: span 2; }
/* .post-card__media is an <a> — inline by default. Left unset, its
   interaction with aspect-ratio inside a CSS Grid item confuses the grid's
   auto row-sizing (the row measures only the media, and the title/meta
   that follow render outside the row's box instead of inside it). */
.post-card__media { display: block; }
.post-card--lead .post-card__media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); margin-bottom: 14px; }
.post-card--lead .post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card--lead .post-card__title { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; }
.post-card--lead .post-card__excerpt { opacity: .85; font-size: 15.5px; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card--card .post-card__media { aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius); margin-bottom: 12px; background: var(--paper-alt); }
.post-card--card .post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card--card .post-card__media:hover img { transform: scale(1.04); }
.post-card--card .post-card__title { font-size: 18px; }
.post-card__title a:hover { color: var(--orange-dark); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-display); font-size: 12.5px; color: var(--charcoal-soft); margin-top: 8px; opacity: .85; }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(420px, 62vh, 620px); overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,20,26,.96) 0%, rgba(20,20,26,.6) 45%, rgba(20,20,26,.08) 75%); }
.hero__content { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; }
.hero__content .wrap { width: 100%; padding-bottom: 44px; }
.hero__content .kicker { background: var(--orange); color: #fff; }
.hero__title { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.25; color: #fff; max-width: min(90%, 780px); margin-bottom: 14px; }
.hero__title a:hover { color: var(--orange); }
.hero__excerpt { color: rgba(255,255,255,.85); font-size: 18px; max-width: 62ch; margin-bottom: 16px; }
.hero__meta { color: rgba(255,255,255,.65); font-family: var(--font-display); font-size: 13px; display: flex; gap: 14px; }

/* ---------- Single article ---------- */
.single-article { max-width: 780px; margin-inline: auto; padding-block: 8px 60px; }
.single-article--report { max-width: none; padding: 0; }
.report-loading { text-align: center; padding-block: 80px; color: var(--charcoal-soft); font-family: var(--font-display); }
.single-article__header { margin-bottom: 24px; padding-top: 30px; }
.single-article__title { font-size: clamp(28px, 4vw, 42px); margin-block: 12px 16px; }
.single-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-family: var(--font-display); font-size: 13.5px; color: var(--charcoal-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 12px; margin-bottom: 24px; }

.article-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); height: clamp(360px, 56vh, 560px); overflow: hidden; background: var(--ink); margin-bottom: 4px; }
.article-hero__media { position: absolute; inset: 0; }
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.article-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,20,26,.96) 0%, rgba(20,20,26,.55) 45%, rgba(20,20,26,.05) 75%); }
.article-hero__content { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; }
.article-hero__content .wrap { width: 100%; padding-bottom: 36px; }
.article-hero__content .kicker { background: var(--orange); color: #fff; margin-bottom: 12px; }
.article-hero__title { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.3; color: #fff; max-width: min(92%, 760px); margin: 0; }

.single-article__body { font-size: 19px; line-height: 1.9; max-width: 780px; margin-inline: auto; padding-inline: 24px; }
.single-article__body p { margin: 0 0 22px; }
.single-article__body h2 { font-size: 26px; margin: 36px 0 16px; }
.single-article__body h3 { font-size: 21px; margin: 28px 0 14px; }
.single-article__body blockquote { border-inline-start: 4px solid var(--orange); background: var(--paper-alt); margin: 28px 0; padding: 18px 22px; font-family: var(--font-display); font-size: 18px; color: var(--charcoal-soft); }
.single-article__body img { border-radius: var(--radius); margin-block: 20px; width: 100%; height: auto; }
.single-article__body a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }

.related-strip { border-top: 3px solid var(--ink); margin-top: 44px; padding-top: 26px; padding-bottom: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); margin-top: 40px; }
.site-footer .wrap { padding-block: 22px 16px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 14px; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { height: 22px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { font-family: var(--font-display); font-size: 14px; color: rgba(255,255,255,.8); }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; font-family: var(--font-display); font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---------- Archive / search / page ---------- */
.archive-header { padding-block: 30px 8px; border-bottom: 3px solid var(--ink); margin-bottom: 30px; }
.archive-header__title { font-size: clamp(28px, 4vw, 40px); }
.archive-header__desc { color: var(--charcoal-soft); margin-top: 8px; max-width: 60ch; }
.pagination { display: flex; gap: 8px; justify-content: center; padding-block: 40px; font-family: var(--font-display); font-weight: 700; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--orange); color: var(--orange-dark); }
.page-content { max-width: 780px; margin-inline: auto; padding-block: 8px 60px; font-size: 18px; }
.page-content p { margin: 0 0 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.wrap { padding-inline: 20px; }
	.card-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
	.feature-grid { grid-template-columns: 1fr 1fr; }
	.feature-grid .post-card--lead { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 900px) {
	.masthead .wrap { flex-direction: column; align-items: stretch; gap: 10px; }
	.primary-nav { width: 100%; }
	.primary-nav .wrap { width: 100%; }
	.primary-nav__search { align-self: flex-end; }
	.footer-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
	.wrap { padding-inline: 16px; }
	body { font-size: 16px; }
	.card-grid { grid-template-columns: 1fr; gap: 20px; }
	.feature-grid { grid-template-columns: 1fr; }
	.hero { height: clamp(360px, 56vh, 520px); }
	.hero__title { font-size: clamp(23px, 6vw, 30px); max-width: 100%; }
	.hero__excerpt { display: none; }
	.article-hero { height: clamp(300px, 46vh, 440px); }
	.article-hero__title { font-size: clamp(21px, 5.6vw, 28px); max-width: 100%; }
	.single-article__title { font-size: clamp(24px, 6vw, 32px); }
	.single-article__body { font-size: 17px; padding-inline: 16px; }
}
