/* نبض — الهويّة الصحفيّة (أكتوبر ٢٠٢٦): أبيض وأسود ولونٌ أزرق واحد للأقسام. تُحمَّل بعد style.css، وتُلغى بحذف سطرها من القالب. */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 7%;
  --card: 0 0% 100%;
  --primary: 222 100% 50%;
  --accent: 222 100% 50%;
  --muted: 0 0% 96%;
  --muted-foreground: 240 2% 43%;
  --border: 0 0% 89%;
  --radius: 0;
  --grad: #111;
  --font-heading: 'Noto Naskh Arabic', serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  --nb-ink: #111; --nb-blue: #0047FF; --nb-hot: #D92D20; --nb-rule: #e3e3e3;
}
[dir="rtl"] body, [dir="rtl"] { font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }
body { background: #fff; color: var(--nb-ink); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--nb-ink); }

/* الشريط العاجل: أبيض، «عاجل» بالأحمر */
.ticker { background: #fff; color: var(--nb-ink); border-bottom: 1px solid var(--nb-rule); }
.ticker-label { background: var(--nb-hot); font-weight: 700; letter-spacing: 0; }
.ticker-items a { color: var(--nb-ink); font-family: 'Noto Naskh Arabic', serif; font-weight: 700; font-size: .9rem; }
.ticker-items a:hover { color: var(--nb-blue); background: transparent; }
.ticker-items a::before { content: "•"; color: var(--nb-hot); font-size: .9rem; }

/* الترويسة: بيضاء، والشعار أسود، وخطٌّ مزدوج تحتها */
.header, .header.scrolled { background: #fff; backdrop-filter: none; box-shadow: none; border-bottom: 3px double var(--nb-ink); }
.header .pulse-line { display: none; }
.brand { flex-direction: row; align-items: center; gap: .6rem; color: var(--nb-ink); }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.brand .word { font-family: 'Noto Naskh Arabic', serif; font-weight: 700; font-size: 1.55rem; line-height: 1.1; white-space: nowrap; }
.brand .tag { display: none; }
.nav-links a { border-radius: 0; font-weight: 600; color: var(--nb-ink); padding: .5rem .85rem; }
.nav-links a:hover { background: transparent; color: var(--nb-blue); }
.nav-links a.active { background: transparent; color: var(--nb-blue); box-shadow: inset 0 -2px 0 var(--nb-blue); }
.icon-btn { border-radius: 0; }

/* الأزرار والشارات: مربّعة بلا تدرّج ولا توهّج */
.btn, .badge, .chip, .field, .field.round { border-radius: 0 !important; }
.btn.neon-btn, .badge.neon-btn { background: var(--nb-ink); color: #fff !important; box-shadow: none; }
.btn.neon-btn:hover, .badge.neon-btn:hover { background: var(--nb-blue); box-shadow: none; }
.chip { font-weight: 600; color: var(--nb-ink); background: #fff; }
.chip.active { background: var(--nb-ink); color: #fff; }
.gradient-text { background: none; -webkit-text-fill-color: currentColor; color: var(--nb-ink); }
.pulse-line { background: var(--nb-rule); height: 1px; }

/* بطاقة الخبر: بلا إطارٍ ولا ظلّ، يفصلها خطٌّ رفيع، واسم القسم بالأزرق فوق العنوان */
.gradient-border, .card { background: #fff; border-radius: 0; box-shadow: none; }
.gradient-border::before { display: none; }
.card { border-bottom: 1px solid var(--nb-rule); padding-bottom: .5rem; }
.card:hover { transform: none; }
.card-media { border-radius: 0; background: #f2f2f2; }
.card-media img { object-fit: cover; }
.card-tags { inset-inline-start: auto; inset-inline-end: 0; top: auto; bottom: 0; left: auto; }
.card-tags .badge { background: #fff; color: var(--nb-blue); border: 0; font-weight: 700; font-size: .75rem; padding: .3rem .6rem; }
.card-body { padding: .9rem 0 0; }
.card-body h3 { font-size: 1.15rem; line-height: 1.6; }
.card:hover .card-body h3 { color: var(--nb-blue); }
.card.featured .card-body h3 { font-size: 1.7rem; line-height: 1.45; }
.card-body .desc { font-family: 'Noto Naskh Arabic', serif; font-size: .98rem; line-height: 1.85; color: #3a3a3e; }
.card-meta { border-top: 0; padding-top: 0; }
.card-actions { flex-wrap: wrap; row-gap: .5rem; }
.card-actions .link, .card-actions a { white-space: nowrap; }
.card-actions .link { color: var(--nb-blue); }

/* عناوين الأقسام: خطٌّ أسود سميك فوق العنوان */
.section-head h2 { border-top: 3px solid var(--nb-ink); padding-top: .6rem; font-size: 1.6rem; }
#news-grid { padding-top: 1.75rem; }

/* صندوق النشرة */
.newsletter-cta { background: #F3F6FF !important; border: 0 !important; border-top: 3px solid var(--nb-blue) !important; border-radius: 0 !important; }

/* التذييل: أسود، والشعار مقلوبٌ أبيض */
footer.site { background: var(--nb-ink); color: #c9c9ce; }
footer.site a { color: #fff; }
footer.site .btn { background: transparent !important; color: #fff !important; border-color: #444 !important; }
footer.site .btn:hover { border-color: #fff !important; }
footer.site .field { background: #1c1c1e; color: #fff; border-color: #444; }
footer.site .field::placeholder { color: #8a8a90; }
footer.site .btn.neon-btn { background: #fff !important; color: #111 !important; }
footer.site .muted, footer.site .small { color: #a9a9ae; }
footer.site .nb-logo { display: inline-flex; align-items: center; gap: .6rem; color: #fff; }
footer.site .nb-logo svg { width: 2.4rem; height: 2.4rem; }
footer.site .nb-logo .word { font-family: 'Noto Naskh Arabic', serif; font-weight: 700; font-size: 1.5rem; }

/* إصلاح: حقل الفخّ في نموذج التعليق (left:-9999px) كان يوسّع صفحة الخبر أفقيًّا في الاتّجاه العربيّ */
input[name="website"] { left: 0 !important; clip-path: inset(50%); pointer-events: none; }

/* العناوين بخطّ النسخ (القاعدة الأصليّة تفرض Cairo في الاتّجاه العربيّ) */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: 'Noto Naskh Arabic', serif; }

/* صفحة الخبر: متنٌ بخطّ النسخ، وصورةٌ بنسبتها كاملة */
.article-body { font-family: 'Noto Naskh Arabic', serif; font-size: 1.15rem; line-height: 2; color: #1d1d1f; }
.article-hero { border-radius: 0; height: auto; aspect-ratio: 1200 / 630; }
.article-layout h1 + p.muted { font-family: 'Noto Naskh Arabic', serif; color: #3a3a3e !important; }
.src-pill { border-radius: 0 !important; }
.newsletter-cta .btn.neon-btn { background: var(--nb-ink) !important; color: #fff !important; }


/* ===== 12 أكتوبر: تخفيف الحدّة + إصلاح الزرّ المختار + المساحتان الإعلانيّتان ===== */
:root { --nb-ui: #2b2f36; }
.header, .header.scrolled { border-bottom: 1px solid var(--nb-rule); }
.section-head h2 { border-top-width: 2px; border-top-color: var(--nb-ui); }
.btn, .badge, .chip, .field, .field.round { border-radius: 8px !important; }
.chip { border: 1px solid #dcdfe4 !important; background: #fff !important; color: var(--nb-ui) !important; }
.chip:hover { background: #F3F6FF !important; border-color: var(--nb-blue) !important; color: var(--nb-blue) !important; }
.chip.active, .chip.active:hover { background: var(--nb-ui) !important; border-color: var(--nb-ui) !important; color: #fff !important; }
.btn.neon-btn, .badge.neon-btn { background: var(--nb-ui) !important; color: #fff !important; }
.btn.neon-btn:hover, .badge.neon-btn:hover { background: var(--nb-blue) !important; color: #fff !important; border-color: var(--nb-blue) !important; box-shadow: none !important; }
.card-media { border-radius: 6px; overflow: hidden; }
.ad-slot { display: block; position: relative; overflow: hidden; border-radius: 8px; background: #eef1f4; }
.ad-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-slot.ad-wide img { aspect-ratio: 16 / 9; }
.ad-slot .ad-label { position: absolute; top: .6rem; inset-inline-end: .6rem; background: #fffffff0; color: var(--nb-ui); font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; }
.ad-slot .ad-slot-text { padding: 2rem; text-align: center; font-weight: 700; }

/* ===== 12 أكتوبر: نافذة «للأعضاء فقط» عند المشاركة — كان نصّها بلون الخلفية وزرّها شفّافًا بخطٍّ أبيض ===== */
.share-gate-tip { border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 1.1rem 1rem 1rem; }
.share-gate-tip > div { display: flex; flex-direction: column; align-items: stretch; gap: .15rem; }
.share-gate-tip .share-gate-title { order: 1; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: var(--nb-ink); font-family: 'Noto Naskh Arabic', serif; font-size: 1.05rem; }
.share-gate-tip .share-gate-msg { order: 2; color: #4a4f57; }
.share-gate-tip .share-gate-cta { order: 3; display: block; background: var(--nb-ui) !important; color: #fff !important; border-radius: 8px !important; padding: .55rem .9rem; }
.share-gate-tip .share-gate-cta:hover { background: var(--nb-blue) !important; color: #fff !important; }
.share-gate-tip .share-gate-login { order: 4; color: var(--nb-blue); }

/* شريط الأخبار: صندوق أسود (12 أكتوبر) */
.ticker-label { background: #111 !important; color: #fff !important; }

/* بطاقات الأخبار على نمط صفحة المسودات: عنوان أصغر وأزرار أخف (12 أكتوبر) */
.card-body h3 { font-size: 1.05rem; line-height: 1.55; }
.card-actions .link, .card-actions a.xs { font-size: .75rem; font-weight: 400; }

/* الشريط: سرعة معتدلة وخطّ عاديّ (12 أكتوبر) */
.ticker-items { animation-duration: var(--ticker-duration, 90s) !important; }
.ticker-items a { font-weight: 400 !important; }

/* القائمة العلوية وزر الخروج وعناوين الأقسام بخط أنحف (12 أكتوبر) */
.nav-links a, .header .btn.sm, .section-head h2 { font-weight: 400; }

/* الفوتر: خطٌّ أسود رشيق بقدر الروابط (12 أكتوبر) */
footer.site.nb-foot { margin-top: 2rem; background: #111; border: 0; backdrop-filter: none; }
.nb-foot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .1rem 1.25rem; padding-block: .3rem; }
.nb-foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer.site.nb-foot a { color: #fff; font-size: .8rem; font-weight: 400; line-height: 1.6; text-decoration: none; }
footer.site.nb-foot a:hover { color: #bdbdc2; text-decoration: underline; }
.nb-foot-by { margin: 0; color: #bdbdc2; font-size: .75rem; line-height: 1.6; }
.nb-foot-by a { font-size: .75rem; }
@media (max-width: 640px) { .nb-foot-in { justify-content: center; text-align: center; } .nb-foot-links { justify-content: center; gap: 1rem; } }

/* حقل الاشتراك في الشريط العلويّ (13 أكتوبر) */
.nb-sub { position: relative; align-items: center; }
.nb-sub-form { display: flex; align-items: center; gap: .375rem; margin: 0; padding: 3px; border: 1px solid #d4d4d8; background: #fff; }
.nb-sub-label { padding-inline-start: .5rem; font-size: .8125rem; font-weight: 400; color: #111; white-space: nowrap; }
.nb-sub-input { width: 11rem; padding: .375rem .25rem; border: 0; outline: 0; background: transparent; font: inherit; font-size: .8125rem; font-weight: 400; color: #111; }
.nb-sub-btn { display: inline-grid; place-items: center; width: 2rem; height: 1.875rem; border: 0; border-radius: 0; background: #111; color: #fff; cursor: pointer; }
.nb-sub-btn:hover { background: #3f3f46; color: #fff; }
.nb-sub-msg { position: absolute; top: calc(100% + .25rem); inset-inline-start: 0; z-index: 50; margin: 0; padding: .25rem .5rem; border: 1px solid #e4e4e7; background: #fff; white-space: nowrap; }
.newsletter-drop strong { font-weight: 400; }
@media (min-width: 1100px) { .nb-sub-toggle { display: none; } }
